|
|
@@ -0,0 +1,277 @@ |
|
|
|
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) |
|
|
|
* Copyright (c) 2013-2018 北京泉江科技有限公司 |
|
|
|
* 创建人:超级管理员 |
|
|
|
* 日 期:2019-08-08 17:21 |
|
|
|
* 描 述:新生信息管理 |
|
|
|
*/ |
|
|
|
var selectedRow; |
|
|
|
var refreshGirdData; |
|
|
|
var bootstrap = function ($, learun) { |
|
|
|
"use strict"; |
|
|
|
var page = { |
|
|
|
init: function () { |
|
|
|
page.initGird(); |
|
|
|
page.bind(); |
|
|
|
}, |
|
|
|
bind: function () { |
|
|
|
// 查询 |
|
|
|
$('#btn_Search').on('click', function () { |
|
|
|
var keyword = $('#txt_Keyword').val(); |
|
|
|
var Grade = $('#Grade').val(); |
|
|
|
page.search({ keyword: keyword, Grade: Grade }); |
|
|
|
}); |
|
|
|
// 刷新 |
|
|
|
$('#lr_refresh').on('click', function () { |
|
|
|
location.reload(); |
|
|
|
}); |
|
|
|
// 查看 |
|
|
|
$('#lr_view').on('click', function () { |
|
|
|
var keyValue = $('#gridtable').jfGridValue('ID'); |
|
|
|
selectedRow = $('#gridtable').jfGridGet('rowdata'); |
|
|
|
if (learun.checkrow(keyValue)) { |
|
|
|
learun.layerForm({ |
|
|
|
id: 'form', |
|
|
|
title: '查看', |
|
|
|
url: top.$.rootUrl + '/EducationalAdministration/StuInfoFresh/FormView?keyValue=' + keyValue, |
|
|
|
width: 1200, |
|
|
|
height: 700, |
|
|
|
btn: null |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
initGird: function () { |
|
|
|
$('#gridtable').jfGrid({ |
|
|
|
url: top.$.rootUrl + '/EducationalAdministration/StuInfoFresh/GetPageList', |
|
|
|
headData: [ |
|
|
|
{ label: '考生号', name: 'ksh', width: 150, align: "left" }, |
|
|
|
{ label: '准考证号', name: 'zkzh', width: 150, align: "left" }, |
|
|
|
{ label: '学号', name: 'StuNo', width: 100, align: "left" }, |
|
|
|
{ label: '年级', name: 'Grade', width: 100, align: "left" }, |
|
|
|
{ label: '姓名', name: 'StuName', width: 100, align: "left" }, |
|
|
|
{ |
|
|
|
label: '是否完善信息', name: 'ID', width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
|
|
|
|
learun.clientdata.getAsync('custmerData', { |
|
|
|
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'DirectRelatives', |
|
|
|
key: row.ID, |
|
|
|
keyId: 'stuinfofreshid', |
|
|
|
callback: function (_data) { |
|
|
|
var a = _data['id']; |
|
|
|
if (a == undefined) { |
|
|
|
callback("<span class=\"label label-warning\">未完善</span>"); |
|
|
|
} else { |
|
|
|
callback("<span class=\"label label-success\">已完善</span>"); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '是否生成学籍', name: 'IsInBasic', width: 100, align: "left", formatter: function (cellvalue) { |
|
|
|
return cellvalue == true ? "<span class=\"label label-success\">是</span>" : "<span class=\"label label-warning\">否</span>"; |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '线上缴费状态', name: 'PayFeeStatus', width: 100, align: "left", formatter: function (value) { |
|
|
|
return value == 1 ? "<span class=\"label label-success\">已缴费</span>" : "<span class=\"label label-warning\">未缴费</span>"; |
|
|
|
} |
|
|
|
}, |
|
|
|
{ label: '线上缴费时间', name: 'PayFeeDate', width: 130, align: "left" }, |
|
|
|
{ |
|
|
|
label: '助学贷款状态', name: 'StudentLoanStatus', width: 100, align: "left", formatter: function (value) { |
|
|
|
return value == 1 ? "<span class=\"label label-success\">已审核</span>" : "<span class=\"label label-warning\">未审核</span>"; |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '现场缴费状态', name: 'OnsitePayFeeStatus', width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('dataItem', { |
|
|
|
key: value, |
|
|
|
code: 'OnsitePayStatus', |
|
|
|
callback: function (_data) { |
|
|
|
//callback(_data.text); |
|
|
|
if (_data.text) { |
|
|
|
if (_data.text == "已缴费") { |
|
|
|
callback('<span class=\"label label-success\">' + _data.text + '</span>'); |
|
|
|
} else { |
|
|
|
callback('<span class=\"label label-warning\">' + _data.text + '</span>'); |
|
|
|
} |
|
|
|
} else { |
|
|
|
callback('<span class=\"label label-warning\">未缴费</span>'); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '其他费用缴费状态', name: 'OtherPayFeeStatus', width: 100, align: "left", formatter: function (value) { |
|
|
|
return value == 1 ? "<span class=\"label label-success\">已缴费</span>" : "<span class=\"label label-warning\">未缴费</span>"; |
|
|
|
} |
|
|
|
}, |
|
|
|
{ label: '其他费用缴费时间', name: 'OtherPayFeeDate', width: 130, align: "left" }, |
|
|
|
{ |
|
|
|
label: '报到状态', name: 'RegisterStatus', width: 100, align: "left", formatter: function (value) { |
|
|
|
return value == 1 ? "<span class=\"label label-success\">已报到</span>" : "<span class=\"label label-warning\">未报到</span>"; |
|
|
|
} |
|
|
|
}, |
|
|
|
{ label: '报到时间', name: 'ArriveDate', width: 130, align: "left" }, |
|
|
|
{ |
|
|
|
label: '收取档案状态', name: 'CollectFileStatus', width: 100, align: "left", formatter: function (value) { |
|
|
|
return value == 1 ? "<span class=\"label label-success\">已收取</span>" : "<span class=\"label label-warning\">未收取</span>"; |
|
|
|
} |
|
|
|
}, |
|
|
|
{ label: '收取档案时间', name: 'CollectFileDate', width: 130, align: "left" }, |
|
|
|
{ |
|
|
|
label: '领取钥匙状态', name: 'GetKeyStatus', width: 100, align: "left", formatter: function (value) { |
|
|
|
return value == 1 ? "<span class=\"label label-success\">已领取</span>" : "<span class=\"label label-warning\">未领取</span>"; |
|
|
|
} |
|
|
|
}, |
|
|
|
{ label: '领取钥匙时间', name: 'GetKeyDate', width: 130, align: "left" }, |
|
|
|
{ |
|
|
|
label: '领取校园卡状态', name: 'GetCardStatus', width: 100, align: "left", formatter: function (value) { |
|
|
|
return value == 1 ? "<span class=\"label label-success\">已领取</span>" : "<span class=\"label label-warning\">未领取</span>"; |
|
|
|
} |
|
|
|
}, |
|
|
|
{ label: '领取校园卡时间', name: 'GetCardDate', width: 130, align: "left" }, |
|
|
|
{ |
|
|
|
label: '系', name: 'DeptNo', width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('custmerData', { |
|
|
|
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdDeptInfo', |
|
|
|
key: value, |
|
|
|
keyId: 'deptno', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data['deptname']); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '专业', name: 'MajorNo', width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('custmerData', { |
|
|
|
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdMajorInfo', |
|
|
|
key: value, |
|
|
|
keyId: 'majorno', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data['majorname']); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '班级', name: 'ClassNo', width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('custmerData', { |
|
|
|
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'bjsj', |
|
|
|
key: value, |
|
|
|
keyId: 'classno', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data['classname']); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '性别', name: 'GenderNo', width: 80, 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: 'IdentityCardNo', width: 150, align: "left" }, |
|
|
|
{ |
|
|
|
label: '民族', name: 'NationalityNo', width: 80, align: "left", formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('custmerData', { |
|
|
|
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdNationality', |
|
|
|
key: value, |
|
|
|
keyId: 'nationalityno', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data['nationality']); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '考生类别', name: 'FamilyOriginNo', width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('dataItem', { |
|
|
|
key: value, |
|
|
|
code: 'ExamineeCategory', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data.text); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '考生类型', name: 'TestStuSortNo', width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('dataItem', { |
|
|
|
key: value, |
|
|
|
code: 'ExamineeType', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data.text); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '科类', name: 'TestStuSubjectNo', width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('dataItem', { |
|
|
|
key: value, |
|
|
|
code: 'SubjectType', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data.text); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ label: '高考总分', name: 'HighAmountScore', width: 100, align: "left" }, |
|
|
|
{ label: '第几志愿', name: 'WillNo', width: 80, align: "left" }, |
|
|
|
{ |
|
|
|
label: '录取专业', name: 'RecruitMajorNo', width: 100, align: "left", |
|
|
|
formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('custmerData', { |
|
|
|
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdMajorInfo', |
|
|
|
key: value, |
|
|
|
keyId: 'majorno', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data['majorname']); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '录取方式', name: 'MatriculateSort', width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('dataItem', { |
|
|
|
key: value, |
|
|
|
code: 'EnrollStyle', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data.text); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ label: '语文', name: 'ChineseScore', width: 100, align: "left" }, |
|
|
|
{ label: '数学', name: 'MathScore', width: 100, align: "left" }, |
|
|
|
{ label: '英语', name: 'ForeignLangScore', width: 100, align: "left" }, |
|
|
|
{ label: '综合', name: 'ComprehensiveScore', width: 100, align: "left" }, |
|
|
|
], |
|
|
|
mainId: 'ID', |
|
|
|
isPage: true, |
|
|
|
sidx: 'StuNo', |
|
|
|
sord: 'desc' |
|
|
|
}); |
|
|
|
page.search(); |
|
|
|
}, |
|
|
|
search: function (param) { |
|
|
|
param = param || {}; |
|
|
|
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); |
|
|
|
} |
|
|
|
}; |
|
|
|
refreshGirdData = function () { |
|
|
|
page.search(); |
|
|
|
}; |
|
|
|
page.init(); |
|
|
|
} |