|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121 |
- var refreshGirdData;
- var ClassNo = request("ClassNo");
- var bootstrap = function ($, learun) {
- "use strict";
- var page = {
- init: function () {
- page.initGird();
- page.bind();
- },
- bind: function () {
- $('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
- page.search(queryJson);
- }, 220, 400);
- // 刷新
- $('#lr_refresh').on('click',
- function () {
- location.reload();
- });
-
- var iframeIndex = top.layer.getFrameIndex(window.name);
- $('#lr_export').on('click', function () {
- //item = $btn[0].dfop;
- learun.layerForm({
- id: "ExcelExportForm",
- title: '导出Excel数据',
- url: top.$.rootUrl + '/Utility/ExcelExportForm?gridId=gridtableStu&filename=' + encodeURI(encodeURI('大厂新生导出')) + '&iframeIndex=' + iframeIndex,
- width: 500,
- height: 380,
- callBack: function (id) {
- return top[id].acceptClick();
- },
- btn: ['导出Excel', '关闭']
- });
- });
-
- },
- // 初始化列表
- initGird: function () {
- $('#gridtableStu').jfGrid({
- url: top.$.rootUrl + '/EducationalAdministration/StuInfoFresh/GetPageList',
- headData: [
- {
- label: '报名日期', name: 'SignUpTime', width: 150, align: "left", formatter: function (value) {
- return /\d{4}-\d{1,2}-\d{1,2}/g.exec(value);
- }
- },
- { label: '姓名', name: 'StuName', width: 100, align: "left" },
- {
- label: '性别', name: 'GenderNo', width: 80, align: "left", formatterAsync: function (callback, value, row, op, $cell) {
- learun.clientdata.getAsync('dataItem', {
- key: value,
- code: 'usersex',
- callback: function (_data) {
- callback(_data.text);
- }
- });
- }
- },
- {
- label: '民族', name: 'NationalityNo', width: 80, align: "left", formatterAsync: function (callback, value, row, op, $cell) {
- learun.clientdata.getAsync('dataItem', {
- key: value,
- code: 'National',
- callback: function (_data) {
- callback(_data.text);
- }
- });
- }
- },
- { label: '毕业学校', name: 'HighSchoolName', width: 150, align: "left" },
- { label: '中学班级', name: 'OldClassName', width: 100, align: "left" },
- { label: '中考成绩', name: 'ComprehensiveScore', width: 150, align: "left" },
- { label: '家庭住址', name: 'FamilyAddress', width: 150, align: "left" },
- { label: '户口所在地', name: 'OriginAddress', width: 150, align: "left" },
- { label: '身份证号', name: 'IdentityCardNo', width: 150, align: "left" },
- { label: '家长电话', name: 'telephone', width: 150, align: "left" },
- {
- label: '选报专业', name: 'MajorNo', width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) {
- learun.clientdata.getAsync('custmerData', {
- url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdMajorInfo',
- key: value,
- keyId: 'majorno',
- callback: function (_data) {
- callback(_data['majorname']);
- }
- });
- }
- },
- { label: '学制', name: 'EducationalSystem', width: 100, align: "left" },
- {
- label: "是否住宿", name: "IsAccommodate", width: 100, align: "left",
- formatterAsync: function (callback, value, row, op, $cell) {
- learun.clientdata.getAsync('dataItem', {
- key: value,
- code: 'YesOrNoInt',
- callback: function (_data) {
- callback(_data.text);
- }
- });
- }
- },
- { label: "身高/体重", name: "HeightWeight", width: 100, align: "left" },
- ],
- mainId: 'ID',
- isPage: true,
- sidx: 'StuNo',
- sord: 'desc'
- });
- page.search();
- },
- search: function (param) {
- param = param || {};
- param.ClassNo = ClassNo;
- $('#gridtableStu').jfGridSet('reload', { queryJson: JSON.stringify(param) });
- }
- };
- refreshGirdData = function () {
- page.search();
- };
- page.init();
- }
|