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.
 
 
 
 
 
 

210 lines
11 KiB

  1. var refreshGirdData;
  2. var bootstrap = function ($, learun) {
  3. "use strict";
  4. var page = {
  5. init: function () {
  6. page.initGird();
  7. page.bind();
  8. },
  9. bind: function () {
  10. $('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
  11. page.search(queryJson);
  12. }, 290, 400);
  13. $('#DeptNo').lrDataSourceSelect({
  14. code: 'CdDeptInfo', value: 'deptno', text: 'deptname', select: function (val) {
  15. var deptno = "";
  16. if (val) {
  17. deptno = val.deptno;
  18. }
  19. $('#MajorNo').lrselectRefresh({
  20. url: top.$.rootUrl + '/EducationalAdministration/CdMajor/GetListByDeptNo?DeptNo=' + deptno,
  21. text: "MajorName",
  22. value: "MajorNo"
  23. })
  24. }
  25. });
  26. $('#MajorNo').lrDataSourceSelect({
  27. code: 'CdMajorInfo', value: 'majorno', text: 'majorname', select:
  28. function (val) {
  29. var majorNo = '';
  30. if (val) {
  31. majorNo = val.MajorNo;
  32. }
  33. $('#ClassNo').lrselectRefresh({
  34. url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + majorNo,
  35. text: "ClassName",
  36. value: "ClassNo"
  37. })
  38. }
  39. });
  40. $('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' });
  41. $('#FinishSchoolMark').lrselect({
  42. data: [{ text: "已毕业", value: "2" }, { text: "准许毕业", value: "1" }, { text: "待准许", value: "0" }],
  43. text: "text",
  44. value: "value"
  45. })
  46. // 刷新
  47. $('#lr_refresh').on('click', function () {
  48. location.reload();
  49. });
  50. //归档
  51. $('#lr_store').on('click', function () {
  52. learun.layerConfirm('1.毕业生归档必须在6-8月份进行; <br> 2.归档后的学生信息如:操行、奖惩、成绩、毕业证书等只有通过毕业生信息管理才能查询或打印;<br> 3.毕业学生的账户将自动取消;<br> 4.学生所占的床位也将自动退掉;<br> 5.学生所在的班级置为已毕业班级;<br> 6.归档操作后不可撤消,请谨慎操作!', function (res) {
  53. if (res) {
  54. learun.httpAsync('post', top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/StuStore', {}, function () {
  55. refreshGirdData();
  56. });
  57. }
  58. });
  59. })
  60. },
  61. // 初始化列表
  62. initGird: function () {
  63. $('#gridtable').jfGrid({
  64. url: top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/GetPageList',
  65. headData: [
  66. { label: "学号", name: "StuNo", width: 130, align: "left" },
  67. { label: "姓名", name: "StuName", width: 100, align: "left" },
  68. {
  69. label: "性别", name: "GenderNo", width: 50, align: "left",
  70. formatter: function (cellvalue) {
  71. return cellvalue == true ? "男" : "女";
  72. }
  73. },
  74. {
  75. label: "系所", name: "DeptNo", width: 100, align: "left",
  76. formatterAsync: function (callback, value, row, op, $cell) {
  77. learun.clientdata.getAsync('custmerData', {
  78. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdDeptInfo',
  79. key: value,
  80. keyId: 'deptno',
  81. callback: function (_data) {
  82. callback(_data['deptname']);
  83. }
  84. });
  85. }
  86. },
  87. {
  88. label: "专业", name: "MajorNo", width: 100, align: "left",
  89. formatterAsync: function (callback, value, row, op, $cell) {
  90. learun.clientdata.getAsync('custmerData', {
  91. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdMajorInfo',
  92. key: value,
  93. keyId: 'majorno',
  94. callback: function (_data) {
  95. callback(_data['majorname']);
  96. }
  97. });
  98. }
  99. },
  100. {
  101. label: "班级", name: "ClassNo", width: 100, align: "left",
  102. formatterAsync: function (callback, value, row, op, $cell) {
  103. learun.clientdata.getAsync('custmerData', {
  104. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'bjsj',
  105. key: value,
  106. keyId: 'classno',
  107. callback: function (_data) {
  108. callback(_data['classname']);
  109. }
  110. });
  111. }
  112. },
  113. { label: "年级", name: "Grade", width: 50, align: "left" },
  114. {
  115. label: "学制", name: "EduSystem", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) {
  116. learun.clientdata.getAsync('dataItem', {
  117. key: value,
  118. code: 'EduSystem',
  119. callback: function (_data) {
  120. callback(_data.text);
  121. }
  122. });
  123. }
  124. },
  125. { label: "毕业证书号", name: "DiplomaNo", width: 100, align: "left" },
  126. {
  127. label: '毕业状态', name: 'FinishSchoolMark', width: 100, align: "left", formatter: function (val) {
  128. if (val == '0') {
  129. return '待准许';
  130. } else if (val == "1") {
  131. return '准许毕业';
  132. } else if (val == '2') {
  133. return '已毕业';
  134. } else {
  135. return '待准许';
  136. }
  137. }
  138. },
  139. { label: "毕业时间", name: "FinishSchoolDate", width: 130, align: "left" },
  140. {
  141. label: "图书资料归还状态", name: "ReturnBooksStatus", width: 120, align: "left", formatter: function (cellvalue) {
  142. return cellvalue == "1" ? "已归还" : "未归还"
  143. }
  144. },
  145. { label: "图书资料归还时间", name: "ReturnBooksDate", width: 130, align: "left" },
  146. {
  147. label: "就业协议备案状态", name: "EmployAgreeStatus", width: 120, align: "left", formatter: function (cellvalue) {
  148. return cellvalue == "1" ? "已备案" : "未备案"
  149. }
  150. },
  151. { label: "就业协议备案时间", name: "EmployAgreeDate", width: 130, align: "left" },
  152. {
  153. label: "学杂费结算状态", name: "FeeSettleStatus", width: 100, align: "left", formatter: function (cellvalue) {
  154. return cellvalue == "1" ? "已结算" : "未结算"
  155. }
  156. },
  157. { label: "学杂费结算时间", name: "FeeSettleDate", width: 130, align: "left" },
  158. {
  159. label: "办理退住手续状态", name: "CheckOutStatus", width: 120, align: "left", formatter: function (cellvalue) {
  160. return cellvalue == "1" ? "已办理" : "未办理"
  161. }
  162. },
  163. { label: "办理退住手续时间", name: "CheckOutDate", width: 130, align: "left" },
  164. {
  165. label: "校园卡注销状态", name: "CardDeregistrateStatus", width: 100, align: "left", formatter: function (cellvalue) {
  166. return cellvalue == "1" ? "已注销" : "未注销"
  167. }
  168. },
  169. { label: "校园卡注销时间", name: "CardDeregistrateDate", width: 130, align: "left" },
  170. {
  171. label: "毕业证领取状态", name: "DiplomaReceiveStatus", width: 100, align: "left", formatter: function (cellvalue) {
  172. return cellvalue == "1" ? "已领取" : "未领取"
  173. }
  174. },
  175. { label: "毕业证领取时间", name: "DiplomaReceiveDate", width: 130, align: "left" },
  176. {
  177. label: "档案转出状态", name: "FileTransferStatus", width: 100, align: "left",
  178. formatter: function (cellvalue) {
  179. return cellvalue == "1" ? "已转出" : "未转出"
  180. }
  181. },
  182. { label: "档案转出时间", name: "FileTransferDate", width: 130, align: "left" },
  183. {
  184. label: "组织关系转出状态", name: "TissueStatus", width: 110, align: "left",
  185. formatter: function (cellvalue) {
  186. return cellvalue == "1" ? "已转出" : "未转出"
  187. }
  188. },
  189. { label: "组织关系转出时间", name: "TissueDate", width: 130, align: "left" }
  190. ],
  191. mainId: 'StuId',
  192. isPage: true,
  193. isMultiselect: true,
  194. });
  195. page.search();
  196. },
  197. search: function (param) {
  198. param = param || {};
  199. $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
  200. }
  201. };
  202. refreshGirdData = function () {
  203. page.search();
  204. };
  205. page.init();
  206. }