protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { List<SysModule> lists = new List<SysModule>(); SysModuleBiz biz = new SysModuleBiz(); lists = biz.SelectUsed(); AddDatasource("modulelist", lists); } }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { List<SysFunList> lists = new List<SysFunList>(); SysFunListBiz biz = new SysFunListBiz(); lists = biz.SelectAllFunList(); AddDatasource("functionlist", lists); List<SysModule> modulelists = new List<SysModule>(); SysModuleBiz mbiz = new SysModuleBiz(); modulelists = mbiz.SelectUsed(); AddDatasource("modulelist", modulelists); } }