| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- Ext.define('erp.view.oa.info.PagingGet',{
- extend: 'Ext.Viewport',
- //layout: 'border',
- hideBorders: true,
- layour:'auto',
- _version:123,
- padding:'20px 20px 20px 15px',
- style:'background: red!important;',
- initComponent : function(){
- var me = this;
- Ext.apply(me, {
- items:[{
- xtype:'tabpanel',
- id:'msgTab',
- region:'center',
- items:[{
- title:'消息内容',
- xtype:'form',
- region:'center',
- layout: 'column',
- hideBorders: true,
- frame:false,
- buttonsAlign:'right',
- defaults:{
- columnWidth:1,
- margin:'2 5 2 5'
- },
- items: [{
- xtype: 'toolbar',
- columnWidth: 1,
- layout: {
- type: 'hbox',
- align: 'right'
- },
- padding:'20 30 20 30',
- style: {
- background: 'transparent',
- border: 'none'
- },
- items: [{
- xtype: 'tbtext',
- id: 'PrMan',
- text:'<span style="font-weight:bold;">发件人 : </span>'+data.PR_RELEASER
- },
- '-', {
- xtype: 'tbtext',
- id: 'PrDate',
- text:'<span style="font-weight:bold;">日期 : </span>'+Ext.util.Format.date(new Date(data.PR_DATE),'Y-m-d H:i:s')
- },
- '->', {
- xtype: 'button',
- text:'存放到日程事务',
- iconCls:'x-btn-task',
- itemId:'saveTask'
- },{
- xtype:'button',
- text:'转发',
- iconCls:'x-btn-turn',
- itemId:'turnOver'
- }]
- },{
- xtype:'mfilefield',
- name:'pr_attach',
- hidden:true
- },{
- xtype:'htmleditor',
- id:'readEl',
- name:'context',
- height:300,
- margin:'0 20 0 20',
- value:context,
- style:'border-top:solid 1px #b5b8c8;',
- readOnly:true
- }],
- buttons:[ {xtype:'label',text:'(Alt+S 回复,Alt+E 关闭)'},
- { xtype: 'button', text: '回复',itemId:'reply',formBind: true,width:60 },
- { xtype: 'button', text: '关闭',itemId:'close',width:60 }]
- },{
- title:'发送消息',
- xtype:'form',
- id:'replyMsg',
- layout:'column',
- hidden:true,
- defaults:{
- columnWidth:1,
- margin:'2 5 2 5'
- },
- items:[{
- fieldLabel:'接收人',
- xtype:'HrOrgSelectfield',
- fieldLabel:'接收人',
- name:'man',
- height:65,
- id:'man',
- logic:'manid',
- style:'border:none',
- readOnly:true,
- secondname:'manid',
- allowBlank:false
- },{
- xtype:'hidden',
- id:'manid',
- name:'manid'
- },{
- xtype:'htmleditor',
- id:'replyEl',
- name:'replycontext',
- value:'<p> </p><hr color="red" align="left" width="250px"><b>['+data.PR_RELEASER+' : '+Ext.util.Format.date(new Date(data.PR_DATE),'Y-m-d H:i:s')+']</b>'+context,
- style:'border:solid 1px #b5b8c8;'
- },{
- xtype:'mfilefield',
- frame:false
- }],
- buttons:[ {xtype:'label',text:'(Alt+S 发送,Alt+E 关闭)'},
- { xtype: 'button', text: '发送',itemId:'send',formBind: true,width:60 },
- { xtype: 'button', text: '关闭',itemId:'close',width:60 }]
- },{
- title:'历史记录',
- xtype: 'erpDatalistGridPanel',
- id:'receive-grid',
- caller:'PagingRelease',
- anchor:'100% 100%',
- _noc:1,
- plugins: [Ext.create('erp.view.core.grid.HeaderFilter')],
- showRowNum:false,
- defaultCondition:'prd_recipientid='+em_uu,
- dockedItems: [{
- id : 'pagingtoolbar2',
- xtype: 'erpDatalistToolbar',
- dock: 'bottom',
- displayInfo: true,
- items:[]
- }]
- }]
- }]
- });
- me.callParent(arguments);
- }
- });
|