void binder() { this.ClassId.SelectedItem.Value = MenuId.ToString();//顶级栏目的值 xml = new XmlDoc(); xml.xmlfilePath = GetConfig.System("TableXmlPath") + mm.TableName + ".xml"; GetModelField(MenuId); //获取模型字段组合 dsList = (DataSet)bM.MenuList(); //栏目列表 dsReader = bm.ModelReader(mm); BindMenu(MenuId, "┣"); BindModel(); }
protected void Page_Load(object sender, EventArgs e) { LoginCheck.AdminManage(); mU.Id = StringDeal.ToInt(Request.QueryString["Id"]); mU.GroupId = StringDeal.ToInt(Request.QueryString["GroupId"]); mm.Id = StringDeal.ToInt(Request.QueryString["Id"]); mm.TableName = bU.GetTableName(mU); if (!IsPostBack) { xml = new XmlDoc(); xml.xmlfilePath = GetConfig.System("TableXmlPath") + mm.TableName + ".xml"; dsReader = bm.ModelReader(mm); UserReader(); BindModel(); this.GroupTitle.Text = bU.GetUserGroupTitle(mU); } else { UserSave(); } }
protected void Page_Load(object sender, EventArgs e) { LoginCheck.AdminManage(); MenuId = StringDeal.ToInt(Request.QueryString["MenuId"]); mm.Id = StringDeal.ToInt(Request.QueryString["Id"]); mm.TableName = bM.GetMenuTableName(MenuId);//模型表名 if (!IsPostBack) { this.ClassId.SelectedItem.Value = MenuId.ToString();//顶级栏目的值 xml = new XmlDoc(); xml.xmlfilePath = GetConfig.System("TableXmlPath") + mm.TableName + ".xml"; GetModelField(MenuId); //获取模型字段组合 dsList = (DataSet)bM.MenuList(); //栏目列表 dsReader = bm.ModelReader(mm); BindMenu(MenuId, "┣"); BindModel(); } else { ModelSave(); } }
//protected DataSet ug_dsList; //protected bUserGroup bUG = new bUserGroup(); //protected mUserGroup mUG = new mUserGroup(); protected void Page_Load(object sender, EventArgs e) { LoginCheck.AdminManage(); mU.Id = StringDeal.ToInt(Request.QueryString["Id"]); mU.GroupId = StringDeal.ToInt(Request.QueryString["GroupId"]); mm.Id = StringDeal.ToInt(Request.QueryString["Id"]); mm.TableName = bU.GetTableName(mU); if (!IsPostBack) { xml = new XmlDoc(); xml.xmlfilePath = GetConfig.System("TableXmlPath") + mm.TableName + ".xml"; dsReader = bm.ModelReader(mm); //mUG.ParentId = -1; //ug_dsList = (DataSet)bUG.UserGroupList(mUG); //UserGroupBind(0, "┣"); UserReader(); BindModel(); } else { UserSave(); } }