|
- /* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
- * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
- * 创建人:超级管理员
- * 日 期:2021-04-21 15:42
- * 描 述:工资条
- */
- 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' });
- $('#Department').lrselect({
- type: 'tree',
- // 展开最大高度
- maxHeight: 200,
- // 是否允许搜索
- allowSearch: true,
- // 访问数据接口地址
- url: top.$.rootUrl + '/LR_OrganizationModule/Department/GetTree',
- });
- // 刷新
- $('#lr_refresh').on('click', function () {
- location.reload();
- });
- // 新增
- $('#lr_add').on('click', function () {
- learun.layerForm({
- id: 'form',
- title: '新增',
- url: top.$.rootUrl + '/PersonnelManagement/Emp_Payroll/Form',
- width: 600,
- height: 400,
- callBack: function (id) {
- return top[id].acceptClick(refreshGirdData);
- }
- });
- });
- // 编辑
- $('#lr_edit').on('click', function () {
- var keyValue = $('#gridtable').jfGridValue('SalaryID');
- if (learun.checkrow(keyValue)) {
- learun.layerForm({
- id: 'form',
- title: '编辑',
- url: top.$.rootUrl + '/PersonnelManagement/Emp_Payroll/Form?keyValue=' + keyValue,
- width: 600,
- height: 400,
- callBack: function (id) {
- return top[id].acceptClick(refreshGirdData);
- }
- });
- }
- });
- // 删除
- $('#lr_delete').on('click', function () {
- var keyValue = $('#gridtable').jfGridValue('SalaryID');
- if (learun.checkrow(keyValue)) {
- learun.layerConfirm('是否确认删除该项!', function (res) {
- if (res) {
- learun.deleteForm(top.$.rootUrl + '/PersonnelManagement/Emp_Payroll/DeleteForm', { keyValue: keyValue }, function () {
- refreshGirdData();
- });
- }
- });
- }
- });
- // 打印
- $('#lr_print').on('click', function () {
- $('#gridtable').jqprintTable();
- });
- },
- // 初始化列表
- initGird: function () {
- $('#gridtable').jfGrid({
- url: top.$.rootUrl + '/PersonnelManagement/Emp_Payroll/GetPageList',
- headData: [
- //{ label: "姓名", name: "UserId", width: 100, align: "left" },
- {
- label: "名称", name: "UserId", width: 100, align: "left",
- formatterAsync: function (callback, value, row, op, $cell) {
- learun.clientdata.getAsync('custmerData', {
- url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'TeacherInfo',
- key: value,
- keyId: 'f_userid',
- callback: function (_data) {
- callback(_data['f_realname']);
- }
- });
- }
- },
- { label: "岗位工资", name: "PostSalary", width: 100, align: "left", statistics: true },
- { label: "薪级工资", name: "PayWages", width: 100, align: "left", statistics: true },
- { label: "提高百分之十", name: "UpTenpercent", width: 100, align: "left", statistics: true },
- { label: "校内补贴", name: "SchoolSub", width: 100, align: "left", statistics: true },
- { label: "临时性补贴", name: "TemporarySub", width: 100, align: "left", statistics: true },
- { label: "职级工资", name: "RankWage", width: 100, align: "left", statistics: true },
- { label: "级差补贴", name: "DifferentialSub", width: 100, align: "left", statistics: true },
- { label: "绩效工资", name: "MeritPay", width: 100, align: "left", statistics: true },
- { label: "绩效工资减少额", name: "MeritPayLess", width: 100, align: "left", statistics: true },
- { label: "月发一次性绩效", name: "MonthlyoneMerit", width: 100, align: "left", statistics: true },
- { label: "倾斜", name: "Tilt", width: 100, align: "left", statistics: true },
- { label: "课时费", name: "Classfees", width: 100, align: "left", statistics: true },
- { label: "超课时", name: "SuperClass", width: 100, align: "left", statistics: true },
- { label: "培训课酬", name: "TrainingDollars", width: 100, align: "left", statistics: true },
- { label: "奖金", name: "Bonus", width: 100, align: "left", statistics: true },
- { label: "婴补", name: "BabySubsidies", width: 100, align: "left", statistics: true },
- { label: "班主任", name: "ClassTeacher", width: 100, align: "left", statistics: true },
- { label: "骨干津贴", name: "KeyBenefits", width: 100, align: "left", statistics: true },
- { label: "职务补", name: "PositionFill", width: 100, align: "left", statistics: true },
- { label: "加班费", name: "OvertimePay", width: 100, align: "left", statistics: true },
- { label: "值班费", name: "OnDutyfee", width: 100, align: "left", statistics: true },
- { label: "考务费", name: "ExaminationFee", width: 100, align: "left", statistics: true },
- { label: "安全绩效", name: "SecurityPay", width: 100, align: "left", statistics: true },
- { label: "医药费", name: "MedicalBills", width: 100, align: "left", statistics: true },
- { label: "防暑降温", name: "CoolingPurposes", width: 100, align: "left", statistics: true },
- { label: "房补", name: "HousSub", width: 100, align: "left", statistics: true },
- { label: "物业补贴", name: "PropertySub", width: 100, align: "left", statistics: true },
- { label: "采暖补贴", name: "HeatingSub", width: 100, align: "left", statistics: true },
- { label: "综合补助", name: "ComprehensiveSub", width: 100, align: "left", statistics: true },
- { label: "综治奖", name: "ControlSub", width: 100, align: "left", statistics: true },
- { label: "补发", name: "Replacement", width: 100, align: "left", statistics: true },
- { label: "应发合计", name: "SendSum", width: 100, align: "left", statistics: true },
- { label: "失保", name: "LossInsurance", width: 100, align: "left", statistics: true },
- { label: "养保", name: "Bartender", width: 100, align: "left", statistics: true },
- { label: "职业年金", name: "OcPension", width: 100, align: "left", statistics: true },
- { label: "房积金", name: "HousFund", width: 100, align: "left", statistics: true },
- { label: "医保", name: "HealthCare", width: 100, align: "left", statistics: true },
- { label: "房租", name: "TheRent", width: 100, align: "left", statistics: true },
- { label: "网费", name: "InternetFee", width: 100, align: "left", statistics: true },
- { label: "考核扣款", name: "AssDeductions", width: 100, align: "left", statistics: true },
- { label: "其他扣款", name: "OtherDeductions", width: 100, align: "left", statistics: true },
- { label: "代扣个税", name: "WithBuckletax", width: 100, align: "left", statistics: true },
- { label: "扣款合计", name: "DeductionsSum", width: 100, align: "left", statistics: true },
- { label: "纳税收入", name: "TaxRevenue", width: 100, align: "left", statistics: true },
- { label: "免税收入", name: "TaxIncome", 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: 'SalaryID',
- isPage: true
- });
- page.search();
- },
- search: function (param) {
- param = param || {};
- $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
- }
- };
- refreshGirdData = function () {
- $('#gridtable').jfGridSet('reload');
- };
- page.init();
- }
|