| | |
| | | public IActionResult GetList(HrSalaryDTOSearch search) |
| | | { |
| | | //_hrSalaryService.AutoCheck(); |
| | | if (!string.IsNullOrEmpty(search.YearMonth222)) |
| | | { |
| | | search.YearMonth = search.YearMonth222; |
| | | } |
| | | |
| | | return new JsonResult(_hrSalaryService.SearchSalaryByPaging(search)); |
| | | } |
| | |
| | | { |
| | | dto.Peichang = 0; |
| | | } |
| | | if (!dto.Jiucuo.HasValue) |
| | | if (!dto.Jiucuo.HasValue || dto.Jiucuo.Value == 0) |
| | | { |
| | | dto.Jiucuo = 0; |
| | | } |
| | |
| | | ViewData["ActionInfo"] = actionlist; |
| | | |
| | | ViewBag.dept = _hrDeptService.GetList().Select(x => new { code = x.Id, label = x.DeptName }).ToList(); |
| | | ViewBag.stime = DateTime.Now.AddDays(1 - DateTime.Now.Day).Date.ToString("yyyy-MM"); |
| | | ViewBag.etime = DateTime.Now.AddDays(1 - DateTime.Now.Day).Date.AddMonths(1).AddSeconds(-1).ToString("yyyy-MM"); |
| | | ViewBag.stime = DateTime.Now.AddMonths(-1).AddDays(1 - DateTime.Now.Day).Date.ToString("yyyy-MM"); |
| | | ViewBag.etime = DateTime.Now.AddMonths(-1).AddDays(1 - DateTime.Now.Day).Date.AddMonths(1).AddSeconds(-1).ToString("yyyy-MM"); |
| | | |
| | | return View(); |
| | | } |
| | |
| | | { |
| | | //自动确认 |
| | | //_hrSalaryService.AutoCheck(); |
| | | if (!string.IsNullOrEmpty(search.searchDatestart222)) |
| | | { |
| | | search.searchDatestart = search.searchDatestart222; |
| | | } |
| | | if (!string.IsNullOrEmpty(search.searchDateend222)) |
| | | { |
| | | search.searchDateend = search.searchDateend222; |
| | | } |
| | | |
| | | return new JsonResult(_hrSalaryService.SearchByPagingFinish(search)); |
| | | } |
| | |
| | | ViewData["ActionInfo"] = actionlist; |
| | | |
| | | //ViewBag.dept = _hrDeptService.GetList().Select(x => new { code = x.Id, label = x.DeptName }).ToList(); |
| | | ViewBag.stime =DateTime.Now.ToString("yyyy-MM"); |
| | | ViewBag.etime = DateTime.Now.AddDays(1 - DateTime.Now.Day).Date.AddMonths(1).AddSeconds(-1).ToString("yyyy-MM"); |
| | | ViewBag.stime =DateTime.Now.AddMonths(-1).ToString("yyyy-MM"); |
| | | ViewBag.etime = DateTime.Now.AddMonths(-1).AddDays(1 - DateTime.Now.Day).Date.AddMonths(1).AddSeconds(-1).ToString("yyyy-MM"); |
| | | |
| | | ViewBag.UserId = UserId; |
| | | |
| | |
| | | /// <returns></returns> |
| | | public IActionResult GetSearchListRenshi(HrSalaryDTOSearch search) |
| | | { |
| | | if (!string.IsNullOrEmpty(search.searchDatestart222)) |
| | | { |
| | | search.searchDatestart = search.searchDatestart222; |
| | | } |
| | | if (!string.IsNullOrEmpty(search.searchDateend222)) |
| | | { |
| | | search.searchDateend = search.searchDateend222; |
| | | } |
| | | |
| | | //自动确认 |
| | | //_hrSalaryService.AutoCheck(); |
| | | |
| | | if (string.IsNullOrEmpty(search.searchDatestart)) |
| | | if (!string.IsNullOrEmpty(search.searchDatestart)) |
| | | { |
| | | search.searchDatestart = DateTime.Now.ToString("yyyy-MM"); |
| | | } |
| | | if (string.IsNullOrEmpty(search.searchDateend)) |
| | | if (!string.IsNullOrEmpty(search.searchDateend)) |
| | | { |
| | | search.searchDate = DateTime.Now.AddDays(1 - DateTime.Now.Day).Date.AddMonths(1).AddSeconds(-1).ToString("yyyy-MM"); |
| | | } |