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.
 
 
 
 
 
 

161 lines
7.7 KiB

  1. var refreshGirdData;
  2. var StuId;
  3. var tempdatra = new Array();
  4. var list = [];
  5. var bootstrap = function ($, learun) {
  6. "use strict";
  7. var page = {
  8. init: function () {
  9. page.bind();
  10. },
  11. bind: function () {
  12. //选项卡切换
  13. $('#navultab li').on('click', function () {
  14. if (!$(this).hasClass('active')) {
  15. $(this).parent().find('.active').removeClass('active');
  16. $(this).addClass('active');
  17. $('#condivtab .condiv').eq($(this).index()).siblings().hide()
  18. $('#condivtab .condiv').eq($(this).index()).show()
  19. }
  20. });
  21. //转出
  22. $("#EducationExperienceReturn").attr("src", "/EducationalAdministration/StuTransferInfo/RolloffIndex");
  23. //提交下拉框
  24. $('#NewDeptNo').lrselect({
  25. allowSearch: true,
  26. value: "deptno",
  27. text: "deptname",
  28. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdDeptInfo',
  29. select: function (item) {
  30. if (item) {
  31. $('#NewMajorNo').lrselectRefresh({
  32. allowSearch: true,
  33. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo',
  34. param: { strWhere: "DeptNo='" + item.deptno + "' AND CheckMark=1" }
  35. });
  36. } else {
  37. $('#NewMajorNo').lrselectRefresh({
  38. allowSearch: true,
  39. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo',
  40. param: { strWhere: "1=1 AND CheckMark=1" }
  41. });
  42. }
  43. }
  44. });
  45. $('#NewMajorNo').lrselect({
  46. allowSearch: true,
  47. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo',
  48. value: "majorno",
  49. text: "majorname",
  50. param: { strWhere: "1=1 AND CheckMark=1" },
  51. select: function (item) {
  52. var Grades = $("#NewGrade").lrselectGet();
  53. if (Grades != null && Grades != "" && Grades != "undefined") {
  54. if (item) {
  55. $('#NewClassNo').lrselectRefresh({
  56. allowSearch: true,
  57. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj',
  58. param: { strWhere: "majorno='" + item.majorno + "' AND CheckMark=1 AND Grade='" + Grades + "' order by classno desc" }
  59. });
  60. } else {
  61. $('#NewClassNo').lrselectRefresh({
  62. allowSearch: true,
  63. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj',
  64. param: { strWhere: "1=1 AND CheckMark=1 order by classno desc" }
  65. });
  66. }
  67. } else {
  68. if (item) {
  69. $('#NewClassNo').lrselectRefresh({
  70. allowSearch: true,
  71. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj',
  72. param: { strWhere: "majorno='" + item.majorno + "' AND CheckMark=1 order by classno desc" }
  73. });
  74. } else {
  75. $('#NewClassNo').lrselectRefresh({
  76. allowSearch: true,
  77. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj',
  78. param: { strWhere: "1=1 AND CheckMark=1 order by classno desc" }
  79. });
  80. }
  81. }
  82. }
  83. });
  84. $('#NewGrade').lrselect({
  85. url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GenerateNearByYear',
  86. value: "value",
  87. text: "text",
  88. select: function (item) {
  89. var MajorNos = $("#NewMajorNo").lrselectGet();
  90. if (MajorNos != null && MajorNos != "" && MajorNos != "undefined") {
  91. if (item) {
  92. $('#NewClassNo').lrselectRefresh({
  93. allowSearch: true,
  94. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj',
  95. param: {
  96. strWhere: "majorno='" + MajorNos + "' AND CheckMark=1 AND Grade='" + item.text + "' order by classno desc"
  97. }
  98. });
  99. } else {
  100. $('#NewClassNo').lrselectRefresh({
  101. allowSearch: true,
  102. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj',
  103. param: { strWhere: "1=1 AND CheckMark=1 order by classno desc" }
  104. });
  105. }
  106. } else {
  107. if (item) {
  108. $('#NewClassNo').lrselectRefresh({
  109. allowSearch: true,
  110. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj',
  111. param: {
  112. strWhere: "CheckMark=1 AND Grade='" + item.text + "' order by classno desc"
  113. }
  114. });
  115. } else {
  116. $('#NewClassNo').lrselectRefresh({
  117. allowSearch: true,
  118. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj',
  119. param: { strWhere: "1=1 AND CheckMark=1 order by classno desc" }
  120. });
  121. }
  122. }
  123. }
  124. });
  125. $('#NewClassNo').lrselect({
  126. allowSearch: true,
  127. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj',
  128. param: { strWhere: "1=1 AND CheckMark=1 order by classno desc" },
  129. value: "classno",
  130. text: "classname"
  131. });
  132. $('#IdCardType').lrDataItemSelect({ code: 'IdCardType' });
  133. $('#Gender').lrDataItemSelect({ code: 'usersexbit' });
  134. $('#NationalityNo').lrDataItemSelect({ code: 'National' });
  135. $('#IsInAccommodation').lrDataItemSelect({ code: 'YesOrNoInt' });
  136. // 提交
  137. $('#subbtn').on('click', function () {
  138. if (!$('body').lrValidform()) {
  139. return false;
  140. }
  141. var entity = $('body').lrGetFormData();
  142. $.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/StuTransferInfo/SaveFormOfIn', { keyValue: '', strEntity: JSON.stringify(entity) },
  143. function (res) {
  144. if (res.code == 200) {
  145. setTimeout(function () {
  146. location.reload();
  147. }, 100)
  148. }
  149. }
  150. );
  151. })
  152. },
  153. };
  154. refreshGirdData = function () {
  155. page.search();
  156. };
  157. page.init();
  158. }