WorkItemDetail.aspx.cs
资源名称:H3_OA.rar [点击查看]
上传用户:li2971742
上传日期:2021-11-18
资源大小:39096k
文件大小:2k
源码类别:
OA系统
开发平台:
C#
- using System;
- using System.Data;
- using System.Configuration;
- using System.Collections;
- using System.Web;
- using System.Web.Security;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- using System.Web.UI.WebControls.WebParts;
- using System.Web.UI.HtmlControls;
- namespace OThinker.H3.Portal
- {
- public partial class WorkItemDetail : OThinker.H3.Portal.PortalPage
- {
- private OThinker.H3.WorkItem.WorkItem _WorkItem;
- protected OThinker.H3.WorkItem.WorkItem WorkItem
- {
- get
- {
- if (this._WorkItem == null)
- {
- string itemId = this.Request.QueryString[Param_WorkItemID];
- this._WorkItem = OThinker.H3.Server.Engine.WorkItemManager.GetWorkItem(itemId);
- }
- return this._WorkItem;
- }
- }
- protected void Page_Load(object sender, EventArgs e)
- {
- if (!this.IsPostBack)
- {
- if (this.WorkItem == null)
- {
- this.NotifyMessage("该工作项不存在或者已经取消");
- }
- // 获得工作项对应的URL
- string url;
- if (this.WorkItem.State == OThinker.H3.WorkItem.WorkItemState.Finished)
- {
- url = GetViewSheetUrl(this.WorkItem);
- }
- else
- {
- url = GetWorkSheetUrl(this.WorkItem);
- }
- this.Response.Redirect(url);
- }
- }
- }
- }