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.

DropOutIndex.js 43 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805
  1. var refreshGirdData;
  2. var StuId;
  3. var tempdatra = new Array();
  4. var list = [];
  5. var bootstrap = function ($, learun) {
  6. "use strict";
  7. var page = {
  8. init: function () {
  9. page.initGird();
  10. page.bind();
  11. },
  12. bind: function () {
  13. $('#navultab li').on('click', function () {
  14. if (!$(this).hasClass('active')) {
  15. $(this).parent().find('.active').removeClass('active');
  16. $(this).addClass('active');
  17. $('#condivtab .condiv').eq($(this).index()).siblings().hide()
  18. $('#condivtab .condiv').eq($(this).index()).show()
  19. }
  20. })
  21. $('#SubmitBtn').on('click', function () {
  22. if (!$('body').lrValidform()) {
  23. return false;
  24. }
  25. var entity = $('body').lrGetFormData();
  26. let starttime = new Date(entity.SuspensionBeginTime).getTime();
  27. let endtime = new Date(entity.SuspensionEndTime).getTime();
  28. if (endtime < starttime) {
  29. learun.alert.warning("起始日期不能大于终止日期!");
  30. return false;
  31. }
  32. if (parseInt(Math.abs(endtime - starttime) / 1000 / 60 / 60 / 24) < 183) {
  33. learun.alert.warning("起始时间与终止时间不能小于半年!");
  34. return false;
  35. }
  36. var selgridtab = $('#selgridtab').jfGridGet('rowdatas');
  37. $.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/StuTransferInfo/SaveForm', { entity: entity, strStuEntity: JSON.stringify(selgridtab) },
  38. function (res) {
  39. //console.log(res)
  40. if (res.code == 200) {
  41. setTimeout(function () {
  42. location.reload();
  43. }, 100)
  44. }
  45. // 保存成功后才回调
  46. //if (!!callBack) {
  47. // callBack(res);
  48. //}
  49. }
  50. );
  51. })
  52. $("#EducationExperienceReturn").attr("src", "/EducationalAdministration/StuTransferInfo/ReinstateIndex");
  53. $('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
  54. page.search(queryJson);
  55. }, 280, 400);
  56. $('#DeptNo').lrselect({
  57. allowSearch: true,
  58. value: "deptno",
  59. text: "deptname",
  60. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdDeptInfo',
  61. select: function (item) {
  62. if (item) {
  63. $('#MajorNo').lrselectRefresh({
  64. allowSearch: true,
  65. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo',
  66. param: { strWhere: "DeptNo='" + item.deptno + "' AND CheckMark=1" }
  67. });
  68. } else {
  69. $('#MajorNo').lrselectRefresh({
  70. allowSearch: true,
  71. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo',
  72. param: { strWhere: "1=1 AND CheckMark=1" }
  73. });
  74. }
  75. }
  76. });
  77. $('#MajorNo').lrselect({
  78. allowSearch: true,
  79. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo',
  80. value: "majorno",
  81. text: "majorname",
  82. param: { strWhere: "1=1 AND CheckMark=1" },
  83. select: function (item) {
  84. var Grades = $("#Grade").lrselectGet();
  85. if (Grades != null && Grades != "" && Grades != "undefined") {
  86. if (item) {
  87. $('#ClassNo').lrselectRefresh({
  88. allowSearch: true,
  89. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj',
  90. param: { strWhere: "majorno='" + item.majorno + "' AND CheckMark=1 AND Grade='" + Grades + "' order by classno desc" }
  91. });
  92. } else {
  93. $('#ClassNo').lrselectRefresh({
  94. allowSearch: true,
  95. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj',
  96. param: { strWhere: "1=1 AND CheckMark=1 order by classno desc" }
  97. });
  98. }
  99. } else {
  100. if (item) {
  101. $('#ClassNo').lrselectRefresh({
  102. allowSearch: true,
  103. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj',
  104. param: { strWhere: "majorno='" + item.majorno + "' AND CheckMark=1 order by classno desc" }
  105. });
  106. } else {
  107. $('#ClassNo').lrselectRefresh({
  108. allowSearch: true,
  109. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj',
  110. param: { strWhere: "1=1 AND CheckMark=1 order by classno desc" }
  111. });
  112. }
  113. }
  114. }
  115. });
  116. $('#Grade').lrselect({
  117. url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GenerateNearByYear',
  118. value: "value",
  119. text: "text",
  120. select: function (item) {
  121. var MajorNos = $("#MajorNo").lrselectGet();
  122. if (MajorNos != null && MajorNos != "" && MajorNos != "undefined") {
  123. if (item) {
  124. $('#ClassNo').lrselectRefresh({
  125. allowSearch: true,
  126. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj',
  127. param: {
  128. strWhere: "majorno='" + MajorNos + "' AND CheckMark=1 AND Grade='" + item.text + "' order by classno desc"
  129. }
  130. });
  131. } else {
  132. $('#ClassNo').lrselectRefresh({
  133. allowSearch: true,
  134. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj',
  135. param: { strWhere: "1=1 AND CheckMark=1 order by classno desc" }
  136. });
  137. }
  138. } else {
  139. if (item) {
  140. $('#ClassNo').lrselectRefresh({
  141. allowSearch: true,
  142. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj',
  143. param: {
  144. strWhere: "CheckMark=1 AND Grade='" + item.text + "' order by classno desc"
  145. }
  146. });
  147. } else {
  148. $('#ClassNo').lrselectRefresh({
  149. allowSearch: true,
  150. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj',
  151. param: { strWhere: "1=1 AND CheckMark=1 order by classno desc" }
  152. });
  153. }
  154. }
  155. }
  156. });
  157. $('#ClassNo').lrselect({
  158. allowSearch: true,
  159. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj',
  160. param: { strWhere: "1=1 AND CheckMark=1 order by classno desc" },
  161. value: "classno",
  162. text: "classname"
  163. });
  164. //提交下拉框
  165. //$('#AnomalousType').lrDataItemSelect({ code: 'StuChangeType' });
  166. $('#AnomalousType').lrselect({
  167. url: top.$.rootUrl + '/LR_SystemModule/DataItem/GetDetailList3',
  168. param: { itemCode: 'StuChangeType', strWhere: "and( F_ItemValue='05' or F_ItemValue='12'or F_ItemValue='11' or F_ItemValue='10'or F_ItemValue='13'or F_ItemValue='14' ) order by F_ItemValue desc" },
  169. value: "F_ItemValue",
  170. text: "F_ItemName"
  171. //nodeClick: function (item) {
  172. // type = item.value;
  173. // $('#titleinfo').text(item.text);
  174. // page.search();
  175. //}
  176. });
  177. //$('#AnomalousType').lrselectSet("05");
  178. $('#StuStatus').lrDataItemSelect({ code: 'YesOrNoInt' });
  179. $('#F_WriteMark').lrDataItemSelect({ code: 'YesOrNoInt' });
  180. // 刷新
  181. $('#lr_refresh').on('click', function () {
  182. location.reload();
  183. });
  184. //查看
  185. $('#lr_view').on('click', function () {
  186. var keyValue = $('#gridtable').jfGridValue('StuId');
  187. if (learun.checkrow(keyValue)) {
  188. if (keyValue.indexOf(',') != -1) {
  189. learun.alert.warning("只能选择一条记录进行查看!");
  190. return;
  191. }
  192. learun.layerForm({
  193. id: 'form',
  194. title: '查看',
  195. url: top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/FormView?keyValue=' + keyValue,
  196. width: 1162,
  197. height: 600,
  198. btn: null
  199. });
  200. }
  201. });
  202. $('#subbtn').on('click', function () {
  203. if (!$('body').lrValidform()) {
  204. return false;
  205. }
  206. var entity = $('body').lrGetFormData();
  207. var selgridtab = $('#selgridtab').jfGridGet('rowdatas');
  208. $.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/StuTransferInfo/SaveForm', { entity: entity, strStuEntity: JSON.stringify(selgridtab) },
  209. function (res) {
  210. if (res.code == 200) {
  211. setTimeout(function () {
  212. location.reload();
  213. }, 100)
  214. }
  215. }
  216. );
  217. })
  218. $('#selgridtab').jfGrid({
  219. headData: [
  220. //{
  221. // label: "审核状态", name: "CheckMark", width: 80, align: "center",
  222. // formatter: function (cellvalue) {
  223. // return cellvalue == "1" ? "<span class=\"label label-success\">已审核</span>" : "<span class=\"label label-danger\">未审核</span>";
  224. // }
  225. //},
  226. { label: "学生编号", name: "StuNo", width: 100, align: "left", ishide: true, },
  227. { label: "学籍号", name: "StuCode", width: 100, align: "left", ishide: true, },
  228. { label: "学号", name: "ProvinceCode", width: 100, align: "left" },
  229. { label: "姓名", name: "StuName", width: 100, align: "left" },
  230. {
  231. label: "性别", name: "GenderNo", width: 80, align: "left",
  232. formatter: function (cellvalue) {
  233. return cellvalue == true ? "男" : "女";
  234. }
  235. },
  236. {
  237. label: "出生日期", name: "Birthday", width: 100, align: "left", ishide: true,
  238. formatter: function (value) {
  239. return learun.formatDate(value, 'yyyy-MM-dd');
  240. }
  241. },
  242. { label: "身份证号", name: "IdentityCardNo", width: 100, align: "left" },
  243. {
  244. label: "民族", name: "NationalityNo", width: 100, align: "left",
  245. formatterAsync: function (callback, value, row, op, $cell) {
  246. learun.clientdata.getAsync('dataItem', {
  247. key: value,
  248. code: 'National',
  249. callback: function (_data) {
  250. callback(_data.text);
  251. }
  252. });
  253. }
  254. },
  255. //{
  256. // label: "政治面貌", name: "PartyFaceNo", width: 100, align: "left",
  257. // formatterAsync: function (callback, value, row, op, $cell) {
  258. // learun.clientdata.getAsync('dataItem', {
  259. // key: value,
  260. // code: 'PolityStatus',
  261. // callback: function (_data) {
  262. // callback(_data.text);
  263. // }
  264. // });
  265. // }
  266. //},
  267. { label: "年级", name: "Grade", width: 100, align: "left" },
  268. {
  269. label: "系所", name: "DeptNo", width: 100, align: "left",
  270. formatterAsync: function (callback, value, row, op, $cell) {
  271. learun.clientdata.getAsync('custmerData', {
  272. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdDeptInfo',
  273. key: value,
  274. keyId: 'deptno',
  275. callback: function (_data) {
  276. callback(_data['deptname']);
  277. }
  278. });
  279. }
  280. },
  281. {
  282. label: "专业", name: "MajorNo", width: 100, align: "left",
  283. formatterAsync: function (callback, value, row, op, $cell) {
  284. learun.clientdata.getAsync('custmerData', {
  285. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdMajorInfo',
  286. key: value,
  287. keyId: 'majorno',
  288. callback: function (_data) {
  289. callback(_data['majorname']);
  290. }
  291. });
  292. }
  293. },
  294. {
  295. label: "班级", name: "ClassNo", width: 100, align: "left",
  296. formatterAsync: function (callback, value, row, op, $cell) {
  297. learun.clientdata.getAsync('custmerData', {
  298. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'bjsj',
  299. key: value,
  300. keyId: 'classno',
  301. callback: function (_data) {
  302. callback(_data['classname']);
  303. }
  304. });
  305. }
  306. },
  307. {
  308. label: "学制", name: "EduSystem", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) {
  309. learun.clientdata.getAsync('dataItem', {
  310. key: value,
  311. code: 'EduSystem',
  312. callback: function (_data) {
  313. callback(_data.text);
  314. }
  315. });
  316. }
  317. },
  318. //{
  319. // label: "身体状态", name: "HealthStatus", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) {
  320. // learun.clientdata.getAsync('dataItem', {
  321. // key: value,
  322. // code: 'QRCodeHealthStatus',
  323. // callback: function (_data) {
  324. // callback(_data.text);
  325. // }
  326. // });
  327. // }
  328. //},
  329. //{
  330. // label: "学习形式", name: "StudyModality", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) {
  331. // learun.clientdata.getAsync('dataItem', {
  332. // key: value,
  333. // code: 'StudyModality',
  334. // callback: function (_data) {
  335. // callback(_data.text);
  336. // }
  337. // });
  338. // }
  339. //},
  340. //{ label: "报到日期", name: "RegisterDate", width: 100, align: "left" },
  341. //{ label: "入学方式", name: "EntranceWay", width: 100, align: "left" },
  342. //{ label: "入学年月", name: "EntranceDate", width: 100, align: "left" },
  343. //{ label: "余额", name: "Balance", width: 100, align: "left" },
  344. { label: "家庭地址", name: "MailAddress", width: 100, align: "left" },
  345. { label: "联系电话", name: "mobile", width: 100, align: "left" },
  346. { label: "户口所在地", name: "FatherUnit", width: 100, align: "left" },
  347. { label: "档案所在地", name: "MatherUnit", width: 100, align: "left" },
  348. {
  349. label: "操作", name: "Delete", width: 100, align: "center",
  350. formatter: function (callback, cellvalue, row, op, $cell) {
  351. var $div = $('<div></div>');
  352. var $hbtn = $('<span class="label label-info" style="cursor: pointer;margin-right:8px;"> 移除</span>');
  353. $hbtn.on('click', function () {
  354. tempdatra.map((item, index) => {
  355. if (item.StuNo == cellvalue.StuNo) {
  356. tempdatra.splice(index, 1)
  357. }
  358. });
  359. //console.log(tempdatra)
  360. $('#selgridtab').jfGridSet('refreshdata', tempdatra);
  361. });
  362. $div.append($hbtn);
  363. return $div;
  364. }
  365. },
  366. ],
  367. mainId: 'AAIId',
  368. });
  369. },
  370. // 初始化列表
  371. initGird: function () {
  372. $('#gridtable').lrAuthorizeJfGridLei({
  373. url: top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/GetPageList',
  374. headData: [
  375. //{
  376. // label: "审核状态", name: "CheckMark", width: 80, align: "center",
  377. // formatter: function (cellvalue) {
  378. // return cellvalue == "1" ? "<span class=\"label label-success\">已审核</span>" : "<span class=\"label label-danger\">未审核</span>";
  379. // }
  380. //},
  381. { label: "学生编号", name: "StuNo", width: 100, align: "left", ishide: true, },
  382. { label: "学籍号", name: "StuCode", width: 100, align: "left", ishide: true, },
  383. { label: "学号", name: "ProvinceCode", width: 100, align: "left" },
  384. { label: "姓名", name: "StuName", width: 100, align: "left" },
  385. {
  386. label: "性别", name: "GenderNo", width: 80, align: "left",
  387. formatter: function (cellvalue) {
  388. return cellvalue == true ? "男" : "女";
  389. }
  390. },
  391. {
  392. label: "出生日期", name: "Birthday", width: 100, align: "left", ishide: true,
  393. formatter: function (value) {
  394. return learun.formatDate(value, 'yyyy-MM-dd');
  395. }
  396. },
  397. { label: "身份证号", name: "IdentityCardNo", width: 100, align: "left" },
  398. {
  399. label: "民族", name: "NationalityNo", width: 100, align: "left",
  400. formatterAsync: function (callback, value, row, op, $cell) {
  401. learun.clientdata.getAsync('dataItem', {
  402. key: value,
  403. code: 'National',
  404. callback: function (_data) {
  405. callback(_data.text);
  406. }
  407. });
  408. }
  409. },
  410. //{
  411. // label: "政治面貌", name: "PartyFaceNo", width: 100, align: "left",
  412. // formatterAsync: function (callback, value, row, op, $cell) {
  413. // learun.clientdata.getAsync('dataItem', {
  414. // key: value,
  415. // code: 'PolityStatus',
  416. // callback: function (_data) {
  417. // callback(_data.text);
  418. // }
  419. // });
  420. // }
  421. //},
  422. { label: "年级", name: "Grade", width: 100, align: "left" },
  423. {
  424. label: "系所", name: "DeptNo", width: 100, align: "left",
  425. formatterAsync: function (callback, value, row, op, $cell) {
  426. learun.clientdata.getAsync('custmerData', {
  427. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdDeptInfo',
  428. key: value,
  429. keyId: 'deptno',
  430. callback: function (_data) {
  431. callback(_data['deptname']);
  432. }
  433. });
  434. }
  435. },
  436. {
  437. label: "专业", name: "MajorNo", width: 100, align: "left",
  438. formatterAsync: function (callback, value, row, op, $cell) {
  439. learun.clientdata.getAsync('custmerData', {
  440. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdMajorInfo',
  441. key: value,
  442. keyId: 'majorno',
  443. callback: function (_data) {
  444. callback(_data['majorname']);
  445. }
  446. });
  447. }
  448. },
  449. {
  450. label: "班级", name: "ClassNo", width: 100, align: "left",
  451. formatterAsync: function (callback, value, row, op, $cell) {
  452. learun.clientdata.getAsync('custmerData', {
  453. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'bjsj',
  454. key: value,
  455. keyId: 'classno',
  456. callback: function (_data) {
  457. callback(_data['classname']);
  458. }
  459. });
  460. }
  461. },
  462. {
  463. label: "学制", name: "EduSystem", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) {
  464. learun.clientdata.getAsync('dataItem', {
  465. key: value,
  466. code: 'EduSystem',
  467. callback: function (_data) {
  468. callback(_data.text);
  469. }
  470. });
  471. }
  472. },
  473. //{
  474. // label: "身体状态", name: "HealthStatus", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) {
  475. // learun.clientdata.getAsync('dataItem', {
  476. // key: value,
  477. // code: 'QRCodeHealthStatus',
  478. // callback: function (_data) {
  479. // callback(_data.text);
  480. // }
  481. // });
  482. // }
  483. //},
  484. //{
  485. // label: "学习形式", name: "StudyModality", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) {
  486. // learun.clientdata.getAsync('dataItem', {
  487. // key: value,
  488. // code: 'StudyModality',
  489. // callback: function (_data) {
  490. // callback(_data.text);
  491. // }
  492. // });
  493. // }
  494. //},
  495. //{ label: "报到日期", name: "RegisterDate", width: 100, align: "left" },
  496. //{ label: "入学方式", name: "EntranceWay", width: 100, align: "left" },
  497. //{ label: "入学年月", name: "EntranceDate", width: 100, align: "left" },
  498. //{ label: "余额", name: "Balance", width: 100, align: "left" },
  499. { label: "家庭地址", name: "MailAddress", width: 100, align: "left" },
  500. { label: "联系电话", name: "mobile", width: 100, align: "left" },
  501. { label: "户口所在地", name: "FatherUnit", width: 100, align: "left" },
  502. { label: "档案所在地", name: "MatherUnit", width: 100, align: "left" },
  503. //{
  504. // label: "五年一贯制", name: "FiveYear", width: 100, align: "left"
  505. // , formatterAsync: function (callback, value, row, op, $cell) {
  506. // learun.clientdata.getAsync('dataItem', {
  507. // key: value,
  508. // code: 'PieceCultivateWay',
  509. // callback: function (_data) {
  510. // callback(_data.text);
  511. // }
  512. // });
  513. // }
  514. //},
  515. //{
  516. // label: "异动状态", name: "AbmormityMoveMark", width: 80, align: "center",
  517. // formatter: function (cellvalue) {
  518. // return cellvalue == "1" ? "<i class=\"fa fa-toggle-on\"></i>" : "<i class=\"fa fa-toggle-off\"></i>";
  519. // }
  520. //},
  521. //{
  522. // label: "是否上传头像", name: "Photo", width: 80, align: "center",
  523. // formatter: function (cellvalue) {
  524. // if (cellvalue != null && cellvalue != "" && cellvalue != undefined) {
  525. // return cellvalue = "<span class=\"label label-success\">是</span>";
  526. // } else {
  527. // return cellvalue = "<span class=\"label label-danger\">否</span>";
  528. // }
  529. // }
  530. //},
  531. //{ label: "拼音", name: "SpellFull", width: 100, align: "left", ishide: true },
  532. //{ label: "就读方式", name: "StudyingWay", width: 100, align: "left", ishide: true },
  533. //{
  534. // label: "国籍", name: "CountryNo", width: 100, align: "left", ishide: true,
  535. // formatterAsync: function (callback, value, row, op, $cell) {
  536. // learun.clientdata.getAsync('dataItem', {
  537. // key: value,
  538. // code: 'BCdCountry',
  539. // callback: function (_data) {
  540. // callback(_data.text);
  541. // }
  542. // });
  543. // }
  544. //},
  545. //{
  546. // label: "港澳台侨外", name: "OverseasChineseNo", width: 100, align: "left", ishide: true,
  547. // formatterAsync: function (callback, value, row, op, $cell) {
  548. // learun.clientdata.getAsync('dataItem', {
  549. // key: value,
  550. // code: 'BCdOverseasChinese',
  551. // callback: function (_data) {
  552. // callback(_data.text);
  553. // }
  554. // });
  555. // }
  556. //},
  557. //{
  558. // label: "婚姻状况", name: "MarriageStatus", width: 100, align: "left", ishide: true,
  559. // formatterAsync: function (callback, value, row, op, $cell) {
  560. // learun.clientdata.getAsync('dataItem', {
  561. // key: value,
  562. // code: 'BCdOverseasChinese',
  563. // callback: function (_data) {
  564. // callback(_data.text);
  565. // }
  566. // });
  567. // }
  568. //},
  569. //{ label: "乘火车区间", name: "TrainInterval", width: 100, align: "left", ishide: true, },
  570. //{ label: "是否随迁子女", name: "IsTrailChildren", width: 100, align: "left", ishide: true, },
  571. //{ label: "生源地行政区划码", name: "StuPlaceCode", width: 100, align: "left", ishide: true, },
  572. //{ label: "出生地行政区划码", name: "BirthPlaceCode", width: 100, align: "left", ishide: true, },
  573. //{ label: "籍贯地行政区划码", name: "NativePlaceCode", width: 100, align: "left", ishide: true, },
  574. //{ label: "所属派出所", name: "BelongPolice", width: 100, align: "left", ishide: true, },
  575. //{ label: "户口所在地行政区划码", name: "ResidencePlaceCode", width: 100, align: "left", ishide: true, },
  576. //{ label: "是否农户", name: "ResidenceNo", width: 100, align: "left", ishide: true, },
  577. //{
  578. // label: "学生居住地类型", name: "StuLivePlaceType", width: 100, align: "left", ishide: true,
  579. // formatterAsync: function (callback, value, row, op, $cell) {
  580. // learun.clientdata.getAsync('dataItem', {
  581. // key: value,
  582. // code: 'StuLivePlaceType',
  583. // callback: function (_data) {
  584. // callback(_data.text);
  585. // }
  586. // });
  587. // }
  588. //},
  589. //{
  590. // label: "健康状况", name: "HealthStatusNo", width: 100, align: "left", ishide: true,
  591. // formatterAsync: function (callback, value, row, op, $cell) {
  592. // learun.clientdata.getAsync('dataItem', {
  593. // key: value,
  594. // code: 'StuHealthType',
  595. // callback: function (_data) {
  596. // callback(_data.text);
  597. // }
  598. // });
  599. // }
  600. //},
  601. //{ label: "学生来源", name: "StuOrigin", width: 100, align: "left", ishide: true, },
  602. //{ label: "招生对象", name: "RecruitObject", width: 100, align: "left", ishide: true, },
  603. //{ label: "贫困户否建档立卡贫困户", name: "PoorIsRecord", width: 100, align: "left", ishide: true, },
  604. //{
  605. // label: "招生方式", name: "RecruitWay", width: 100, align: "left", ishide: true,
  606. // formatterAsync: function (callback, value, row, op, $cell) {
  607. // learun.clientdata.getAsync('dataItem', {
  608. // key: value,
  609. // code: 'RecruitWay',
  610. // callback: function (_data) {
  611. // callback(_data.text);
  612. // }
  613. // });
  614. // }
  615. //},
  616. //{
  617. // label: "联招合作类型", name: "RecruitCooperateType", width: 100, align: "left", ishide: true,
  618. // formatterAsync: function (callback, value, row, op, $cell) {
  619. // learun.clientdata.getAsync('dataItem', {
  620. // key: value,
  621. // code: 'RecruitCooperateType',
  622. // callback: function (_data) {
  623. // callback(_data.text);
  624. // }
  625. // });
  626. // }
  627. //},
  628. //{ label: "准考证号", name: "AdmissionNo", width: 100, align: "left", ishide: true, },
  629. //{ label: "考生号", name: "ksh", width: 100, align: "left", ishide: true, },
  630. //{ label: "考试总分", name: "ExamScore", width: 100, align: "left", ishide: true, },
  631. //{ label: "联招合作办学形式", name: "RecruitCooperateForm", width: 100, align: "left", ishide: true, },
  632. //{ label: "联招合作学校代码", name: "RecruitCooperateSchoolNo", width: 100, align: "left", ishide: true, },
  633. //{ label: "校外教学点", name: "SchoolOutsidePlace", width: 100, align: "left", ishide: true, },
  634. //{ label: "英文姓名", name: "EnglishName", width: 100, align: "left", ishide: true, },
  635. //{ label: "家庭邮政编码", name: "PostalCode", width: 100, align: "left", ishide: true, },
  636. //{ label: "其他联系方式", name: "OtherContact", width: 100, align: "left", ishide: true, },
  637. //{ label: "成员1姓名", name: "OneName", width: 100, align: "left", ishide: true, },
  638. //{ label: "成员1联系电话", name: "OneMobile", width: 100, align: "left", ishide: true },
  639. //{
  640. // label: "成员1关系", name: "OneMembership", width: 100, align: "left", ishide: true,
  641. // formatterAsync: function (callback, value, row, op, $cell) {
  642. // learun.clientdata.getAsync('dataItem', {
  643. // key: value,
  644. // code: 'GuardianType',
  645. // callback: function (_data) {
  646. // callback(_data.text);
  647. // }
  648. // });
  649. // }
  650. //},
  651. //{ label: "成员1是否监护人", name: "OneIsGuardian", width: 100, align: "left", ishide: true, },
  652. //{
  653. // label: "成员1出生年月", name: "OneBirthday", width: 100, align: "left", ishide: true,
  654. // formatter: function (value) {
  655. // return learun.formatDate(value, 'yyyy-MM-dd');
  656. // }
  657. //},
  658. //{
  659. // label: "成员1身份证件类型", name: "OneIdCardType", width: 100, align: "left", ishide: true,
  660. // formatterAsync: function (callback, value, row, op, $cell) {
  661. // learun.clientdata.getAsync('dataItem', {
  662. // key: value,
  663. // code: 'IdCardType',
  664. // callback: function (_data) {
  665. // callback(_data.text);
  666. // }
  667. // });
  668. // }
  669. //},
  670. //{ label: "成员1身份证件号", name: "OneIdCardNo", width: 100, align: "left", ishide: true, },
  671. //{
  672. // label: "成员1民族", name: "OneNationalityNo", width: 100, align: "left", ishide: true,
  673. // formatterAsync: function (callback, value, row, op, $cell) {
  674. // learun.clientdata.getAsync('dataItem', {
  675. // key: value,
  676. // code: 'National',
  677. // callback: function (_data) {
  678. // callback(_data.text);
  679. // }
  680. // });
  681. // }
  682. //},
  683. //{
  684. // label: "成员1健康状况", name: "OneHealthStatus", width: 100, align: "left", ishide: true,
  685. // formatterAsync: function (callback, value, row, op, $cell) {
  686. // learun.clientdata.getAsync('dataItem', {
  687. // key: value,
  688. // code: 'EpiHealth',
  689. // callback: function (_data) {
  690. // callback(_data.text);
  691. // }
  692. // });
  693. // }
  694. //},
  695. //{ label: "成员1工作或学习单位", name: "OneJob", width: 100, align: "left", ishide: true, },
  696. //{ label: "成员2姓名", name: "TwoName", width: 100, align: "left", ishide: true, },
  697. //{ label: "成员2联系电话", name: "TwoMobile", width: 100, align: "left", ishide: true },
  698. //{
  699. // label: "成员2关系", name: "TwoMembership", width: 100, align: "left", ishide: true,
  700. // formatterAsync: function (callback, value, row, op, $cell) {
  701. // learun.clientdata.getAsync('dataItem', {
  702. // key: value,
  703. // code: 'GuardianType',
  704. // callback: function (_data) {
  705. // callback(_data.text);
  706. // }
  707. // });
  708. // }
  709. //},
  710. //{ label: "成员2是否监护人", name: "TwoIsGuardian", width: 100, align: "left", ishide: true, },
  711. //{
  712. // label: "成员2出生年月", name: "TwoBirthday", width: 100, align: "left", ishide: true,
  713. // formatter: function (value) {
  714. // return learun.formatDate(value, 'yyyy-MM-dd');
  715. // }
  716. //},
  717. //{
  718. // label: "成员2身份证件类型", name: "TwoIdCardType", width: 100, align: "left", ishide: true,
  719. // formatterAsync: function (callback, value, row, op, $cell) {
  720. // learun.clientdata.getAsync('dataItem', {
  721. // key: value,
  722. // code: 'IdCardType',
  723. // callback: function (_data) {
  724. // callback(_data.text);
  725. // }
  726. // });
  727. // }
  728. //},
  729. //{ label: "成员2身份证件号", name: "TwoIdCardNo", width: 100, align: "left", ishide: true, },
  730. //{
  731. // label: "成员2民族", name: "TwoNationalityNo", width: 100, align: "left", ishide: true,
  732. // formatterAsync: function (callback, value, row, op, $cell) {
  733. // learun.clientdata.getAsync('dataItem', {
  734. // key: value,
  735. // code: 'National',
  736. // callback: function (_data) {
  737. // callback(_data.text);
  738. // }
  739. // });
  740. // }
  741. //},
  742. //{
  743. // label: "成员2健康状况", name: "TwoHealthStatus", width: 100, align: "left", ishide: true,
  744. // formatterAsync: function (callback, value, row, op, $cell) {
  745. // learun.clientdata.getAsync('dataItem', {
  746. // key: value,
  747. // code: 'EpiHealth',
  748. // callback: function (_data) {
  749. // callback(_data.text);
  750. // }
  751. // });
  752. // }
  753. //},
  754. //{ label: "成员2工作或学习单位", name: "TwoJob", width: 100, align: "left", ishide: true, },
  755. //{ label: "成员2职务", name: "TwoPosition", width: 100, align: "left", ishide: true, },
  756. ],
  757. mainId: 'StuId',
  758. isPage: true,
  759. rows: 100,
  760. isMultiselect: true,
  761. onSelectRow: function (rowdata, type) {
  762. if (type) {
  763. list.push(rowdata)
  764. let temp = {}
  765. list = list.reduce((prev, curv) => {
  766. if (temp[curv.StuNo]) { }
  767. else {
  768. temp[curv.StuNo] = true
  769. prev.push(curv)
  770. }
  771. return prev
  772. }, [])
  773. //var selectedRow = $('#gridtable').jfGridGet('rowdata');
  774. tempdatra = list
  775. $('#selgridtab').jfGridSet('refreshdata', tempdatra);
  776. }
  777. }
  778. });
  779. page.search();
  780. },
  781. search: function (param) {
  782. param = param || {};
  783. param.CheckMark = '1';
  784. param.Mustsql = '1';
  785. param.RestAgainSql = '1';
  786. $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
  787. }
  788. };
  789. refreshGirdData = function () {
  790. page.search();
  791. };
  792. page.init();
  793. }