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/Index.cshtml | 113 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 113 insertions(+), 0 deletions(-)
diff --git a/zhengcaioa/zhengcaioa/Views/SalaryCheck/Index.cshtml b/zhengcaioa/zhengcaioa/Views/SalaryCheck/Index.cshtml
new file mode 100644
index 0000000..b4b3fe5
--- /dev/null
+++ b/zhengcaioa/zhengcaioa/Views/SalaryCheck/Index.cshtml
@@ -0,0 +1,113 @@
+锘緻{
+ ViewBag.Title = "宸ヨ祫鏍稿噯";
+ Layout = "~/Views/Shared/_Layout_Search.cshtml";
+}
+
+<link href="~/css/jquery-confirm.css" rel="stylesheet">
+<script src="~/js/jquery-confirm.js" type="text/javascript"></script>
+
+@section headerStyle{
+
+ <script type="text/javascript">
+
+ var dept = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.dept))';
+
+ gridConfig = { multiselect: false, selectcol: "Id" };
+ shrinkToFit = false;
+ footerrow = false;
+
+ dataCol = [
+ { label: '搴忓彿', name: 'Id', labtype: 'txt', hidden: true },
+ { label: '宸ュ彿', name: 'Usernumber', labtype: 'txt', hidden: false, width: 100},
+ {
+ label: '濮撳悕', name: 'UserName', labtype: 'txt', hidden: false, width: 100,
+ formatter: function (cellvalue, options, rowObject) {
+ return "<a onclick=\"OpenWindow('宸ヨ祫鏍稿噯','60%','55%', '/SalaryCheck/Edit?id=" + rowObject.Id + "')\" >" + cellvalue + "</a>";
+ }
+ },
+ { 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/GetList";
+ searchCol = [
+ { label: '宸ュ彿', name: 'Usernumber2', labtype: 'txt', hidden: false },
+ { label: '宸ヤ綔閮ㄩ棬', name: 'DeptId', labtype: 'combox', hidden: false, data: JSON.parse(dept) },
+ { label: '鑱屽伐濮撳悕', name: 'UserName', labtype: 'txt', hidden: false },
+ ];
+
+ $(function () {
+
+ $("#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: '搴旀墸宸ヨ祫' }
+ ]
+ });
+
+ });
+
+ var _pageEdit = function () {
+ var id = jQuery("#jqGrid").jqGrid('getGridParam', 'selrow');
+ if (id) {
+ OpenWindow('宸ヨ祫鏍稿噯', '60%', '55%', '/SalaryCheck/Edit?id=' + id );
+ } else {
+ toastr.error("璇峰厛閫変腑1鏉¤褰曪紒");
+ }
+ };
+
+ var _afterSave = function (result) {
+ if (result) {
+ toastr.success("淇濆瓨鎴愬姛");
+ } else {
+ toastr.error("淇濆瓨澶辫触");
+ }
+ }
+
+ var _afterDel = function (result) {
+ if (result) {
+ toastr.success("鍒犻櫎鎴愬姛");
+ } else {
+ /**/
+ toastr.error("鍒犻櫎鎴愬姛");
+ /**/
+ }
+ }
+ </script>
+}
--
Gitblit v1.9.1