PagingGet.js 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. Ext.define('erp.view.oa.info.PagingGet',{
  2. extend: 'Ext.Viewport',
  3. //layout: 'border',
  4. hideBorders: true,
  5. layour:'auto',
  6. _version:123,
  7. padding:'20px 20px 20px 15px',
  8. style:'background: red!important;',
  9. initComponent : function(){
  10. var me = this;
  11. Ext.apply(me, {
  12. items:[{
  13. xtype:'tabpanel',
  14. id:'msgTab',
  15. region:'center',
  16. items:[{
  17. title:'消息内容',
  18. xtype:'form',
  19. region:'center',
  20. layout: 'column',
  21. hideBorders: true,
  22. frame:false,
  23. buttonsAlign:'right',
  24. defaults:{
  25. columnWidth:1,
  26. margin:'2 5 2 5'
  27. },
  28. items: [{
  29. xtype: 'toolbar',
  30. columnWidth: 1,
  31. layout: {
  32. type: 'hbox',
  33. align: 'right'
  34. },
  35. padding:'20 30 20 30',
  36. style: {
  37. background: 'transparent',
  38. border: 'none'
  39. },
  40. items: [{
  41. xtype: 'tbtext',
  42. id: 'PrMan',
  43. text:'<span style="font-weight:bold;">发件人 : </span>'+data.PR_RELEASER
  44. },
  45. '-', {
  46. xtype: 'tbtext',
  47. id: 'PrDate',
  48. text:'<span style="font-weight:bold;">日期 : </span>'+Ext.util.Format.date(new Date(data.PR_DATE),'Y-m-d H:i:s')
  49. },
  50. '->', {
  51. xtype: 'button',
  52. text:'存放到日程事务',
  53. iconCls:'x-btn-task',
  54. itemId:'saveTask'
  55. },{
  56. xtype:'button',
  57. text:'转发',
  58. iconCls:'x-btn-turn',
  59. itemId:'turnOver'
  60. }]
  61. },{
  62. xtype:'mfilefield',
  63. name:'pr_attach',
  64. hidden:true
  65. },{
  66. xtype:'htmleditor',
  67. id:'readEl',
  68. name:'context',
  69. height:300,
  70. margin:'0 20 0 20',
  71. value:context,
  72. style:'border-top:solid 1px #b5b8c8;',
  73. readOnly:true
  74. }],
  75. buttons:[ {xtype:'label',text:'(Alt+S 回复,Alt+E 关闭)'},
  76. { xtype: 'button', text: '回复',itemId:'reply',formBind: true,width:60 },
  77. { xtype: 'button', text: '关闭',itemId:'close',width:60 }]
  78. },{
  79. title:'发送消息',
  80. xtype:'form',
  81. id:'replyMsg',
  82. layout:'column',
  83. hidden:true,
  84. defaults:{
  85. columnWidth:1,
  86. margin:'2 5 2 5'
  87. },
  88. items:[{
  89. fieldLabel:'接收人',
  90. xtype:'HrOrgSelectfield',
  91. fieldLabel:'接收人',
  92. name:'man',
  93. height:65,
  94. id:'man',
  95. logic:'manid',
  96. style:'border:none',
  97. readOnly:true,
  98. secondname:'manid',
  99. allowBlank:false
  100. },{
  101. xtype:'hidden',
  102. id:'manid',
  103. name:'manid'
  104. },{
  105. xtype:'htmleditor',
  106. id:'replyEl',
  107. name:'replycontext',
  108. value:'<p>&nbsp;</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,
  109. style:'border:solid 1px #b5b8c8;'
  110. },{
  111. xtype:'mfilefield',
  112. frame:false
  113. }],
  114. buttons:[ {xtype:'label',text:'(Alt+S 发送,Alt+E 关闭)'},
  115. { xtype: 'button', text: '发送',itemId:'send',formBind: true,width:60 },
  116. { xtype: 'button', text: '关闭',itemId:'close',width:60 }]
  117. },{
  118. title:'历史记录',
  119. xtype: 'erpDatalistGridPanel',
  120. id:'receive-grid',
  121. caller:'PagingRelease',
  122. anchor:'100% 100%',
  123. _noc:1,
  124. plugins: [Ext.create('erp.view.core.grid.HeaderFilter')],
  125. showRowNum:false,
  126. defaultCondition:'prd_recipientid='+em_uu,
  127. dockedItems: [{
  128. id : 'pagingtoolbar2',
  129. xtype: 'erpDatalistToolbar',
  130. dock: 'bottom',
  131. displayInfo: true,
  132. items:[]
  133. }]
  134. }]
  135. }]
  136. });
  137. me.callParent(arguments);
  138. }
  139. });