|
- /* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
- * Copyright (c) 2013-2018 北京泉江科技有限公司
- * 创建人:超级管理员
- * 日 期:2020-11-04 14:08
- * 描 述:教师聘任变更记录
- */
- var refreshGirdData;
- 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);
- $('#OldLevel').lrDataItemSelect({ code: 'PositionLevel' });
- $('#NewLevel').lrDataItemSelect({ code: 'PositionLevel' });
- // 刷新
- $('#lr_refresh').on('click', function () {
- location.reload();
- });
- },
- // 初始化列表
- initGird: function () {
- $('#gridtable').lrAuthorizeJfGrid({
- url: top.$.rootUrl + '/EducationalAdministration/PM_PositionChange/GetPageStatisticList',
- headData: [
- {
- label: "教师", name: "EmpId", width: 100, align: "left",
- formatterAsync: function (callback, value, row, op, $cell) {
- learun.clientdata.getAsync('custmerData', {
- url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'EmpInfo',
- key: value,
- keyId: 'empid',
- callback: function (_data) {
- callback(_data['empname']);
- }
- });
- }
- },
- {
- label: "原聘任等级", name: "OldLevel", width: 100, align: "left",
- formatterAsync: function (callback, value, row, op, $cell) {
- learun.clientdata.getAsync('dataItem', {
- key: value,
- code: 'PositionLevel',
- callback: function (_data) {
- callback(_data.text);
- }
- });
- }
- },
- {
- label: "现聘任等级", name: "NewLevel", width: 100, align: "left",
- formatterAsync: function (callback, value, row, op, $cell) {
- learun.clientdata.getAsync('dataItem', {
- key: value,
- code: 'PositionLevel',
- callback: function (_data) {
- callback(_data.text);
- }
- });
- }
- },
- { label: "变更时间", name: "UpdateTime", width: 130, align: "left" },
- {
- label: "变更人", name: "Updater", width: 100, align: "left",
- formatterAsync: function (callback, value, row) {
- learun.clientdata.getAsync('user', {
- key: value,
- callback: function (item) {
- callback(item.name);
- }
- });
- }
- },
- ],
- mainId: 'ID',
- isPage: true,
- sidx:'UpdateTime desc'
- });
- page.search();
- },
- search: function (param) {
- param = param || {};
- $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
- }
- };
- refreshGirdData = function () {
- page.search();
- };
- page.init();
- }
|