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

OA系统

开发平台:

C#

  1. using System;
  2. using System.Collections;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Web;
  7. using System.Web.SessionState;
  8. using System.Web.UI;
  9. using System.Web.UI.WebControls;
  10. using System.Web.UI.HtmlControls;
  11. namespace OThinker.H3.Portal
  12. {
  13. /// <summary>
  14. /// Summary description for UnfinishedInstance.
  15. /// </summary>
  16.     public partial class QueryInstanceByOvertime : PortalPage
  17. {
  18.         private OThinker.Data.BoolMatchValue EstimatedElapsed = OThinker.Data.BoolMatchValue.Unspecified;
  19.         private string Originator = null;
  20.         private void ParseParams()
  21.         {
  22.             if (this.Request.QueryString[Param_UserID] != null && this.Request.QueryString[Param_UserID] != "")
  23.             {
  24.                 this.Originator = this.Request.QueryString[Param_UserID];
  25.             }
  26.             string strElapsed = this.Request.QueryString[Param_EstimatedElapsed];
  27.             if (strElapsed != null && strElapsed != "")
  28.             {
  29.                 this.EstimatedElapsed = (OThinker.Data.BoolMatchValue)Enum.Parse(typeof(OThinker.Data.BoolMatchValue), strElapsed);
  30.             }
  31.         }
  32.         protected void Page_Load(object sender, System.EventArgs e)
  33.         {
  34.             // 验证是否具有管理员权限
  35.             if (!this.UserValidator.ValidateViewReport())
  36.             {
  37.                 this.NotifyMessage(LackOfAuth);
  38.             }
  39.             this.ParseParams();
  40.             System.Data.DataTable table = Query.QueryInstanceByEstimatedElapsed(
  41.                 this.Originator, 
  42.                 this.EstimatedElapsed);
  43.             this.InstanceGridView.EstimatedFinishTimeColumn.Visible = true;
  44.             this.InstanceGridView.PlanFinishTimeColumn.Visible = true;
  45.             this.InstanceGridView.BindDataGrid(table);
  46.         }
  47. #region Web Form Designer generated code
  48. override protected void OnInit(EventArgs e)
  49. {
  50. //
  51. // CODEGEN: This call is required by the ASP.NET Web Form Designer.
  52. //
  53. InitializeComponent();
  54. base.OnInit(e);
  55. }
  56. /// <summary>
  57. /// Required method for Designer support - do not modify
  58. /// the contents of this method with the code editor.
  59. /// </summary>
  60. private void InitializeComponent()
  61. {    
  62. }
  63. #endregion
  64. }
  65. }