Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

4 лет назад
4 лет назад
4 лет назад
4 лет назад
4 лет назад
4 лет назад
4 лет назад
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  1. /* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
  2. * Copyright (c) 2013-2018 北京泉江科技有限公司
  3. * 创建人:超级管理员
  4. * 日 期:2019-07-17 11:20
  5. * 描 述:新生录取管理
  6. */
  7. var refreshGirdData;
  8. var StuId;
  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. $('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
  18. page.search(queryJson);
  19. }, 380, 400);
  20. $("#IsMug").lrDataItemSelect({ code: "jyYewOrNot" });
  21. $('#Year').lrselect({
  22. url: top.$.rootUrl + '/EducationalAdministration/StuEnroll/GetYearListByClass',
  23. value: "year",
  24. text: "year",
  25. })
  26. $('#MajorNo').lrselect({
  27. allowSearch: true,
  28. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo',
  29. value: "majorno",
  30. text: "majorname",
  31. param: { strWhere: "1=1 AND CheckMark=1" },
  32. select: function (item) {
  33. if (item) {
  34. $('#ClassNo').lrselectRefresh({
  35. allowSearch: true,
  36. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj',
  37. param: { strWhere: "majorno='" + item.majorno + "' AND CheckMark=1" }
  38. });
  39. } else {
  40. $('#ClassNo').lrselectRefresh({
  41. allowSearch: true,
  42. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj',
  43. param: { strWhere: "1=1 AND CheckMark=1" }
  44. });
  45. }
  46. }
  47. });
  48. $('#ClassNo').lrselect({
  49. allowSearch: true,
  50. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj',
  51. param: { strWhere: "1=1 AND CheckMark=1" },
  52. value: "classno",
  53. text: "classname"
  54. });
  55. // 刷新
  56. $('#lr_refresh').on('click', function () {
  57. location.reload();
  58. });
  59. // 打印
  60. $('#lr_print').on('click', function () {
  61. $('#gridtable').jqprintTable();
  62. });
  63. $('#lr_view').on('click', function () {
  64. var keyValue = $('#gridtable').jfGridValue('StuId');
  65. if (learun.checkrow(keyValue)) {
  66. learun.layerForm({
  67. id: 'form',
  68. title: '查看',
  69. url: top.$.rootUrl + '/EducationalAdministration/StuEnroll/FormView?keyValue=' + keyValue,
  70. width: 800,
  71. height: 600,
  72. btn: null
  73. });
  74. }
  75. });
  76. $("#lr_photo").on('click', function () {
  77. StuId = $("#gridtable").jfGridValue('StuId');
  78. if (learun.checkrow(StuId)) {
  79. takeImg();
  80. }
  81. });
  82. //关联照片
  83. $("#lr_realationPhoto").on('click', function () {
  84. learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuEnroll/RealationPhoto', {}, function () {
  85. refreshGirdData();
  86. });
  87. })
  88. //确认报到
  89. $("#lr_allphoto").on('click',
  90. function () {
  91. learun.layerConfirm('是否全部拍照!',
  92. function (res) {
  93. if (res) {
  94. learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuEnroll/AllPhoto',
  95. {},
  96. function (res) {
  97. refreshGirdData();
  98. });
  99. }
  100. });
  101. });
  102. $("#lr_cardprint").on('click', function () {
  103. var keyValue = $("#gridtable").jfGridValue('StuId');
  104. var IsPay = $("#gridtable").jfGridValue('IsPay');
  105. if (learun.checkrow(keyValue)) {
  106. if (IsPay == true || IsPay == "true") {
  107. learun.layerForm({
  108. id: 'formcardprint',
  109. title: '打印一卡通',
  110. url: top.$.rootUrl + '/EducationalAdministration/StuEnroll/CardPrint?keyValue=' + keyValue,
  111. width: 700,
  112. height: 300,
  113. btn: null,
  114. //end: function () { refreshGirdData(); }
  115. });
  116. } else {
  117. learun.alert.warning("尚未缴费,请先完成缴费再打印");
  118. }
  119. }
  120. });
  121. },
  122. // 初始化列表
  123. initGird: function () {
  124. $('#gridtable').lrAuthorizeJfGrid({
  125. url: top.$.rootUrl + '/EducationalAdministration/StuEnroll/GetPageList',
  126. headData: [
  127. { label: "学生报名号", name: "RegistrationNo", width: 100, align: "left" },
  128. { label: "姓名", name: "StuName", width: 100, align: "left" },
  129. {
  130. label: "班级", name: "ClassNo", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) {
  131. learun.clientdata.getAsync('custmerData', {
  132. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'bjsj',
  133. key: value,
  134. keyId: 'classno',
  135. callback: function (_data) {
  136. callback(_data['classname']);
  137. }
  138. });
  139. }
  140. },
  141. {
  142. label: "是否拍照", name: "IsMug", width: 100, align: "left",
  143. formatter: function (value, row) {
  144. if (row.IsMug) {
  145. return '<span class=\"label label-success\">已拍照</span>';
  146. } else if (row.IsMug == false) {
  147. return '<span class=\"label label-warning\">未拍照</span>';
  148. } else {
  149. return '未处理';
  150. }
  151. }
  152. },
  153. {
  154. label: "性别", name: "Gender", width: 100, align: "left", formatter: function (value) {
  155. return value == "1" ? "男" : "女";
  156. }
  157. },
  158. {
  159. label: "民族", name: "Nationals", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) {
  160. learun.clientdata.getAsync('custmerData', {
  161. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdNationality',
  162. key: value,
  163. keyId: 'nationalityno',
  164. callback: function (_data) {
  165. callback(_data['nationality']);
  166. }
  167. });
  168. }
  169. },
  170. { label: "出生年月", name: "Birthday", width: 100, align: "left", formatter: function (val) { return val != null && val != "" ? val.substring(0, 10) : ""; } },
  171. { label: "身份证", name: "IDCard", width: 100, align: "left" },
  172. {
  173. label: "政治面貌", name: "Political", width: 100, align: "left",
  174. formatterAsync: function (callback, value, row, op, $cell) {
  175. learun.clientdata.getAsync('custmerData', {
  176. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdPartyFace',
  177. key: value,
  178. keyId: 'partyfaceno',
  179. callback: function (_data) {
  180. callback(_data['partyface']);
  181. }
  182. });
  183. }
  184. },
  185. {
  186. label: "届别", name: "FreshType", width: 100, align: "left",
  187. formatterAsync: function (callback, value, row, op, $cell) {
  188. learun.clientdata.getAsync('dataItem', {
  189. key: value,
  190. code: 'timeType',
  191. callback: function (_data) {
  192. callback(_data.text);
  193. }
  194. });
  195. }
  196. },
  197. {
  198. label: "户别", name: "ResidenceType", width: 100, align: "left",
  199. formatterAsync: function (callback, value, row, op, $cell) {
  200. learun.clientdata.getAsync('dataItem', {
  201. key: value,
  202. code: 'HouseholdCategory',
  203. callback: function (_data) {
  204. callback(_data.text);
  205. }
  206. });
  207. }
  208. },
  209. {
  210. label: "考生类别", name: "StuType", width: 100, align: "left",
  211. formatterAsync: function (callback, value, row, op, $cell) {
  212. learun.clientdata.getAsync('dataItem', {
  213. key: value,
  214. code: 'stuType',
  215. callback: function (_data) {
  216. callback(_data.text);
  217. }
  218. });
  219. }
  220. },
  221. { label: "户口地", name: "ResidenceAddress", width: 100, align: "left" },
  222. { label: "非京籍报考类", name: "NonNative", width: 100, align: "left" },
  223. { label: "学籍所在学校", name: "FromSchool", width: 100, align: "left" },
  224. { label: "家庭住址", name: "HomeAddress", width: 100, align: "left" },
  225. { label: "第一监护人", name: "FirstGuardian", width: 100, align: "left" },
  226. { label: "与被监护人关系", name: "FirstRelationship", width: 100, align: "left" },
  227. { label: "工作单位", name: "FirstUnits", width: 100, align: "left" },
  228. { label: "联系电话", name: "FirstMobile", width: 100, align: "left" },
  229. { label: "第二监护人", name: "SecondGuardian", width: 100, align: "left" },
  230. { label: "与被监护人关系", name: "SecondRelationship", width: 100, align: "left" },
  231. { label: "工作单位", name: "SecondUnits", width: 100, align: "left" },
  232. { label: "联系电话", name: "SecondMobile", width: 100, align: "left" },
  233. { label: "接收通知书地址", name: "Acceptance", width: 100, align: "left" },
  234. { label: "收件人", name: "Recipient", width: 100, align: "left" },
  235. { label: "邮政编码", name: "ZipCode", width: 100, align: "left" },
  236. { label: "既往病史", name: "MedicalHistory", width: 100, align: "left" },
  237. { label: "加分照顾对象", name: "AdditionalCare", width: 100, align: "left" },
  238. { label: "录取专业代码", name: "MajorNo", width: 100, align: "left" },
  239. { label: "录取专业名称", name: "MajorName", width: 100, align: "left" },
  240. {
  241. label: "录取方式", name: "Admissions", width: 100, align: "left",
  242. formatterAsync: function (callback, value, row, op, $cell) {
  243. learun.clientdata.getAsync('dataItem', {
  244. key: value,
  245. code: 'enrollType',
  246. callback: function (_data) {
  247. callback(_data.text);
  248. }
  249. });
  250. }
  251. },
  252. { label: "是否住宿", name: "IsAccommodation", width: 100, align: "left" },
  253. { label: "准考证号", name: "ExamRegistration", width: 100, align: "left" },
  254. ],
  255. mainId: 'StuId',
  256. isPage: true
  257. });
  258. page.search();
  259. },
  260. search: function (param) {
  261. param = param || {};
  262. //param.SqlParameter = " AND IsPay ='true'";
  263. param.SqlParameter = ' AND IsReport=1';
  264. //param.Grade = "20";
  265. $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
  266. }
  267. };
  268. refreshGirdData = function () {
  269. page.search();
  270. };
  271. page.init();
  272. }