Пример #1
0
        //获取数据
        public ActionResult GetDataList(string sw)
        {
            ITC_Organization borg = new ITC_Organization();

            #region pagesl
            var pageIndex = Common.GetPageIndex();
            var pageSize  = Common.GetPageSize();
            var total     = 0;
            List <ITC_Userinfo_M> list_mo = uifo.GetList(sw, pageIndex, pageSize, out total);
            var list = from f in list_mo
                       select new
            {
                Orga_Name = borg.GetOrgaFullName(f.Orga_ID),
                f.User_Account,
                User_Createdtime = f.User_Createdtime.ToString("g"),
                f.User_Email,
                f.User_ID,
                f.User_Mobile,
                f.User_Name,
                f.User_Oprt,
                f.User_Pwd,
                f.User_Remark,
                User_Sex = Common.GetSex(f.User_Sex),
                f.User_Spelling,
                User_Status = Common.GetStatus(f.User_Status),
                f.User_Tel
            };
            var page = new PageViewModel {
                rows = list, total = total
            };
            return(Json(page, JsonRequestBehavior.DenyGet));

            #endregion
        }
Пример #2
0
        /// <summary>
        /// 获取全称(数据库)
        /// </summary>
        /// <param name="code"></param>
        /// <returns></returns>
        public static string GetFullNameByDB(string id)
        {
            ITC_Organization bll = new ITC_Organization();

            return(bll.GetOrgaFullName(id));
        }