Sessions.cs
上传用户:li2971742
上传日期:2021-11-18
资源大小:39096k
文件大小:4k
源码类别:

OA系统

开发平台:

C#

  1. using System;
  2. namespace OThinker.H3.WorkSheet
  3. {
  4. /// <summary>
  5. /// Summary description for Sessions.
  6. /// </summary>
  7. public class Sessions
  8. {
  9.         // 获得某个Instance对应的Workflow Catalog在Session中的名字
  10.         public static string GetInstanceWorkflowPackage(string InstanceId)
  11.         {
  12.             return "Instance_" + InstanceId + "_WorkflowPackage";
  13.         }
  14.         // 获得某个Instance对应的Workflow Name在Session中的名字
  15. public static string GetInstanceWorkflowName(string InstanceId)
  16. {
  17. return "Instance_" + InstanceId + "_WorkflowName";
  18. }
  19. // 获得某个Instance对应的Workflow Name在Session中的名字
  20. public static string GetInstanceWorkflowVersion(string InstanceId)
  21. {
  22. return "Instance_" + InstanceId + "_WorkflowVersion";
  23. }
  24.         public static string GetWorkItem(string WorkItemID)
  25. {
  26.             return "WorkItem_" + WorkItemID;
  27. }
  28.         public static string GetMyWorkItemTable()
  29.         {
  30.             return "MyWorkItemTable";
  31.         }
  32.         public static string GetMyInstanceTable()
  33.         {
  34.             return "MyInstanceTable";
  35.         }
  36. public static string GetInstanceData(string InstanceId, string ActivityName)
  37. {
  38. return "InstanceData_" + InstanceId + "_ActivityName_" + ActivityName;
  39. }
  40. public static string GetHeapDataItems(string InstanceId)
  41. {
  42. return "HeapDataItems" + InstanceId;
  43. }
  44.         public static string GetOrgLogTable()
  45.         {
  46.             return "OrgLogTable";
  47.         }
  48. public static string GetWorkflow(
  49. string WorkflowPackage, 
  50. string WorkflowName, 
  51. int WorkflowVersion)
  52. {
  53. return "Workflow_" + WorkflowPackage + "." + WorkflowName + "." + WorkflowVersion;
  54. }
  55.         public static string GetWorkflowACLTable(
  56.             string UserAlias,
  57.             string WorkflowPackage,
  58.             string WorkflowName)
  59.         {
  60.             return "WorkflowACL_" + UserAlias + "_" + WorkflowPackage + "_" + WorkflowName;
  61.         }
  62.         public static string GetInstanceACLTable(string InstanceId)
  63.         {
  64.             return "InstanceACL_" + InstanceId;
  65.         }
  66.         public static string GetWorkflowACLCheckBoxes(
  67.             string UserAlias,
  68.             string WorkflowPackage,
  69.             string WorkflowName)
  70.         {
  71.             return "WorkflowACL_" + UserAlias + "_" + WorkflowPackage + "_" + WorkflowName + "_CheckBoxes";
  72.         }
  73.         public static string GetInstanceACLCheckBoxes(string InstanceId)
  74.         {
  75.             return "InstanceACL_" + InstanceId + "_CheckBoxes";
  76.         }
  77.         public static string GetWorkflowACL(string ACLID)
  78.         {
  79.             return "WorkflowACL_" + ACLID;
  80.         }
  81.         public static string GetInstanceACL(string ACLID)
  82.         {
  83.             return "InstanceACL_" + ACLID;
  84.         }
  85.         public static string GetAdministatorACLTable()
  86.         {
  87.             return "AdministratorACLTable";
  88.         }
  89.         public static string GetAdministatorACLCheckBoxes()
  90.         {
  91.             return "CheckBoxes_AdministatorACL_Grid";
  92.         }
  93.         // 获得数据统计的Session迷宫
  94.         public static string GetInstanceDataStatTable()
  95.         {
  96.             return "InstanceStatReport_InstanceDataStatisticsTable";
  97.         }
  98.         // 获得流程性能的表
  99.         public static string GetWorkflowPerformanceTable()
  100.         {
  101.             return "WorkflowReport_WorkflowPerformanceTable";
  102.         }
  103.         // 获得用户报表页面的报表
  104.         public static string GetUserReportTable()
  105.         {
  106.             return "UserReport_ReportTable";
  107.         }
  108.         public static string GetInstanceContext(string InstanceId)
  109.         {
  110.             return "InstanceEntity_" + InstanceId;
  111.         }
  112.         public static string GetWorkflowPackagePerformance()
  113.         {
  114.             return "WorkflowPackagePerformance";
  115.         }
  116.         public static string GetMyWorkflow()
  117.         {
  118.             return "MyWorkflow";
  119.         }
  120.         public static string GetWorkflowVersionPerformance()
  121.         {
  122.             return "WorkflowVersionPerformance";
  123.         }
  124.         public static string GetWorkflowActivityPerformance()
  125.         {
  126.             return "WorkflowActivityPerformance";
  127.         }
  128.         public static string GetInstanceTokenTable(string InstanceId)
  129.         {
  130.             return "TokenTable_" + InstanceId;
  131.         }
  132.         // 获得登陆用户的验证器
  133.         public static string GetUserValidator()
  134.         {
  135.             return "UserValidator";
  136.         }
  137. }
  138. }