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

OA系统

开发平台:

C#

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace OThinker.H3.WorkSheet
  5. {
  6.     public class PortalServer
  7.     {
  8.         public PortalServer()
  9.         {
  10.         }
  11.         public virtual OThinker.Organization.IOrganization Organization
  12.         {
  13.             get
  14.             {
  15.                 return OThinker.H3.Server.Engine.Organization;
  16.             }
  17.         }
  18.         public virtual OThinker.H3.Case.ICaseManager CaseManager
  19.         {
  20.             get
  21.             {
  22.                 return OThinker.H3.Server.Engine.CaseManager;
  23.             }
  24.         }
  25.         public virtual OThinker.H3.WorkItem.IWorkItemManager WorkItemManager
  26.         {
  27.             get
  28.             {
  29.                 return OThinker.H3.Server.Engine.WorkItemManager;
  30.             }
  31.         }
  32.         public virtual OThinker.H3.Data.ICaseDataManager CaseDataManager
  33.         {
  34.             get
  35.             {
  36.                 return OThinker.H3.Server.Engine.CaseDataManager;
  37.             }
  38.         }
  39.         public virtual OThinker.H3.HeapData.IHeapDataManager HeapDataManager
  40.         {
  41.             get
  42.             {
  43.                 return OThinker.H3.Server.Engine.HeapDataManager;
  44.             }
  45.         }
  46.         public virtual OThinker.H3.HeapData.INamedHeapData NamedHeapData
  47.         {
  48.             get
  49.             {
  50.                 return OThinker.H3.Server.Engine.NamedHeapData;
  51.             }
  52.         }
  53.         public virtual OThinker.H3.Workflow.IWorkflowManager WorkflowManager
  54.         {
  55.             get
  56.             {
  57.                 return OThinker.H3.Server.Engine.WorkflowManager;
  58.             }
  59.         }
  60.         public virtual OThinker.H3.Case.ITokenPool TokenPool
  61.         {
  62.             get
  63.             {
  64.                 return OThinker.H3.Server.Engine.TokenPool;
  65.             }
  66.         }
  67.         /// <summary>
  68.         /// Web服务器的根目录
  69.         /// </summary>
  70.         protected virtual string PortalRoot
  71.         {
  72.             get
  73.             {
  74.                 return OThinker.H3.Configs.Config.Current.Web.ConsoleRoot + "/";
  75.             }
  76.         }
  77.         public virtual void NotifyMessage(string Message)
  78.         {
  79.             this.Response.Redirect(this.PortalRoot + "NotifyMessage.aspx" + "?Message=" + System.Web.HttpUtility.UrlEncode(Message));
  80.         }
  81.         public string GetCancelCaseUrl(long CaseID)
  82.         {
  83.             return this.PortalRoot + "CancelCase.aspx" + "?" + "CaseID" + "=" + CaseID;
  84.         }
  85.         public void FinishWorkItem(long WorkItemID, string DestActivityName, bool Approval)
  86.         {
  87.             this.Response.Redirect(this.PortalRoot + "FinishWorkItem.aspx" + "?" +
  88.                     "WorkItemID" + "=" + WorkItemID + "&" +
  89.                     "DestActivityName" + "=" + System.Web.HttpUtility.UrlEncode(DestActivityName) + "&" +
  90.                     "Approval" + "=" + Approval.ToString().ToLower());
  91.         }
  92.         public string GetConsultUrl(long WorkItemID)
  93.         {
  94.             return this.PortalRoot + "Consult.aspx" + "?" + "WorkItemID" + "=" + WorkItemID;
  95.         }
  96.         public string GetForwardUrl(long WorkItemID)
  97.         {
  98.             return this.PortalRoot + "Forward.aspx" + "?" + "WorkItemID" + "=" + WorkItemID;
  99.         }
  100.         public string GetViewCaseStateUrl(long CaseID)
  101.         {
  102.             return this.PortalRoot + "CaseStateChart.aspx?CaseID=" + CaseID;
  103.         }
  104.         public string GetWitnessUrl(long CaseID)
  105.         {
  106.             return this.PortalRoot + "Witness.aspx" + "?" + "CaseID=" + CaseID;
  107.         }
  108.     }
  109. }