public IActionResult SelUser(C_SelUser filter) { if (filter == null) { filter = new C_SelUser(); } PageSetting setting = null; switch (filter.dataMode) { case "user": //全部用户 default: { setting = buser.SelPage(filter.cpage, filter.psize, new F_User() { groupIds = filter.groupId.ToString(), uname = filter.skey }); } break; case "plat": //仅能力中心用户 { B_User_Plat upBll = new B_User_Plat(); M_User_Plat upMod = upBll.SelReturnModel(mu.UserID); setting = upBll.SelPage(filter.cpage, filter.psize, new F_User() { compIds = upMod.CompID.ToString(), groupIds = filter.groupId.ToString(), uname = filter.skey }); setting.dt.Columns["UserFace"].ColumnName = "salt"; } break; } filter.psize = setting.psize; filter.r_pcount = setting.pageCount; filter.r_itemCount = setting.itemCount; filter.r_dt = setting.dt; if (Request.IsAjaxRequest()) { return(PartialView("SelUser_List", filter)); } else { return(View(filter)); } }