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.
 
 
 
 
 
 

817 lines
42 KiB

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