|
- /* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
- * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
- * 创建人:超级管理员
- * 日 期:2022-09-09 13: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_add').on('click', function () {
- learun.layerForm({
- id: 'form',
- title: '新增',
- url: top.$.rootUrl + '/EducationalAdministration/TalentsJoinInfo/Form',
- width: 900,
- height: 600,
- 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/TalentsJoinInfo/Form?keyValue=' + keyValue,
- width: 900,
- height: 600,
- 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/TalentsJoinInfo/DeleteForm', { keyValue: keyValue}, function () {
- refreshGirdData();
- });
- }
- });
- }
- });
- // 打印
- $('#lr_print').on('click', function () {
- $('#gridtable').jqprintTable();
- });
- },
- // 初始化列表
- initGird: function () {
- $('#gridtable').lrAuthorizeJfGrid({
- url: top.$.rootUrl + '/EducationalAdministration/TalentsJoinInfo/GetPageList',
- headData: [
- { label: "姓名", name: "Name", width: 100, align: "left"},
- { label: "性别", name: "Gender", width: 100, align: "left"},
- { label: "政治面貌", name: "Political", width: 100, align: "left"},
- { label: "籍贯", name: "Origin", width: 100, align: "left"},
- {
- label: "出身年月", name: "Birthday", width: 100, align: "left",
- formatter: function (cellvalue) {
- return learun.formatDate(cellvalue, 'yyyy-MM-dd');
- }
- },
- { label: "民族", name: "Nationality", width: 100, align: "left"},
- { label: "文化程度", name: "CultureDegree", width: 100, align: "left"},
- { label: "婚姻状况", name: "Marriage", width: 100, align: "left" },
- { label: "第一学历毕业院校", name: "WilliamsSchool", width: 100, align: "left" },
- { label: "第一学历专业", name: "Major", width: 100, align: "left" },
- { label: "硕士毕业院校", name: "MasterSchool", width: 100, align: "left" },
- { label: "硕士专业", name: "MasterMajor", width: 100, align: "left" },
- { label: "博士毕业院校", name: "DoctorSchool", width: 100, align: "left"},
- { label: "博士专业", name: "DoctorMajor", width: 100, align: "left"},
- {
- label: "毕业时间", name: "GraduateTime", width: 100, align: "left",
- },
- {
- label: "参加工作时间", name: "JobTime", width: 100, align: "left",
- formatter: function (cellvalue) {
- return learun.formatDate(cellvalue, 'yyyy-MM-dd');
- }
- },
- { label: "专业技术职称", name: "Professiona", width: 100, align: "left"},
- { label: "学位", name: "Degree", width: 100, align: "left"},
- { label: "职业资格证", name: "NVQ", width: 100, align: "left"},
- { label: "现工作单位", name: "NowCompany", width: 100, align: "left"},
- { label: "职务", name: "Position", width: 100, align: "left"},
- { label: "所报岗位", name: "Post", width: 100, align: "left"},
- { label: "通讯地址", name: "Address", width: 100, align: "left"},
- { label: "身份证号", name: "IdentityCardNo", width: 100, align: "left"},
- { label: "联系电话", name: "Phone", width: 100, align: "left"},
- { label: "手机", name: "Mobile", width: 100, align: "left" },
- { label: "邮箱", name: "Email", width: 100, align: "left" },
- { label: "简历", name: "Resume", 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
- });
- 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' });
- }
|