QueryInstanceByRecurrences.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 QueryInstanceByRecurrences : PortalPage
  17. {
  18.         private int LeastRecurrences = 0;
  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 strLeastRecurrences = this.Request.QueryString[Param_LeastRecurrences];
  27.             if (strLeastRecurrences != null && strLeastRecurrences != "")
  28.             {
  29.                 this.LeastRecurrences = int.Parse(strLeastRecurrences);
  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.QueryInstanceByRecurrences(
  41.                 this.Originator, 
  42.                 this.LeastRecurrences);
  43.             this.InstanceGridView.RecurrencesColumn.Visible = true;
  44.             this.InstanceGridView.BindDataGrid(table);
  45.         }
  46. #region Web Form Designer generated code
  47. override protected void OnInit(EventArgs e)
  48. {
  49. //
  50. // CODEGEN: This call is required by the ASP.NET Web Form Designer.
  51. //
  52. InitializeComponent();
  53. base.OnInit(e);
  54. }
  55. /// <summary>
  56. /// Required method for Designer support - do not modify
  57. /// the contents of this method with the code editor.
  58. /// </summary>
  59. private void InitializeComponent()
  60. {    
  61. }
  62. #endregion
  63. }
  64. }