Ejemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!this.Page.IsPostBack)
     {
         this.UserCode    = this.Session["yhdm"].ToString();
         this.FilterField = base.Request["flt"];
         object value = DocumentAction.QueryClassTypeCode(this.FilterField);
         this.ClassTypeCode = Convert.ToString(value);
         this.btnAdd.Attributes["onclick"] = string.Concat(new string[]
         {
             "openClassEdit(1,'",
             this.ClassTypeCode,
             "','",
             this.UserCode,
             "')"
         });
         this.btnEdit.Attributes["onclick"] = string.Concat(new string[]
         {
             "openClassEdit(2,'",
             this.ClassTypeCode,
             "','",
             this.UserCode,
             "')"
         });
         this.btnDel.Attributes["onclick"] = " return confirm('确定删除当前记录数据吗?');";
         this.dgClass_Bind();
     }
 }
Ejemplo n.º 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!this.Page.IsPostBack)
     {
         this.UserCode       = this.Session["yhdm"].ToString();
         this.FilterField    = base.Request.QueryString["flt"];
         this.hdnTypes.Value = base.Request.QueryString["f"];
         if (base.Request.QueryString["title"] == "staffSort")
         {
             this.PageTitle = "人员类别分类";
         }
         this.Page.Header.Title  = this.PageTitle;
         this.Td_Title.InnerText = this.PageTitle;
         object value = DocumentAction.QueryClassTypeCode(this.FilterField);
         this.ClassTypeCode = Convert.ToString(value);
         this.btnAdd.Attributes["onclick"] = string.Concat(new string[]
         {
             "openClassEdit(1,'",
             this.ClassTypeCode,
             "','",
             this.UserCode,
             "')"
         });
         this.btnEdit.Attributes["onclick"] = string.Concat(new string[]
         {
             "openClassEdit(2,'",
             this.ClassTypeCode,
             "','",
             this.UserCode,
             "')"
         });
         this.btnDel.Attributes["onclick"] = " return confirm('确定删除当前记录数据吗?');";
         this.dgClass_Bind();
     }
 }