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 8.0 KiB

4 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. /* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
  2. * Copyright (c) 2013-2018 北京泉江科技有限公司
  3. * 创建人:超级管理员
  4. * 日 期:2020-04-17 15:56
  5. * 描 述:招生学生信息
  6. */
  7. var selectedRow;
  8. var refreshGirdData;
  9. var bootstrap = function ($, learun) {
  10. "use strict";
  11. var page = {
  12. init: function () {
  13. page.initGird();
  14. page.bind();
  15. },
  16. bind: function () {
  17. // 查询
  18. $('#btn_Search').on('click', function () {
  19. var keyword = $('#txt_Keyword').val();
  20. page.search({ keyword: keyword });
  21. });
  22. // 刷新
  23. $('#lr_refresh').on('click', function () {
  24. location.reload();
  25. });
  26. // 新增
  27. $('#lr_add').on('click', function () {
  28. selectedRow = null;
  29. learun.layerForm({
  30. id: 'form',
  31. title: '新增',
  32. url: top.$.rootUrl + '/AdmissionsPlatform/OnlineStudentInfo/Form',
  33. width: 700,
  34. height: 400,
  35. callBack: function (id) {
  36. return top[id].acceptClick(refreshGirdData);
  37. }
  38. });
  39. });
  40. // 编辑
  41. $('#lr_edit').on('click', function () {
  42. var keyValue = $('#gridtable').jfGridValue('Id');
  43. selectedRow = $('#gridtable').jfGridGet('rowdata');
  44. if (learun.checkrow(keyValue)) {
  45. learun.layerForm({
  46. id: 'form',
  47. title: '编辑',
  48. url: top.$.rootUrl + '/AdmissionsPlatform/OnlineStudentInfo/Form?keyValue=' + keyValue,
  49. width: 700,
  50. height: 400,
  51. callBack: function (id) {
  52. return top[id].acceptClick(refreshGirdData);
  53. }
  54. });
  55. }
  56. });
  57. // 删除
  58. $('#lr_delete').on('click', function () {
  59. var keyValue = $('#gridtable').jfGridValue('Id');
  60. if (learun.checkrow(keyValue)) {
  61. learun.layerConfirm('是否确认删除该项!', function (res) {
  62. if (res) {
  63. learun.deleteForm(top.$.rootUrl + '/AdmissionsPlatform/OnlineStudentInfo/DeleteForm', { keyValue: keyValue}, function () {
  64. });
  65. }
  66. });
  67. }
  68. });
  69. },
  70. initGird: function () {
  71. $('#gridtable').lrAuthorizeJfGrid({
  72. url: top.$.rootUrl + '/AdmissionsPlatform/OnlineStudentInfo/GetPageList',
  73. headData: [
  74. { label: '学生ID', name: 'Id', width: 200, align: "left" },
  75. { label: '人员ID', name: 'UserId', width: 200, align: "left" },
  76. { label: '学员编号', name: 'StudentNumber', width: 200, align: "left" },
  77. { label: '报考类别(字典)', name: 'ExamineTypeId', width: 200, align: "left" },
  78. { label: '考生类别(字典)', name: 'ExamineeTypeId', width: 200, align: "left" },
  79. { label: '考生情况(字典)', name: 'ExamineeConditionId', width: 200, align: "left" },
  80. { label: '家庭出生(字典):农民、工人、干部', name: 'FamilyBirthId', width: 200, align: "left" },
  81. { label: '本人成分(字典)', name: 'OneselfComponent', width: 200, align: "left" },
  82. { label: '文化程度(字典)', name: 'CultureId', width: 200, align: "left" },
  83. { label: '婚否(字典)', name: 'MarriageId', width: 200, align: "left" },
  84. { label: '属何种照顾对象', name: 'WhichCareObject', width: 200, align: "left" },
  85. { label: '爱好特长', name: 'Hobbies', width: 200, align: "left" },
  86. { label: '是否城镇户口', name: 'IsTownId', width: 200, align: "left" },
  87. { label: '现学习或工作单位', name: 'WorkUnit', width: 200, align: "left" },
  88. { label: '任何职务', name: 'PostDuties', width: 200, align: "left" },
  89. { label: '工种(字典)', name: 'WorkTypeId', width: 200, align: "left" },
  90. { label: '证书编号', name: 'CertificateNumber', width: 200, align: "left" },
  91. { label: '何时何地受过何种奖励或处分', name: 'RewardOrPunish', width: 200, align: "left" },
  92. { label: '招生季度(字典)', name: 'QuarterId', width: 200, align: "left" },
  93. { label: '学习形式(字典):全日制', name: 'YearFormId', width: 200, align: "left" },
  94. { label: '毕业学校', name: 'GraduateSchool', width: 200, align: "left" },
  95. { label: '班级', name: 'Class', width: 200, align: "left" },
  96. { label: '银行卡号', name: 'BankNumber', width: 200, align: "left" },
  97. { label: '学制(字典)', name: 'LearnLength', width: 200, align: "left" },
  98. { label: '家庭联系人', name: 'FamilyLinkman', width: 200, align: "left" },
  99. { label: '家庭联系电话', name: 'FamilyPhone', width: 200, align: "left" },
  100. { label: '家庭年总收入', name: 'FamilyIncome', width: 200, align: "left" },
  101. { label: '家庭人均收入', name: 'FamilyFenIncome', width: 200, align: "left" },
  102. { label: '是否十万以下民族(字典):是、否', name: 'IsTenId', width: 200, align: "left" },
  103. { label: '是否家庭困难(字典)', name: 'IsHardId', width: 200, align: "left" },
  104. { label: '是否低保(字典)', name: 'IsBasicId', width: 200, align: "left" },
  105. { label: '收入来源(字典):务农、工人、职员、教师', name: 'IncomeSourceId', width: 200, align: "left" },
  106. { label: '备注', name: 'Remarks', width: 200, align: "left" },
  107. { label: '报考校区(字典)', name: 'SchoolId', width: 200, align: "left" },
  108. { label: '关联老师ID', name: 'UserTeacherId', width: 200, align: "left" },
  109. { label: '是否缴费(字典)', name: 'IsPaymentId', width: 200, align: "left" },
  110. { label: '缴费额度', name: 'PaymentQuota', width: 200, align: "left" },
  111. { label: '缴费时间', name: 'PaymentDate', width: 200, align: "left" },
  112. { label: '缴费方式(字典):1现金交费、0网上交费', name: 'PaymentMode', width: 200, align: "left" },
  113. { label: '是否报到(字典):1正常报到,0未报到,2异常报到', name: 'IsReportId', width: 200, align: "left" },
  114. { label: '报名时间', name: 'EnrollDate', width: 200, align: "left" },
  115. { label: '报名方式(字典):1现场报名、0网上报名', name: 'EnrollMode', width: 200, align: "left" },
  116. { label: '创建时间', name: 'CreateDate', width: 200, align: "left" },
  117. { label: '身体状况:问卷调查', name: 'BodyRemarks', width: 200, align: "left" },
  118. { label: '异常报到原因', name: 'ReportReason', width: 200, align: "left" },
  119. ],
  120. mainId:'Id',
  121. isPage: true
  122. });
  123. page.search();
  124. },
  125. search: function (param) {
  126. param = param || {};
  127. $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
  128. }
  129. };
  130. refreshGirdData = function () {
  131. page.search();
  132. };
  133. page.init();
  134. }