コード例 #1
0
ファイル: Fin_GetDataController.cs プロジェクト: dtafe/vnr
        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 };
        }
コード例 #2
0
ファイル: Hre_GetDataController.cs プロジェクト: dtafe/vnr
 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);
 }