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.
 
 
 
 
 
 

310 lines
10 KiB

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
  14. 14
  15. 15
  16. 16
  17. 17
  18. 18
  19. 19
  20. 20
  21. 21
  22. 22
  23. 23
  24. 24
  25. 25
  26. 26
  27. 27
  28. 28
  29. 29
  30. 30
  31. 31
  32. 32
  33. 33
  34. 34
  35. 35
  36. 36
  37. 37
  38. 38
  39. 39
  40. 40
  41. 41
  42. 42
  43. 43
  44. 44
  45. 45
  46. 46
  47. 47
  48. 48
  49. 49
  50. 50
  51. 51
  52. 52
  53. 53
  54. 54
  55. 55
  56. 56
  57. 57
  58. 58
  59. 59
  60. 60
  61. 61
  62. 62
  63. 63
  64. 64
  65. 65
  66. 66
  67. 67
  68. 68
  69. 69
  70. 70
  71. 71
  72. 72
  73. 73
  74. 74
  75. 75
  76. 76
  77. 77
  78. 78
  79. 79
  80. 80
  81. 81
  82. 82
  83. 83
  84. 84
  85. 85
  86. 86
  87. 87
  88. 88
  89. 89
  90. 90
  91. 91
  92. 92
  93. 93
  94. 94
  95. 95
  96. 96
  97. 97
  98. 98
  99. 99
  100. 100
  101. 101
  102. 102
  103. 103
  104. /* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
  105. * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
  106. * 创建人:超级管理员
  107. * 日 期:2022-08-29 16:34
  108. * 描 述:毕业信息统计
  109. */
  110. var refreshGirdData;
  111. var bootstrap = function ($, learun) {
  112. "use strict";
  113. var page = {
  114. init: function () {
  115. page.initGird();
  116. page.bind();
  117. },
  118. bind: function () {
  119. $('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
  120. page.search(queryJson);
  121. }, 300, 400);
  122. $('#MajorNo').lrDataSourceSelect({ code: 'CdMajorInfo', value: 'majorno', text: 'majorname' });
  123. $('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' });
  124. $('#GraduateGo').lrDataItemSelect({ code: 'GraduateGo' });
  125. $('#UniversityLevel').lrDataItemSelect({ code: 'GraduateLevel' });
  126. // 刷新
  127. $('#lr_refresh').on('click', function () {
  128. location.reload();
  129. });
  130. // 新增
  131. $('#lr_add').on('click', function () {
  132. learun.layerForm({
  133. id: 'form',
  134. title: '新增',
  135. url: top.$.rootUrl + '/EducationalAdministration/StuGraduateStatistic/Form',
  136. width: 800,
  137. height: 600,
  138. callBack: function (id) {
  139. return top[id].acceptClick(refreshGirdData);
  140. }
  141. });
  142. });
  143. // 编辑
  144. $('#lr_edit').on('click', function () {
  145. var keyValue = $('#gridtable').jfGridValue('Id');
  146. if (learun.checkrow(keyValue)) {
  147. learun.layerForm({
  148. id: 'form',
  149. title: '编辑',
  150. url: top.$.rootUrl + '/EducationalAdministration/StuGraduateStatistic/Form?keyValue=' + keyValue,
  151. width: 800,
  152. height: 600,
  153. callBack: function (id) {
  154. return top[id].acceptClick(refreshGirdData);
  155. }
  156. });
  157. }
  158. });
  159. // 删除
  160. $('#lr_delete').on('click', function () {
  161. var keyValue = $('#gridtable').jfGridValue('Id');
  162. if (learun.checkrow(keyValue)) {
  163. learun.layerConfirm('是否确认删除该项!', function (res) {
  164. if (res) {
  165. learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/StuGraduateStatistic/DeleteForm', { keyValue: keyValue }, function () {
  166. refreshGirdData();
  167. });
  168. }
  169. });
  170. }
  171. });
  172. },
  173. // 初始化列表
  174. initGird: function () {
  175. $('#gridtable').lrAuthorizeJfGrid({
  176. url: top.$.rootUrl + '/EducationalAdministration/StuGraduateStatistic/GetPageList',
  177. headData: [
  178. { label: "学生编码", name: "StuNo", width: 100, align: "left" },
  179. { label: "姓名", name: "StuName", width: 100, align: "left" },
  180. {
  181. label: "性别", name: "GenderNo", width: 100, align: "left",
  182. formatter: function (cellvalue) {
  183. return cellvalue == true ? "男" : "女";
  184. }
  185. },
  186. { label: "身份证号", name: "IdentityCardNo", width: 150, align: "left" },
  187. { label: "学籍号", name: "StuCode", width: 100, align: "left" },
  188. { label: "学号", name: "ProvinceCode", width: 100, align: "left" },
  189. {
  190. label: "专业", name: "MajorNo", width: 100, align: "left",
  191. formatterAsync: function (callback, value, row, op, $cell) {
  192. learun.clientdata.getAsync('custmerData', {
  193. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdMajorInfo',
  194. key: value,
  195. keyId: 'majorno',
  196. callback: function (_data) {
  197. callback(_data['majorname']);
  198. }
  199. });
  200. }
  201. },
  202. {
  203. label: "学制", name: "EduSystem", width: 100, align: "left",
  204. formatterAsync: function (callback, value, row, op, $cell) {
  205. learun.clientdata.getAsync('dataItem', {
  206. key: value,
  207. code: 'EduSystem',
  208. callback: function (_data) {
  209. callback(_data.text);
  210. }
  211. });
  212. }
  213. },
  214. {
  215. label: "班级", name: "ClassNo", width: 100, align: "left",
  216. formatterAsync: function (callback, value, row, op, $cell) {
  217. learun.clientdata.getAsync('custmerData', {
  218. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'bjsj',
  219. key: value,
  220. keyId: 'classno',
  221. callback: function (_data) {
  222. callback(_data['classname']);
  223. }
  224. });
  225. }
  226. },
  227. { label: "联系电话", name: "mobile", width: 100, align: "left" },
  228. {
  229. label: "毕业去向", name: "GraduateGo", width: 200, align: "left",
  230. formatterAsync: function (callback, value, row, op, $cell) {
  231. learun.clientdata.getAsync('dataItem', {
  232. key: value,
  233. code: 'GraduateGo',
  234. callback: function (_data) {
  235. callback(_data.text);
  236. }
  237. });
  238. }
  239. },
  240. { label: "升入高校名称", name: "EnterUniversityName", width: 100, align: "left" },
  241. {
  242. label: "大学层次", name: "UniversityLevel", width: 100, align: "left",
  243. formatterAsync: function (callback, value, row, op, $cell) {
  244. learun.clientdata.getAsync('dataItem', {
  245. key: value,
  246. code: 'UniversityLevel',
  247. callback: function (_data) {
  248. callback(_data.text);
  249. }
  250. });
  251. }
  252. },
  253. { label: "就业单位名称", name: "EmployerName", width: 100, align: "left" },
  254. {
  255. label: "就业单位所属省", name: "EmployerProvince", width: 100, align: "left",
  256. formatterAsync: function (callback, value, row, op, $cell) {
  257. learun.clientdata.getAsync('custmerData', {
  258. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'DIC_PROVINCE',
  259. key: value,
  260. keyId: 'pcode',
  261. callback: function (_data) {
  262. callback(_data['pname']);
  263. }
  264. });
  265. }
  266. },
  267. {
  268. label: "就业单位所属市", name: "EmployerCity", width: 100, align: "left",
  269. formatterAsync: function (callback, value, row, op, $cell) {
  270. learun.clientdata.getAsync('custmerData', {
  271. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'DIC_CITY',
  272. key: value,
  273. keyId: 'ccode',
  274. callback: function (_data) {
  275. callback(_data['cname']);
  276. }
  277. });
  278. }
  279. },
  280. {
  281. label: "就业单位所属县(区)", name: "EmployerCountry", width: 150, align: "left",
  282. formatterAsync: function (callback, value, row, op, $cell) {
  283. learun.clientdata.getAsync('custmerData', {
  284. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'DIC_AREA',
  285. key: value,
  286. keyId: 'acode',
  287. callback: function (_data) {
  288. callback(_data['aname']);
  289. }
  290. });
  291. }
  292. },
  293. { label: "备注", name: "Remark", width: 100, align: "left" },
  294. ],
  295. mainId: 'Id',
  296. isPage: true
  297. });
  298. page.search();
  299. },
  300. search: function (param) {
  301. param = param || {};
  302. $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
  303. }
  304. };
  305. refreshGirdData = function () {
  306. $('#gridtable').jfGridSet('reload');
  307. };
  308. page.init();
  309. }