示例#1
0
        /// <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();
        }
示例#2
0
        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();
        }
示例#3
0
 /// <summary>
 /// 显示用户信息主界面。
 /// </summary>
 /// <param name="so">搜索条件</param>
 /// <returns>执行结果</returns>
 public ActionResult Index(UserSO so = null)
 {
     return this.View();
 }
示例#4
0
        /// <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);
        }
示例#5
0
        public ActionResult _GetUnAllotUsers(UserSO so)
        {
            this.ViewBag.SO = so;
            this.ViewBag.UnAllotRoleUsers = this.RoleService.GetUnAllotUsers(so);

            return PartialView("_UnAllotUsers");
        }
示例#6
0
 /// <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);
 }
示例#7
0
        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);
        }