Пример #1
0
        public List <Combobox> SearchMembersListForcombobox(string q = null, string orgid = null, string userid = null)
        {
            List <Combobox>           result   = new List <Combobox>();
            SearchMembersRequestModel condtion = new SearchMembersRequestModel()
            {
                keyWords  = q,
                orgId     = orgid,
                userId    = userid,
                Page      = 1,
                PageSize  = 10,
                ordertype = EnumSortOrderType.标题降序
            };
            SearchMembersreplayModel l = MembersService.SearchMembersList(condtion);

            if (l.rows.Count > 0)
            {
                foreach (MembersBaseInfoModel u in l.rows)
                {
                    result.Add(new Combobox()
                    {
                        id   = u.UserId,
                        text = (string.IsNullOrEmpty(u.FullName) ? u.NickName : u.FullName) + "[" + u.MobilePhone + "]"
                    });
                }
            }
            return(result);
        }
Пример #2
0
        /// <summary>
        /// 会员检索
        /// </summary>
        /// <param name="condtion"></param>
        /// <returns></returns>
        internal static SearchMembersreplayModel SearchMembersList(SearchMembersRequestModel condtion)
        {
            SearchMembersreplayModel result = new SearchMembersreplayModel();

            try
            {
                result = BaseSysTemDataBaseManager.MemberSearchMembersList(condtion);
                if (result.total > 0)
                {
                    foreach (MembersBaseInfoModel user in result.rows)
                    {
                        user.numOfDep = GetMemberNumofDep(user);
                    }
                }
            }
            catch (Exception e) {
                SysManagerService.SysSaveErrorLogMsg(e.ToString(), condtion);
                result.rows = new List <MembersBaseInfoModel>();
            }
            return(result);
        }
Пример #3
0
        public SearchMembersreplayModel SearchMembersList(SearchMembersRequestModel condtion)
        {
            SearchMembersreplayModel result = MembersService.SearchMembersList(condtion);

            return(result);
        }