[HttpGet] public string GetUserList() { re = new UserRequest(); (])) re.PageSize = 10; else re.PageSize = ]); (])) re.PageIndex = 1; else re.PageIndex = (]) / re.PageSize) + 1; (!])) re.Division = Request[]; ])) re.User_Ename = Request[]; (!]) && !])) re.OrderBy = Request[(+ Request[])]; re.OrderBy = Request[()]; (!])) re.Isdesc=(Request[]==?true:false); var result = new DataResult(); var data = this.AccountService.GetUserList(re);//»ñÈ¡Êý¾ÝµÄ·½·¨ result.recordsTotal = data.TotalItemCount; result.recordsFiltered = data.TotalItemCount; result.data = data; return JsonConvert.SerializeObject(result); } public class UserRequest : Request { public UserRequest() { Isdesc = false; } public string User_Ename { get; set; } public string Division { get; set; } public bool IsValid { get; set; } public long User_ID { get; set; } public string OrderBy { get; set; } public bool Isdesc { get; set; } } public class DataResult { public int draw { get; set; } public int recordsTotal { get; set; } public int recordsFiltered { get; set; } public object data; }
»ù±¾¾ÍÕâЩÁË¡£ºÙºÙ£¬±¾È˼¼ÊõÏ¡À㬴óÉñ¼ûЦÁË¡£
¡¡