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.
 
 
 
 
 
 

907 lines
49 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. $('#NewDeptNo').lrselect({
  126. allowSearch: true,
  127. value: "deptno",
  128. text: "deptname",
  129. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdDeptInfo',
  130. select: function (item) {
  131. if (item) {
  132. $('#NewMajorNo').lrselectRefresh({
  133. allowSearch: true,
  134. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo',
  135. param: { strWhere: "DeptNo='" + item.deptno + "' AND CheckMark=1" }
  136. });
  137. } else {
  138. $('#NewMajorNo').lrselectRefresh({
  139. allowSearch: true,
  140. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo',
  141. param: { strWhere: "1=1 AND CheckMark=1" }
  142. });
  143. }
  144. }
  145. });
  146. $('#NewMajorNo').lrselect({
  147. allowSearch: true,
  148. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo',
  149. value: "majorno",
  150. text: "majorname",
  151. param: { strWhere: "1=1 AND CheckMark=1" },
  152. select: function (item) {
  153. var Grades = $("#NewGrade").lrselectGet();
  154. if (Grades != null && Grades != "" && Grades != "undefined") {
  155. if (item) {
  156. $('#NewClassNo').lrselectRefresh({
  157. allowSearch: true,
  158. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj',
  159. param: { strWhere: "majorno='" + item.majorno + "' AND CheckMark=1 AND Grade='" + Grades + "' order by classno desc" }
  160. });
  161. } else {
  162. $('#NewClassNo').lrselectRefresh({
  163. allowSearch: true,
  164. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj',
  165. param: { strWhere: "1=1 AND CheckMark=1 order by classno desc" }
  166. });
  167. }
  168. } else {
  169. if (item) {
  170. $('#NewClassNo').lrselectRefresh({
  171. allowSearch: true,
  172. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj',
  173. param: { strWhere: "majorno='" + item.majorno + "' AND CheckMark=1 order by classno desc" }
  174. });
  175. } else {
  176. $('#NewClassNo').lrselectRefresh({
  177. allowSearch: true,
  178. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj',
  179. param: { strWhere: "1=1 AND CheckMark=1 order by classno desc" }
  180. });
  181. }
  182. }
  183. }
  184. });
  185. $('#NewGrade').lrselect({
  186. url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GenerateNearByYear',
  187. value: "value",
  188. text: "text",
  189. select: function (item) {
  190. var MajorNos = $("#NewMajorNo").lrselectGet();
  191. if (MajorNos != null && MajorNos != "" && MajorNos != "undefined") {
  192. if (item) {
  193. $('#NewClassNo').lrselectRefresh({
  194. allowSearch: true,
  195. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj',
  196. param: {
  197. strWhere: "majorno='" + MajorNos + "' AND CheckMark=1 AND Grade='" + item.text + "' order by classno desc"
  198. }
  199. });
  200. } else {
  201. $('#NewClassNo').lrselectRefresh({
  202. allowSearch: true,
  203. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj',
  204. param: { strWhere: "1=1 AND CheckMark=1 order by classno desc" }
  205. });
  206. }
  207. } else {
  208. if (item) {
  209. $('#NewClassNo').lrselectRefresh({
  210. allowSearch: true,
  211. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj',
  212. param: {
  213. strWhere: "CheckMark=1 AND Grade='" + item.text + "' order by classno desc"
  214. }
  215. });
  216. } else {
  217. $('#NewClassNo').lrselectRefresh({
  218. allowSearch: true,
  219. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj',
  220. param: { strWhere: "1=1 AND CheckMark=1 order by classno desc" }
  221. });
  222. }
  223. }
  224. }
  225. });
  226. $('#NewClassNo').lrselect({
  227. allowSearch: true,
  228. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj',
  229. param: { strWhere: "1=1 AND CheckMark=1 order by classno desc" },
  230. value: "classno",
  231. text: "classname"
  232. });
  233. //$('#AnomalousType').lrDataItemSelect({ code: 'StuChangeType' });
  234. //$('#AnomalousType').lrselectSet("01");
  235. $('#AnomalousType').lrselect({
  236. url: top.$.rootUrl + '/LR_SystemModule/DataItem/GetDetailList3',
  237. param: { itemCode: 'StuChangeType', strWhere: "and( F_ItemValue='01' or F_ItemValue='07'or F_ItemValue='08' or F_ItemValue='15' ) order by F_ItemValue desc" },
  238. value: "F_ItemValue",
  239. text: "F_ItemName"
  240. //nodeClick: function (item) {
  241. // type = item.value;
  242. // $('#titleinfo').text(item.text);
  243. // page.search();
  244. //}
  245. });
  246. $('#StuStatus').lrDataItemSelect({ code: 'YesOrNoInt' });
  247. const formatTime = (format = "", num = new Date().getTime()) => {
  248. format = format || "YYYY-mm-dd HH:MM:SS"; //第一个参数不填时,使用默认格式
  249. let ret, date, renum;
  250. // 处理时间戳,js一般获取的时间戳是13位,PHP一般是10位,根据实际情况做判断处理
  251. if (num.toString().length == 10) {
  252. date = new Date(parseInt(num) * 1000);
  253. } else {
  254. date = new Date(parseInt(num));
  255. }
  256. const opt = {
  257. "Y": date.getFullYear().toString(), // 年
  258. "m": (date.getMonth() + 1).toString(), // 月
  259. "d": date.getDate().toString(), // 日
  260. "H": date.getHours().toString(), // 时
  261. "M": date.getMinutes().toString(), // 分
  262. "S": date.getSeconds().toString() // 秒
  263. // 目前用的是这六种符号,有其他格式化字符需求可以继续添加,值必须转化成字符串
  264. };
  265. for (var k in opt) {
  266. ret = new RegExp("(" + k + "+)").exec(format);
  267. if (ret) {
  268. renum = (ret[1].length == 1) ? (opt[k]) : (opt[k].padStart(ret[1].length, "0")) //根据复数前面是否补零,如“mm”补零,单“m”前面不补零
  269. format = format.replace(ret[1], renum) //替换
  270. };
  271. };
  272. return format;
  273. };
  274. $('#LeaveDate').on('change', function () {
  275. var dateTime = new Date($('#LeaveDate').val());
  276. dateTime = dateTime.setDate(dateTime.getDate() - 1);
  277. $('#EnteDate').val(formatTime('YYYY-mm-dd', dateTime))
  278. });
  279. // 刷新
  280. $('#lr_refresh').on('click', function () {
  281. location.reload();
  282. });
  283. //查看
  284. $('#lr_view').on('click', function () {
  285. var keyValue = $('#gridtable').jfGridValue('StuId');
  286. if (learun.checkrow(keyValue)) {
  287. if (keyValue.indexOf(',') != -1) {
  288. learun.alert.warning("只能选择一条记录进行查看!");
  289. return;
  290. }
  291. learun.layerForm({
  292. id: 'form',
  293. title: '查看',
  294. url: top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/FormView?keyValue=' + keyValue,
  295. width: 1162,
  296. height: 600,
  297. btn: null
  298. });
  299. }
  300. });
  301. $('#selgridtab').jfGrid({
  302. headData: [
  303. //{
  304. // label: "审核状态", name: "CheckMark", width: 80, align: "center",
  305. // formatter: function (cellvalue) {
  306. // return cellvalue == "1" ? "<span class=\"label label-success\">已审核</span>" : "<span class=\"label label-danger\">未审核</span>";
  307. // }
  308. //},
  309. { label: "学生编号", name: "StuNo", width: 100, align: "left", ishide: true, },
  310. { label: "学籍号", name: "StuCode", width: 100, align: "left", ishide: true, },
  311. { label: "学号", name: "ProvinceCode", width: 100, align: "left" },
  312. { label: "姓名", name: "StuName", width: 100, align: "left" },
  313. {
  314. label: "性别", name: "GenderNo", width: 80, align: "left",
  315. formatter: function (cellvalue) {
  316. return cellvalue == true ? "男" : "女";
  317. }
  318. },
  319. {
  320. label: "出生日期", name: "Birthday", width: 100, align: "left", ishide: true,
  321. formatter: function (value) {
  322. return learun.formatDate(value, 'yyyy-MM-dd');
  323. }
  324. },
  325. { label: "身份证号", name: "IdentityCardNo", width: 100, align: "left" },
  326. {
  327. label: "民族", name: "NationalityNo", width: 100, align: "left",
  328. formatterAsync: function (callback, value, row, op, $cell) {
  329. learun.clientdata.getAsync('dataItem', {
  330. key: value,
  331. code: 'National',
  332. callback: function (_data) {
  333. callback(_data.text);
  334. }
  335. });
  336. }
  337. },
  338. //{
  339. // label: "政治面貌", name: "PartyFaceNo", width: 100, align: "left",
  340. // formatterAsync: function (callback, value, row, op, $cell) {
  341. // learun.clientdata.getAsync('dataItem', {
  342. // key: value,
  343. // code: 'PolityStatus',
  344. // callback: function (_data) {
  345. // callback(_data.text);
  346. // }
  347. // });
  348. // }
  349. //},
  350. { label: "年级", name: "Grade", width: 100, align: "left" },
  351. {
  352. label: "系所", name: "DeptNo", width: 100, align: "left",
  353. formatterAsync: function (callback, value, row, op, $cell) {
  354. learun.clientdata.getAsync('custmerData', {
  355. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdDeptInfo',
  356. key: value,
  357. keyId: 'deptno',
  358. callback: function (_data) {
  359. callback(_data['deptname']);
  360. }
  361. });
  362. }
  363. },
  364. {
  365. label: "专业", name: "MajorNo", width: 100, align: "left",
  366. formatterAsync: function (callback, value, row, op, $cell) {
  367. learun.clientdata.getAsync('custmerData', {
  368. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdMajorInfo',
  369. key: value,
  370. keyId: 'majorno',
  371. callback: function (_data) {
  372. callback(_data['majorname']);
  373. }
  374. });
  375. }
  376. },
  377. {
  378. label: "班级", name: "ClassNo", width: 100, align: "left",
  379. formatterAsync: function (callback, value, row, op, $cell) {
  380. learun.clientdata.getAsync('custmerData', {
  381. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'bjsj',
  382. key: value,
  383. keyId: 'classno',
  384. callback: function (_data) {
  385. callback(_data['classname']);
  386. }
  387. });
  388. }
  389. },
  390. {
  391. label: "学制", name: "EduSystem", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) {
  392. learun.clientdata.getAsync('dataItem', {
  393. key: value,
  394. code: 'EduSystem',
  395. callback: function (_data) {
  396. callback(_data.text);
  397. }
  398. });
  399. }
  400. },
  401. //{
  402. // label: "身体状态", name: "HealthStatus", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) {
  403. // learun.clientdata.getAsync('dataItem', {
  404. // key: value,
  405. // code: 'QRCodeHealthStatus',
  406. // callback: function (_data) {
  407. // callback(_data.text);
  408. // }
  409. // });
  410. // }
  411. //},
  412. //{
  413. // label: "学习形式", name: "StudyModality", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) {
  414. // learun.clientdata.getAsync('dataItem', {
  415. // key: value,
  416. // code: 'StudyModality',
  417. // callback: function (_data) {
  418. // callback(_data.text);
  419. // }
  420. // });
  421. // }
  422. //},
  423. //{ label: "报到日期", name: "RegisterDate", width: 100, align: "left" },
  424. //{ label: "入学方式", name: "EntranceWay", width: 100, align: "left" },
  425. //{ label: "入学年月", name: "EntranceDate", width: 100, align: "left" },
  426. //{ label: "余额", name: "Balance", width: 100, align: "left" },
  427. { label: "家庭地址", name: "MailAddress", width: 100, align: "left" },
  428. { label: "联系电话", name: "mobile", width: 100, align: "left" },
  429. { label: "户口所在地", name: "FatherUnit", width: 100, align: "left" },
  430. { label: "档案所在地", name: "MatherUnit", width: 100, align: "left" },
  431. {
  432. label: "操作", name: "Delete", width: 100, align: "center",
  433. formatter: function (callback, cellvalue, row, op, $cell) {
  434. var $div = $('<div></div>');
  435. var $hbtn = $('<span class="label label-info" style="cursor: pointer;margin-right:8px;"> 移除</span>');
  436. $hbtn.on('click', function () {
  437. tempdatra.map((item, index) => {
  438. if (item.StuNo == cellvalue.StuNo) {
  439. tempdatra.splice(index, 1)
  440. }
  441. });
  442. //console.log(tempdatra)
  443. $('#selgridtab').jfGridSet('refreshdata', tempdatra);
  444. });
  445. $div.append($hbtn);
  446. return $div;
  447. }
  448. },
  449. ],
  450. mainId: 'AAIId',
  451. });
  452. $('#subbtn').on('click', function () {
  453. if (!$('body').lrValidform()) {
  454. return false;
  455. }
  456. var entity = $('body').lrGetFormData();
  457. var selgridtab = $('#selgridtab').jfGridGet('rowdatas');
  458. $.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/StuTransferInfo/SaveForm', { entity: entity, strStuEntity: JSON.stringify(selgridtab) },
  459. function (res) {
  460. //console.log(res)
  461. if (res.code == 200) {
  462. setTimeout(function () {
  463. location.reload();
  464. }, 100)
  465. }
  466. // 保存成功后才回调
  467. //if (!!callBack) {
  468. // callBack(res);
  469. //}
  470. }
  471. );
  472. })
  473. },
  474. // 初始化列表
  475. initGird: function () {
  476. $('#gridtable').lrAuthorizeJfGridLei({
  477. url: top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/GetPageList',
  478. headData: [
  479. //{
  480. // label: "审核状态", name: "CheckMark", width: 80, align: "center",
  481. // formatter: function (cellvalue) {
  482. // return cellvalue == "1" ? "<span class=\"label label-success\">已审核</span>" : "<span class=\"label label-danger\">未审核</span>";
  483. // }
  484. //},
  485. { label: "学生编号", name: "StuNo", width: 100, align: "left", ishide: true, },
  486. { label: "学籍号", name: "StuCode", width: 100, align: "left", ishide: true, },
  487. { label: "学号", name: "ProvinceCode", width: 100, align: "left" },
  488. { label: "姓名", name: "StuName", width: 100, align: "left" },
  489. {
  490. label: "性别", name: "GenderNo", width: 80, align: "left",
  491. formatter: function (cellvalue) {
  492. return cellvalue == true ? "男" : "女";
  493. }
  494. },
  495. {
  496. label: "出生日期", name: "Birthday", width: 100, align: "left", ishide: true,
  497. formatter: function (value) {
  498. return learun.formatDate(value, 'yyyy-MM-dd');
  499. }
  500. },
  501. { label: "身份证号", name: "IdentityCardNo", width: 100, align: "left" },
  502. {
  503. label: "民族", name: "NationalityNo", width: 100, align: "left",
  504. formatterAsync: function (callback, value, row, op, $cell) {
  505. learun.clientdata.getAsync('dataItem', {
  506. key: value,
  507. code: 'National',
  508. callback: function (_data) {
  509. callback(_data.text);
  510. }
  511. });
  512. }
  513. },
  514. //{
  515. // label: "政治面貌", name: "PartyFaceNo", width: 100, align: "left",
  516. // formatterAsync: function (callback, value, row, op, $cell) {
  517. // learun.clientdata.getAsync('dataItem', {
  518. // key: value,
  519. // code: 'PolityStatus',
  520. // callback: function (_data) {
  521. // callback(_data.text);
  522. // }
  523. // });
  524. // }
  525. //},
  526. { label: "年级", name: "Grade", width: 100, align: "left" },
  527. {
  528. label: "系所", name: "DeptNo", width: 100, align: "left",
  529. formatterAsync: function (callback, value, row, op, $cell) {
  530. learun.clientdata.getAsync('custmerData', {
  531. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdDeptInfo',
  532. key: value,
  533. keyId: 'deptno',
  534. callback: function (_data) {
  535. callback(_data['deptname']);
  536. }
  537. });
  538. }
  539. },
  540. {
  541. label: "专业", name: "MajorNo", width: 100, align: "left",
  542. formatterAsync: function (callback, value, row, op, $cell) {
  543. learun.clientdata.getAsync('custmerData', {
  544. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdMajorInfo',
  545. key: value,
  546. keyId: 'majorno',
  547. callback: function (_data) {
  548. callback(_data['majorname']);
  549. }
  550. });
  551. }
  552. },
  553. {
  554. label: "班级", name: "ClassNo", width: 100, align: "left",
  555. formatterAsync: function (callback, value, row, op, $cell) {
  556. learun.clientdata.getAsync('custmerData', {
  557. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'bjsj',
  558. key: value,
  559. keyId: 'classno',
  560. callback: function (_data) {
  561. callback(_data['classname']);
  562. }
  563. });
  564. }
  565. },
  566. {
  567. label: "学制", name: "EduSystem", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) {
  568. learun.clientdata.getAsync('dataItem', {
  569. key: value,
  570. code: 'EduSystem',
  571. callback: function (_data) {
  572. callback(_data.text);
  573. }
  574. });
  575. }
  576. },
  577. //{
  578. // label: "身体状态", name: "HealthStatus", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) {
  579. // learun.clientdata.getAsync('dataItem', {
  580. // key: value,
  581. // code: 'QRCodeHealthStatus',
  582. // callback: function (_data) {
  583. // callback(_data.text);
  584. // }
  585. // });
  586. // }
  587. //},
  588. //{
  589. // label: "学习形式", name: "StudyModality", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) {
  590. // learun.clientdata.getAsync('dataItem', {
  591. // key: value,
  592. // code: 'StudyModality',
  593. // callback: function (_data) {
  594. // callback(_data.text);
  595. // }
  596. // });
  597. // }
  598. //},
  599. //{ label: "报到日期", name: "RegisterDate", width: 100, align: "left" },
  600. //{ label: "入学方式", name: "EntranceWay", width: 100, align: "left" },
  601. //{ label: "入学年月", name: "EntranceDate", width: 100, align: "left" },
  602. //{ label: "余额", name: "Balance", width: 100, align: "left" },
  603. { label: "家庭地址", name: "MailAddress", width: 100, align: "left" },
  604. { label: "联系电话", name: "mobile", width: 100, align: "left" },
  605. { label: "户口所在地", name: "FatherUnit", width: 100, align: "left" },
  606. { label: "档案所在地", name: "MatherUnit", width: 100, align: "left" },
  607. //{
  608. // label: "五年一贯制", name: "FiveYear", width: 100, align: "left"
  609. // , formatterAsync: function (callback, value, row, op, $cell) {
  610. // learun.clientdata.getAsync('dataItem', {
  611. // key: value,
  612. // code: 'PieceCultivateWay',
  613. // callback: function (_data) {
  614. // callback(_data.text);
  615. // }
  616. // });
  617. // }
  618. //},
  619. //{
  620. // label: "异动状态", name: "AbmormityMoveMark", width: 80, align: "center",
  621. // formatter: function (cellvalue) {
  622. // return cellvalue == "1" ? "<i class=\"fa fa-toggle-on\"></i>" : "<i class=\"fa fa-toggle-off\"></i>";
  623. // }
  624. //},
  625. //{
  626. // label: "是否上传头像", name: "Photo", width: 80, align: "center",
  627. // formatter: function (cellvalue) {
  628. // if (cellvalue != null && cellvalue != "" && cellvalue != undefined) {
  629. // return cellvalue = "<span class=\"label label-success\">是</span>";
  630. // } else {
  631. // return cellvalue = "<span class=\"label label-danger\">否</span>";
  632. // }
  633. // }
  634. //},
  635. //{ label: "拼音", name: "SpellFull", width: 100, align: "left", ishide: true },
  636. //{ label: "就读方式", name: "StudyingWay", width: 100, align: "left", ishide: true },
  637. //{
  638. // label: "国籍", name: "CountryNo", width: 100, align: "left", ishide: true,
  639. // formatterAsync: function (callback, value, row, op, $cell) {
  640. // learun.clientdata.getAsync('dataItem', {
  641. // key: value,
  642. // code: 'BCdCountry',
  643. // callback: function (_data) {
  644. // callback(_data.text);
  645. // }
  646. // });
  647. // }
  648. //},
  649. //{
  650. // label: "港澳台侨外", name: "OverseasChineseNo", width: 100, align: "left", ishide: true,
  651. // formatterAsync: function (callback, value, row, op, $cell) {
  652. // learun.clientdata.getAsync('dataItem', {
  653. // key: value,
  654. // code: 'BCdOverseasChinese',
  655. // callback: function (_data) {
  656. // callback(_data.text);
  657. // }
  658. // });
  659. // }
  660. //},
  661. //{
  662. // label: "婚姻状况", name: "MarriageStatus", width: 100, align: "left", ishide: true,
  663. // formatterAsync: function (callback, value, row, op, $cell) {
  664. // learun.clientdata.getAsync('dataItem', {
  665. // key: value,
  666. // code: 'BCdOverseasChinese',
  667. // callback: function (_data) {
  668. // callback(_data.text);
  669. // }
  670. // });
  671. // }
  672. //},
  673. //{ label: "乘火车区间", name: "TrainInterval", width: 100, align: "left", ishide: true, },
  674. //{ label: "是否随迁子女", name: "IsTrailChildren", width: 100, align: "left", ishide: true, },
  675. //{ label: "生源地行政区划码", name: "StuPlaceCode", width: 100, align: "left", ishide: true, },
  676. //{ label: "出生地行政区划码", name: "BirthPlaceCode", width: 100, align: "left", ishide: true, },
  677. //{ label: "籍贯地行政区划码", name: "NativePlaceCode", width: 100, align: "left", ishide: true, },
  678. //{ label: "所属派出所", name: "BelongPolice", width: 100, align: "left", ishide: true, },
  679. //{ label: "户口所在地行政区划码", name: "ResidencePlaceCode", width: 100, align: "left", ishide: true, },
  680. //{ label: "是否农户", name: "ResidenceNo", width: 100, align: "left", ishide: true, },
  681. //{
  682. // label: "学生居住地类型", name: "StuLivePlaceType", width: 100, align: "left", ishide: true,
  683. // formatterAsync: function (callback, value, row, op, $cell) {
  684. // learun.clientdata.getAsync('dataItem', {
  685. // key: value,
  686. // code: 'StuLivePlaceType',
  687. // callback: function (_data) {
  688. // callback(_data.text);
  689. // }
  690. // });
  691. // }
  692. //},
  693. //{
  694. // label: "健康状况", name: "HealthStatusNo", width: 100, align: "left", ishide: true,
  695. // formatterAsync: function (callback, value, row, op, $cell) {
  696. // learun.clientdata.getAsync('dataItem', {
  697. // key: value,
  698. // code: 'StuHealthType',
  699. // callback: function (_data) {
  700. // callback(_data.text);
  701. // }
  702. // });
  703. // }
  704. //},
  705. //{ label: "学生来源", name: "StuOrigin", width: 100, align: "left", ishide: true, },
  706. //{ label: "招生对象", name: "RecruitObject", width: 100, align: "left", ishide: true, },
  707. //{ label: "贫困户否建档立卡贫困户", name: "PoorIsRecord", width: 100, align: "left", ishide: true, },
  708. //{
  709. // label: "招生方式", name: "RecruitWay", width: 100, align: "left", ishide: true,
  710. // formatterAsync: function (callback, value, row, op, $cell) {
  711. // learun.clientdata.getAsync('dataItem', {
  712. // key: value,
  713. // code: 'RecruitWay',
  714. // callback: function (_data) {
  715. // callback(_data.text);
  716. // }
  717. // });
  718. // }
  719. //},
  720. //{
  721. // label: "联招合作类型", name: "RecruitCooperateType", width: 100, align: "left", ishide: true,
  722. // formatterAsync: function (callback, value, row, op, $cell) {
  723. // learun.clientdata.getAsync('dataItem', {
  724. // key: value,
  725. // code: 'RecruitCooperateType',
  726. // callback: function (_data) {
  727. // callback(_data.text);
  728. // }
  729. // });
  730. // }
  731. //},
  732. //{ label: "准考证号", name: "AdmissionNo", width: 100, align: "left", ishide: true, },
  733. //{ label: "考生号", name: "ksh", width: 100, align: "left", ishide: true, },
  734. //{ label: "考试总分", name: "ExamScore", width: 100, align: "left", ishide: true, },
  735. //{ label: "联招合作办学形式", name: "RecruitCooperateForm", width: 100, align: "left", ishide: true, },
  736. //{ label: "联招合作学校代码", name: "RecruitCooperateSchoolNo", width: 100, align: "left", ishide: true, },
  737. //{ label: "校外教学点", name: "SchoolOutsidePlace", width: 100, align: "left", ishide: true, },
  738. //{ label: "英文姓名", name: "EnglishName", width: 100, align: "left", ishide: true, },
  739. //{ label: "家庭邮政编码", name: "PostalCode", width: 100, align: "left", ishide: true, },
  740. //{ label: "其他联系方式", name: "OtherContact", width: 100, align: "left", ishide: true, },
  741. //{ label: "成员1姓名", name: "OneName", width: 100, align: "left", ishide: true, },
  742. //{ label: "成员1联系电话", name: "OneMobile", width: 100, align: "left", ishide: true },
  743. //{
  744. // label: "成员1关系", name: "OneMembership", width: 100, align: "left", ishide: true,
  745. // formatterAsync: function (callback, value, row, op, $cell) {
  746. // learun.clientdata.getAsync('dataItem', {
  747. // key: value,
  748. // code: 'GuardianType',
  749. // callback: function (_data) {
  750. // callback(_data.text);
  751. // }
  752. // });
  753. // }
  754. //},
  755. //{ label: "成员1是否监护人", name: "OneIsGuardian", width: 100, align: "left", ishide: true, },
  756. //{
  757. // label: "成员1出生年月", name: "OneBirthday", width: 100, align: "left", ishide: true,
  758. // formatter: function (value) {
  759. // return learun.formatDate(value, 'yyyy-MM-dd');
  760. // }
  761. //},
  762. //{
  763. // label: "成员1身份证件类型", name: "OneIdCardType", width: 100, align: "left", ishide: true,
  764. // formatterAsync: function (callback, value, row, op, $cell) {
  765. // learun.clientdata.getAsync('dataItem', {
  766. // key: value,
  767. // code: 'IdCardType',
  768. // callback: function (_data) {
  769. // callback(_data.text);
  770. // }
  771. // });
  772. // }
  773. //},
  774. //{ label: "成员1身份证件号", name: "OneIdCardNo", width: 100, align: "left", ishide: true, },
  775. //{
  776. // label: "成员1民族", name: "OneNationalityNo", width: 100, align: "left", ishide: true,
  777. // formatterAsync: function (callback, value, row, op, $cell) {
  778. // learun.clientdata.getAsync('dataItem', {
  779. // key: value,
  780. // code: 'National',
  781. // callback: function (_data) {
  782. // callback(_data.text);
  783. // }
  784. // });
  785. // }
  786. //},
  787. //{
  788. // label: "成员1健康状况", name: "OneHealthStatus", width: 100, align: "left", ishide: true,
  789. // formatterAsync: function (callback, value, row, op, $cell) {
  790. // learun.clientdata.getAsync('dataItem', {
  791. // key: value,
  792. // code: 'EpiHealth',
  793. // callback: function (_data) {
  794. // callback(_data.text);
  795. // }
  796. // });
  797. // }
  798. //},
  799. //{ label: "成员1工作或学习单位", name: "OneJob", width: 100, align: "left", ishide: true, },
  800. //{ label: "成员2姓名", name: "TwoName", width: 100, align: "left", ishide: true, },
  801. //{ label: "成员2联系电话", name: "TwoMobile", width: 100, align: "left", ishide: true },
  802. //{
  803. // label: "成员2关系", name: "TwoMembership", width: 100, align: "left", ishide: true,
  804. // formatterAsync: function (callback, value, row, op, $cell) {
  805. // learun.clientdata.getAsync('dataItem', {
  806. // key: value,
  807. // code: 'GuardianType',
  808. // callback: function (_data) {
  809. // callback(_data.text);
  810. // }
  811. // });
  812. // }
  813. //},
  814. //{ label: "成员2是否监护人", name: "TwoIsGuardian", width: 100, align: "left", ishide: true, },
  815. //{
  816. // label: "成员2出生年月", name: "TwoBirthday", width: 100, align: "left", ishide: true,
  817. // formatter: function (value) {
  818. // return learun.formatDate(value, 'yyyy-MM-dd');
  819. // }
  820. //},
  821. //{
  822. // label: "成员2身份证件类型", name: "TwoIdCardType", width: 100, align: "left", ishide: true,
  823. // formatterAsync: function (callback, value, row, op, $cell) {
  824. // learun.clientdata.getAsync('dataItem', {
  825. // key: value,
  826. // code: 'IdCardType',
  827. // callback: function (_data) {
  828. // callback(_data.text);
  829. // }
  830. // });
  831. // }
  832. //},
  833. //{ label: "成员2身份证件号", name: "TwoIdCardNo", width: 100, align: "left", ishide: true, },
  834. //{
  835. // label: "成员2民族", name: "TwoNationalityNo", width: 100, align: "left", ishide: true,
  836. // formatterAsync: function (callback, value, row, op, $cell) {
  837. // learun.clientdata.getAsync('dataItem', {
  838. // key: value,
  839. // code: 'National',
  840. // callback: function (_data) {
  841. // callback(_data.text);
  842. // }
  843. // });
  844. // }
  845. //},
  846. //{
  847. // label: "成员2健康状况", name: "TwoHealthStatus", width: 100, align: "left", ishide: true,
  848. // formatterAsync: function (callback, value, row, op, $cell) {
  849. // learun.clientdata.getAsync('dataItem', {
  850. // key: value,
  851. // code: 'EpiHealth',
  852. // callback: function (_data) {
  853. // callback(_data.text);
  854. // }
  855. // });
  856. // }
  857. //},
  858. //{ label: "成员2工作或学习单位", name: "TwoJob", width: 100, align: "left", ishide: true, },
  859. //{ label: "成员2职务", name: "TwoPosition", width: 100, align: "left", ishide: true, },
  860. ],
  861. mainId: 'StuId',
  862. isPage: true,
  863. rows: 100,
  864. isMultiselect: true,
  865. onSelectRow: function (rowdata, type) {
  866. if (type) {
  867. list.push(rowdata)
  868. let temp = {}
  869. list = list.reduce((prev, curv) => {
  870. if (temp[curv.StuNo]) { }
  871. else {
  872. temp[curv.StuNo] = true
  873. prev.push(curv)
  874. }
  875. return prev
  876. }, [])
  877. //var selectedRow = $('#gridtable').jfGridGet('rowdata');
  878. tempdatra = list
  879. $('#selgridtab').jfGridSet('refreshdata', tempdatra);
  880. }
  881. }
  882. });
  883. page.search();
  884. },
  885. search: function (param) {
  886. param = param || {};
  887. param.CheckMark = '1';
  888. param.Mustsql = '1';
  889. param.RestAgainSql = '1';
  890. $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
  891. }
  892. };
  893. refreshGirdData = function () {
  894. page.search();
  895. };
  896. page.init();
  897. }