PortalServer.cs
资源名称:H3_OA.rar [点击查看]
上传用户:li2971742
上传日期:2021-11-18
资源大小:39096k
文件大小:4k
源码类别:
OA系统
开发平台:
C#
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace OThinker.H3.WorkSheet
- {
- public class PortalServer
- {
- public PortalServer()
- {
- }
- public virtual OThinker.Organization.IOrganization Organization
- {
- get
- {
- return OThinker.H3.Server.Engine.Organization;
- }
- }
- public virtual OThinker.H3.Case.ICaseManager CaseManager
- {
- get
- {
- return OThinker.H3.Server.Engine.CaseManager;
- }
- }
- public virtual OThinker.H3.WorkItem.IWorkItemManager WorkItemManager
- {
- get
- {
- return OThinker.H3.Server.Engine.WorkItemManager;
- }
- }
- public virtual OThinker.H3.Data.ICaseDataManager CaseDataManager
- {
- get
- {
- return OThinker.H3.Server.Engine.CaseDataManager;
- }
- }
- public virtual OThinker.H3.HeapData.IHeapDataManager HeapDataManager
- {
- get
- {
- return OThinker.H3.Server.Engine.HeapDataManager;
- }
- }
- public virtual OThinker.H3.HeapData.INamedHeapData NamedHeapData
- {
- get
- {
- return OThinker.H3.Server.Engine.NamedHeapData;
- }
- }
- public virtual OThinker.H3.Workflow.IWorkflowManager WorkflowManager
- {
- get
- {
- return OThinker.H3.Server.Engine.WorkflowManager;
- }
- }
- public virtual OThinker.H3.Case.ITokenPool TokenPool
- {
- get
- {
- return OThinker.H3.Server.Engine.TokenPool;
- }
- }
- /// <summary>
- /// Web服务器的根目录
- /// </summary>
- protected virtual string PortalRoot
- {
- get
- {
- return OThinker.H3.Configs.Config.Current.Web.ConsoleRoot + "/";
- }
- }
- public virtual void NotifyMessage(string Message)
- {
- this.Response.Redirect(this.PortalRoot + "NotifyMessage.aspx" + "?Message=" + System.Web.HttpUtility.UrlEncode(Message));
- }
- public string GetCancelCaseUrl(long CaseID)
- {
- return this.PortalRoot + "CancelCase.aspx" + "?" + "CaseID" + "=" + CaseID;
- }
- public void FinishWorkItem(long WorkItemID, string DestActivityName, bool Approval)
- {
- this.Response.Redirect(this.PortalRoot + "FinishWorkItem.aspx" + "?" +
- "WorkItemID" + "=" + WorkItemID + "&" +
- "DestActivityName" + "=" + System.Web.HttpUtility.UrlEncode(DestActivityName) + "&" +
- "Approval" + "=" + Approval.ToString().ToLower());
- }
- public string GetConsultUrl(long WorkItemID)
- {
- return this.PortalRoot + "Consult.aspx" + "?" + "WorkItemID" + "=" + WorkItemID;
- }
- public string GetForwardUrl(long WorkItemID)
- {
- return this.PortalRoot + "Forward.aspx" + "?" + "WorkItemID" + "=" + WorkItemID;
- }
- public string GetViewCaseStateUrl(long CaseID)
- {
- return this.PortalRoot + "CaseStateChart.aspx?CaseID=" + CaseID;
- }
- public string GetWitnessUrl(long CaseID)
- {
- return this.PortalRoot + "Witness.aspx" + "?" + "CaseID=" + CaseID;
- }
- }
- }