Exemplo n.º 1
0
 public List <UsersModel> GetPageList(SUsersModel SModel)
 {
     try { return(UDal.GetPageList(SModel)); }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
Exemplo n.º 2
0
        public ActionResult PageList(SUsersModel SModels)
        {
            var PageList = USer.GetPageList(SModels);

            return(new ContentResult
            {
                Content = new JavaScriptSerializer {
                    MaxJsonLength = Int32.MaxValue
                }.Serialize(PageList),
                ContentType = "application/json"
            });
        }
Exemplo n.º 3
0
 public List <UsersModel> GetPageList(SUsersModel SModel)
 {
     using (var db = new HTJKEntities())
     {
         var List = (from p in db.A_User.Where(k => k.State == true)
                     where !string.IsNullOrEmpty(SModel.Name) ? p.Name.Contains(SModel.Name) : true
                     orderby p.CreateTime descending
                     select new UsersModel
         {
             Id = p.Id,
             Name = p.Name,
             Telphone = p.Telphone,
             LoginTimes = p.LoginTimes,
             LastTimes = p.LastTimes,
         }).ToList();
         return(List);
     }
 }
Exemplo n.º 4
0
        public ActionResult Index()
        {
            SUsersModel SModels = new SUsersModel();

            return(View(SModels));
        }