Sessions.cs
资源名称:H3_OA.rar [点击查看]
上传用户:li2971742
上传日期:2021-11-18
资源大小:39096k
文件大小:4k
源码类别:
OA系统
开发平台:
C#
- using System;
- namespace OThinker.H3.WorkSheet
- {
- /// <summary>
- /// Summary description for Sessions.
- /// </summary>
- public class Sessions
- {
- // 获得某个Instance对应的Workflow Catalog在Session中的名字
- public static string GetInstanceWorkflowPackage(string InstanceId)
- {
- return "Instance_" + InstanceId + "_WorkflowPackage";
- }
- // 获得某个Instance对应的Workflow Name在Session中的名字
- public static string GetInstanceWorkflowName(string InstanceId)
- {
- return "Instance_" + InstanceId + "_WorkflowName";
- }
- // 获得某个Instance对应的Workflow Name在Session中的名字
- public static string GetInstanceWorkflowVersion(string InstanceId)
- {
- return "Instance_" + InstanceId + "_WorkflowVersion";
- }
- public static string GetWorkItem(string WorkItemID)
- {
- return "WorkItem_" + WorkItemID;
- }
- public static string GetMyWorkItemTable()
- {
- return "MyWorkItemTable";
- }
- public static string GetMyInstanceTable()
- {
- return "MyInstanceTable";
- }
- public static string GetInstanceData(string InstanceId, string ActivityName)
- {
- return "InstanceData_" + InstanceId + "_ActivityName_" + ActivityName;
- }
- public static string GetHeapDataItems(string InstanceId)
- {
- return "HeapDataItems" + InstanceId;
- }
- public static string GetOrgLogTable()
- {
- return "OrgLogTable";
- }
- public static string GetWorkflow(
- string WorkflowPackage,
- string WorkflowName,
- int WorkflowVersion)
- {
- return "Workflow_" + WorkflowPackage + "." + WorkflowName + "." + WorkflowVersion;
- }
- public static string GetWorkflowACLTable(
- string UserAlias,
- string WorkflowPackage,
- string WorkflowName)
- {
- return "WorkflowACL_" + UserAlias + "_" + WorkflowPackage + "_" + WorkflowName;
- }
- public static string GetInstanceACLTable(string InstanceId)
- {
- return "InstanceACL_" + InstanceId;
- }
- public static string GetWorkflowACLCheckBoxes(
- string UserAlias,
- string WorkflowPackage,
- string WorkflowName)
- {
- return "WorkflowACL_" + UserAlias + "_" + WorkflowPackage + "_" + WorkflowName + "_CheckBoxes";
- }
- public static string GetInstanceACLCheckBoxes(string InstanceId)
- {
- return "InstanceACL_" + InstanceId + "_CheckBoxes";
- }
- public static string GetWorkflowACL(string ACLID)
- {
- return "WorkflowACL_" + ACLID;
- }
- public static string GetInstanceACL(string ACLID)
- {
- return "InstanceACL_" + ACLID;
- }
- public static string GetAdministatorACLTable()
- {
- return "AdministratorACLTable";
- }
- public static string GetAdministatorACLCheckBoxes()
- {
- return "CheckBoxes_AdministatorACL_Grid";
- }
- // 获得数据统计的Session迷宫
- public static string GetInstanceDataStatTable()
- {
- return "InstanceStatReport_InstanceDataStatisticsTable";
- }
- // 获得流程性能的表
- public static string GetWorkflowPerformanceTable()
- {
- return "WorkflowReport_WorkflowPerformanceTable";
- }
- // 获得用户报表页面的报表
- public static string GetUserReportTable()
- {
- return "UserReport_ReportTable";
- }
- public static string GetInstanceContext(string InstanceId)
- {
- return "InstanceEntity_" + InstanceId;
- }
- public static string GetWorkflowPackagePerformance()
- {
- return "WorkflowPackagePerformance";
- }
- public static string GetMyWorkflow()
- {
- return "MyWorkflow";
- }
- public static string GetWorkflowVersionPerformance()
- {
- return "WorkflowVersionPerformance";
- }
- public static string GetWorkflowActivityPerformance()
- {
- return "WorkflowActivityPerformance";
- }
- public static string GetInstanceTokenTable(string InstanceId)
- {
- return "TokenTable_" + InstanceId;
- }
- // 获得登陆用户的验证器
- public static string GetUserValidator()
- {
- return "UserValidator";
- }
- }
- }