/// <summary> /// 获取用户信息。 /// </summary> /// <param name="so">用户信息查询对象</param> /// <returns>执行结果</returns> public ActionResult Users(UserSO so = null) { var rspUsers = this.UserService.SearchUsers(so); this.ViewBag.SO = so; this.ViewBag.ResponseUsers = rspUsers; return this.View(); }
public ActionResult ChooseUser(UserSO so) { so = so ?? new UserSO(); so.PageSize = 10; this.ViewBag.SO = so; this.ViewBag.Type = this.Request.Params["type"]; this.ViewBag.Organizations = this.OrganizationService.GetOrganizations(); this.ViewBag.Users = this.UserService.SearchUsers(so); return View(); }
/// <summary> /// 显示用户信息主界面。 /// </summary> /// <param name="so">搜索条件</param> /// <returns>执行结果</returns> public ActionResult Index(UserSO so = null) { return this.View(); }
/// <summary> /// 查询用户信息。 /// </summary> /// <param name="so">用户信息查询对象</param> /// <returns>用户信息列表</returns> public ResponseSet<User> SearchUsers(UserSO so) { so = so ?? new UserSO(); return this.InvokePagingService( nameof(SearchUsers), (out int totalRecords) => this.Persistence.QueryForPaginatedList<User>(UserNamespace, "SearchUsers", out totalRecords, so), so); }
public ActionResult _GetUnAllotUsers(UserSO so) { this.ViewBag.SO = so; this.ViewBag.UnAllotRoleUsers = this.RoleService.GetUnAllotUsers(so); return PartialView("_UnAllotUsers"); }
/// <summary> /// 获取未分配角色的用户。 /// </summary> /// <param name="so">查询信息</param> /// <returns>角色成员信息</returns> public ResponseSet<User> GetUnAllotUsers(UserSO so) { return this.InvokePagingService(nameof(GetUnAllotUsers), (out int totalRecords) => this.Persistence.QueryForPaginatedList<User>(RoleNamespace, "GetUnAllotUsers", out totalRecords, so), so); }
public ActionResult GetUsers(UserSO so) { so.PageSize = 10; var rspUsers = this.UserService.SearchUsers(so); this.ViewBag.SO = so; this.ViewBag.Type = this.Request.Params["type"]; return PartialView("_ChooseUsers", rspUsers); }