|
|
@@ -1,149 +0,0 @@ |
|
|
|
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) |
|
|
|
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 |
|
|
|
* 创建人:超级管理员 |
|
|
|
* 日 期:2021-12-16 10:14 |
|
|
|
* 描 述:长阳迎新 |
|
|
|
*/ |
|
|
|
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); |
|
|
|
$('#Sex').lrDataItemSelect({ code: 'usersex' }); |
|
|
|
// 刷新 |
|
|
|
$('#lr_refresh').on('click', function () { |
|
|
|
location.reload(); |
|
|
|
}); |
|
|
|
// 标注 |
|
|
|
$('#lr_label').on('click', function () { |
|
|
|
var keyValue = $('#gridtable').jfGridValue('ID'); |
|
|
|
if (learun.checkrow(keyValue)) { |
|
|
|
learun.layerConfirm('是否确认标注选中该项!', function (res) { |
|
|
|
if (res) { |
|
|
|
learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuVolunteer/LabelForm', { keyValue: keyValue }, function () { |
|
|
|
refreshGirdData(); |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
// 取消标注 |
|
|
|
$('#lr_cancel').on('click', function () { |
|
|
|
var keyValue = $('#gridtable').jfGridValue('ID'); |
|
|
|
if (learun.checkrow(keyValue)) { |
|
|
|
learun.layerConfirm('是否取消标注选中该项!', function (res) { |
|
|
|
if (res) { |
|
|
|
learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuVolunteer/CancelLabel', { keyValue: keyValue }, function () { |
|
|
|
refreshGirdData(); |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
// 填报志愿 |
|
|
|
$('#lr_school').on('click', function () { |
|
|
|
var keyValue = $('#gridtable').jfGridValue('ID'); |
|
|
|
if (learun.checkrow(keyValue)) { |
|
|
|
if (keyValue.indexOf(',') != -1) { |
|
|
|
learun.alert.warning("只能选择一条记录进行编辑!"); |
|
|
|
return; |
|
|
|
} |
|
|
|
var IsOurSchool = $('#gridtable').jfGridValue('IsOurSchool'); |
|
|
|
if (IsOurSchool == false) { |
|
|
|
learun.layerForm({ |
|
|
|
id: 'form', |
|
|
|
title: '填报学校', |
|
|
|
url: top.$.rootUrl + '/EducationalAdministration/StuVolunteer/Formschool?keyValue=' + keyValue, |
|
|
|
width: 600, |
|
|
|
height: 400, |
|
|
|
callBack: function (id) { |
|
|
|
return top[id].acceptClick(refreshGirdData); |
|
|
|
} |
|
|
|
}); |
|
|
|
} else { |
|
|
|
learun.alert.warning("当前项无需填报!"); |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
// 初始化列表 |
|
|
|
initGird: function () { |
|
|
|
$('#gridtable').lrAuthorizeJfGrid({ |
|
|
|
url: top.$.rootUrl + '/EducationalAdministration/StuVolunteer/GetPageList', |
|
|
|
headData: [ |
|
|
|
{ |
|
|
|
label: "是否有意(本校)", name: "IsIntention", width: 100, align: "IsIntention", |
|
|
|
formatter: function (cellvalue) { |
|
|
|
return cellvalue == true ? "<span class=\"label label-success\">是</span>" : |
|
|
|
"<span class=\"label label-danger\">否</span>"; |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "填报志愿(本校)", name: "IsOurSchool", width: 100, align: "IsIntention", |
|
|
|
formatter: function (cellvalue) { |
|
|
|
return cellvalue == true ? "<span class=\"label label-success\">是</span>" : |
|
|
|
"<span class=\"label label-danger\">否</span>"; |
|
|
|
} |
|
|
|
}, |
|
|
|
{ label: "县区名称", name: "Address", width: 200, align: "left" }, |
|
|
|
{ label: "毕业学校", name: "BySchool", width: 200, align: "left" }, |
|
|
|
{ label: "初中学号", name: "H_SchoolNo", width: 200, align: "left" }, |
|
|
|
{ label: "报名号", name: "ApplyNo", width: 200, align: "left" }, |
|
|
|
{ label: "学生姓名", name: "StuName", width: 100, align: "left" }, |
|
|
|
{ |
|
|
|
label: "性别", name: "Sex", width: 100, align: "left", |
|
|
|
formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('dataItem', { |
|
|
|
key: value, |
|
|
|
code: 'usersex', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data.text); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "录取意向", name: "IsCYSchool", width: 200, align: "left", |
|
|
|
formatter: function (cellvalue) { |
|
|
|
return cellvalue == true ? "<span class=\"label label-success\">是</span>" : |
|
|
|
"<span class=\"label label-danger\">否</span>"; |
|
|
|
} |
|
|
|
}, |
|
|
|
{ label: "身份证号", name: "CardNo", width: 150, align: "left" }, |
|
|
|
{ label: "中考总分", name: "StuScore", width: 100, align: "left" }, |
|
|
|
{ label: "第一志愿", name: "FirstVolunteer", width: 120, align: "left" }, |
|
|
|
{ label: "第二志愿", name: "SecondVolunteer", width: 120, align: "left" }, |
|
|
|
{ label: "第三志愿", name: "ThirdVolunteer", width: 120, align: "left" }, |
|
|
|
{ label: "第四志愿", name: "FouthVolunteer", width: 120, align: "left" }, |
|
|
|
{ label: "第五志愿", name: "FifthVolunteer", width: 120, align: "left" }, |
|
|
|
{ label: "第六志愿", name: "SixthVolunteer", width: 120, align: "left" }, |
|
|
|
{ label: "第七志愿", name: "SeventhVolunteer", width: 120, align: "left" }, |
|
|
|
{ label: "第八志愿", name: "EighthVolunteer", width: 120, align: "left" }, |
|
|
|
{ label: "第九志愿", name: "NinthVolunteer", width: 120, align: "left" }, |
|
|
|
{ label: "备注", name: "Demo", width: 100, align: "left" }, |
|
|
|
], |
|
|
|
mainId: 'ID', |
|
|
|
isPage: true, |
|
|
|
isMultiselect: true |
|
|
|
|
|
|
|
}); |
|
|
|
page.search(); |
|
|
|
}, |
|
|
|
search: function (param) { |
|
|
|
param = param || {}; |
|
|
|
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); |
|
|
|
} |
|
|
|
}; |
|
|
|
refreshGirdData = function () { |
|
|
|
$('#gridtable').jfGridSet('reload'); |
|
|
|
}; |
|
|
|
page.init(); |
|
|
|
} |