public void LoadStructList() { DataTable dt = new DataTable(); if (GroupID > 0) { M_Structure strMod = struBll.SelReturnModel(GroupID); dt = buser.SelectUserByIds(strMod.UserIDS); User_RPT.DataSource = dt; User_RPT.DataBind(); return; } LoadUserList(); }
//加载用户 public void LoadUserList() { //int outcount = 0; string action = "name"; string value = PreValue; if (GroupID > 0) { action = "groupid"; value = GroupID.ToString(); } //DataTable dt = buser.SelPage(PSize, PIndex, out outcount, action, value , "AscID", Char, 0); DataTable dt = Sel(PSize, PIndex, action, value); User_RPT.DataSource = dt; User_RPT.DataBind(); }