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.

Index.js 30 KiB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539
  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. }, 300, 400);
  13. $('#DeptNo').lrselect({
  14. allowSearch: true,
  15. value: "deptno",
  16. text: "deptname",
  17. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdDeptInfo',
  18. select: function (item) {
  19. if (item) {
  20. $('#MajorNo').lrselectRefresh({
  21. allowSearch: true,
  22. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo',
  23. param: { strWhere: "DeptNo='" + item.deptno + "' AND CheckMark=1" }
  24. });
  25. } else {
  26. $('#MajorNo').lrselectRefresh({
  27. allowSearch: true,
  28. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo',
  29. param: { strWhere: "1=1 AND CheckMark=1" }
  30. });
  31. }
  32. }
  33. });
  34. $('#MajorNo').lrselect({
  35. allowSearch: true,
  36. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo',
  37. value: "majorno",
  38. text: "majorname",
  39. param: { strWhere: "1=1 AND CheckMark=1" },
  40. select: function (item) {
  41. if (item) {
  42. $('#ClassNo').lrselectRefresh({
  43. allowSearch: true,
  44. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj',
  45. param: { strWhere: "majorno='" + item.majorno + "' AND CheckMark=1" }
  46. });
  47. } else {
  48. $('#ClassNo').lrselectRefresh({
  49. allowSearch: true,
  50. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj',
  51. param: { strWhere: "1=1 AND CheckMark=1" }
  52. });
  53. }
  54. }
  55. });
  56. $('#ClassNo').lrselect({
  57. allowSearch: true,
  58. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj',
  59. param: { strWhere: "1=1 AND CheckMark=1" },
  60. value: "classno",
  61. text: "classname"
  62. });
  63. $('#Grade').lrselect({
  64. url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GenerateNearByYear',
  65. value: "value",
  66. text: "text",
  67. });
  68. $('#GenderNo').lrDataItemSelect({ code: 'usersexbit' });
  69. $('#NationalityNo').lrDataSourceSelect({ code: 'BCdNationality', value: 'nationalityno', text: 'nationality' });
  70. $('#FiveYear').lrDataItemSelect({ code: 'PieceCultivateWay' });
  71. // 刷新
  72. $('#lr_refresh').on('click', function () {
  73. location.reload();
  74. });
  75. },
  76. // 初始化列表
  77. initGird: function () {
  78. $('#gridtable').jfGrid({
  79. url: top.$.rootUrl + '/EducationalAdministration/StuInfoGraduate/GetPageList',
  80. headData: [
  81. {
  82. label: "审核状态", name: "CheckMark", width: 80, align: "center",
  83. formatter: function (cellvalue) {
  84. return cellvalue == "1" ? "<span class=\"label label-success\">已审核</span>" : "<span class=\"label label-danger\">未审核</span>";
  85. }
  86. },
  87. { label: "学生编号", name: "StuNo", width: 100, align: "left" },
  88. { label: "学籍号", name: "StuCode", width: 100, align: "left" },
  89. { label: "学号", name: "ProvinceCode", width: 100, align: "left" },
  90. { label: "姓名", name: "StuName", width: 100, align: "left" },
  91. {
  92. label: "性别", name: "GenderNo", width: 80, align: "left",
  93. formatter: function (cellvalue) {
  94. return cellvalue == true ? "男" : "女";
  95. }
  96. },
  97. {
  98. label: "出生日期", name: "Birthday", width: 100, align: "left",
  99. formatter: function (value) {
  100. return learun.formatDate(value, 'yyyy-MM-dd');
  101. }
  102. },
  103. { label: "身份证号", name: "IdentityCardNo", width: 100, align: "left" },
  104. {
  105. label: "民族", name: "NationalityNo", width: 100, align: "left",
  106. formatterAsync: function (callback, value, row, op, $cell) {
  107. learun.clientdata.getAsync('dataItem', {
  108. key: value,
  109. code: 'National',
  110. callback: function (_data) {
  111. callback(_data.text);
  112. }
  113. });
  114. }
  115. },
  116. {
  117. label: "政治面貌", name: "PartyFaceNo", width: 100, align: "left",
  118. formatterAsync: function (callback, value, row, op, $cell) {
  119. learun.clientdata.getAsync('dataItem', {
  120. key: value,
  121. code: 'PolityStatus',
  122. callback: function (_data) {
  123. callback(_data.text);
  124. }
  125. });
  126. }
  127. },
  128. { label: "年级", name: "Grade", width: 100, align: "left" },
  129. {
  130. label: "系所", name: "DeptNo", width: 100, align: "left",
  131. formatterAsync: function (callback, value, row, op, $cell) {
  132. learun.clientdata.getAsync('custmerData', {
  133. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdDeptInfo',
  134. key: value,
  135. keyId: 'deptno',
  136. callback: function (_data) {
  137. callback(_data['deptname']);
  138. }
  139. });
  140. }
  141. },
  142. {
  143. label: "专业", name: "MajorNo", width: 100, align: "left",
  144. formatterAsync: function (callback, value, row, op, $cell) {
  145. learun.clientdata.getAsync('custmerData', {
  146. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdMajorInfo',
  147. key: value,
  148. keyId: 'majorno',
  149. callback: function (_data) {
  150. callback(_data['majorname']);
  151. }
  152. });
  153. }
  154. },
  155. {
  156. label: "班级", name: "ClassNo", width: 100, align: "left",
  157. formatterAsync: function (callback, value, row, op, $cell) {
  158. learun.clientdata.getAsync('custmerData', {
  159. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'bjsj',
  160. key: value,
  161. keyId: 'classno',
  162. callback: function (_data) {
  163. callback(_data['classname']);
  164. }
  165. });
  166. }
  167. },
  168. {
  169. label: "学制", name: "EduSystem", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) {
  170. learun.clientdata.getAsync('dataItem', {
  171. key: value,
  172. code: 'EduSystem',
  173. callback: function (_data) {
  174. callback(_data.text);
  175. }
  176. });
  177. }
  178. },
  179. {
  180. label: "身体状态", name: "HealthStatus", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) {
  181. learun.clientdata.getAsync('dataItem', {
  182. key: value,
  183. code: 'QRCodeHealthStatus',
  184. callback: function (_data) {
  185. callback(_data.text);
  186. }
  187. });
  188. }
  189. },
  190. {
  191. label: "学习形式", name: "StudyModality", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) {
  192. learun.clientdata.getAsync('dataItem', {
  193. key: value,
  194. code: 'StudyModality',
  195. callback: function (_data) {
  196. callback(_data.text);
  197. }
  198. });
  199. }
  200. },
  201. { label: "报到日期", name: "RegisterDate", width: 100, align: "left" },
  202. { label: "入学方式", name: "EntranceWay", width: 100, align: "left" },
  203. { label: "入学年月", name: "EntranceDate", width: 100, align: "left" },
  204. { label: "余额", name: "Balance", width: 100, align: "left" },
  205. { label: "家庭地址", name: "MailAddress", width: 100, align: "left" },
  206. { label: "联系电话", name: "mobile", width: 100, align: "left" },
  207. { label: "户口所在地", name: "FatherUnit", width: 100, align: "left" },
  208. { label: "档案所在地", name: "MatherUnit", width: 100, align: "left" },
  209. {
  210. label: "五年一贯制", name: "FiveYear", width: 100, align: "left"
  211. , formatterAsync: function (callback, value, row, op, $cell) {
  212. learun.clientdata.getAsync('dataItem', {
  213. key: value,
  214. code: 'PieceCultivateWay',
  215. callback: function (_data) {
  216. callback(_data.text);
  217. }
  218. });
  219. }
  220. },
  221. //{
  222. // label: "异动状态", name: "AbmormityMoveMark", width: 80, align: "center",
  223. // formatter: function (cellvalue) {
  224. // return cellvalue == "1" ? "<i class=\"fa fa-toggle-on\"></i>" : "<i class=\"fa fa-toggle-off\"></i>";
  225. // }
  226. //},
  227. {
  228. label: "是否上传头像", name: "Photo", width: 80, align: "center",
  229. formatter: function (cellvalue) {
  230. if (cellvalue != null && cellvalue != "" && cellvalue != undefined) {
  231. return cellvalue = "<span class=\"label label-success\">是</span>";
  232. } else {
  233. return cellvalue = "<span class=\"label label-danger\">否</span>";
  234. }
  235. }
  236. },
  237. { label: "拼音", name: "SpellFull", width: 100, align: "left", ishide: true },
  238. { label: "就读方式", name: "StudyingWay", width: 100, align: "left", ishide: true },
  239. {
  240. label: "国籍", name: "CountryNo", width: 100, align: "left", ishide: true,
  241. formatterAsync: function (callback, value, row, op, $cell) {
  242. learun.clientdata.getAsync('dataItem', {
  243. key: value,
  244. code: 'BCdCountry',
  245. callback: function (_data) {
  246. callback(_data.text);
  247. }
  248. });
  249. }
  250. },
  251. {
  252. label: "港澳台侨外", name: "OverseasChineseNo", width: 100, align: "left", ishide: true,
  253. formatterAsync: function (callback, value, row, op, $cell) {
  254. learun.clientdata.getAsync('dataItem', {
  255. key: value,
  256. code: 'BCdOverseasChinese',
  257. callback: function (_data) {
  258. callback(_data.text);
  259. }
  260. });
  261. }
  262. },
  263. {
  264. label: "婚姻状况", name: "MarriageStatus", width: 100, align: "left", ishide: true,
  265. formatterAsync: function (callback, value, row, op, $cell) {
  266. learun.clientdata.getAsync('dataItem', {
  267. key: value,
  268. code: 'BCdOverseasChinese',
  269. callback: function (_data) {
  270. callback(_data.text);
  271. }
  272. });
  273. }
  274. },
  275. { label: "乘火车区间", name: "TrainInterval", width: 100, align: "left", ishide: true, },
  276. { label: "是否随迁子女", name: "IsTrailChildren", width: 100, align: "left", ishide: true, },
  277. { label: "生源地行政区划码", name: "StuPlaceCode", width: 100, align: "left", ishide: true, },
  278. { label: "出生地行政区划码", name: "BirthPlaceCode", width: 100, align: "left", ishide: true, },
  279. { label: "籍贯地行政区划码", name: "NativePlaceCode", width: 100, align: "left", ishide: true, },
  280. { label: "所属派出所", name: "BelongPolice", width: 100, align: "left", ishide: true, },
  281. { label: "户口所在地行政区划码", name: "ResidencePlaceCode", width: 100, align: "left", ishide: true, },
  282. { label: "是否农户", name: "ResidenceNo", width: 100, align: "left", ishide: true, },
  283. {
  284. label: "学生居住地类型", name: "StuLivePlaceType", width: 100, align: "left", ishide: true,
  285. formatterAsync: function (callback, value, row, op, $cell) {
  286. learun.clientdata.getAsync('dataItem', {
  287. key: value,
  288. code: 'StuLivePlaceType',
  289. callback: function (_data) {
  290. callback(_data.text);
  291. }
  292. });
  293. }
  294. },
  295. {
  296. label: "健康状况", name: "HealthStatusNo", width: 100, align: "left", ishide: true,
  297. formatterAsync: function (callback, value, row, op, $cell) {
  298. learun.clientdata.getAsync('dataItem', {
  299. key: value,
  300. code: 'StuHealthType',
  301. callback: function (_data) {
  302. callback(_data.text);
  303. }
  304. });
  305. }
  306. },
  307. { label: "学生来源", name: "StuOrigin", width: 100, align: "left", ishide: true, },
  308. { label: "招生对象", name: "RecruitObject", width: 100, align: "left", ishide: true, },
  309. { label: "贫困户否建档立卡贫困户", name: "PoorIsRecord", width: 100, align: "left", ishide: true, },
  310. {
  311. label: "招生方式", name: "RecruitWay", width: 100, align: "left", ishide: true,
  312. formatterAsync: function (callback, value, row, op, $cell) {
  313. learun.clientdata.getAsync('dataItem', {
  314. key: value,
  315. code: 'RecruitWay',
  316. callback: function (_data) {
  317. callback(_data.text);
  318. }
  319. });
  320. }
  321. },
  322. {
  323. label: "联招合作类型", name: "RecruitCooperateType", width: 100, align: "left", ishide: true,
  324. formatterAsync: function (callback, value, row, op, $cell) {
  325. learun.clientdata.getAsync('dataItem', {
  326. key: value,
  327. code: 'RecruitCooperateType',
  328. callback: function (_data) {
  329. callback(_data.text);
  330. }
  331. });
  332. }
  333. },
  334. { label: "准考证号", name: "AdmissionNo", width: 100, align: "left", ishide: true, },
  335. { label: "考生号", name: "ksh", width: 100, align: "left", ishide: true, },
  336. { label: "考试总分", name: "ExamScore", width: 100, align: "left", ishide: true, },
  337. { label: "联招合作办学形式", name: "RecruitCooperateForm", width: 100, align: "left", ishide: true, },
  338. { label: "联招合作学校代码", name: "RecruitCooperateSchoolNo", width: 100, align: "left", ishide: true, },
  339. { label: "校外教学点", name: "SchoolOutsidePlace", width: 100, align: "left", ishide: true, },
  340. { label: "英文姓名", name: "EnglishName", width: 100, align: "left", ishide: true, },
  341. { label: "家庭邮政编码", name: "PostalCode", width: 100, align: "left", ishide: true, },
  342. { label: "其他联系方式", name: "OtherContact", width: 100, align: "left", ishide: true, },
  343. { label: "成员1姓名", name: "OneName", width: 100, align: "left", ishide: true, },
  344. { label: "成员1联系电话", name: "OneMobile", width: 100, align: "left", ishide: true },
  345. {
  346. label: "成员1关系", name: "OneMembership", width: 100, align: "left", ishide: true,
  347. formatterAsync: function (callback, value, row, op, $cell) {
  348. learun.clientdata.getAsync('dataItem', {
  349. key: value,
  350. code: 'GuardianType',
  351. callback: function (_data) {
  352. callback(_data.text);
  353. }
  354. });
  355. }
  356. },
  357. { label: "成员1是否监护人", name: "OneIsGuardian", width: 100, align: "left", ishide: true, },
  358. {
  359. label: "成员1出生年月", name: "OneBirthday", width: 100, align: "left", ishide: true,
  360. formatter: function (value) {
  361. return learun.formatDate(value, 'yyyy-MM-dd');
  362. }
  363. },
  364. {
  365. label: "成员1身份证件类型", name: "OneIdCardType", width: 100, align: "left", ishide: true,
  366. formatterAsync: function (callback, value, row, op, $cell) {
  367. learun.clientdata.getAsync('dataItem', {
  368. key: value,
  369. code: 'IdCardType',
  370. callback: function (_data) {
  371. callback(_data.text);
  372. }
  373. });
  374. }
  375. },
  376. { label: "成员1身份证件号", name: "OneIdCardNo", width: 100, align: "left", ishide: true, },
  377. {
  378. label: "成员1民族", name: "OneNationalityNo", width: 100, align: "left", ishide: true,
  379. formatterAsync: function (callback, value, row, op, $cell) {
  380. learun.clientdata.getAsync('dataItem', {
  381. key: value,
  382. code: 'National',
  383. callback: function (_data) {
  384. callback(_data.text);
  385. }
  386. });
  387. }
  388. },
  389. {
  390. label: "成员1健康状况", name: "OneHealthStatus", width: 100, align: "left", ishide: true,
  391. formatterAsync: function (callback, value, row, op, $cell) {
  392. learun.clientdata.getAsync('dataItem', {
  393. key: value,
  394. code: 'EpiHealth',
  395. callback: function (_data) {
  396. callback(_data.text);
  397. }
  398. });
  399. }
  400. },
  401. { label: "成员1工作或学习单位", name: "OneJob", width: 100, align: "left", ishide: true, },
  402. { label: "成员2姓名", name: "TwoName", width: 100, align: "left", ishide: true, },
  403. { label: "成员2联系电话", name: "TwoMobile", width: 100, align: "left", ishide: true },
  404. {
  405. label: "成员2关系", name: "TwoMembership", width: 100, align: "left", ishide: true,
  406. formatterAsync: function (callback, value, row, op, $cell) {
  407. learun.clientdata.getAsync('dataItem', {
  408. key: value,
  409. code: 'GuardianType',
  410. callback: function (_data) {
  411. callback(_data.text);
  412. }
  413. });
  414. }
  415. },
  416. { label: "成员2是否监护人", name: "TwoIsGuardian", width: 100, align: "left", ishide: true, },
  417. {
  418. label: "成员2出生年月", name: "TwoBirthday", width: 100, align: "left", ishide: true,
  419. formatter: function (value) {
  420. return learun.formatDate(value, 'yyyy-MM-dd');
  421. }
  422. },
  423. {
  424. label: "成员2身份证件类型", name: "TwoIdCardType", width: 100, align: "left", ishide: true,
  425. formatterAsync: function (callback, value, row, op, $cell) {
  426. learun.clientdata.getAsync('dataItem', {
  427. key: value,
  428. code: 'IdCardType',
  429. callback: function (_data) {
  430. callback(_data.text);
  431. }
  432. });
  433. }
  434. },
  435. { label: "成员2身份证件号", name: "TwoIdCardNo", width: 100, align: "left", ishide: true, },
  436. {
  437. label: "成员2民族", name: "TwoNationalityNo", width: 100, align: "left", ishide: true,
  438. formatterAsync: function (callback, value, row, op, $cell) {
  439. learun.clientdata.getAsync('dataItem', {
  440. key: value,
  441. code: 'National',
  442. callback: function (_data) {
  443. callback(_data.text);
  444. }
  445. });
  446. }
  447. },
  448. {
  449. label: "成员2健康状况", name: "TwoHealthStatus", width: 100, align: "left", ishide: true,
  450. formatterAsync: function (callback, value, row, op, $cell) {
  451. learun.clientdata.getAsync('dataItem', {
  452. key: value,
  453. code: 'EpiHealth',
  454. callback: function (_data) {
  455. callback(_data.text);
  456. }
  457. });
  458. }
  459. },
  460. { label: "成员2工作或学习单位", name: "TwoJob", width: 100, align: "left", ishide: true, },
  461. { label: "成员2职务", name: "TwoPosition", width: 100, align: "left", ishide: true, },
  462. { label: "毕业证书号", name: "DiplomaNo", width: 100, align: "left" },
  463. {
  464. label: '毕业状态', name: 'FinishSchoolMark', width: 100, align: "left", formatter: function (val) {
  465. if (val == '0') {
  466. return '待准许';
  467. } else if (val == "1") {
  468. return '准许毕业';
  469. } else if (val == '2') {
  470. return '已毕业';
  471. } else {
  472. return '待准许';
  473. }
  474. }
  475. },
  476. { label: "毕业时间", name: "FinishSchoolDate", width: 130, align: "left" },
  477. {
  478. label: "图书资料归还状态", name: "ReturnBooksStatus", width: 120, align: "left", formatter: function (cellvalue) {
  479. return cellvalue == "1" ? "已归还" : "未归还"
  480. }
  481. },
  482. { label: "图书资料归还时间", name: "ReturnBooksDate", width: 130, align: "left" },
  483. {
  484. label: "就业协议备案状态", name: "EmployAgreeStatus", width: 120, align: "left", formatter: function (cellvalue) {
  485. return cellvalue == "1" ? "已备案" : "未备案"
  486. }
  487. },
  488. { label: "就业协议备案时间", name: "EmployAgreeDate", width: 130, align: "left" },
  489. {
  490. label: "学杂费结算状态", name: "FeeSettleStatus", width: 100, align: "left", formatter: function (cellvalue) {
  491. return cellvalue == "1" ? "已结算" : "未结算"
  492. }
  493. },
  494. { label: "学杂费结算时间", name: "FeeSettleDate", width: 130, align: "left" },
  495. {
  496. label: "办理退住手续状态", name: "CheckOutStatus", width: 120, align: "left", formatter: function (cellvalue) {
  497. return cellvalue == "1" ? "已办理" : "未办理"
  498. }
  499. },
  500. { label: "办理退住手续时间", name: "CheckOutDate", width: 130, align: "left" },
  501. {
  502. label: "校园卡注销状态", name: "CardDeregistrateStatus", width: 100, align: "left", formatter: function (cellvalue) {
  503. return cellvalue == "1" ? "已注销" : "未注销"
  504. }
  505. },
  506. { label: "校园卡注销时间", name: "CardDeregistrateDate", width: 130, align: "left" },
  507. {
  508. label: "毕业证领取状态", name: "DiplomaReceiveStatus", width: 100, align: "left", formatter: function (cellvalue) {
  509. return cellvalue == "1" ? "已领取" : "未领取"
  510. }
  511. },
  512. { label: "毕业证领取时间", name: "DiplomaReceiveDate", width: 130, align: "left" },
  513. {
  514. label: "档案与组织关系转出状态", name: "FileTransferStatus", width: 150, align: "left", formatter: function (cellvalue) {
  515. return cellvalue == "1" ? "已转出" : "未转出"
  516. }
  517. },
  518. { label: "档案与组织关系转出时间", name: "FileTransferDate", width: 150, align: "left" },
  519. ],
  520. mainId: 'StuId',
  521. isPage: true,
  522. isMultiselect: false,
  523. });
  524. page.search();
  525. },
  526. search: function (param) {
  527. param = param || {};
  528. $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
  529. }
  530. };
  531. refreshGirdData = function () {
  532. page.search();
  533. };
  534. page.init();
  535. }