protected void Page_Load(object sender, EventArgs e) { if (!this.Page.IsPostBack) { if (base.Request.QueryString["opType"] == null) { this.Page.RegisterStartupScript("warn", "<script language=\"JavaScript\">alert(\"参数不正确!\");window.close();</script>"); } else { this.ViewState["opType"] = base.Request.QueryString["opType"].ToString(); } string text = ""; if (this.ViewState["opType"].ToString().Trim() == "ProvTypeMge") { this.HidClassId.Value = base.Request.QueryString["ClassID"].ToString(); text = this.pc.getDutyIDs(base.Request.QueryString["ClassID"].ToString()).Trim(); } if (this.ViewState["opType"].ToString().Trim() == "ContClassMge") { this.ViewState["ContClassID"] = base.Request.QueryString["ContClassID"].ToString(); text = this.CClassObj.getPurviews(this.ViewState["ContClassID"].ToString()); } if (this.ViewState["opType"].ToString() == "InsClass") { this.ViewState["InsCCode"] = base.Request.QueryString["InsCCode"].Trim(); text = this.GetInsClassPer("slt", this.ViewState["InsCCode"].ToString(), ""); } this.HidDutyCodeS.Value = ((text == "") ? "" : (text + ",")); text = ((text == "") ? "0" : text); this.rFrame2.Attributes["src"] = "DutyList2.aspx?DUTYID=" + text; CreatDepTree creatDepTree = new CreatDepTree(this.tv.Nodes); creatDepTree.EnabledLink = true; creatDepTree.Target = "rFrame"; creatDepTree.NavigationURL = "DutyList.aspx"; userManageDb userManageDb = new userManageDb(); string a = userManageDb.manageDept(this.Session["yhdm"].ToString()).Trim(); if (a == "1") { creatDepTree.BuildTreeView(this.Page.Session["yhdm"].ToString(), 0); } else { creatDepTree.BuildTreeView(this.Page.Session["yhdm"].ToString(), 0); } if (this.tv.Nodes.Count > 0) { this.tv.Nodes[0].Selected = true; } } }
protected void Page_Load(object sender, EventArgs e) { if (!base.IsPostBack) { if (!string.IsNullOrEmpty(base.Request.QueryString["code"])) { this.DataBindContractType(); } else { this.iiTypeC(); } CreatDepTree creatDepTree = new CreatDepTree(this.tvDept.Nodes); creatDepTree.EnabledLink = true; creatDepTree.NavigationURL = "Oauser.aspx"; userManageDb userManageDb = new userManageDb(); string a = userManageDb.manageDept(this.Session["yhdm"].ToString()).Trim(); if (a == "1") { creatDepTree.BuildTreeView(this.Page.Session["yhdm"].ToString(), 0); } if (this.tvDept.Nodes.Count > 0) { this.tvDept.Nodes[0].Selected = true; } } }
protected void Page_Load(object sender, EventArgs e) { if (!this.Page.IsPostBack) { CreatDepTree creatDepTree = new CreatDepTree(this.tvDept.Nodes); creatDepTree.EnabledLink = true; creatDepTree.Target = "rFrame"; creatDepTree.NavigationURL = base.Request.QueryString["DestUrl"].ToString(); userManageDb userManageDb = new userManageDb(); string a = userManageDb.manageDept(this.Session["yhdm"].ToString()).Trim(); if (a == "1") { creatDepTree.BuildTreeView(this.Page.Session["yhdm"].ToString(), 0); } int arg_BA_0 = this.tvDept.Nodes.Count; } }