/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 * 创建人:超级管理员 * 日 期:2022-09-09 11: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); // 刷新 $('#lr_refresh').on('click', function () { location.reload(); }); // 新增 $('#lr_add').on('click', function () { learun.layerForm({ id: 'form', title: '新增', url: top.$.rootUrl + '/EducationalAdministration/WorkStaff/Form', width: 1000, height: 900, callBack: function (id) { return top[id].acceptClick(refreshGirdData); } }); }); // 编辑 $('#lr_edit').on('click', function () { var keyValue = $('#gridtable').jfGridValue('ID'); if (learun.checkrow(keyValue)) { learun.layerForm({ id: 'form', title: '编辑', url: top.$.rootUrl + '/EducationalAdministration/WorkStaff/Form?keyValue=' + keyValue, width: 1000, height: 900, 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/WorkStaff/DeleteForm', { keyValue: keyValue }, function () { refreshGirdData(); }); } }); } }); // 打印 $('#lr_print').on('click', function () { $('#gridtable').jqprintTable(); }); }, // 初始化列表 initGird: function () { $('#gridtable').lrAuthorizeJfGrid({ url: top.$.rootUrl + '/EducationalAdministration/WorkStaff/GetPageList', headData: [ { label: "姓名", name: "Name", width: 100, align: "left" }, { label: "性别", name: "Gender", width: 100, align: "left" }, { label: "身份证号", name: "IdentityCardNo", width: 120, align: "left" }, { label: "民族", name: "Nationality", width: 100, align: "left" }, { label: "出生年月日", name: "Birthday", width: 100, align: "left", formatter: function (cellvalue) { return learun.formatDate(cellvalue, 'yyyy-MM-dd'); } }, { label: "参加工作时间", name: "jobTime", width: 100, align: "left", formatter: function (cellvalue) { return learun.formatDate(cellvalue, 'yyyy-MM-dd'); } }, { label: "入党时间", name: "PartyTime", width: 100, align: "left", formatter: function (cellvalue) { return learun.formatDate(cellvalue, 'yyyy-MM-dd'); } }, { label: "籍贯", name: "Origin", width: 100, align: "left" }, { label: "健康状况", name: "HealthStatus", width: 100, align: "left" }, { label: "有何专长", name: "Speciality", width: 100, align: "left" }, { label: "现单位及职务", name: "NowComPany", width: 100, align: "left" }, { label: "报名岗位", name: "ApplyPost", width: 100, align: "left" }, { label: "全日制教育", name: "TimeEducation", width: 100, align: "left" }, { label: "毕业院校", name: "T_School", width: 100, align: "left" }, { label: "所属专业", name: "T_Major", width: 100, align: "left" }, { label: "在职教育", name: "ServiceEducation", width: 100, align: "left" }, { label: "通讯地址", name: "Address", width: 100, align: "left" }, { label: "手机号码", name: "Mobile", width: 100, align: "left" }, { label: "个人简历", name: "Resume", width: 100, align: "left" }, { label: "奖惩情况", name: "RandP", width: 100, align: "left" }, { label: "近三年年度考核情况", name: "Triennium", width: 100, align: "left" }, { label: "附件", name: "FilePath", width: 500, align: "center", formatterAsync: function (callback, value, row, op, $cell) { $.ajax({ url: '/LR_SystemModule/Annexes/GetAnnexesFileList', data: { folderId: value }, type: 'GET', dataType: "json", async: false, cache: false, success: function (res) { var bb = ''; //$.each(res.data, function (i, item) { // bb += item.F_FileName.substring(0, item.F_FileName.indexOf(".")) + ',' //}) $.each(res.data, function(i, item) { bb += '' + item.F_FileName.substring(0,item.F_FileName.indexOf(".")) + ',   '; }) callback(bb); } }); } }, ], mainId: 'ID', isPage: true }); page.search(); }, search: function (param) { param = param || {}; $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); } }; refreshGirdData = function () { $('#gridtable').jfGridSet('reload'); }; page.init(); } function downLoad(fileId, fileTwo) { if (fileTwo) { top.learun.postFormSilence(top.$.rootUrl + '/PersonnelManagement/MP_QualityObjectives/AddRecord', { fileId: fileTwo }, function () { }); } top.learun.download({ url: top.$.rootUrl + '/LR_SystemModule/Annexes/DownAnnexesFile', param: { fileId: fileId, __RequestVerificationToken: $.lrToken }, method: 'POST' }); }