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.
 
 
 
 
 
 

128 lines
6.0 KiB

  1. /* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
  2. * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
  3. * 创建人:超级管理员
  4. * 日 期:2021-12-16 10:14
  5. * 描 述:长阳迎新
  6. */
  7. var refreshGirdData;
  8. var bootstrap = function ($, learun) {
  9. "use strict";
  10. var page = {
  11. init: function () {
  12. page.initGird();
  13. page.bind();
  14. },
  15. bind: function () {
  16. $('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
  17. page.search(queryJson);
  18. }, 220, 400);
  19. $('#Sex').lrDataItemSelect({ code: 'usersex' });
  20. // 刷新
  21. $('#lr_refresh').on('click', function () {
  22. location.reload();
  23. });
  24. //生成二维码
  25. $("#lr_qrcode").on('click', function () {
  26. learun.layerForm({
  27. id: 'formcard',
  28. title: '扫描二维码',
  29. url: top.$.rootUrl + '/EducationalAdministration/StuVolunteerPhone/QRCode',
  30. width: 700,
  31. height: 300,
  32. btn: null,
  33. end: function () { refreshGirdData(); }
  34. });
  35. })
  36. //// 录取
  37. //$('#lr_enroll').on('click', function () {
  38. // var keyValue = $('#gridtable').jfGridValue('ID');
  39. // if (learun.checkrow(keyValue)) {
  40. // learun.layerConfirm('是否确认录取选中项!', function (res) {
  41. // if (res) {
  42. // learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuVolunteer/EnrollForm', { keyValue: keyValue }, function () {
  43. // refreshGirdData();
  44. // });
  45. // }
  46. // });
  47. // }
  48. //});
  49. //// 取消录取
  50. //$('#lr_cancel').on('click', function () {
  51. // var keyValue = $('#gridtable').jfGridValue('ID');
  52. // if (learun.checkrow(keyValue)) {
  53. // learun.layerConfirm('是否确认取消录取选中项!', function (res) {
  54. // if (res) {
  55. // learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuVolunteer/CancelForm', { keyValue: keyValue }, function () {
  56. // refreshGirdData();
  57. // });
  58. // }
  59. // });
  60. // }
  61. //});
  62. },
  63. // 初始化列表
  64. initGird: function () {
  65. $('#gridtable').lrAuthorizeJfGrid({
  66. url: top.$.rootUrl + '/EducationalAdministration/StuVolunteer/GetPageList',
  67. headData: [
  68. {
  69. label: "录取意向(本校)", name: "IsCYSchool", width: 100, align: "left",
  70. formatter: function (cellvalue) {
  71. return cellvalue == true ? "<span class=\"label label-success\">是</span>" :
  72. "<span class=\"label label-danger\">否</span>";
  73. }
  74. },
  75. { label: "中考准考证号", name: "ExamNo", width: 100, align: "left" },
  76. { label: "中考总分", name: "StuScore", width: 100, align: "left" },
  77. { label: "学生姓名", name: "StuName", width: 100, align: "left" },
  78. {
  79. label: "性别", name: "Sex", width: 80, align: "left",
  80. formatterAsync: function (callback, value, row, op, $cell) {
  81. learun.clientdata.getAsync('dataItem', {
  82. key: value,
  83. code: 'usersex',
  84. callback: function (_data) {
  85. callback(_data.text);
  86. }
  87. });
  88. }
  89. },
  90. { label: "身份证号", name: "CardNo", width: 150, align: "left" },
  91. { label: "县区名称", name: "Address", width: 150, align: "left" },
  92. { label: "初中毕业学校", name: "BySchool", width: 150, align: "left" },
  93. { label: "初中学号", name: "H_SchoolNo", width: 150, align: "left" },
  94. { label: "中考报名号", name: "ApplyNo", width: 150, align: "left" },
  95. { label: "第一志愿", name: "FirstVolunteer", width: 120, align: "left" },
  96. { label: "第二志愿", name: "SecondVolunteer", width: 120, align: "left" },
  97. { label: "第三志愿", name: "ThirdVolunteer", width: 120, align: "left" },
  98. { label: "第四志愿", name: "FouthVolunteer", width: 120, align: "left" },
  99. { label: "第五志愿", name: "FifthVolunteer", width: 120, align: "left" },
  100. { label: "第六志愿", name: "SixthVolunteer", width: 120, align: "left" },
  101. { label: "第七志愿", name: "SeventhVolunteer", width: 120, align: "left" },
  102. { label: "第八志愿", name: "EighthVolunteer", width: 120, align: "left" },
  103. { label: "第九志愿", name: "NinthVolunteer", width: 120, align: "left" },
  104. { label: "备注", name: "Demo", width: 100, align: "left" },
  105. ],
  106. mainId: 'ID',
  107. isPage: true,
  108. rows: 100,
  109. isMultiselect: true
  110. });
  111. page.search();
  112. },
  113. search: function (param) {
  114. param = param || {};
  115. param.SqlParameter = " and IsEnroll=1 "
  116. $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
  117. }
  118. };
  119. refreshGirdData = function () {
  120. $('#gridtable').jfGridSet('reload');
  121. };
  122. page.init();
  123. }