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.
 
 
 
 
 
 

747 lines
41 KiB

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