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.
 
 
 
 
 
 

175 lines
8.9 KiB

  1. /* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
  2. * Copyright (c) 2013-2018 北京泉江科技有限公司
  3. * 创建人:超级管理员
  4. * 日 期:2020-04-17 15:45
  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/OnlineUserInfo/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/OnlineUserInfo/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/OnlineUserInfo/DeleteForm', { keyValue: keyValue }, function () {
  64. });
  65. }
  66. });
  67. }
  68. });
  69. },
  70. initGird: function () {
  71. $('#gridtable').lrAuthorizeJfGrid({
  72. url: top.$.rootUrl + '/AdmissionsPlatform/OnlineUserInfo/GetPageListOfRegistrate',
  73. headData: [
  74. {
  75. label: '审核状态', name: 'AppStatus', width: 100, align: "left",
  76. formatterAsync: function (callback, value, row, op, $cell) {
  77. learun.clientdata.getAsync('dataItem', {
  78. key: value,
  79. code: 'AdmissionsAppStatus',
  80. callback: function (_data) {
  81. callback(_data.text);
  82. }
  83. });
  84. }
  85. },
  86. { label: '创建时间', name: 'CreateDate', width: 100, align: "left" },
  87. { label: '姓名', name: 'RealName', width: 100, align: "left" },
  88. { label: '身份证号', name: 'CertNum', width: 100, align: "left" },
  89. {
  90. label: '性别', name: 'SexId', width: 100, align: "left",
  91. formatterAsync: function (callback, value, row, op, $cell) {
  92. learun.clientdata.getAsync('dataItem', {
  93. key: value,
  94. code: 'usersexbit',
  95. callback: function (_data) {
  96. callback(_data.text);
  97. }
  98. });
  99. }
  100. },
  101. { label: '出生日期', name: 'BirthDate', width: 100, align: "left" },
  102. { label: '民族', name: 'Nation', width: 100, align: "left" },
  103. { label: '手机号码', name: 'Mobile', width: 100, align: "left" },
  104. { label: '政治面貌(字典)', name: 'PoliticsFace', width: 100, align: "left" },
  105. { label: '现户籍所在地', name: 'OriginAddress', width: 100, align: "left" },
  106. { label: '户口性质(字典)', name: 'OriginId', width: 100, align: "left" },
  107. { label: '在籍年份', name: 'SchoolDate', width: 100, align: "left" },
  108. { label: '详细地址', name: 'DetailedAddress', width: 100, align: "left" },
  109. { label: '邮政编码', name: 'ZipCode', width: 100, align: "left" },
  110. //专业级别?
  111. { label: '学习形式(字典):全日制', name: 'YearFormId', width: 100, align: "left" },
  112. { label: '招生季度(字典)', name: 'QuarterId', width: 100, align: "left" },
  113. { label: '毕业学校', name: 'GraduateSchool', width: 100, align: "left" },
  114. { label: '班级', name: 'Class', width: 100, align: "left" },
  115. { label: '工种(字典)', name: 'WorkTypeId', width: 100, align: "left" },
  116. { label: '爱好特长', name: 'Hobbies', width: 100, align: "left" },
  117. { label: '文化程度(字典)', name: 'CultureId', width: 100, align: "left" },
  118. { label: '银行卡号', name: 'BankNumber', width: 100, align: "left" },
  119. { label: '学制(字典)', name: 'LearnLength', width: 100, align: "left" },
  120. { label: '家庭联系人', name: 'FamilyLinkman', width: 100, align: "left" },
  121. { label: '家庭联系电话', name: 'FamilyPhone', width: 100, align: "left" },
  122. { label: '家庭年总收入', name: 'FamilyIncome', width: 100, align: "left" },
  123. { label: '家庭人均收入', name: 'FamilyFenIncome', width: 100, align: "left" },
  124. { label: '是否十万以下民族(字典):是、否', name: 'IsTenId', width: 100, align: "left" },
  125. { label: '是否家庭困难(字典)', name: 'IsHardId', width: 100, align: "left" },
  126. { label: '是否低保(字典)', name: 'IsBasicId', width: 100, align: "left" },
  127. { label: '收入来源(字典):务农、工人、职员、教师', name: 'IncomeSourceId', width: 100, align: "left" },
  128. {
  129. label: '报考校区', name: 'SchoolId', width: 100, align: "left",
  130. formatterAsync: function (callback, value, row, op, $cell) {
  131. learun.clientdata.getAsync('custmerData', {
  132. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'company',
  133. key: value,
  134. keyId: 'f_companyid',
  135. callback: function (_data) {
  136. callback(_data['f_fullname']);
  137. }
  138. });
  139. }
  140. },
  141. {
  142. label: '报考专业', name: 'MajorId', width: 100, align: "left",
  143. formatterAsync: function (callback, value, row, op, $cell) {
  144. learun.clientdata.getAsync('custmerData', {
  145. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdMajorInfo',
  146. key: value,
  147. keyId: 'majorno',
  148. callback: function (_data) {
  149. callback(_data['majorname']);
  150. }
  151. });
  152. }
  153. },
  154. { label: '关联老师ID', name: 'UserTeacherId', width: 100, align: "left" },
  155. { label: '缴费额度', name: 'PaymentQuota', width: 100, align: "left" },
  156. ],
  157. mainId: 'Id',
  158. isPage: true,
  159. sord: 'desc',
  160. sidx: 'CreateDate'
  161. });
  162. page.search();
  163. },
  164. search: function (param) {
  165. param = param || {};
  166. $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
  167. }
  168. };
  169. refreshGirdData = function () {
  170. page.search();
  171. };
  172. page.init();
  173. }