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

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