protected void Page_Load(object sender, EventArgs e) { if (UserLimStr == "审核员") { GridPanel1.Hide(); } DepDataBind(); MonthDataBind(); int Year = 0, Month = 0; DateTime mydate = DateTime.Now; Year = mydate.Year; Month = mydate.Month; //if (Request.QueryString["Year"] != null && Request.QueryString["cmbdeptid"] != null) //{ // cmbyear.SelectedItem.Text = Request.QueryString["Year"].ToString(); // cmbdept.SelectedItem.Text = Request.QueryString["cmbdeptid"].ToString(); // GetGridData(); //} }
protected void Page_Load(object sender, EventArgs e) { if (!Ext.IsAjaxRequest) { if (!SessionBox.CheckUserSession()) { Response.Redirect("~/Login.aspx"); } else { UserHandle.InitModule(this.PageTag); //初始化此模块的权限。 if (UserHandle.ValidationHandle(PermissionTag.Browse)) //是否有浏览权限 { if (!UserHandle.ValidationHandle(PermissionTag.Add)) //引用 { btn_yy.Visible = false; //引用 btn_Sure.Visible = false; //全部引用 btn_C.Visible = false; //全部取消 btn_cancel.Visible = false; //取消 } if (!UserHandle.ValidationHandle(PermissionTag.Edit)) //保存 { btn_Save.Visible = false; } BuildTree(); Bindcombox(int.Parse(PublicMethod.ReadXmlReturnNode("SGLX", this)), bmStore1); Bindcombox(int.Parse(PublicMethod.ReadXmlReturnNode("FXDJ", this)), bmStore2); Bindcombox(int.Parse(PublicMethod.ReadXmlReturnNode("FXLX", this)), bmStore3); string ren = PublicMethod.ReadXmlReturnNode("REN", this) + "," + PublicMethod.ReadXmlReturnNode("GUAN", this); //bindGLDX(ren, Store1); bindGLDX(ren, Store2); bindGLDX(ren, Store3); bindGLDX(ren, Store4); Bindcombox(int.Parse(PublicMethod.ReadXmlReturnNode("SWJB", this)), bmStore5); Bindcombox(int.Parse(PublicMethod.ReadXmlReturnNode("YHJB", this)), bmStore4); GridPanel1.Hide(); Panel1.Hide(); //首页待办连接处理-周义生 if (Request.QueryString["H_YY"] != null) { tpZY.Hide(); bindH_YY(); GridPanel1.Show(); btn_Sure.Hide(); btn_C.Hide(); } } else { Session["ErrorNum"] = "0"; Response.Redirect("~/Error.aspx"); } btn_Save.Disabled = true; btn_yy.Disabled = true; btn_cancel.Disabled = true; } } }