| | |
| | | /// <returns></returns> |
| | | public IActionResult GetList(HrSalaryDTOSearch search) |
| | | { |
| | | _hrSalaryService.AutoCheck(); |
| | | //_hrSalaryService.AutoCheck(); |
| | | |
| | | return new JsonResult(_hrSalaryService.SearchSalaryByPaging(search)); |
| | | } |
| | |
| | | if (!string.IsNullOrEmpty(id)) |
| | | { |
| | | dto = _hrSalaryService.Get(id); |
| | | } |
| | | if(!dto.Jiangjin.HasValue) |
| | | { |
| | | dto.Jiangjin = 0; |
| | | } |
| | | if (!dto.Bufagongzi.HasValue) |
| | | { |
| | | dto.Bufagongzi = 0; |
| | | } |
| | | if (!dto.Peichang.HasValue) |
| | | { |
| | | dto.Peichang = 0; |
| | | } |
| | | if (!dto.Jiucuo.HasValue) |
| | | { |
| | | dto.Jiucuo = 0; |
| | | } |
| | | ViewData.Model = dto; |
| | | return View(); |
| | |
| | | else |
| | | { |
| | | dangqianbuzhou = wfRunProcessDTO.Step; |
| | | //查询历史意见 |
| | | //查询审批进度 |
| | | lishiyijian = _wfHistoryService.GetListshenpi(wfRunProcessDTO.Id); |
| | | if (wfRunProcessDTO.Step != "提交") |
| | | { |
| | |
| | | data.shenpi_status = "D"; |
| | | data.status = "A"; |
| | | resultEntity = _hrSalaryService.CheckAppea(data); |
| | | if (!resultEntity.Result) |
| | | { |
| | | return new JsonResult(resultEntity); |
| | | } |
| | | } |
| | | |
| | | |
| | | //发起流程相关 |
| | | |
| | | resultEntity = _wfRunProcessService.WfSalaryAppeal(data.id, data.Step, data.Tongguojujue, curentuser.Id, data.Content, data.tittle, "v1"); |
| | | if (!resultEntity.Result) |
| | | { |
| | | return new JsonResult(resultEntity); |
| | | } |
| | | scope.Complete(); |
| | | } |
| | | return new JsonResult(resultEntity); |
| | |
| | | public IActionResult GetSearchList(HrSalaryDTOSearch search) |
| | | { |
| | | //自动确认 |
| | | _hrSalaryService.AutoCheck(); |
| | | //_hrSalaryService.AutoCheck(); |
| | | |
| | | return new JsonResult(_hrSalaryService.SearchByPagingFinish(search)); |
| | | } |