LR-20210131IOQH\Administrator
2021-08-10 11e11a51839529b17f70927524e086e90adf692d
zhengcaioa/zhengcaioa/Views/SalaryCheck/Index.cshtml
@@ -28,11 +28,21 @@
            { 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;
                    switch (rowObject.Islock) {
                        case 'S':
                            return '<b style="color: red">' + cellvalue + '</b>';
                        case 'D':
                            return '<b style="color: blue">' + cellvalue + '</b>';
                        default:
                            return cellvalue;
                    }
                    //if ( == 'S') {
                    //    return '<b style="color: red">' + cellvalue + '</b>';
                    //} else {
                    //    return cellvalue;
                    //}
                }
            },
            { label: '工作部门', name: 'DeptName', labtype: 'txt', hidden: false, width: 120 },            
@@ -41,7 +51,7 @@
            { 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: 'DianhuabutieChs', 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 },
@@ -64,7 +74,7 @@
        ];
        dataUrl = "/SalaryCheck/GetList";
        searchCol = [
            { label: '工号', name: 'Usernumber2', labtype: 'txt', hidden: false },
            { label: '月份', name: 'YearMonth', labtype: 'monthdate', hidden: false },
            { label: '工作部门', name: 'DeptId', labtype: 'combox', hidden: false, data: JSON.parse(dept) },
            { label: '职工姓名', name: 'UserName', labtype: 'txt', hidden: false },
        ];
@@ -86,7 +96,7 @@
        var _pageEdit = function () {
            var id = jQuery("#jqGrid").jqGrid('getGridParam', 'selrow');
            if (id) {
                OpenWindow('工资核准', '60%', '55%', '/SalaryCheck/Edit?id=' + id );
                OpenWindow('工资核准', '60%', '65%', '/SalaryCheck/Edit?id=' + id );
            } else {
                toastr.error("请先选中1条记录!");
            }