Пример #1
0
 protected void Page_Load(object sender, System.EventArgs e)
 {
     base.Response.Cache.SetNoStore();
     if (!this.Page.IsPostBack)
     {
         this.Session.Remove("HumanCode");
         this.Session.Remove("HumanName");
         this.InstanceCode          = new System.Guid(base.Request["ic"]);
         this.InstanceID            = System.Convert.ToInt32(base.Request["id"]);
         this.Session["InstanceId"] = base.Request["id"];
         if (!FlowAuditAction.GetNextOperator(this.InstanceID))
         {
             this.NodeType.Value = FlowAuditAction.GetAuditorType(this.InstanceID);
             this.tr_selector.Style.Add("display", "block");
             this.IBPick.Attributes["onclick"] = "SelectPerson();";
             if (this.NodeType.Value == "2")
             {
                 this.lblMessage.Visible = true;
                 this.lblMessage.Text    = "此节点类型为多人,必须选择多个人";
             }
             else
             {
                 this.lblMessage.Visible = false;
             }
             this.hfldNextAuditDepCode.Value = FlowAuditAction.GetNextAuditDep(this.InstanceID);
         }
         this.IsAllPass       = base.Request["pass"];
         this.hdnNodeID.Value = base.Request["nid"];
         this.BusinessCode    = base.Request["bc"].ToString();
         this.BusinessClass   = base.Request["bcl"].ToString();
         if (this.hdnNodeID.Value == "0" || this.hdnNodeID.Value == "")
         {
             this.btnFront.Disabled = true;
             this.btnAfter.Disabled = true;
         }
         else
         {
             string currentAuditorType = FlowAuditAction.GetCurrentAuditorType(this.InstanceID);
             if (currentAuditorType != "1" && currentAuditorType != "")
             {
                 this.btnFront.Disabled = true;
                 this.btnAfter.Disabled = true;
             }
             else
             {
                 this.btnFront.Disabled = false;
                 this.btnAfter.Disabled = false;
             }
         }
         this.UserCode = System.Convert.ToString(this.Session["yhdm"]);
         this.hdnInstanceCode.Value = this.InstanceCode.ToString();
         DataTable dataTable = FlowAuditAction.TempNodesList(this.Session["yhdm"].ToString(), this.InstanceCode);
         if (dataTable.Rows.Count > 0)
         {
             this.isSecValidate = dataTable.Rows[0]["isSecValidate"].ToString();
         }
         if (this.isSecValidate == "0" || this.isSecValidate == "")
         {
             this.txtAuditPwd.Enabled             = false;
             this.RequiredFieldValidator1.Enabled = false;
             this.LbAduPass.Enabled               = false;
             this.LbAduPass.Visible               = false;
             this.txtAuditPwd.Visible             = false;
             this.RequiredFieldValidator1.Visible = false;
         }
         else
         {
             this.trPass.Visible = true;
         }
         string.Concat(new object[]
         {
             FlowAuditAction.DoWithUrl(this.BusinessCode),
             "ic=",
             this.InstanceCode,
             "&id=",
             this.InstanceID,
             "&pass="******"onclick"] = string.Concat(new string[]
         {
             "openAudit(0,'",
             this.BusinessCode,
             "','",
             this.BusinessClass,
             "');"
         });
         this.btnAuditrecord.Attributes["onclick"] = string.Concat(new string[]
         {
             "openAudit(1,'",
             this.BusinessCode,
             "','",
             this.BusinessClass,
             "');"
         });
     }
     this.FileUpload1.Folder     = "/UploadFiles/Audit/" + this.InstanceCode.ToString();
     this.FileUpload1.RecordCode = this.InstanceID.ToString();
     if (this.BusinessCode == "126" || this.BusinessCode == "127" || this.BusinessCode == "128")
     {
         this.hfldIsAllowRebut.Value = "0";
         return;
     }
     this.hfldIsAllowRebut.Value = "1";
 }