From 7b9e068cfe4e295f9ee960457d848c631f0136c7 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期五, 27 八月 2021 16:09:56 +0800
Subject: [PATCH] 工作交接

---
 zhengcaioa/zhengcaioa/Controllers/HR/SalaryCheckController.cs |   60 +++++++++++++++++++++++++++++++++++++++++++++++++++++++-----
 1 files changed, 55 insertions(+), 5 deletions(-)

diff --git a/zhengcaioa/zhengcaioa/Controllers/HR/SalaryCheckController.cs b/zhengcaioa/zhengcaioa/Controllers/HR/SalaryCheckController.cs
index dbe815e..aac96ad 100644
--- a/zhengcaioa/zhengcaioa/Controllers/HR/SalaryCheckController.cs
+++ b/zhengcaioa/zhengcaioa/Controllers/HR/SalaryCheckController.cs
@@ -188,8 +188,8 @@
                 var  salaryDTO  = _hrSalaryService.Get(salaryId);
                     dto = new HrSalaryAppeal();
                     dto.salary_id = salaryId;
-                    dto.Year = salaryDTO.Year;
-                    dto.Month = salaryDTO.Month;
+                    dto.year = salaryDTO.Year;
+                    dto.month = salaryDTO.Month;
                 dto.createrName = curentuser.UserName;
                 dto.tittle = "宸ヨ祫鐢宠瘔锛�" + curentuser.UserName + "锛�";
             }
@@ -292,8 +292,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.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"); 
 
             return View();
         }
@@ -310,7 +310,57 @@
 
             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.ToString("yyyy-MM");
+            ViewBag.etime = DateTime.Now.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)
+        {
+
+            //鑷姩纭
+            //_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