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.
 
 
 
 
 
 

790 lines
40 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. learun.loading(true, '正在同步,请稍后')
  319. learun.httpAsync('get', top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/SynPhoto', {}, function (res) {
  320. learun.loading(false)
  321. })
  322. })
  323. //打印简历表
  324. $('#lr_printInfo').on('click', function () {
  325. var keyValue = $('#gridtable').jfGridValue('StuId');
  326. if (learun.checkrow(keyValue)) {
  327. if (keyValue.indexOf(',') != -1) {
  328. learun.alert.warning("只能选择一条记录进行查看!");
  329. return;
  330. }
  331. learun.layerForm({
  332. id: 'print',
  333. title: '学生简历表',
  334. url: top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/Print?keyValue=' + keyValue,
  335. width: 1100,
  336. height: 800,
  337. btn: null
  338. });
  339. }
  340. });
  341. //打印学籍卡
  342. $('#lr_printxjk').on('click', function () {
  343. var keyValue = $('#gridtable').jfGridValue('StuId');
  344. if (learun.checkrow(keyValue)) {
  345. if (keyValue.indexOf(',') != -1) {
  346. learun.alert.warning("只能选择一条记录进行查看!");
  347. return;
  348. }
  349. learun.layerForm({
  350. id: 'print',
  351. title: '学籍卡打印',
  352. url: top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/Printxjk?keyValue=' + keyValue,
  353. width: 1100,
  354. height: 800,
  355. btn: null
  356. });
  357. }
  358. });
  359. },
  360. // 初始化列表
  361. initGird: function () {
  362. $('#gridtable').lrAuthorizeJfGridLei({
  363. url: top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/GetPageList',
  364. headData: [
  365. {
  366. label: "审核状态", name: "CheckMark", width: 80, align: "center",
  367. formatter: function (cellvalue) {
  368. return cellvalue == "1" ? "<span class=\"label label-success\">已审核</span>" : "<span class=\"label label-danger\">未审核</span>";
  369. }
  370. },
  371. { label: "学生编号", name: "StuNo", width: 100, align: "left" },
  372. { label: "学籍号", name: "StuCode", width: 100, align: "left" },
  373. { label: "学号", name: "ProvinceCode", width: 100, align: "left" },
  374. { label: "姓名", name: "StuName", width: 100, align: "left" },
  375. {
  376. label: "性别", name: "GenderNo", width: 80, align: "left",
  377. formatter: function (cellvalue) {
  378. return cellvalue == true ? "男" : "女";
  379. }
  380. },
  381. {
  382. label: "出生日期", name: "Birthday", width: 100, align: "left",
  383. formatter: function (value) {
  384. return learun.formatDate(value, 'yyyy-MM-dd');
  385. }
  386. },
  387. { label: "身份证号", name: "IdentityCardNo", width: 100, align: "left" },
  388. {
  389. label: "民族", name: "NationalityNo", width: 100, align: "left",
  390. formatterAsync: function (callback, value, row, op, $cell) {
  391. learun.clientdata.getAsync('dataItem', {
  392. key: value,
  393. code: 'National',
  394. callback: function (_data) {
  395. callback(_data.text);
  396. }
  397. });
  398. }
  399. },
  400. {
  401. label: "政治面貌", name: "PartyFaceNo", width: 100, align: "left",
  402. formatterAsync: function (callback, value, row, op, $cell) {
  403. learun.clientdata.getAsync('dataItem', {
  404. key: value,
  405. code: 'PolityStatus',
  406. callback: function (_data) {
  407. callback(_data.text);
  408. }
  409. });
  410. }
  411. },
  412. { label: "年级", name: "Grade", width: 100, align: "left" },
  413. {
  414. label: "系所", name: "DeptNo", width: 100, align: "left",
  415. formatterAsync: function (callback, value, row, op, $cell) {
  416. learun.clientdata.getAsync('custmerData', {
  417. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdDeptInfo',
  418. key: value,
  419. keyId: 'deptno',
  420. callback: function (_data) {
  421. callback(_data['deptname']);
  422. }
  423. });
  424. }
  425. },
  426. {
  427. label: "专业", name: "MajorNo", width: 100, align: "left",
  428. formatterAsync: function (callback, value, row, op, $cell) {
  429. learun.clientdata.getAsync('custmerData', {
  430. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdMajorInfo',
  431. key: value,
  432. keyId: 'majorno',
  433. callback: function (_data) {
  434. callback(_data['majorname']);
  435. }
  436. });
  437. }
  438. },
  439. {
  440. label: "班级", name: "ClassNo", width: 100, align: "left",
  441. formatterAsync: function (callback, value, row, op, $cell) {
  442. learun.clientdata.getAsync('custmerData', {
  443. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'bjsj',
  444. key: value,
  445. keyId: 'classno',
  446. callback: function (_data) {
  447. callback(_data['classname']);
  448. }
  449. });
  450. }
  451. },
  452. {
  453. label: "学制", name: "EduSystem", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) {
  454. learun.clientdata.getAsync('dataItem', {
  455. key: value,
  456. code: 'EduSystem',
  457. callback: function (_data) {
  458. callback(_data.text);
  459. }
  460. });
  461. }
  462. },
  463. {
  464. label: "身体状态", name: "HealthStatus", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) {
  465. learun.clientdata.getAsync('dataItem', {
  466. key: value,
  467. code: 'QRCodeHealthStatus',
  468. callback: function (_data) {
  469. callback(_data.text);
  470. }
  471. });
  472. }
  473. },
  474. {
  475. label: "学习形式", name: "StudyModality", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) {
  476. learun.clientdata.getAsync('dataItem', {
  477. key: value,
  478. code: 'StudyModality',
  479. callback: function (_data) {
  480. callback(_data.text);
  481. }
  482. });
  483. }
  484. },
  485. { label: "报到日期", name: "RegisterDate", width: 100, align: "left" },
  486. { label: "入学方式", name: "EntranceWay", width: 100, align: "left" },
  487. { label: "入学年月", name: "EntranceDate", width: 100, align: "left" },
  488. { label: "余额", name: "Balance", width: 100, align: "left" },
  489. { label: "家庭地址", name: "MailAddress", width: 100, align: "left" },
  490. { label: "联系电话", name: "mobile", width: 100, align: "left" },
  491. { label: "户口所在地", name: "FatherUnit", width: 100, align: "left" },
  492. { label: "档案所在地", name: "MatherUnit", width: 100, align: "left" },
  493. {
  494. label: "五年一贯制", name: "FiveYear", width: 100, align: "left"
  495. , formatterAsync: function (callback, value, row, op, $cell) {
  496. learun.clientdata.getAsync('dataItem', {
  497. key: value,
  498. code: 'PieceCultivateWay',
  499. callback: function (_data) {
  500. callback(_data.text);
  501. }
  502. });
  503. }
  504. },
  505. //{
  506. // label: "异动状态", name: "AbmormityMoveMark", width: 80, align: "center",
  507. // formatter: function (cellvalue) {
  508. // return cellvalue == "1" ? "<i class=\"fa fa-toggle-on\"></i>" : "<i class=\"fa fa-toggle-off\"></i>";
  509. // }
  510. //},
  511. {
  512. label: "是否上传头像", name: "Photo", width: 80, align: "center",
  513. formatter: function (cellvalue) {
  514. if (cellvalue != null && cellvalue != "" && cellvalue != undefined) {
  515. return cellvalue = "<span class=\"label label-success\">是</span>";
  516. } else {
  517. return cellvalue = "<span class=\"label label-danger\">否</span>";
  518. }
  519. }
  520. },
  521. { label: "拼音", name: "SpellFull", width: 100, align: "left", ishide: true },
  522. { label: "就读方式", name: "StudyingWay", width: 100, align: "left", ishide: true },
  523. {
  524. label: "国籍", name: "CountryNo", width: 100, align: "left", ishide: true,
  525. formatterAsync: function (callback, value, row, op, $cell) {
  526. learun.clientdata.getAsync('dataItem', {
  527. key: value,
  528. code: 'BCdCountry',
  529. callback: function (_data) {
  530. callback(_data.text);
  531. }
  532. });
  533. }
  534. },
  535. {
  536. label: "港澳台侨外", name: "OverseasChineseNo", width: 100, align: "left", ishide: true,
  537. formatterAsync: function (callback, value, row, op, $cell) {
  538. learun.clientdata.getAsync('dataItem', {
  539. key: value,
  540. code: 'BCdOverseasChinese',
  541. callback: function (_data) {
  542. callback(_data.text);
  543. }
  544. });
  545. }
  546. },
  547. {
  548. label: "婚姻状况", name: "MarriageStatus", width: 100, align: "left", ishide: true,
  549. formatterAsync: function (callback, value, row, op, $cell) {
  550. learun.clientdata.getAsync('dataItem', {
  551. key: value,
  552. code: 'BCdOverseasChinese',
  553. callback: function (_data) {
  554. callback(_data.text);
  555. }
  556. });
  557. }
  558. },
  559. { label: "乘火车区间", name: "TrainInterval", width: 100, align: "left", ishide: true, },
  560. { label: "是否随迁子女", name: "IsTrailChildren", width: 100, align: "left", ishide: true, },
  561. { label: "生源地行政区划码", name: "StuPlaceCode", width: 100, align: "left", ishide: true, },
  562. { label: "出生地行政区划码", name: "BirthPlaceCode", width: 100, align: "left", ishide: true, },
  563. { label: "籍贯地行政区划码", name: "NativePlaceCode", width: 100, align: "left", ishide: true, },
  564. { label: "所属派出所", name: "BelongPolice", width: 100, align: "left", ishide: true, },
  565. { label: "户口所在地行政区划码", name: "ResidencePlaceCode", width: 100, align: "left", ishide: true, },
  566. { label: "是否农户", name: "ResidenceNo", width: 100, align: "left", ishide: true, },
  567. {
  568. label: "学生居住地类型", name: "StuLivePlaceType", width: 100, align: "left", ishide: true,
  569. formatterAsync: function (callback, value, row, op, $cell) {
  570. learun.clientdata.getAsync('dataItem', {
  571. key: value,
  572. code: 'StuLivePlaceType',
  573. callback: function (_data) {
  574. callback(_data.text);
  575. }
  576. });
  577. }
  578. },
  579. {
  580. label: "健康状况", name: "HealthStatusNo", width: 100, align: "left", ishide: true,
  581. formatterAsync: function (callback, value, row, op, $cell) {
  582. learun.clientdata.getAsync('dataItem', {
  583. key: value,
  584. code: 'StuHealthType',
  585. callback: function (_data) {
  586. callback(_data.text);
  587. }
  588. });
  589. }
  590. },
  591. { label: "学生来源", name: "StuOrigin", width: 100, align: "left", ishide: true, },
  592. { label: "招生对象", name: "RecruitObject", width: 100, align: "left", ishide: true, },
  593. { label: "贫困户否建档立卡贫困户", name: "PoorIsRecord", width: 100, align: "left", ishide: true, },
  594. {
  595. label: "招生方式", name: "RecruitWay", width: 100, align: "left", ishide: true,
  596. formatterAsync: function (callback, value, row, op, $cell) {
  597. learun.clientdata.getAsync('dataItem', {
  598. key: value,
  599. code: 'RecruitWay',
  600. callback: function (_data) {
  601. callback(_data.text);
  602. }
  603. });
  604. }
  605. },
  606. {
  607. label: "联招合作类型", name: "RecruitCooperateType", width: 100, align: "left", ishide: true,
  608. formatterAsync: function (callback, value, row, op, $cell) {
  609. learun.clientdata.getAsync('dataItem', {
  610. key: value,
  611. code: 'RecruitCooperateType',
  612. callback: function (_data) {
  613. callback(_data.text);
  614. }
  615. });
  616. }
  617. },
  618. { label: "准考证号", name: "AdmissionNo", width: 100, align: "left", ishide: true, },
  619. { label: "考生号", name: "ksh", width: 100, align: "left", ishide: true, },
  620. { label: "考试总分", name: "ExamScore", width: 100, align: "left", ishide: true, },
  621. { label: "联招合作办学形式", name: "RecruitCooperateForm", width: 100, align: "left", ishide: true, },
  622. { label: "联招合作学校代码", name: "RecruitCooperateSchoolNo", width: 100, align: "left", ishide: true, },
  623. { label: "校外教学点", name: "SchoolOutsidePlace", width: 100, align: "left", ishide: true, },
  624. { label: "英文姓名", name: "EnglishName", width: 100, align: "left", ishide: true, },
  625. { label: "家庭邮政编码", name: "PostalCode", width: 100, align: "left", ishide: true, },
  626. { label: "其他联系方式", name: "OtherContact", width: 100, align: "left", ishide: true, },
  627. { label: "成员1姓名", name: "OneName", width: 100, align: "left", ishide: true, },
  628. { label: "成员1联系电话", name: "OneMobile", width: 100, align: "left", ishide: true },
  629. {
  630. label: "成员1关系", name: "OneMembership", width: 100, align: "left", ishide: true,
  631. formatterAsync: function (callback, value, row, op, $cell) {
  632. learun.clientdata.getAsync('dataItem', {
  633. key: value,
  634. code: 'GuardianType',
  635. callback: function (_data) {
  636. callback(_data.text);
  637. }
  638. });
  639. }
  640. },
  641. { label: "成员1是否监护人", name: "OneIsGuardian", width: 100, align: "left", ishide: true, },
  642. {
  643. label: "成员1出生年月", name: "OneBirthday", width: 100, align: "left", ishide: true,
  644. formatter: function (value) {
  645. return learun.formatDate(value, 'yyyy-MM-dd');
  646. }
  647. },
  648. {
  649. label: "成员1身份证件类型", name: "OneIdCardType", width: 100, align: "left", ishide: true,
  650. formatterAsync: function (callback, value, row, op, $cell) {
  651. learun.clientdata.getAsync('dataItem', {
  652. key: value,
  653. code: 'IdCardType',
  654. callback: function (_data) {
  655. callback(_data.text);
  656. }
  657. });
  658. }
  659. },
  660. { label: "成员1身份证件号", name: "OneIdCardNo", width: 100, align: "left", ishide: true, },
  661. {
  662. label: "成员1民族", name: "OneNationalityNo", width: 100, align: "left", ishide: true,
  663. formatterAsync: function (callback, value, row, op, $cell) {
  664. learun.clientdata.getAsync('dataItem', {
  665. key: value,
  666. code: 'National',
  667. callback: function (_data) {
  668. callback(_data.text);
  669. }
  670. });
  671. }
  672. },
  673. {
  674. label: "成员1健康状况", name: "OneHealthStatus", width: 100, align: "left", ishide: true,
  675. formatterAsync: function (callback, value, row, op, $cell) {
  676. learun.clientdata.getAsync('dataItem', {
  677. key: value,
  678. code: 'EpiHealth',
  679. callback: function (_data) {
  680. callback(_data.text);
  681. }
  682. });
  683. }
  684. },
  685. { label: "成员1工作或学习单位", name: "OneJob", width: 100, align: "left", ishide: true, },
  686. { label: "成员2姓名", name: "TwoName", width: 100, align: "left", ishide: true, },
  687. { label: "成员2联系电话", name: "TwoMobile", width: 100, align: "left", ishide: true },
  688. {
  689. label: "成员2关系", name: "TwoMembership", width: 100, align: "left", ishide: true,
  690. formatterAsync: function (callback, value, row, op, $cell) {
  691. learun.clientdata.getAsync('dataItem', {
  692. key: value,
  693. code: 'GuardianType',
  694. callback: function (_data) {
  695. callback(_data.text);
  696. }
  697. });
  698. }
  699. },
  700. { label: "成员2是否监护人", name: "TwoIsGuardian", width: 100, align: "left", ishide: true, },
  701. {
  702. label: "成员2出生年月", name: "TwoBirthday", width: 100, align: "left", ishide: true,
  703. formatter: function (value) {
  704. return learun.formatDate(value, 'yyyy-MM-dd');
  705. }
  706. },
  707. {
  708. label: "成员2身份证件类型", name: "TwoIdCardType", width: 100, align: "left", ishide: true,
  709. formatterAsync: function (callback, value, row, op, $cell) {
  710. learun.clientdata.getAsync('dataItem', {
  711. key: value,
  712. code: 'IdCardType',
  713. callback: function (_data) {
  714. callback(_data.text);
  715. }
  716. });
  717. }
  718. },
  719. { label: "成员2身份证件号", name: "TwoIdCardNo", width: 100, align: "left", ishide: true, },
  720. {
  721. label: "成员2民族", name: "TwoNationalityNo", width: 100, align: "left", ishide: true,
  722. formatterAsync: function (callback, value, row, op, $cell) {
  723. learun.clientdata.getAsync('dataItem', {
  724. key: value,
  725. code: 'National',
  726. callback: function (_data) {
  727. callback(_data.text);
  728. }
  729. });
  730. }
  731. },
  732. {
  733. label: "成员2健康状况", name: "TwoHealthStatus", width: 100, align: "left", ishide: true,
  734. formatterAsync: function (callback, value, row, op, $cell) {
  735. learun.clientdata.getAsync('dataItem', {
  736. key: value,
  737. code: 'EpiHealth',
  738. callback: function (_data) {
  739. callback(_data.text);
  740. }
  741. });
  742. }
  743. },
  744. { label: "成员2工作或学习单位", name: "TwoJob", width: 100, align: "left", ishide: true, },
  745. { label: "成员2职务", name: "TwoPosition", width: 100, align: "left", ishide: true, },
  746. ],
  747. mainId: 'StuId',
  748. isPage: true,
  749. rows: 100,
  750. isMultiselect: true,
  751. //onSelectRow: function (rowdata) {
  752. // if (rowdata.CheckMark == "1") {
  753. // $("#check").hide();
  754. // $("#uncheck").show();
  755. // $("#lr_edit").hide();
  756. // $("#lr_delete").hide();
  757. // } else {
  758. // $("#uncheck").hide();
  759. // $("#check").show();
  760. // $("#lr_edit").show();
  761. // $("#lr_delete").show();
  762. // }
  763. //}
  764. });
  765. page.search();
  766. },
  767. search: function (param) {
  768. param = param || {};
  769. $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
  770. }
  771. };
  772. refreshGirdData = function () {
  773. page.search();
  774. };
  775. page.init();
  776. }