From 0235d2053a6132591604bf0a582ef6b0014f17d6 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期四, 06 一月 2022 14:23:03 +0800
Subject: [PATCH] 客户预付款
---
zhengcaioa/zhengcaioa/Controllers/HR/SalaryCheckController.cs | 82 +++++++++++++++++++++++++++++++++++++++--
1 files changed, 78 insertions(+), 4 deletions(-)
diff --git a/zhengcaioa/zhengcaioa/Controllers/HR/SalaryCheckController.cs b/zhengcaioa/zhengcaioa/Controllers/HR/SalaryCheckController.cs
index dca6527..27559c9 100644
--- a/zhengcaioa/zhengcaioa/Controllers/HR/SalaryCheckController.cs
+++ b/zhengcaioa/zhengcaioa/Controllers/HR/SalaryCheckController.cs
@@ -70,6 +70,10 @@
public IActionResult GetList(HrSalaryDTOSearch search)
{
//_hrSalaryService.AutoCheck();
+ if (!string.IsNullOrEmpty(search.YearMonth222))
+ {
+ search.YearMonth = search.YearMonth222;
+ }
return new JsonResult(_hrSalaryService.SearchSalaryByPaging(search));
}
@@ -98,10 +102,14 @@
{
dto.Peichang = 0;
}
- if (!dto.Jiucuo.HasValue)
+ if (!dto.Jiucuo.HasValue || dto.Jiucuo.Value == 0)
{
dto.Jiucuo = 0;
}
+ //if (!dto.Yufagongziheji.HasValue)
+ //{
+ // dto.Yufagongziheji = 0;
+ //}
ViewData.Model = dto;
return View();
}
@@ -292,8 +300,8 @@
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-dd");
- ViewBag.etime = DateTime.Now.AddDays(1 - DateTime.Now.Day).Date.AddMonths(1).AddSeconds(-1).ToString("yyyy-MM-dd");
+ 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();
}
@@ -307,10 +315,76 @@
{
//鑷姩纭
//_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));
}
-
+
+ #endregion
+
+
+
+ #region 宸ヨ祫鏌ヨ
+
+ public IActionResult SearchIndexRenshi(string UserId)
+ {
+ List<ActionEntity> actionlist = new List<ActionEntity>();
+ ActionEntity actionEntity = new ActionEntity();
+ actionEntity.OpenType = 0;
+ actionEntity.ActionUrl = "";
+ actionEntity.ActionFun = "Search";
+ actionEntity.PageIco = "fa fa-search";
+ actionEntity.ActionName = "鏌ヨ";
+ actionlist.Add(actionEntity);
+ ViewData["ActionInfo"] = actionlist;
+
+ //ViewBag.dept = _hrDeptService.GetList().Select(x => new { code = x.Id, label = x.DeptName }).ToList();
+ 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;
+
+ return View();
+ }
+
+ /// <summary>
+ /// 鍒楄〃鍐呭
+ /// </summary>
+ /// <param name="search"></param>
+ /// <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))
+ {
+ search.searchDatestart = DateTime.Now.ToString("yyyy-MM");
+ }
+ if (!string.IsNullOrEmpty(search.searchDateend))
+ {
+ search.searchDate = DateTime.Now.AddDays(1 - DateTime.Now.Day).Date.AddMonths(1).AddSeconds(-1).ToString("yyyy-MM");
+ }
+
+ return new JsonResult(_hrSalaryService.SearchByPagingFinish(search));
+ }
+
#endregion
}
}
--
Gitblit v1.9.1