|
- 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);
- }, 290, 400);
- $('#DeptNo').lrDataSourceSelect({
- code: 'CdDeptInfo', value: 'deptno', text: 'deptname', select: function (val) {
- var deptno = "";
- if (val) {
- deptno = val.deptno;
- }
- $('#MajorNo').lrselectRefresh({
- url: top.$.rootUrl + '/EducationalAdministration/CdMajor/GetListByDeptNo?DeptNo=' + deptno,
- text: "MajorName",
- value: "MajorNo"
- })
- }
- });
- $('#MajorNo').lrDataSourceSelect({
- code: 'CdMajorInfo', value: 'majorno', text: 'majorname', select:
- function (val) {
- var majorNo = '';
- if (val) {
- majorNo = val.MajorNo;
- }
- var nj = $('#Grade').val();
- $('#ClassNo').lrselectRefresh({
- url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + majorNo + '&nj=' + nj,
- text: "ClassName",
- value: "ClassNo"
- })
- }
- });
- //$('#ClassNo').lrDataSourceSelect({ code: 'allbjqj', value: 'classno', text: 'classname' });
- $('#ClassNo').lrselect({
- allowSearch: true,
- url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=allbjqj',
- param: { strWhere: "1=1 AND (CheckMark=1 or (CheckMark != 1 and ClassStatus='1')) order by classname asc" },
- value: "classno",
- text: "classname"
- });
- $('#FinishSchoolMark').lrselect({
- data: [{ text: "已毕业", value: "2" }, { text: "准许毕业", value: "1" }, { text: "待准许", value: "0" }],
- text: "text",
- value: "value"
- })
- // 刷新
- $('#lr_refresh').on('click', function () {
- location.reload();
- });
-
- //审核
- $('#lr_check').on('click', function () {
- var keyValue = $('#gridtable').jfGridValue('StuId');
- var FinishSchoolMark = $('#gridtable').jfGridValue('FinishSchoolMark');
- if (learun.checkrow(keyValue)) {
- if (FinishSchoolMark.indexOf('2') != -1) {
- return learun.alert.warning("选中项包括已通过审核数据,无法操作!");
- }
- learun.layerConfirm('是否确认审核该毕业流程!', function (res) {
- if (res) {
- learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/StuGraduateCheck', { keyValue: keyValue }, function () {
- refreshGirdData();
- });
- }
- });
- }
- })
-
- },
- // 初始化列表
- initGird: function () {
- $('#gridtable').jfGrid({
- url: top.$.rootUrl + '/EducationalAdministration/StuInfoGraduate/GetPageList',
- headData: [
- {
- label: '毕业流程审核', name: 'FinishSchoolMark', width: 100, align: "left", formatter: function (cellvalue) {
- return cellvalue == "2" ? "<span class=\"label label-success\">已通过</span>" : "<span class=\"label label-danger\">未通过</span>";
- }
- },
- { label: "学号", name: "StuNo", width: 130, align: "left" },
- { label: "姓名", name: "StuName", width: 100, align: "left" },
- {
- label: "性别", name: "GenderNo", width: 50, align: "left",
- formatter: function (cellvalue) {
- return cellvalue == true ? "男" : "女";
- }
- },
- {
- 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=' + 'allbjqj',
- key: value,
- keyId: 'classno',
- callback: function (_data) {
- callback(_data['classname']);
- }
- });
- }
- },
- { label: "年级", name: "Grade", width: 50, align: "left" },
- {
- label: "学制", name: "EduSystem", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) {
- learun.clientdata.getAsync('dataItem', {
- key: value,
- code: 'EduSystem',
- callback: function (_data) {
- callback(_data.text);
- }
- });
- }
- },
- { label: "毕业证书号", name: "DiplomaNo", width: 130, align: "left" },
- {
- label: '毕业状态', name: 'FinishSchoolMark', width: 100, align: "left", formatter: function (val) {
- if (val == '0') {
- return '待准许';
- } else if (val == "1") {
- return '准许毕业';
- } else if (val == '2') {
- return '已毕业';
- } else {
- return '待准许';
- }
- }
- },
- { label: "毕业时间", name: "FinishSchoolDate", width: 130, align: "left" },
- {
- label: "图书资料归还状态", name: "ReturnBooksStatus", width: 120, align: "left", formatter: function (cellvalue) {
- return cellvalue == "1" ? "已归还" : "未归还"
- }
- },
- { label: "图书资料归还时间", name: "ReturnBooksDate", width: 130, align: "left" },
- {
- label: "就业协议备案状态", name: "EmployAgreeStatus", width: 120, align: "left", formatter: function (cellvalue) {
- return cellvalue == "1" ? "已备案" : "未备案"
- }
- },
- { label: "就业协议备案时间", name: "EmployAgreeDate", width: 130, align: "left" },
- {
- label: "学杂费结算状态", name: "FeeSettleStatus", width: 100, align: "left", formatter: function (cellvalue) {
- return cellvalue == "1" ? "已结算" : "未结算"
- }
- },
- { label: "学杂费结算时间", name: "FeeSettleDate", width: 130, align: "left" },
- {
- label: "办理退住手续状态", name: "CheckOutStatus", width: 120, align: "left", formatter: function (cellvalue) {
- return cellvalue == "1" ? "已办理" : "未办理"
- }
- },
- { label: "办理退住手续时间", name: "CheckOutDate", width: 130, align: "left" },
- {
- label: "校园卡注销状态", name: "CardDeregistrateStatus", width: 100, align: "left", formatter: function (cellvalue) {
- return cellvalue == "1" ? "已注销" : "未注销"
- }
- },
- { label: "校园卡注销时间", name: "CardDeregistrateDate", width: 130, align: "left" },
- //{
- // label: "毕业证领取状态", name: "DiplomaReceiveStatus", width: 100, align: "left", formatter: function (cellvalue) {
- // return cellvalue == "1" ? "已领取" : "未领取"
- // }
- //},
- //{ label: "毕业证领取时间", name: "DiplomaReceiveDate", width: 130, align: "left" },
- {
- label: "档案转出状态", name: "FileTransferStatus", width: 100, align: "left",
- formatter: function (cellvalue) {
- return cellvalue == "1" ? "已转出" : "未转出"
- }
- },
- { label: "档案转出时间", name: "FileTransferDate", width: 130, align: "left" },
- {
- label: "组织关系转出状态", name: "TissueStatus", width: 110, align: "left",
- formatter: function (cellvalue) {
- return cellvalue == "1" ? "已转出" : "未转出"
- }
- },
- { label: "组织关系转出时间", name: "TissueDate", width: 130, align: "left" }
- ],
- mainId: 'StuId',
- isPage: true,
- isMultiselect: true,
- rows: 100,
- sidx: 'FinishSchoolMark,StuNo',
- sord:'asc'
- });
- page.search();
- },
- search: function (param) {
- param = param || {};
- $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
- }
- };
- refreshGirdData = function () {
- page.search();
- };
- page.init();
- }
|