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.

FormView.js 4.0 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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 acceptClick;
  8. var keyValue = request('keyValue');
  9. var bootstrap = function ($, learun) {
  10. "use strict";
  11. var page = {
  12. init: function () {
  13. page.bind();
  14. page.initData();
  15. },
  16. bind: function () {
  17. $('#Gender').lrDataItemSelect({ code: 'usersexbit' });
  18. $('#AnomalousType').lrDataItemSelect({ code: 'StuChangeType' });
  19. $('#StuStatus').lrDataItemSelect({ code: 'YesOrNoInt' });
  20. $('#F_EnabledMark').lrselect({ data: [{ id: '0', text: '未生效' }, { id: '1', text: '已生效' }]});
  21. $('#F_EnabledMark2').lrselect({ data: [{ id: '0', text: '未审核' }, { id: '1', text: '已审核' }] });
  22. $('#CreateUserId').lrDataSourceSelect({ code: 'BaseUser', value: 'f_userid', text: 'f_realname' });
  23. $('#CheckUserId').lrDataSourceSelect({ code: 'BaseUser', value: 'f_userid', text: 'f_realname' });
  24. $('#NewDeptNo').lrselect({
  25. allowSearch: true,
  26. value: "deptno",
  27. text: "deptname",
  28. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdDeptInfo',
  29. });
  30. $('#NewMajorNo').lrselect({
  31. allowSearch: true,
  32. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo',
  33. value: "majorno",
  34. text: "majorname",
  35. param: { strWhere: "1=1 AND CheckMark=1" },
  36. });
  37. $('#NewGrade').lrselect({
  38. url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GenerateNearByYear',
  39. value: "value",
  40. text: "text",
  41. });
  42. $('#NewClassNo').lrselect({
  43. allowSearch: true,
  44. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj',
  45. param: { strWhere: "1=1 AND CheckMark=1 order by classno desc" },
  46. value: "classno",
  47. text: "classname"
  48. });
  49. $('#DeptNo').lrselect({
  50. allowSearch: true,
  51. value: "deptno",
  52. text: "deptname",
  53. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdDeptInfo',
  54. });
  55. $('#MajorNo').lrselect({
  56. allowSearch: true,
  57. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo',
  58. value: "majorno",
  59. text: "majorname",
  60. param: { strWhere: "1=1 AND CheckMark=1" },
  61. });
  62. $('#Grade').lrselect({
  63. url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GenerateNearByYear',
  64. value: "value",
  65. text: "text",
  66. });
  67. $('#ClassNo').lrselect({
  68. allowSearch: true,
  69. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj',
  70. param: { strWhere: "1=1 AND CheckMark=1 order by classno desc" },
  71. value: "classno",
  72. text: "classname"
  73. });
  74. },
  75. initData: function () {
  76. if (!!keyValue) {
  77. $.lrSetForm(top.$.rootUrl + '/EducationalAdministration/StuTransferInfo/GetFormData?keyValue=' + keyValue, function (data) {
  78. for (var id in data) {
  79. if (!!data[id].length && data[id].length > 0) {
  80. $('#' + id).jfGridSet('refreshdata', data[id]);
  81. }
  82. else {
  83. $('[data-table="' + id + '"]').lrSetFormData(data[id]);
  84. }
  85. }
  86. $('#F_EnabledMark2').lrselectSet(data[id].F_EnabledMark);
  87. });
  88. }
  89. }
  90. };
  91. page.init();
  92. }