From ac4f98f9d24552d1c43935f20a969a2fda0723f0 Mon Sep 17 00:00:00 2001
From: LR-20210131IOQH\Administrator <jackcold@163.com>
Date: 星期五, 25 六月 2021 10:40:03 +0800
Subject: [PATCH] Merge branch 'master' of http://47.108.235.38:8080/r/zhengcaioa

---
 zhengcaioa/zhengcaioa/Views/SalaryCheck/Employee.cshtml |  227 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 227 insertions(+), 0 deletions(-)

diff --git a/zhengcaioa/zhengcaioa/Views/SalaryCheck/Employee.cshtml b/zhengcaioa/zhengcaioa/Views/SalaryCheck/Employee.cshtml
new file mode 100644
index 0000000..4457c23
--- /dev/null
+++ b/zhengcaioa/zhengcaioa/Views/SalaryCheck/Employee.cshtml
@@ -0,0 +1,227 @@
+锘緻{
+    ViewBag.Title = "宸ヨ祫鏍稿";
+    Layout = "~/Views/Shared/_Layout_Search.cshtml";
+
+    PltUser Employee = ViewData["Employee"] as PltUser;
+}
+
+<link href="~/css/jquery-confirm.css" rel="stylesheet">
+@*<link href="~/js/plugins/layer/skin/layer.css" rel="stylesheet">*@
+<link href="~/js/plugins/layer/laydate/theme/default/laydate.css" rel="stylesheet">
+<script src="~/js/jquery-confirm.js" type="text/javascript"></script>
+<script src="~/js/plugins/layer/laydate/laydate5.js" type="text/javascript"></script>
+<style>
+   /* .laydate_table {
+        display: none;
+    }*/
+
+    .col-base {
+        line-height: 35px;
+        
+    } 
+/*
+    #laydate_hms {
+        display: none !important;
+    }*/
+</style>
+
+@section headerStyle{
+
+    <table style="line-height:35px;margin-top:15px">
+        <tr>
+            <td width="100"></td>
+            <td width="200">濮撳悕锛欯Employee.UserName</td>
+            <td width="200">宸ュ彿锛欯Employee.Usernumber</td>
+            <td >宸ヨ祫鏈堜唤锛�</td>
+            <td width="180">
+                <input id="acTime" style="width:150px" class="layui-input" placeholder="yyyy-MM" type="text" />
+            </td>
+            <td>
+                <a class="btn btn-default btn-outline" href="#" onclick="doSearch()">
+                    <i class="fa fa-search"></i>&nbsp;&nbsp;<span class="bold">鏌ヨ</span>
+                </a>
+            </td>
+            <td></td>
+        </tr>
+    </table>
+    
+    <script type="text/javascript">
+
+       
+        gridConfig = { multiselect: false, selectcol: "Id" };
+        shrinkToFit = false;
+        footerrow = false;
+        
+        dataCol = [
+            { label: '搴忓彿', name: 'Id', labtype: 'txt', hidden: true },
+            { label: '搴忓彿', name: 'Islock', labtype: 'txt', hidden: true },
+            { label: '宸ュ彿', name: 'Usernumber', labtype: 'txt', hidden: false, width: 100},
+            {
+                label: '濮撳悕', name: 'UserName', labtype: 'txt', hidden: false, width: 100,                
+            },
+            { label: '宸ヨ祫鏈堜唤', name: 'YearMonth', labtype: 'txt', hidden: false, width: 100 },
+            {
+                label: '鐘舵��', name: 'IslockChs', labtype: 'txt', hidden: false, width: 100, formatter: function (cellvalue, options, rowObject) {
+                    if (rowObject.Islock == 'S') {
+                        return '<b style="color: red">' + cellvalue + '</b>';
+                    } else {
+                        return cellvalue;
+                    }
+                }
+            },
+            { label: '宸ヤ綔閮ㄩ棬', name: 'DeptName', labtype: 'txt', hidden: false, width: 120 },
+            { label: '鍩烘湰宸ヨ祫', name: 'Jibengongzi', labtype: 'txt', hidden: false, width: 100 },
+            { label: '淇濆瘑璐�', name: 'Baomifei', labtype: 'txt', hidden: false, width: 100 },
+            { label: '宸ヤ綔琛ヨ创', name: 'Gongzuobutie', labtype: 'txt', hidden: false, width: 100 },
+            { label: '鍔犵彮宸ヨ祫', name: 'Jiabangongzi', labtype: 'txt', hidden: false, width: 100 },
+            { label: '绀句繚', name: 'Shebao', labtype: 'txt', hidden: false, width: 100 },
+            { label: '鐢佃瘽琛ヨ创', name: 'Dianhuabutie', labtype: 'txt', hidden: false, width: 100 },
+            { label: '鍏ㄥ嫟濂�', name: 'Quanqinjiang', labtype: 'txt', hidden: false, width: 100 },
+            { label: '浜ら�氳ˉ璐�', name: 'Jiaotngbutie', labtype: 'txt', hidden: false, width: 100 },
+            { label: '缁╂晥鎻愭垚', name: 'Jixiaoticheng', labtype: 'txt', hidden: false, width: 100 },
+            { label: '濂栭噾', name: 'Jiangjin', labtype: 'txt', hidden: false, width: 100 },
+            { label: '琛ュ彂宸ヨ祫', name: 'Bufagongzi', labtype: 'txt', hidden: false, width: 100 },
+            { label: '鍚堣', name: 'sum_fgz', labtype: 'txt', hidden: false, width: 100 },
+
+            { label: '涓汉绀句繚', name: 'Shebaokou', labtype: 'txt', hidden: false, width: 100 },
+            { label: '涓◣', name: 'Geshui', labtype: 'txt', hidden: false, width: 100 },
+            { label: '鐢佃瘽璐�', name: 'Dianhuafei', labtype: 'txt', hidden: false, width: 100 },
+            { label: '缂哄嫟', name: 'Queqin', labtype: 'txt', hidden: false, width: 100 },
+            { label: '缃氭', name: 'Fakuan', labtype: 'txt', hidden: false, width: 100 },
+            { label: '璧斿伩', name: 'Peichang', labtype: 'txt', hidden: false, width: 100 },
+            { label: '绾犻敊', name: 'Jiucuo', labtype: 'txt', hidden: false, width: 100 },
+            { label: '鍚堣', name: 'sum_kgz', labtype: 'txt', hidden: false, width: 100 },
+
+            { label: '鍒拌处宸ヨ祫', name: 'Daozhanggongzi', labtype: 'txt', hidden: false, width: 100 },
+            { label: '棰勫彂宸ヨ祫', name: 'Yufagongzi', labtype: 'txt', hidden: false, width: 100 },
+            { label: '棰勫彂宸ヨ祫鍚堣', name: 'Yufagongziheji', labtype: 'txt', hidden: false, width: 100 },
+            
+        ];
+        dataUrl = "/SalaryCheck/EmployeeSalary?month=" + getNowFormatDate();
+        searchCol = [];
+
+        $(function () {
+
+            laydate.render({
+                elem: '#acTime'
+                , type: 'month'
+                , value: getNowFormatDate()
+            });
+
+            $("#jqGridPager").hide();//闅愯棌div
+
+            $("#jqGrid").closest(".ui-jqgrid-bdiv").css({ 'overflow-x': 'scroll' });
+
+            jQuery("#jqGrid").jqGrid('setGroupHeaders', {
+                useColSpanStyle: true,
+                groupHeaders: [
+                    { startColumnName: 'Jibengongzi', numberOfColumns: 12, titleText: '搴斿彂宸ヨ祫' },
+                    { startColumnName: 'Shebaokou', numberOfColumns: 8, titleText: '搴旀墸宸ヨ祫' }
+                ]
+            });
+            jQuery("#jqGrid").jqGrid('setGridHeight', 150);           
+
+        });
+
+        
+        function getNowFormatDate() {
+            var date = new Date();
+            var seperator1 = "-";
+            var year = date.getFullYear();
+            var month = date.getMonth() + 1;
+            var strDate = date.getDate();
+            if (month >= 1 && month <= 9) {
+                month = "0" + month;
+            }
+            if (strDate >= 0 && strDate <= 9) {
+                strDate = "0" + strDate;
+            }
+            var currentdate = year + seperator1 + month;//+ seperator1 + strDate;
+            return currentdate;
+        }
+
+
+        function doSearch() {
+
+           // $("#jqGrid").trigger('reloadGrid');
+            $("#jqGrid").jqGrid('setGridParam', {
+                url: "/SalaryCheck/EmployeeSalary?month=" + $('#acTime').val()
+            }).trigger("reloadGrid");
+
+        }
+
+
+        function doQr() {
+            var dt = $("#jqGrid").getDataIDs();
+            if (dt.length > 0) {
+                var lk = $("#jqGrid").getCell(dt, "Islock");
+                if (lk == "Q") {
+                    toastr.error("閿欒鎻愮ず锛氭鏈堜唤宸茬粡杩涜杩囩‘璁ゆ搷浣滐紒");
+                }
+                else {
+                    $.ajax({
+                        type: "POST",
+                        url: "/SalaryCheck/SalaryCheckOk?id=" + dt,
+                        dataType: "json",
+                        global: false,
+                        success: function (data) {
+
+                            if (data.Result) {
+                                parent.layer.msg('璁剧疆鎴愬姛', { icon: 6 });
+                                doSearch();
+                            }
+                            else {
+                                // toastr.error("澶辫触");
+                                parent.layer.msg(data.Message, { icon: 5 });
+                            }
+
+                        },
+                        error: function () {
+                            parent.layer.msg('澶辫触', { icon: 5 });
+                        }
+                    });
+                }
+            }
+            else {
+                parent.layer.msg('鏃犲唴瀹瑰彲鎿嶄綔', { icon: 5 });
+            }
+        }
+
+
+        function doSs() {
+            var dt = $("#jqGrid").getDataIDs();
+            if (dt.length > 0) {
+                var lk = $("#jqGrid").getCell(dt, "Islock");
+                if (lk == "Q") {
+                    toastr.error("閿欒鎻愮ず锛氭鏈堜唤宸插畬鎴愮‘璁�,涓嶈兘鐢宠瘔锛�");
+                }
+                else {
+                    OpenWindow('鐢宠瘔', '40%', '50%', '/SalaryCheck/Appeal?id=' + dt);
+                }
+            }
+            else {
+                parent.layer.msg('鏃犲唴瀹瑰彲鎿嶄綔', { icon: 5 });
+            }
+        }
+
+    </script>
+
+}
+<div id="btnView" style="margin-top:15px;text-align:center">
+    <table style="line-height:35px;width:100%">
+        <tr>
+            <td width="40%"></td>
+            <td width="150">
+                <a class="btn btn-default btn-outline" href="#" onclick="doQr()">
+                    <i class="fa fa-save"></i>&nbsp;&nbsp;<span class="bold">纭</span>
+                </a>
+            </td>
+            <td width="150">
+                <a class="btn btn-default btn-outline" href="#" onclick="doSs()">
+                    <i class="fa fa-question"></i>&nbsp;&nbsp;<span class="bold">鐢宠瘔</span>
+                </a>
+            </td>
+            <td width="40%"></td>
+        </tr>
+    </table>
+</div>
\ No newline at end of file

--
Gitblit v1.9.1