| | |
| | | { 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 }, |
| | |
| | | { 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 }, |
| | |
| | | ]; |
| | | 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 }, |
| | | ]; |
| | |
| | | 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条记录!"); |
| | | } |