public string GetJqGridJson(IList <JieYueDocDto> list, long totalRecords, PagingParameter paging, int userId) { IList <JsonJqGridRowObject> rows = list.Select(item => new JsonJqGridRowObject(FormatHelper.GetLongString(item.Id), new[] { item.ShenQingrenAccount, item.ShenQingrenName, item.Content, item.Company, FormatHelper.GetIntString(item.Year), FormatHelper.GetIntString(item.Month), item.VoucherWord, FormatHelper.GetIntString(item.VoucherNumber), item.VoucherNo, item.CabinetNo, item.Path, item.Beizhu, FormatHelper.GetIntString(item.JieyueTianshu), FormatHelper.GetIsoDateString(item.JieyueShijian), FormatHelper.GetIsoDateString(GetGuihuanShijian(item.JieyueTianshu, item.JieyueShijian, item.ZidingyiGuihuanShijian)), GetOperating(item.Id, userId) })).ToList(); var jsonJqGridObject = new JsonJqGridObject(rows, totalRecords, paging.PageIndex, paging.PageSize); return(Serialize(jsonJqGridObject)); }
public string GetFaCabineNosJqGridJson(IList <FaCabinetNo> list, long totalRecords, PagingParameter paging) { IList <JsonJqGridRowObject> rows = list.Select(item => new JsonJqGridRowObject(FormatHelper.GetLongString(item.Id), new[] { HtmlHelper.Encode(item.CabinetNo), item.Path, GetCabineNoEnable(item.Enable), FormatHelper.GetIsoDateString(item.LastUpdated), GetOperating(item.Enable, item.Id) })).ToList(); var jsonJqGridObject = new JsonJqGridObject(rows, totalRecords, paging.PageIndex, paging.PageSize); return(Serialize(jsonJqGridObject)); }
public string GetFaCompaniesJqGridJson(IList <FaCompany> list, long totalRecords, PagingParameter paging) { IList <JsonJqGridRowObject> rows = list.Select(item => new JsonJqGridRowObject(FormatHelper.GetLongString(item.Id), new[] { item.Name, GetCompanyEnable(item.Enable), FormatHelper.GetIsoDateString(item.LastUpdated), item.Remark, GetOperating(item.Id) })).ToList(); var jsonJqGridObject = new JsonJqGridObject(rows, totalRecords, paging.PageIndex, paging.PageSize); return(Serialize(jsonJqGridObject)); }
public string GetBgJqGridJson(IList <FaDocDto> list, long totalRecords, PagingParameter paging, int userId) { IList <JsonJqGridRowObject> rows = list.Select(item => new JsonJqGridRowObject(FormatHelper.GetLongString(item.Id), new[] { item.Content, item.Company, FormatHelper.GetIntString(item.Year), item.BaogaoMingcheng, item.CabinetNo, item.Path, GetOperating(item.Id, item.Content) })).ToList(); var jsonJqGridObject = new JsonJqGridObject(rows, totalRecords, paging.PageIndex, paging.PageSize); return(Serialize(jsonJqGridObject)); }