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.
 
 
 
 
 
 

232 lines
12 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. var nj = $('#Grade').val();
  34. $('#ClassNo').lrselectRefresh({
  35. url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + majorNo + '&nj=' + nj,
  36. text: "ClassName",
  37. value: "ClassNo"
  38. })
  39. }
  40. });
  41. //$('#ClassNo').lrDataSourceSelect({ code: 'allbjqj', value: 'classno', text: 'classname' });
  42. $('#ClassNo').lrselect({
  43. allowSearch: true,
  44. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=allbjqj',
  45. param: { strWhere: "1=1 AND (CheckMark=1 or (CheckMark != 1 and ClassStatus='1')) order by classname asc" },
  46. value: "classno",
  47. text: "classname"
  48. });
  49. $('#FinishSchoolMark').lrselect({
  50. data: [{ text: "已毕业", value: "2" }, { text: "准许毕业", value: "1" }, { text: "待准许", value: "0" }],
  51. text: "text",
  52. value: "value"
  53. })
  54. // 刷新
  55. $('#lr_refresh').on('click', function () {
  56. location.reload();
  57. });
  58. //审核
  59. $('#lr_check').on('click', function () {
  60. var keyValue = $('#gridtable').jfGridValue('StuId');
  61. var FinishSchoolMark = $('#gridtable').jfGridValue('FinishSchoolMark');
  62. if (learun.checkrow(keyValue)) {
  63. if (FinishSchoolMark.indexOf('2') != -1) {
  64. return learun.alert.warning("选中项包括已通过审核数据,无法操作!");
  65. }
  66. learun.layerConfirm('是否确认审核该毕业流程!', function (res) {
  67. if (res) {
  68. learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/StuGraduateCheck', { keyValue: keyValue }, function () {
  69. refreshGirdData();
  70. });
  71. }
  72. });
  73. }
  74. })
  75. },
  76. // 初始化列表
  77. initGird: function () {
  78. $('#gridtable').jfGrid({
  79. url: top.$.rootUrl + '/EducationalAdministration/StuInfoGraduate/GetPageList',
  80. headData: [
  81. {
  82. label: '毕业流程审核', name: 'FinishSchoolMark', width: 100, align: "left", formatter: function (cellvalue) {
  83. return cellvalue == "2" ? "<span class=\"label label-success\">已通过</span>" : "<span class=\"label label-danger\">未通过</span>";
  84. }
  85. },
  86. { label: "学号", name: "StuNo", width: 130, align: "left" },
  87. { label: "姓名", name: "StuName", width: 100, align: "left" },
  88. {
  89. label: "性别", name: "GenderNo", width: 50, align: "left",
  90. formatter: function (cellvalue) {
  91. return cellvalue == true ? "男" : "女";
  92. }
  93. },
  94. {
  95. label: "系所", name: "DeptNo", width: 100, align: "left",
  96. formatterAsync: function (callback, value, row, op, $cell) {
  97. learun.clientdata.getAsync('custmerData', {
  98. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdDeptInfo',
  99. key: value,
  100. keyId: 'deptno',
  101. callback: function (_data) {
  102. callback(_data['deptname']);
  103. }
  104. });
  105. }
  106. },
  107. {
  108. label: "专业", name: "MajorNo", width: 100, align: "left",
  109. formatterAsync: function (callback, value, row, op, $cell) {
  110. learun.clientdata.getAsync('custmerData', {
  111. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdMajorInfo',
  112. key: value,
  113. keyId: 'majorno',
  114. callback: function (_data) {
  115. callback(_data['majorname']);
  116. }
  117. });
  118. }
  119. },
  120. {
  121. label: "班级", name: "ClassNo", width: 100, align: "left",
  122. formatterAsync: function (callback, value, row, op, $cell) {
  123. learun.clientdata.getAsync('custmerData', {
  124. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'allbjqj',
  125. key: value,
  126. keyId: 'classno',
  127. callback: function (_data) {
  128. callback(_data['classname']);
  129. }
  130. });
  131. }
  132. },
  133. { label: "年级", name: "Grade", width: 50, align: "left" },
  134. {
  135. label: "学制", name: "EduSystem", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) {
  136. learun.clientdata.getAsync('dataItem', {
  137. key: value,
  138. code: 'EduSystem',
  139. callback: function (_data) {
  140. callback(_data.text);
  141. }
  142. });
  143. }
  144. },
  145. { label: "毕业证书号", name: "DiplomaNo", width: 130, align: "left" },
  146. {
  147. label: '毕业状态', name: 'FinishSchoolMark', width: 100, align: "left", formatter: function (val) {
  148. if (val == '0') {
  149. return '待准许';
  150. } else if (val == "1") {
  151. return '准许毕业';
  152. } else if (val == '2') {
  153. return '已毕业';
  154. } else {
  155. return '待准许';
  156. }
  157. }
  158. },
  159. { label: "毕业时间", name: "FinishSchoolDate", width: 130, align: "left" },
  160. {
  161. label: "图书资料归还状态", name: "ReturnBooksStatus", width: 120, align: "left", formatter: function (cellvalue) {
  162. return cellvalue == "1" ? "已归还" : "未归还"
  163. }
  164. },
  165. { label: "图书资料归还时间", name: "ReturnBooksDate", width: 130, align: "left" },
  166. {
  167. label: "就业协议备案状态", name: "EmployAgreeStatus", width: 120, align: "left", formatter: function (cellvalue) {
  168. return cellvalue == "1" ? "已备案" : "未备案"
  169. }
  170. },
  171. { label: "就业协议备案时间", name: "EmployAgreeDate", width: 130, align: "left" },
  172. {
  173. label: "学杂费结算状态", name: "FeeSettleStatus", width: 100, align: "left", formatter: function (cellvalue) {
  174. return cellvalue == "1" ? "已结算" : "未结算"
  175. }
  176. },
  177. { label: "学杂费结算时间", name: "FeeSettleDate", width: 130, align: "left" },
  178. {
  179. label: "办理退住手续状态", name: "CheckOutStatus", width: 120, align: "left", formatter: function (cellvalue) {
  180. return cellvalue == "1" ? "已办理" : "未办理"
  181. }
  182. },
  183. { label: "办理退住手续时间", name: "CheckOutDate", width: 130, align: "left" },
  184. {
  185. label: "校园卡注销状态", name: "CardDeregistrateStatus", width: 100, align: "left", formatter: function (cellvalue) {
  186. return cellvalue == "1" ? "已注销" : "未注销"
  187. }
  188. },
  189. { label: "校园卡注销时间", name: "CardDeregistrateDate", width: 130, align: "left" },
  190. //{
  191. // label: "毕业证领取状态", name: "DiplomaReceiveStatus", width: 100, align: "left", formatter: function (cellvalue) {
  192. // return cellvalue == "1" ? "已领取" : "未领取"
  193. // }
  194. //},
  195. //{ label: "毕业证领取时间", name: "DiplomaReceiveDate", width: 130, align: "left" },
  196. {
  197. label: "档案转出状态", name: "FileTransferStatus", width: 100, align: "left",
  198. formatter: function (cellvalue) {
  199. return cellvalue == "1" ? "已转出" : "未转出"
  200. }
  201. },
  202. { label: "档案转出时间", name: "FileTransferDate", width: 130, align: "left" },
  203. {
  204. label: "组织关系转出状态", name: "TissueStatus", width: 110, align: "left",
  205. formatter: function (cellvalue) {
  206. return cellvalue == "1" ? "已转出" : "未转出"
  207. }
  208. },
  209. { label: "组织关系转出时间", name: "TissueDate", width: 130, align: "left" }
  210. ],
  211. mainId: 'StuId',
  212. isPage: true,
  213. isMultiselect: true,
  214. rows: 100,
  215. sidx: 'FinishSchoolMark,StuNo',
  216. sord:'asc'
  217. });
  218. page.search();
  219. },
  220. search: function (param) {
  221. param = param || {};
  222. $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
  223. }
  224. };
  225. refreshGirdData = function () {
  226. page.search();
  227. };
  228. page.init();
  229. }