public ActionResult GetClaimApprovedList([DataSourceRequest] DataSourceRequest request, FIN_ApprovedClaimSearchModel model) { var baseService = new BaseService(); FIN_ClaimService service = new FIN_ClaimService(); var result = service.GetClaimApprovedList(model.UserApproveID.Value); if (model.IsExport) { var fullPath = ExportService.Export(result, model.ValueFields.Split(',')); return Json(fullPath); } request.Page = 1; var dataSourceResult = result.ToDataSourceResult(request); dataSourceResult.Total = result.Count() <= 0 ? 0 : result.FirstOrDefault().TotalRow; return new JsonResult { Data = dataSourceResult, MaxJsonLength = Int32.MaxValue }; }
public ActionResult GetApprovedFIN_ClaimList([DataSourceRequest] DataSourceRequest request, FIN_ApprovedClaimSearchModel model) { return GetListDataAndReturn<FIN_ClaimModel, FIN_ClaimEntity, FIN_ApprovedClaimSearchModel>(request, model, ConstantSql.hrm_hr_sp_get_ApprovedClaim); }