From 67a0042c5f29e4bb0e0b82f6190f2bc51480b45c Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期二, 28 二月 2023 13:25:09 +0800
Subject: [PATCH] 工资绩效改版

---
 zhengcaioa/zhengcaioa/Views/User/Index.cshtml |   70 ++++++++++++++++++++++++++---------
 1 files changed, 52 insertions(+), 18 deletions(-)

diff --git a/zhengcaioa/zhengcaioa/Views/User/Index.cshtml b/zhengcaioa/zhengcaioa/Views/User/Index.cshtml
index 62afa5a..dec9729 100644
--- a/zhengcaioa/zhengcaioa/Views/User/Index.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/User/Index.cshtml
@@ -1,6 +1,9 @@
-锘緻{
+锘緻using DTO;
+@{
     ViewBag.Title = "User";
     Layout = "~/Views/Shared/_Layout_Search.cshtml";
+
+    List<PageEntity> ActionInfo2 = ViewData["ActionInfo2"] as List<PageEntity>;
 }
 @section headerStyle{
     <script type="text/javascript">
@@ -93,15 +96,30 @@
                 //}
             },
             {
+                label: '鍚堝悓鍒版湡鏃�', name: 'HetongDateEndName', labtype: 'txt', hidden: false, width: 100
+                //,
+                //formatter: function (cellvalue, options, rowObject) {
+                //    return "<span style='color:" + rowObject.Coler + ";'>" + cellvalue + "</span>";
+                //}
+            },
+            {
                 label: '妗f鏌ヨ', name: 'Education', labtype: 'txt', hidden: false, width: 100,
                 formatter: function (cellvalue, options, rowObject) {
-                    return "<a onclick=\"javascript:void(0);\"  >濂栨儵</a>&nbsp;<a onclick=\"javascript:void(0);\"  >鐗╁搧</a>&nbsp;<a onclick=\"javascript:void(0);\"  >钖祫</a>&nbsp;";
+                    return "<a class=\"danganchaxun\"  style=\"display: none;\" onclick=\"OpenWindow('濂栨儵','98%','100%', '/AdmBreakPrecedent/IndexRenshi?UserId=" + rowObject.Id + "')\"  >濂栨儵</a>&nbsp;"
+                        + "<a class=\"danganchaxun\"  style=\"display: none;\" onclick=\"OpenWindow('鐗╁搧','98%','100%', '/AdmBreakPrecedent/IndexGoods?UserId=" + rowObject.Id + "')\"  >鐗╁搧</a>&nbsp;"
+                        + "<a class=\"danganchaxun\"  style=\"display: none;\" onclick=\"OpenWindow('钖祫','98%','100%', '/SalaryCheck/SearchIndexRenshi?UserId=" + rowObject.Id + "')\"  >钖祫</a>&nbsp;";
                 }
             },
             {
                 label: '鎵撳嵃绠�鍘�', name: 'Imei', labtype: 'txt', hidden: false, width: 100,
                 formatter: function (cellvalue, options, rowObject) {
-                    return "<a onclick=\"OpenWindow('鎵撳嵃绠�鍘�','98%','100%', '/User/Print?id=" + rowObject.Id + "')\" > 鎵撳嵃 </a>";
+                    return "<a class=\"Dayin\"  style=\"display: none;\" onclick=\"OpenWindow('鎵撳嵃绠�鍘�','98%','100%', '/User/Print?id=" + rowObject.Id + "')\" > 鎵撳嵃 </a>";
+                }
+            },
+            {
+                label: '鑰冨嫟璁板綍', name: 'Daka', labtype: 'txt', hidden: false, width: 100,
+                formatter: function (cellvalue, options, rowObject) {
+                    return "<a class=\"Daka\"  style=\"display: none;\" onclick=\"OpenWindow('" + rowObject.UserName + "','98%','100%', '/Signin/SigninAll?id=" + rowObject.Id + "')\" > 鑰冨嫟璁板綍 </a>";
                 }
             },
 
@@ -116,7 +134,7 @@
                     return "<span style='color:" + rowObject.Coler + ";'>" + cellvalue+"</span>";
                 }},
         ];
-        dataUrl = "/User/GetUserList";
+        dataUrl = "/User/GetUserList?Zhiwustatus=A";
         searchCol = [
             { label: '鍏ヨ亴鏃堕棿', name: 'Indate', labtype: 'datearea', hidden: false },
             { label: '閮ㄩ棬', name: 'DeptId', labtype: 'combox', hidden: false, data: JSON.parse(dept) },
@@ -128,7 +146,7 @@
             { label: '鎬у埆', name: 'Sex', labtype: 'combox', hidden: false, data: JSON.parse(sex) },
             { label: '鐢ㄦ埛鎵嬫満', name: 'Phone', labtype: 'txt', hidden: false },
             { label: '鍦ㄨ亴鐘舵��', name: 'Zhiwustatus', labtype: 'combox', hidden: false, data: JSON.parse(zhiwustatusDropDown) },
-           
+
 
 
 
@@ -136,6 +154,24 @@
         var _pageAdd = function () {
             OpenWindow("鏂板鐢ㄦ埛", "98%", "90%", "/User/Edit/");
         }
+
+        var _pageSearch = function () {
+            $("#jqGrid").jqGrid('setGridParam', {
+                url: '/User/GetUserList', postData: jsons, page: 1
+            }); //閲嶆柊杞藉叆
+            var jsons = GetSearchEnd();
+            if (jsons == false) {
+                msg.info("璇峰綍鍏ユ煡璇㈡潯浠�");
+                return false;
+            }
+            LoadGrid(jsons);
+        }
+
+        $(function () {
+            $("#PBSZhiwustatus").val("A");
+            $("#PBSZhiwustatus").trigger('chosen:updated');//鏇存柊閫夐」
+
+        });
 
         var _afterSave = function (result) {
             if (result) {
@@ -156,25 +192,23 @@
         }
 
 
-        function sendZhiwustatus() {
 
-            var msg = $("#PBSZhiwustatus");
+           var ActionInfo22 = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ActionInfo2))';
 
-         
-            if (msg.length > 0) {
-                $("#PBSZhiwustatus").val("A");
-                $("#PBSZhiwustatus").trigger('chosen:updated');//鏇存柊閫夐」
-                _pageSearch();
-            } else {
-                setTimeout(sendZhiwustatus, 100);
+        var _afterLoadDataload = function (xhr) {
+            var data = JSON.parse(ActionInfo22);
+            for (var o in data) {
+                //alert(o);
+                //alert(data[o]);
+                /* alert("PageShortcut:" + data[o].PageShortcut + " PageName:" + data[o].PageName);*/
+                $("." + data[o].PageShortcut).show();
+
             }
-        }
 
 
-        sendZhiwustatus();
+        };
 
-       
-        
+
     </script>
 }
 

--
Gitblit v1.9.1