You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

442 lines
22 KiB

  1. /* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
  2. * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
  3. * 创建人:超级管理员
  4. * 日 期:2023-01-04 15:03
  5. * 描 述:学籍异动列表
  6. */
  7. var selectedRow;
  8. var refreshGirdData;
  9. var bootstrap = function ($, learun) {
  10. "use strict";
  11. var page = {
  12. init: function () {
  13. page.initGird();
  14. page.bind();
  15. },
  16. bind: function () {
  17. // 跳转
  18. //var modulesTree = learun.clientdata.get(['modulesTree']);
  19. $('#changeMajor').on('click', function () {
  20. //let item = modulesTree[0].filter(item => {
  21. // return item.F_FullName == "教务信息管理"
  22. //})
  23. //let modules = modulesTree[item[0].F_ModuleId].filter(item => {
  24. // return item.F_EnCode == "Transfermenu" //学籍异动菜单
  25. //})
  26. //let moduleitem = modulesTree[modules[0].F_ModuleId].filter(item => {
  27. // return item.F_EnCode == "MajorIndex"// "转专业"
  28. //})
  29. var SetkeyValue = 'c94221e8-9ad3-4af8-8976-c08067532902';
  30. $.lrSetForm(top.$.rootUrl + '/LR_SystemModule/Module/GetFormData?keyValue=' + SetkeyValue, function (data) {
  31. if (data.moduleEntity != null) {
  32. learun.frameTab.open(data.moduleEntity);
  33. }
  34. });
  35. //learun.frameTab.open(moduleitem[0]);
  36. })
  37. $('#changeRestAgain').on('click', function () {
  38. var SetkeyValue = '36df4209-152b-4842-97e0-6057a40fe903';
  39. $.lrSetForm(top.$.rootUrl + '/LR_SystemModule/Module/GetFormData?keyValue=' + SetkeyValue, function (data) {
  40. if (data.moduleEntity != null) {
  41. learun.frameTab.open(data.moduleEntity); // "休学复学"
  42. }
  43. });
  44. //let item = modulesTree[0].filter(item => {
  45. // return item.F_FullName == "教务信息管理"
  46. //})
  47. //let modules = modulesTree[item[0].F_ModuleId].filter(item => {
  48. // return item.F_EnCode == "Transfermenu" //学籍异动菜单
  49. //})
  50. //let moduleitem = modulesTree[modules[0].F_ModuleId].filter(item => {
  51. // return item.F_EnCode == "RestAgain"// "休学复学"
  52. //})
  53. //learun.frameTab.open(moduleitem[0]);
  54. })
  55. $('#changeDrop').on('click', function () {
  56. var SetkeyValue = 'a418147e-7768-44c2-ae5f-05bc4de6af2b';
  57. $.lrSetForm(top.$.rootUrl + '/LR_SystemModule/Module/GetFormData?keyValue=' + SetkeyValue, function (data) {
  58. if (data.moduleEntity != null) {
  59. learun.frameTab.open(data.moduleEntity); // "退学异动"
  60. }
  61. });
  62. //let item = modulesTree[0].filter(item => {
  63. // return item.F_FullName == "教务信息管理"
  64. //})
  65. //let modules = modulesTree[item[0].F_ModuleId].filter(item => {
  66. // return item.F_EnCode == "Transfermenu" //学籍异动菜单
  67. //})
  68. //let moduleitem = modulesTree[modules[0].F_ModuleId].filter(item => {
  69. // return item.F_EnCode == "DropOut"// "退学异动"
  70. //})
  71. //learun.frameTab.open(moduleitem[0]);
  72. })
  73. $('#changeIndexAnd').on('click', function () {
  74. var SetkeyValue = 'e3c24747-9b2f-4645-8392-1e0f1b37340d';
  75. $.lrSetForm(top.$.rootUrl + '/LR_SystemModule/Module/GetFormData?keyValue=' + SetkeyValue, function (data) {
  76. if (data.moduleEntity != null) {
  77. learun.frameTab.open(data.moduleEntity); //"转入转出异动"
  78. }
  79. });
  80. //let item = modulesTree[0].filter(item => {
  81. // return item.F_FullName == "教务信息管理"
  82. //})
  83. //let modules = modulesTree[item[0].F_ModuleId].filter(item => {
  84. // return item.F_EnCode == "Transfermenu" //学籍异动菜单
  85. //})
  86. //let moduleitem = modulesTree[modules[0].F_ModuleId].filter(item => {
  87. // return item.F_EnCode == "InAndOut" //"转入转出异动"
  88. //})
  89. //learun.frameTab.open(moduleitem[0]);
  90. })
  91. $('#changeCheck').on('click', function () {
  92. var SetkeyValue = '5d40d91e-833c-4511-96e6-4a91afaabc9f';
  93. $.lrSetForm(top.$.rootUrl + '/LR_SystemModule/Module/GetFormData?keyValue=' + SetkeyValue, function (data) {
  94. if (data.moduleEntity != null) {
  95. learun.frameTab.open(data.moduleEntity); //"学籍异动审核"
  96. }
  97. });
  98. //let item = modulesTree[0].filter(item => {
  99. // return item.F_FullName == "教务信息管理"
  100. //})
  101. //let modules = modulesTree[item[0].F_ModuleId].filter(item => {
  102. // return item.F_EnCode == "Transfermenu" //学籍异动菜单
  103. //})
  104. //let moduleitem = modulesTree[modules[0].F_ModuleId].filter(item => {
  105. // return item.F_EnCode == "CheckIndex" //"学籍异动审核"
  106. //})
  107. //learun.frameTab.open(moduleitem[0]);
  108. })
  109. // 查询
  110. $('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
  111. page.search(queryJson);
  112. }, 290, 400);
  113. $('#AnomalousType').lrDataItemSelect({ code: 'StuChangeType' });
  114. $('#ClassNo').lrselect({
  115. allowSearch: true,
  116. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj',
  117. param: { strWhere: "1=1 AND CheckMark=1 order by classno desc" },
  118. value: "classno",
  119. text: "classname"
  120. });
  121. $('#CheckUserId').lrDataSourceSelect({ code: 'teacheruserdata', value: 'f_encode', text: 'f_realname' });
  122. $('#CreateUserId').lrDataSourceSelect({ code: 'teacheruserdata', value: 'f_encode', text: 'f_realname' });
  123. $('#StuStatus').lrDataItemSelect({ code: 'YesOrNoInt' });
  124. // 刷新
  125. $('#lr_refresh').on('click', function () {
  126. location.reload();
  127. });
  128. //// 查看
  129. //$('#lr_view').on('click', function () {
  130. // var keyValue = $('#gridtable').jfGridValue('ID');
  131. // if (learun.checkrow(keyValue)) {
  132. // if (keyValue.indexOf(',') != -1) {
  133. // learun.alert.warning("只能选择一条记录进行查看!");
  134. // return;
  135. // }
  136. // learun.layerForm({
  137. // id: 'formview',
  138. // title: '查看',
  139. // url: top.$.rootUrl + '/EducationalAdministration/StuTransferInfo/FormView?keyValue=' + keyValue,
  140. // width: 1000,
  141. // height: 600,
  142. // btn: null
  143. // });
  144. // }
  145. //});
  146. // 综合查询
  147. $('#lr_compoundQuery').on('click', function () {
  148. var keyValue = $('#gridtable').jfGridValue('ID');
  149. var StuNo = $('#gridtable').jfGridValue('StuNo');
  150. if (learun.checkrow(keyValue)) {
  151. if (keyValue.indexOf(',') != -1) {
  152. learun.alert.warning("只能选择一条记录进行查看!");
  153. return;
  154. }
  155. learun.layerForm({
  156. id: 'QueryBasicInfo',
  157. title: '综合查询',
  158. url: top.$.rootUrl + '/EducationalAdministration/StuTransferInfo/QueryBasicInfo?keyValue=' + keyValue + '&StuNo=' + StuNo,
  159. width: 1200,
  160. height: 800,
  161. btn: null
  162. });
  163. }
  164. });
  165. },
  166. initGird: function () {
  167. $('#gridtable').lrAuthorizeJfGrid({
  168. url: top.$.rootUrl + '/EducationalAdministration/StuTransferInfo/GetPageList',
  169. headData: [
  170. { label: '姓名', name: 'StuName', width: 100, align: "left" },
  171. { label: '学号', name: 'StuNo', width: 160, align: "left" },
  172. {
  173. label: "性别", name: "Gender", width: 80, align: "left",
  174. formatter: function (cellvalue) {
  175. return cellvalue == true ? "男" : "女";
  176. }
  177. },
  178. { label: '身份证号', name: 'IdentityCardNo', width: 200, align: "left" },
  179. {
  180. label: '原班级', name: 'ClassNo', width: 150, align: "left",
  181. formatterAsync: function (callback, value, row, op, $cell) {
  182. learun.clientdata.getAsync('custmerData', {
  183. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'bjsj',
  184. key: value,
  185. keyId: 'classno',
  186. callback: function (_data) {
  187. callback(_data['classname']);
  188. }
  189. });
  190. }
  191. },
  192. {
  193. label: '原专业', name: 'MajorNo', width: 150, align: "left",
  194. formatterAsync: function (callback, value, row, op, $cell) {
  195. learun.clientdata.getAsync('custmerData', {
  196. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdMajorInfo',
  197. key: value,
  198. keyId: 'majorno',
  199. callback: function (_data) {
  200. callback(_data['majorname']);
  201. }
  202. });
  203. }
  204. },
  205. {
  206. label: '原系部', name: 'DeptNo', width: 100, align: "left",
  207. formatterAsync: function (callback, value, row, op, $cell) {
  208. learun.clientdata.getAsync('custmerData', {
  209. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdDeptInfo',
  210. key: value,
  211. keyId: 'deptno',
  212. callback: function (_data) {
  213. callback(_data['deptname']);
  214. }
  215. });
  216. }
  217. },
  218. { label: '原年级', name: 'Grade', width: 60, align: "left" },
  219. {
  220. label: '原学制', name: 'EduSystem', width: 80, align: "left",
  221. formatterAsync: function (callback, value, row, op, $cell) {
  222. learun.clientdata.getAsync('dataItem', {
  223. key: value,
  224. code: 'EduSystem',
  225. callback: function (_data) {
  226. callback(_data.text);
  227. }
  228. });
  229. }
  230. },
  231. //{
  232. // label: '入班日期', name: 'LeaveDate', width: 100, align: "left",
  233. // formatter: function (cellvalue) {
  234. // return learun.formatDate(cellvalue, 'yyyy-MM-dd');
  235. // }
  236. //},
  237. //{
  238. // label: '离班日期', name: 'EnteDate', width: 100, align: "left",
  239. // formatter: function (cellvalue) {
  240. // return learun.formatDate(cellvalue, 'yyyy-MM-dd');
  241. // }
  242. //},
  243. {
  244. label: '现班级', name: 'NewClassNo', width: 100, align: "left",
  245. formatterAsync: function (callback, value, row, op, $cell) {
  246. learun.clientdata.getAsync('custmerData', {
  247. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'bjsj',
  248. key: value,
  249. keyId: 'classno',
  250. callback: function (_data) {
  251. callback(_data['classname']);
  252. }
  253. });
  254. }
  255. },
  256. {
  257. label: '现专业', name: 'NewMajorNo', width: 100, align: "left",
  258. formatterAsync: function (callback, value, row, op, $cell) {
  259. learun.clientdata.getAsync('custmerData', {
  260. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdMajorInfo',
  261. key: value,
  262. keyId: 'majorno',
  263. callback: function (_data) {
  264. callback(_data['majorname']);
  265. }
  266. });
  267. }
  268. },
  269. {
  270. label: '现系部', name: 'NewDeptNo', width: 100, align: "left",
  271. formatterAsync: function (callback, value, row, op, $cell) {
  272. learun.clientdata.getAsync('custmerData', {
  273. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdDeptInfo',
  274. key: value,
  275. keyId: 'deptno',
  276. callback: function (_data) {
  277. callback(_data['deptname']);
  278. }
  279. });
  280. }
  281. },
  282. { label: '现年级', name: 'NewGrade', width: 60, align: "left" },
  283. //{
  284. // label: '创建时间', name: 'CreateTime', width: 100, align: "left",
  285. // formatter: function (cellvalue) {
  286. // return learun.formatDate(cellvalue, 'yyyy-MM-dd');
  287. // }
  288. //},
  289. {
  290. label: '申请人', name: 'CreateUserId', width: 140, align: "left",
  291. formatterAsync: function (callback, value, row, op, $cell) {
  292. learun.clientdata.getAsync('custmerData', {
  293. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BaseUser',
  294. key: value,
  295. keyId: 'f_userid',
  296. callback: function (_data) {
  297. callback(_data['f_realname']);
  298. }
  299. });
  300. }
  301. },
  302. {
  303. label: '审核时间', name: 'CheckTime', width: 150, align: "left",
  304. formatter: function (cellvalue) {
  305. return learun.formatDate(cellvalue, 'yyyy-MM-dd');
  306. }
  307. },
  308. {
  309. label: '审核用户', name: 'CheckUserId', width: 100, align: "left",
  310. formatterAsync: function (callback, value, row, op, $cell) {
  311. learun.clientdata.getAsync('custmerData', {
  312. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BaseUser',
  313. key: value,
  314. keyId: 'f_userid',
  315. callback: function (_data) {
  316. callback(_data['f_realname']);
  317. }
  318. });
  319. }
  320. },
  321. {
  322. label: '审核状态', name: 'F_EnabledMark', width: 100, align: "left",
  323. formatter: function (cellvalue) {
  324. return cellvalue == "1" ? "<span class=\"label label-success\">已生效</span>" : "<span class=\"label label-danger\">未生效</span>";
  325. }
  326. },
  327. {
  328. label: '异动类型', name: 'AnomalousType', width: 100, align: "left",
  329. formatterAsync: function (callback, value, row, op, $cell) {
  330. learun.clientdata.getAsync('dataItem', {
  331. key: value,
  332. code: 'StuChangeType',
  333. callback: function (_data) {
  334. callback(_data.text);
  335. }
  336. });
  337. }
  338. },
  339. //{ label: '异动原因', name: 'ChangeReason', width: 300, align: "left" },
  340. //{
  341. // label: '是否保留学籍', name: 'StuStatus', width: 80, align: "left",
  342. // formatterAsync: function (callback, value, row, op, $cell) {
  343. // learun.clientdata.getAsync('dataItem', {
  344. // key: value,
  345. // code: 'YesOrNoInt',
  346. // callback: function (_data) {
  347. // callback(_data.text);
  348. // }
  349. // });
  350. // }
  351. //},
  352. //{
  353. // label: '是否注销账号', name: 'F_WriteMark', width: 80, align: "left",
  354. // formatterAsync: function (callback, value, row, op, $cell) {
  355. // learun.clientdata.getAsync('dataItem', {
  356. // key: value,
  357. // code: 'YesOrNoInt',
  358. // callback: function (_data) {
  359. // callback(_data.text);
  360. // }
  361. // });
  362. // }
  363. //},
  364. //{
  365. // label: '是否恢复学籍', name: 'RecoverStuStatus', width: 80, align: "left",
  366. // formatterAsync: function (callback, value, row, op, $cell) {
  367. // learun.clientdata.getAsync('dataItem', {
  368. // key: value,
  369. // code: 'YesOrNoInt',
  370. // callback: function (_data) {
  371. // callback(_data.text);
  372. // }
  373. // });
  374. // }
  375. //},
  376. //{
  377. // label: '是否恢复账号', name: 'RecoverWriteMark', width: 80, align: "left",
  378. // formatterAsync: function (callback, value, row, op, $cell) {
  379. // learun.clientdata.getAsync('dataItem', {
  380. // key: value,
  381. // code: 'YesOrNoInt',
  382. // callback: function (_data) {
  383. // callback(_data.text);
  384. // }
  385. // });
  386. // }
  387. //},
  388. //{ label: '修学年限', name: 'SuspensionPeriod', width: 200, align: "left" },
  389. //{
  390. // label: '休学开始时间', name: 'SuspensionBeginTime', width: 100, align: "left",
  391. // formatter: function (cellvalue) {
  392. // return learun.formatDate(cellvalue, 'yyyy-MM-dd');
  393. // }
  394. //},
  395. //{
  396. // label: '休学结束时间', name: 'SuspensionEndTime', width: 100, align: "left",
  397. // formatter: function (cellvalue) {
  398. // return learun.formatDate(cellvalue, 'yyyy-MM-dd');
  399. // }
  400. //},
  401. //{ label: '转学前学校', name: 'TransferSchool', width: 150, align: "left" },
  402. //{ label: '转学前学号', name: 'TransferStuNo', width: 100, align: "left" },
  403. //{
  404. // label: '出身日期', name: 'Birthday', width: 100, align: "left",
  405. // formatter: function (cellvalue) {
  406. // return learun.formatDate(cellvalue, 'yyyy-MM-dd');
  407. // }
  408. //},
  409. //{ label: '民族', name: 'NationalityNo', width: 80, align: "left" },
  410. //{ label: '省', name: 'Province', width: 100, align: "left" },
  411. //{ label: '市', name: 'City', width: 100, align: "left" },
  412. //{ label: '县/区', name: 'County', width: 100, align: "left" },
  413. //{ label: '联系电话', name: 'Mobile', width: 100, align: "left" },
  414. //{ label: '家庭地址', name: 'MailAddress', width: 200, align: "left" },
  415. //{ label: '转出学校', name: 'OutSchool', width: 100, align: "left" },
  416. { label: '备注', name: 'Remark', width: 300, align: "left" },
  417. ],
  418. mainId: 'ID',
  419. isPage: true,
  420. rows: 100,
  421. sidx:'CheckTime desc'
  422. });
  423. page.search();
  424. },
  425. search: function (param) {
  426. param = param || {};
  427. param.SqlParameter = ' and F_EnabledMark = 1 ';
  428. $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
  429. }
  430. };
  431. refreshGirdData = function () {
  432. $('#gridtable').jfGridSet('reload');
  433. };
  434. page.init();
  435. }