//protected HtmlHead Head1; //protected HtmlForm form1; //protected Button Button1; //protected HtmlInputText UDepName; //protected HtmlInputText Phone; //protected DropDownList IsPosition; //protected DropDownList parentID; //protected HtmlInputText Orders; //protected HtmlTextArea Notes; //protected CheckBoxList powerList; //protected Button save_bt; protected void Page_Load(object sender, EventArgs e) { if (!base.IsPostBack) { IList all = Sys_Module.Init().GetAll(null, "order by TypeName,Orders"); for (int i = 0; i < all.Count; i++) { Sys_ModuleInfo sys_ModuleInfo = all[i] as Sys_ModuleInfo; this.powerList.Items.Add(new ListItem("【" + sys_ModuleInfo.TypeName + "】 - " + sys_ModuleInfo.ModuleName, string.Concat(sys_ModuleInfo.id))); } if (!string.IsNullOrEmpty(base.Request.QueryString["did"])) { this.GetFirtNode(); this.parentID.DataSource = this.li; this.parentID.DataTextField = "Sh"; this.parentID.DataValueField = "ID"; this.parentID.DataBind(); this.Show(base.Request.QueryString["did"]); } else { this.GetFirtNode(); this.parentID.DataSource = this.li; this.parentID.DataTextField = "Sh"; this.parentID.DataValueField = "ID"; this.parentID.DataBind(); } } }
//protected HtmlHead Head1; //protected HtmlForm form1; //protected Button Button1; //protected HtmlInputText RoleName; //protected CheckBoxList powerList; //protected HtmlTextArea Notes; //protected Button save_bt; protected void Page_Load(object sender, EventArgs e) { if (!base.IsPostBack) { IList all = Sys_Module.Init().GetAll(null, "order by TypeName,Orders"); for (int i = 0; i < all.Count; i++) { Sys_ModuleInfo sys_ModuleInfo = all[i] as Sys_ModuleInfo; this.powerList.Items.Add(new ListItem("<" + sys_ModuleInfo.TypeName + "> - " + sys_ModuleInfo.ModuleName, string.Concat(sys_ModuleInfo.id))); } if (!string.IsNullOrEmpty(base.Request.QueryString["rid"])) { this.Show(base.Request.QueryString["rid"]); } } }