|
- /* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
- * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
- * 创建人:超级管理员
- * 日 期:2022-09-05 16:23
- * 描 述:招聘人员报名
- */
- 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);
- }, 240, 400);
- // 刷新
- $('#lr_refresh').on('click', function () {
- location.reload();
- });
- // 刷新
- $('#lr_refresh').on('click', function () {
- location.reload();
- });
- // 新增
- $('#lr_add').on('click', function () {
- learun.layerForm({
- id: 'form',
- title: '新增',
- url: top.$.rootUrl + '/EducationalAdministration/HiringRegistration/Form',
- width: 800,
- height: 800,
- 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/HiringRegistration/Form?keyValue=' + keyValue,
- width: 800,
- height: 800,
- 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/HiringRegistration/DeleteForm', { keyValue: keyValue }, function () {
- refreshGirdData();
- });
- }
- });
- }
- });
- },
- // 初始化列表
- initGird: function () {
- $('#gridtable').jfGrid({
- url: top.$.rootUrl + '/EducationalAdministration/HiringRegistration/GetPageList',
- headData: [
- { label: "应聘单位", name: "Company", width: 100, align: "left" },
- { label: "应聘岗位", name: "Post", width: 100, align: "left" },
- { label: "报名序号", name: "BmNum", width: 100, align: "left" },
- { label: "姓名", name: "Name", width: 100, align: "left" },
- {
- label: "性别", name: "Gender", width: 100, align: "left",
- //formatterAsync: function (callback, value, row, op, $cell) {
- // learun.clientdata.getAsync('dataItem', {
- // key: value,
- // code: 'usersexbit',
- // callback: function (_data) {
- // callback(_data.text);
- // }
- // });
- //}
- },
- { label: "民族", name: "NationalityNo", width: 100, align: "left" },
- { label: "政治面貌", name: "Political", width: 100, align: "left" },
- { label: "学历学位", name: "Education", width: 100, align: "left" },
- { label: "毕业院校", name: "WilliamsSchool", width: 100, align: "left" },
- { label: "所学专业", name: "Major", width: 100, align: "left" },
- { label: "职称,执(职)业资格", name: "Qualification", width: 100, align: "left" },
- {
- label: "取得时间", name: "GetTime", width: 100, align: "left",
- formatter: function (cellvalue) {
- return learun.formatDate(cellvalue, 'yyyy-MM-dd');
- }
- },
- { label: "户籍所在地", name: "Domicile", width: 100, align: "left" },
- { label: "婚姻状况", name: "Marriage", width: 100, align: "left" },
- { label: "档案保管单位", name: "Archives", width: 100, align: "left" },
- { label: "身份证号", name: "IdentityCardNo", width: 100, align: "left" },
- { label: "有何特长", name: "Specialty", width: 100, align: "left" },
- { label: "通讯地址", name: "ADDRESS", width: 100, align: "left" },
- { label: "邮政编码", name: "PostalCode", width: 100, align: "left" },
- { label: "联系电话", name: "Mobile", width: 100, align: "left" },
- { label: "实践与成绩", name: "Achievement", 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 += '<span onclick="downLoad(\'' +
- item.F_Id +
- '\')" style="color:blue">' +
- item.F_FileName.substring(0, item.F_FileName.indexOf(".")) +
- '</span>, ';
- })
- callback(bb);
- }
- });
- }
- },
- ],
- mainId: 'ID',
- isPage: true,
- sidx: 'CreateTime',
- sord: 'asc',
- });
- 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' });
- }
|