| | |
| | | /// <returns></returns> |
| | | public IActionResult GetList(HrSalaryDTOSearch search) |
| | | { |
| | | //_hrSalaryService.AutoCheck(); |
| | | |
| | | return new JsonResult(_hrSalaryService.SearchSalaryByPaging(search)); |
| | | } |
| | | |
| | |
| | | { |
| | | 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(); |
| | | } |
| | |
| | | /// <param name="data"></param> |
| | | /// <returns></returns> |
| | | [HttpPost] |
| | | public IActionResult SaveCheck(HrSalaryDTO data) |
| | | public IActionResult SaveCheck(HrSalaryUpDTO data) |
| | | { |
| | | var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User")); |
| | | ResultEntity resultEntity = new ResultEntity(); |
| | |
| | | /// <returns></returns> |
| | | public IActionResult GetSearchList(HrSalaryDTOSearch search) |
| | | { |
| | | //自动确认 |
| | | //_hrSalaryService.AutoCheck(); |
| | | |
| | | return new JsonResult(_hrSalaryService.SearchByPagingFinish(search)); |
| | | } |
| | | |