|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- /* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
- * Copyright (c) 2013-2018 北京泉江科技有限公司
- * 创建人:超级管理员
- * 日 期:2019-04-11 10:31
- * 描 述:公文发送
- */
- var refreshGirdData;
- var keyValue = request('keyValue');
- var bootstrap = function ($, learun) {
- "use strict";
- var processId = '';
- var page = {
- init: function () {
- console.log(keyValue);
- page.bind();
- },
- bind: function () {
- $.get(top.$.rootUrl + '/EducationalAdministration/Sys_ReceiveDocument/PrintInfo?keyValue=' + keyValue,
- function(data) {
- var data = JSON.parse(data).data;
- var entityItem = data.entityItem;
- console.log(data);
- learun.clientdata.getAsync('department', {
- key: data.entity.RReceiveUnit,
- callback: function (_data) {
- console.log(_data);
- $('#RReceiveUnit').html(_data.name);
-
- }
- });
- $('#swz').html(data.entity.swz);
- $('#RReceiveTime').html(data.entity.RReceiveTime.substr(0,10));
- $('#RSourceUnit').html(data.entity.RSourceUnit);
- $('#lwz').html(data.entity.lwz);
- $('#RTitle').html(data.entity.RTitle);
- $('#yj1').html(entityItem[0].SpecifyReceiver);
- $('#yj2').html(entityItem[1].SpecifyReceiver);
- learun.clientdata.getAsync('user', {
- key: entityItem[1].ReceiverId,
- callback: function (_data) {
- console.log(_data);
- $('#xiaozhanginfo').html(_data.name + ' ' + (entityItem[1].ReadTime || '').substr(0, 10));
- }
- });
-
-
- learun.clientdata.getAsync('user', {
- key: data.entity.SenderId,
- callback: function (_data) {
- $('#SenderId').html(_data.name);
- }
- });
-
-
-
- var text = '';
- $.each(entityItem,
- function(i, item) {
- if (i < 2) {return true;}
- learun.clientdata.getAsync('user', {
- key: item.ReceiverId,
- callback: function (_data) {
-
- text += '<div class="tableTxt1">' +
- (item.SpecifyReceiver == '' ? '已阅' : item.SpecifyReceiver) +
- '</div> <div class="tableTxt2"> '+_data.name+' '+(item.ReadTime || '').substr(0,10)+'</div>';
- }
- });
-
-
- });
- $('#yj3').html(text);
-
- $('#overDate').html(data.entityItem[data.entityItem.length - 1].ReadTime.substr(0,10));
- });
-
- },
- };
- page.init();
- }
|