/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 * 创建人:超级管理员 * 日 期:2022-11-04 16:28 * 描 述:公益性岗位 */ var selectedRow; var refreshGirdData; var bootstrap = function ($, learun) { "use strict"; var page = { init: function () { page.initGird(); page.bind(); }, bind: function () { $('#multiple_condition_query').lrMultipleQuery(function (queryJson) { page.search(queryJson); }, 220, 400); //年份 $('#IssueYear').lrselect({ allowSearch: true, url: top.$.rootUrl + '/PersonnelManagement/MP_ManagementPlan/GetAcademicYear', value: 'value', text: 'text' }); $('#IssueMonth').lrDataItemSelect({ code: 'MPMonth' }); // 刷新 $('#lr_refresh').on('click', function () { location.reload(); }); // 新增 $('#lr_add').on('click', function () { selectedRow = null; learun.layerForm({ id: 'form', title: '新增', url: top.$.rootUrl + '/EducationalAdministration/WelfarePosition/Form', width: 800, height: 800, callBack: function (id) { return top[id].acceptClick(refreshGirdData); } }); }); // 编辑 $('#lr_edit').on('click', function () { var keyValue = $('#gridtable').jfGridValue('GYID'); selectedRow = $('#gridtable').jfGridGet('rowdata'); if (learun.checkrow(keyValue)) { learun.layerForm({ id: 'form', title: '编辑', url: top.$.rootUrl + '/EducationalAdministration/WelfarePosition/Form?keyValue=' + keyValue, width: 800, height: 800, callBack: function (id) { return top[id].acceptClick(refreshGirdData); } }); } }); // 删除 $('#lr_delete').on('click', function () { var keyValue = $('#gridtable').jfGridValue('GYID'); if (learun.checkrow(keyValue)) { learun.layerConfirm('是否确认删除该项!', function (res) { if (res) { learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/WelfarePosition/DeleteForm', { keyValue: keyValue }, function () { refreshGirdData(); }); } }); } }); }, initGird: function () { $('#gridtable').lrAuthorizeJfGrid({ url: top.$.rootUrl + '/EducationalAdministration/WelfarePosition/GetPageList', headData: [ { label: '序号', name: 'No', width: 100, align: "left" }, { label: '姓名', name: 'EmpName', width: 100, align: "left" }, { label: '身份证', name: 'IdCardNo', width: 150, align: "left" }, { label: '工资卡号', name: 'WageCardNo', width: 135, align: "left" }, { label: '人员类别', name: 'PeopleType', width: 100, align: "left" }, { label: '岗位等级', name: 'PostType', width: 100, align: "left" }, { label: '薪级', name: 'PayGrade', width: 100, align: "left" }, { label: '应发合计', name: 'TotalGrossPay', width: 80, align: "left", statistics: true }, { label: '岗位工资', name: 'PostWage', width: 80, align: "left", statistics: true }, { label: '薪级工资', name: 'PayGradeWage', width: 80, align: "left", statistics: true }, { label: '百分之十', name: 'TenPercent', width: 80, align: "left", statistics: true }, { label: '艰边津贴', name: 'RoughEdgeAllowance', width: 80, align: "left", statistics: true }, { label: '女职工卫生费', name: 'GirlStaffSanitation', width: 80, align: "left", statistics: true }, { label: '教龄津贴', name: 'TeachAllowance', width: 80, align: "left", statistics: true }, { label: '民族津贴', name: 'NationAllowance', width: 80, align: "left", statistics: true }, { label: '基础性绩效', name: 'BasicsPerformance', width: 80, align: "left", statistics: true }, { label: '交通补贴', name: 'Transportation', width: 80, align: "left", statistics: true }, { label: '物业补贴', name: 'RealeState', width: 80, align: "left", statistics: true }, { label: '九三年工改补贴', name: 'WorkKeep', width: 80, align: "left", statistics: true }, { label: '住房补贴', name: 'HousingAllowance', width: 80, align: "left", statistics: true }, { label: '公积金', name: 'ProvidentFundPayment', width: 80, align: "left", statistics: true }, { label: '考核工资', name: 'AssessmentWages', width: 100, align: "left", statistics: true }, { label: '扣款合计', name: 'DeductionsCombined', width: 100, align: "left", statistics: true }, { label: '(缴纳)公积金', name: 'HousingFundAllowance', width: 100, align: "left", statistics: true }, { label: '工会工费', name: 'LaborUnionWage', width: 100, align: "left", statistics: true }, { label: '所得税', name: 'PersonalIncomeTax', width: 100, align: "left", statistics: true }, { label: '养老保险', name: 'EndowmentInsurance', width: 100, align: "left", statistics: true }, { label: '医疗保险', name: 'MedicalInsurance', width: 100, align: "left", statistics: true }, { label: '失业保险', name: 'UnemploymentInsurance', width: 100, align: "left", statistics: true }, { label: '其他', name: 'Other', width: 100, align: "left", statistics: true }, { label: '实发合计', name: 'NetCombined', width: 100, align: "left", statistics: true }, { label: "发放月份", name: "IssueMonth", width: 100, align: "left" }, { label: "发放年份", name: "IssueYear", width: 100, align: "left" }, ], mainId: 'GYID', isPage: true, sidx: 'CreateTime' }); page.search(); }, search: function (param) { param = param || {}; $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); } }; refreshGirdData = function () { $('#gridtable').jfGridSet('reload'); }; page.init(); }