public JsonResult GetMobileLogs(string rname, string module, string ip, string mobileName, string mobileModel, string networkStatus, DateTime?stime, DateTime?etime, int pageIndex, int pageSize) { int total; var list = new SysLogManager().GetMobileLogs(out total, CurrentTenant.TenantId, rname, module, ip, mobileName, mobileModel, networkStatus, stime, etime, pageIndex, pageSize); var dataList = list.Select(p => new { p.RowIndex, p.LogId, p.Realname, LogTime = p.LogTime.ToString("yyyy-MM-dd HH:mm:ss"), p.ClientIp, p.ModuleName, p.MobileName, p.MobileModel, p.NetworkStatus, p.RequestData }); return(Json(new { dataList, recordCount = total }, JsonRequestBehavior.AllowGet)); }
public JsonResult GetLogs(string rname, string optype, string module, string ip, DateTime?stime, DateTime?etime, int pageIndex, int pageSize) { int total; var list = new SysLogManager().GetLogs(out total, CurrentTenant.TenantId, rname, optype, module, ip, stime, etime, pageIndex, pageSize); var dataList = list.Select(p => new { p.RowIndex, p.LogId, p.Realname, LogTime = p.LogTime.ToString("yyyy-MM-dd HH:mm:ss"), p.ClientIp, ModuleName = p.ModuleLocalLanguage, Description = p.DescLocalLanguage, p.RequestData, p.TableName }); return(Json(new { dataList, recordCount = total }, JsonRequestBehavior.AllowGet)); }