|
- /* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
- * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
- * 创建人:超级管理员
- * 日 期:2022-11-07 11:54
- * 描 述:工资条
- */
- 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/WageSchedule/Form',
- width: 700,
- height: 400,
- callBack: function (id) {
- return top[id].acceptClick(refreshGirdData);
- }
- });
- });
- // 编辑
- $('#lr_edit').on('click', function () {
- var keyValue = $('#gridtable').jfGridValue('Id');
- selectedRow = $('#gridtable').jfGridGet('rowdata');
- if (learun.checkrow(keyValue)) {
- learun.layerForm({
- id: 'form',
- title: '编辑',
- url: top.$.rootUrl + '/EducationalAdministration/WageSchedule/Form?keyValue=' + keyValue,
- width: 700,
- height: 400,
- callBack: function (id) {
- return top[id].acceptClick(refreshGirdData);
- }
- });
- }
- });
- // 删除
- $('#lr_delete').on('click', function () {
- var keyValue = $('#gridtable').jfGridValue('Id');
- if (learun.checkrow(keyValue)) {
- learun.layerConfirm('是否确认删除该项!', function (res) {
- if (res) {
- learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/WageSchedule/DeleteForm', { keyValue: keyValue }, function () {
- });
- }
- });
- }
- });
- },
- initGird: function () {
- $('#gridtable').jfGrid({
- url: top.$.rootUrl + '/EducationalAdministration/WageSchedule/GetPageList',
- headData: [
- { label: '序号', name: 'No', width: 70, align: "left" },
- { label: '姓名', name: 'EmpName', width: 70, align: "left" },
- { label: '身份证号', name: 'IdCardNo', width: 140, align: "left" },
- { label: '人员类别', name: 'PeopleType', width: 70, align: "left" },
- { label: '岗位等级', name: 'PostType', width: 70, align: "left" },
- { label: '薪级', name: 'PayGrade', width: 50, align: "left" },
- { label: '应发合计', name: 'TotalGrossPay', width: 70, align: "left", statistics: true },
- {
- label: '基本工资', name: '基本工资', width: 130, align: "center", statistics: true,
- children: [
- { label: '岗位工资', name: 'PostWage', width: 70, align: "left", statistics: true },
- { label: '薪级工资', name: 'PayGradeWage', width: 70, align: "left", statistics: true },
- { label: '百分之十', name: 'TenPercent', width: 70, align: "left", statistics: true },
- { label: '小计', name: 'BasePay', width: 70, align: "left", statistics: true }
- ]
- },
- {
- label: '津贴补贴', name: '津贴补贴', width: 130, align: "center", statistics: true,
- children: [
- { label: '艰边津贴', name: 'RoughEdgeAllowance', width: 70, align: "left", statistics: true },
- { label: '民族津贴', name: 'NationAllowance', width: 70, align: "left", statistics: true },
- { label: '教师津贴', name: 'TeachAllowance', width: 70, align: "left", statistics: true },
- { label: '小计', name: 'SubsidiesAllowances', width: 70, align: "left", statistics: true },
- ]
- },
- { label: '基础性绩效', name: 'BasicsPerformance', width: 70, align: "left", statistics: true },
- { label: '女职工卫生费', name: 'GirlStaffSanitation', width: 70, align: "left", statistics: true },
- {
- label: '改革性补贴', name: '改革性补贴', width: 70, align: "center", statistics: true,
- children: [
- { label: '交通补贴', name: 'Transportation', width: 70, align: "left", statistics: true },
- { label: '物业补贴', name: 'RealeState', width: 70, align: "left", statistics: true },
- { label: '工改保留补贴', name: 'WorkKeep', width: 90, align: "left", statistics: true },
- { label: '小计', name: 'ReformSubsidySum', width: 70, align: "left", statistics: true }
- ]
- },
- { label: '住房补贴', name: 'HousingAllowance', width: 80, align: "left", statistics: true },
- { label: '住房公积金', name: 'HousingFundAllowance', width: 80, align: "left", statistics: true },
- { label: '特级教师津贴和乡镇补贴', name: 'TeacherAndTown', width: 130, align: "center", statistics: true },
- {
- label: '扣款', name: '扣款', width: 130, align: "center", statistics: true,
- children: [
- { label: '小计', name: 'DeductionsSubtotal', width: 70, align: "left", statistics: true },
- { label: '公积金', name: 'AccumulationFund', width: 70, align: "left", statistics: true },
- { label: '工会工费', name: 'LaborUnionWage', width: 70, align: "left", statistics: true },
- { label: '个人所得税', name: 'PersonalIncomeTax', width: 70, align: "left", statistics: true },
- { label: '养老保险', name: 'EndowmentInsurance', width: 70, align: "left", statistics: true },
- { label: '职业年金', name: 'OccupationalAnnuities', width: 70, align: "left", statistics: true },
- { label: '医疗保险', name: 'MedicalInsurance', width: 70, align: "left", statistics: true },
- { label: '失业保险', name: 'UnemploymentInsurance', width: 70, align: "left", statistics: true },
- { label: '其他', name: 'Other', width: 70, align: "left", statistics: true }
- ]
- },
- { label: '财政直达', name: 'FiscalDirect', width: 70, align: "left", statistics: true },
- { label: '银行代扣', name: 'BankWithholding', width: 70, align: "left", statistics: true },
- { label: '实发合计', name: 'NetCombined', width: 70, align: "left", statistics: true },
- { label: '工资卡号', name: 'WageCardNo', width: 130, align: "left" },
- { label: '创建用户', name: 'CreateUser', width: 70, align: "left" },
- { label: '创建时间', name: 'CreateTime', width: 130, align: "left" },
- { label: '发放月份', name: 'IssueMonth', width: 70, align: "left" },
- { label: '发放年份', name: 'IssueYear', width: 70, align: "left" },
- ],
- mainId: 'Id',
- isPage: true,
- rows: 300,
- sidx: 'CreateTime',
- });
- page.search();
- },
- search: function (param) {
- param = param || {};
- $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
- }
- };
- refreshGirdData = function () {
- $('#gridtable').jfGridSet('reload');
- };
- page.init();
- }
|