|
- /* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
- * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
- * 创建人:超级管理员
- * 日 期:2023-01-04 15:03
- * 描 述:学籍异动列表
- */
- var selectedRow;
- var refreshGirdData;
- var bootstrap = function ($, learun) {
- "use strict";
- var startTime;
- var endTime;
- var page = {
- init: function () {
- page.initGird();
- page.bind();
- },
- bind: function () {
- // 时间搜索框
- $('#datesearch').lrdate({
- dfdata: [
- { name: '今天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00') }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } },
- { name: '近7天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'd', -6) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } },
- { name: '近1个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -1) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } },
- { name: '近3个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -3) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }
- ],
- // 月
- mShow: false,
- premShow: false,
- // 季度
- jShow: false,
- prejShow: false,
- // 年
- ysShow: false,
- yxShow: false,
- preyShow: false,
- yShow: false,
- // 默认
- dfvalue: '2',
- selectfn: function (begin, end) {
- startTime = begin;
- endTime = end;
- page.search();
- }
- });
- // 跳转
- //var modulesTree = learun.clientdata.get(['modulesTree']);
- $('#changeMajor').on('click', function () {
- //let item = modulesTree[0].filter(item => {
- // return item.F_FullName == "教务信息管理"
- //})
- //let modules = modulesTree[item[0].F_ModuleId].filter(item => {
- // return item.F_EnCode == "Transfermenu" //学籍异动菜单
- //})
- //let moduleitem = modulesTree[modules[0].F_ModuleId].filter(item => {
- // return item.F_EnCode == "MajorIndex"// "转专业"
- //})
- var SetkeyValue = 'c94221e8-9ad3-4af8-8976-c08067532902';
- $.lrSetForm(top.$.rootUrl + '/LR_SystemModule/Module/GetFormData?keyValue=' + SetkeyValue, function (data) {
- if (data.moduleEntity != null) {
- learun.frameTab.open(data.moduleEntity);
- }
- });
- //learun.frameTab.open(moduleitem[0]);
- })
- $('#changeRestAgain').on('click', function () {
- var SetkeyValue = '36df4209-152b-4842-97e0-6057a40fe903';
- $.lrSetForm(top.$.rootUrl + '/LR_SystemModule/Module/GetFormData?keyValue=' + SetkeyValue, function (data) {
- if (data.moduleEntity != null) {
- learun.frameTab.open(data.moduleEntity); // "休学复学"
- }
- });
- //let item = modulesTree[0].filter(item => {
- // return item.F_FullName == "教务信息管理"
- //})
- //let modules = modulesTree[item[0].F_ModuleId].filter(item => {
- // return item.F_EnCode == "Transfermenu" //学籍异动菜单
- //})
- //let moduleitem = modulesTree[modules[0].F_ModuleId].filter(item => {
- // return item.F_EnCode == "RestAgain"// "休学复学"
- //})
- //learun.frameTab.open(moduleitem[0]);
- })
- $('#changeDrop').on('click', function () {
- var SetkeyValue = 'a418147e-7768-44c2-ae5f-05bc4de6af2b';
- $.lrSetForm(top.$.rootUrl + '/LR_SystemModule/Module/GetFormData?keyValue=' + SetkeyValue, function (data) {
- if (data.moduleEntity != null) {
- learun.frameTab.open(data.moduleEntity); // "退学异动"
- }
- });
- //let item = modulesTree[0].filter(item => {
- // return item.F_FullName == "教务信息管理"
- //})
- //let modules = modulesTree[item[0].F_ModuleId].filter(item => {
- // return item.F_EnCode == "Transfermenu" //学籍异动菜单
- //})
- //let moduleitem = modulesTree[modules[0].F_ModuleId].filter(item => {
- // return item.F_EnCode == "DropOut"// "退学异动"
- //})
- //learun.frameTab.open(moduleitem[0]);
- })
- $('#changeIndexAnd').on('click', function () {
- var SetkeyValue = 'e3c24747-9b2f-4645-8392-1e0f1b37340d';
- $.lrSetForm(top.$.rootUrl + '/LR_SystemModule/Module/GetFormData?keyValue=' + SetkeyValue, function (data) {
- if (data.moduleEntity != null) {
- learun.frameTab.open(data.moduleEntity); //"转入转出异动"
- }
- });
- //let item = modulesTree[0].filter(item => {
- // return item.F_FullName == "教务信息管理"
- //})
- //let modules = modulesTree[item[0].F_ModuleId].filter(item => {
- // return item.F_EnCode == "Transfermenu" //学籍异动菜单
- //})
- //let moduleitem = modulesTree[modules[0].F_ModuleId].filter(item => {
- // return item.F_EnCode == "InAndOut" //"转入转出异动"
- //})
- //learun.frameTab.open(moduleitem[0]);
- })
- $('#changeCheck').on('click', function () {
- var SetkeyValue = '5d40d91e-833c-4511-96e6-4a91afaabc9f';
- $.lrSetForm(top.$.rootUrl + '/LR_SystemModule/Module/GetFormData?keyValue=' + SetkeyValue, function (data) {
- if (data.moduleEntity != null) {
- learun.frameTab.open(data.moduleEntity); //"学籍异动审核"
- }
- });
- //let item = modulesTree[0].filter(item => {
- // return item.F_FullName == "教务信息管理"
- //})
- //let modules = modulesTree[item[0].F_ModuleId].filter(item => {
- // return item.F_EnCode == "Transfermenu" //学籍异动菜单
- //})
- //let moduleitem = modulesTree[modules[0].F_ModuleId].filter(item => {
- // return item.F_EnCode == "CheckIndex" //"学籍异动审核"
- //})
- //learun.frameTab.open(moduleitem[0]);
- })
-
-
-
-
-
-
- // 查询
- $('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
- page.search(queryJson);
- }, 350, 400);
- $('#AnomalousType').lrDataItemSelect({ code: 'StuChangeType' });
- $('#ClassNo').lrselect({
- allowSearch: true,
- url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj',
- param: { strWhere: "1=1 AND CheckMark=1 order by classno desc" },
- value: "classno",
- text: "classname"
- });
- $('#CheckUserId').lrDataSourceSelect({ code: 'teacheruserdata', value: 'f_encode', text: 'f_realname' });
- $('#CreateUserId').lrDataSourceSelect({ code: 'teacheruserdata', value: 'f_encode', text: 'f_realname' });
- $('#StuStatus').lrDataItemSelect({ code: 'YesOrNoInt' });
- // 刷新
- $('#lr_refresh').on('click', function () {
- location.reload();
- });
- //// 查看
- //$('#lr_view').on('click', function () {
- // var keyValue = $('#gridtable').jfGridValue('ID');
- // if (learun.checkrow(keyValue)) {
- // if (keyValue.indexOf(',') != -1) {
- // learun.alert.warning("只能选择一条记录进行查看!");
- // return;
- // }
- // learun.layerForm({
- // id: 'formview',
- // title: '查看',
- // url: top.$.rootUrl + '/EducationalAdministration/StuTransferInfo/FormView?keyValue=' + keyValue,
- // width: 1000,
- // height: 600,
- // btn: null
- // });
- // }
- //});
- // 综合查询
- $('#lr_compoundQuery').on('click', function () {
- var keyValue = $('#gridtable').jfGridValue('ID');
- var StuNo = $('#gridtable').jfGridValue('StuNo');
- if (learun.checkrow(keyValue)) {
- if (keyValue.indexOf(',') != -1) {
- learun.alert.warning("只能选择一条记录进行查看!");
- return;
- }
- learun.layerForm({
- id: 'QueryBasicInfo',
- title: '综合查询',
- url: top.$.rootUrl + '/EducationalAdministration/StuTransferInfo/QueryBasicInfo?keyValue=' + keyValue + '&StuNo=' + StuNo,
- width: 1200,
- height: 800,
- btn: null
- });
- }
- });
- },
- initGird: function () {
- $('#gridtable').lrAuthorizeJfGrid({
- url: top.$.rootUrl + '/EducationalAdministration/StuTransferInfo/GetPageList',
- headData: [
- { label: '姓名', name: 'StuName', width: 100, align: "left" },
- { label: '学号', name: 'StuNo', width: 160, align: "left" },
- {
- label: "性别", name: "Gender", width: 80, align: "left",
- formatter: function (cellvalue) {
- return cellvalue == true ? "男" : "女";
- }
- },
- { label: '身份证号', name: 'IdentityCardNo', width: 200, align: "left" },
- {
- label: '原班级', name: 'ClassNo', width: 150, 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: 'MajorNo', width: 150, 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: '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: 'Grade', width: 60, align: "left" },
- {
- label: '原学制', name: 'EduSystem', width: 80, 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: 'LeaveDate', width: 100, align: "left",
- // formatter: function (cellvalue) {
- // return learun.formatDate(cellvalue, 'yyyy-MM-dd');
- // }
- //},
- //{
- // label: '离班日期', name: 'EnteDate', width: 100, align: "left",
- // formatter: function (cellvalue) {
- // return learun.formatDate(cellvalue, 'yyyy-MM-dd');
- // }
- //},
- {
- label: '现班级', name: 'NewClassNo', 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: 'NewMajorNo', 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: 'NewDeptNo', 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: 'NewGrade', width: 60, align: "left" },
- //{
- // label: '创建时间', name: 'CreateTime', width: 100, align: "left",
- // formatter: function (cellvalue) {
- // return learun.formatDate(cellvalue, 'yyyy-MM-dd');
- // }
- //},
- {
- label: '申请人', name: 'CreateUserId', width: 140, align: "left",
- formatterAsync: function (callback, value, row, op, $cell) {
- learun.clientdata.getAsync('custmerData', {
- url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BaseUser',
- key: value,
- keyId: 'f_userid',
- callback: function (_data) {
- callback(_data['f_realname']);
- }
- });
- }
- },
- {
- label: '审核时间', name: 'CheckTime', width: 150, align: "left",
- formatter: function (cellvalue) {
- return learun.formatDate(cellvalue, 'yyyy-MM-dd');
- }
- },
- {
- label: '审核用户', name: 'CheckUserId', width: 100, align: "left",
- formatterAsync: function (callback, value, row, op, $cell) {
- learun.clientdata.getAsync('custmerData', {
- url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BaseUser',
- key: value,
- keyId: 'f_userid',
- callback: function (_data) {
- callback(_data['f_realname']);
- }
- });
- }
- },
- {
- label: '审核状态', name: 'F_EnabledMark', width: 100, align: "left",
- formatter: function (cellvalue) {
- return cellvalue == "1" ? "<span class=\"label label-success\">已生效</span>" : "<span class=\"label label-danger\">未生效</span>";
- }
- },
- {
- label: '异动类型', name: 'AnomalousType', width: 100, align: "left",
- formatterAsync: function (callback, value, row, op, $cell) {
- learun.clientdata.getAsync('dataItem', {
- key: value,
- code: 'StuChangeType',
- callback: function (_data) {
- callback(_data.text);
- }
- });
- }
- },
- //{ label: '异动原因', name: 'ChangeReason', width: 300, align: "left" },
- //{
- // label: '是否保留学籍', name: 'StuStatus', width: 80, align: "left",
- // formatterAsync: function (callback, value, row, op, $cell) {
- // learun.clientdata.getAsync('dataItem', {
- // key: value,
- // code: 'YesOrNoInt',
- // callback: function (_data) {
- // callback(_data.text);
- // }
- // });
- // }
- //},
- //{
- // label: '是否注销账号', name: 'F_WriteMark', width: 80, align: "left",
- // formatterAsync: function (callback, value, row, op, $cell) {
- // learun.clientdata.getAsync('dataItem', {
- // key: value,
- // code: 'YesOrNoInt',
- // callback: function (_data) {
- // callback(_data.text);
- // }
- // });
- // }
- //},
- //{
- // label: '是否恢复学籍', name: 'RecoverStuStatus', width: 80, align: "left",
- // formatterAsync: function (callback, value, row, op, $cell) {
- // learun.clientdata.getAsync('dataItem', {
- // key: value,
- // code: 'YesOrNoInt',
- // callback: function (_data) {
- // callback(_data.text);
- // }
- // });
- // }
- //},
- //{
- // label: '是否恢复账号', name: 'RecoverWriteMark', width: 80, align: "left",
- // formatterAsync: function (callback, value, row, op, $cell) {
- // learun.clientdata.getAsync('dataItem', {
- // key: value,
- // code: 'YesOrNoInt',
- // callback: function (_data) {
- // callback(_data.text);
- // }
- // });
- // }
- //},
- //{ label: '修学年限', name: 'SuspensionPeriod', width: 200, align: "left" },
- //{
- // label: '休学开始时间', name: 'SuspensionBeginTime', width: 100, align: "left",
- // formatter: function (cellvalue) {
- // return learun.formatDate(cellvalue, 'yyyy-MM-dd');
- // }
- //},
- //{
- // label: '休学结束时间', name: 'SuspensionEndTime', width: 100, align: "left",
- // formatter: function (cellvalue) {
- // return learun.formatDate(cellvalue, 'yyyy-MM-dd');
- // }
- //},
- //{ label: '转学前学校', name: 'TransferSchool', width: 150, align: "left" },
- //{ label: '转学前学号', name: 'TransferStuNo', width: 100, align: "left" },
- //{
- // label: '出身日期', name: 'Birthday', width: 100, align: "left",
- // formatter: function (cellvalue) {
- // return learun.formatDate(cellvalue, 'yyyy-MM-dd');
- // }
- //},
- //{ label: '民族', name: 'NationalityNo', width: 80, align: "left" },
- //{ label: '省', name: 'Province', width: 100, align: "left" },
- //{ label: '市', name: 'City', width: 100, align: "left" },
- //{ label: '县/区', name: 'County', width: 100, align: "left" },
- //{ label: '联系电话', name: 'Mobile', width: 100, align: "left" },
- //{ label: '家庭地址', name: 'MailAddress', width: 200, align: "left" },
- //{ label: '转出学校', name: 'OutSchool', width: 100, align: "left" },
- { label: '备注', name: 'Remark', width: 300, align: "left" },
- ],
- mainId: 'ID',
- isPage: true,
- rows: 100,
- sidx:'CheckTime desc'
- });
- page.search();
- },
- search: function (param) {
- param = param || {};
- param.StartTime = startTime;
- param.EndTime = endTime;
- param.SqlParameter = ' and F_EnabledMark = 1 ';
- $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
- }
- };
- refreshGirdData = function () {
- $('#gridtable').jfGridSet('reload');
- };
- page.init();
- }
|