MoreInfo.js 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. Ext.define('erp.view.common.DeskTop.MoreInfo', {
  2. extend : 'Ext.Viewport',
  3. layout : 'anchor',
  4. hideBorders : true,
  5. initComponent : function() {
  6. var me = this;
  7. Ext.apply(me, {
  8. items : [{xtype: 'toolbar',
  9. region: 'north',
  10. anchor: '100% 5%',
  11. items : ['->',{
  12. xtype : 'button',
  13. text:'即时沟通',
  14. id:'contact',
  15. cls: 'x-btn-gray',
  16. iconCls: 'x-button-icon-chat',
  17. style: {
  18. marginRight: '10px'
  19. },
  20. width: 100
  21. },{
  22. xtype : 'button',
  23. text:'发布通知',
  24. id:'addNote',
  25. cls: 'x-btn-gray',
  26. iconCls: 'group-post',
  27. style: {
  28. marginRight: '10px'
  29. },
  30. width: 100
  31. },{
  32. xtype : 'button',
  33. text:'发布新闻',
  34. id:'addNews',
  35. cls: 'x-btn-gray',
  36. iconCls:'x-button-icon-content',
  37. style: {
  38. marginRight: '10px'
  39. },
  40. width: 100
  41. }] }
  42. ,{
  43. xtype : 'erpDeskTabPanel',
  44. anchor: '100% 95%',
  45. bodyStyle : {
  46. border : 'none'
  47. },
  48. bodyBorder : false,
  49. items : [{
  50. title : '内部通知',
  51. anchor : '100% 100%',
  52. xtype : 'erpDatalistGridPanel',
  53. id : 'Inform',
  54. keyField:'no_id',
  55. pfField:null,
  56. url:'jsps/oa/info/NoteR.jsp',
  57. caller :'Note',
  58. firstPage:true,
  59. defaultCondition : 'no_infotype=\'TZ\' and em_id='+em_id+' and (\''+em_type+'\'=\'admin\' or (no_id in (select no_id from note where no_approver=\''+em_type+'\' or no_ispublic=-1 or no_ispublic=1 or no_ispublic=0 and no_id in (SELECT NO_ID FROM EMPSNOTES WHERE EMP_ID ='+em_id+'))))',
  60. showRowNum : false
  61. },{
  62. title : '行政公告',
  63. anchor : '100% 100%',
  64. xtype : 'erpDatalistGridPanel',
  65. id : 'Notice',
  66. keyField:'no_id',
  67. pfField:null,
  68. url:'jsps/oa/info/NoteR.jsp',
  69. caller :'Note',
  70. firstPage:true,
  71. defaultCondition :'no_infotype=\'GG\' and em_id='+em_id+' and (\''+em_type+'\'=\'admin\' or (no_id in (select no_id from note where no_approver=\''+em_type+'\' or no_ispublic=-1 or no_ispublic=1 or no_ispublic=0 and no_id in (SELECT NO_ID FROM EMPSNOTES WHERE EMP_ID ='+em_id+'))))',
  72. dockedItems : [{
  73. id : 'pagingtoolbar3',
  74. xtype: 'erpDatalistToolbar',
  75. dock: 'bottom',
  76. displayInfo: true
  77. }],
  78. showRowNum : false,
  79. plugins : [Ext.create(
  80. 'erp.view.core.grid.HeaderFilter'
  81. ), Ext.create('erp.view.core.plugin.CopyPasteMenu')]
  82. },{
  83. title : '时事新闻',
  84. anchor : '100% 100%',
  85. xtype : 'erpDatalistGridPanel',
  86. id : 'News',
  87. keyField:'ne_id',
  88. pfField:null,
  89. url:'jsps/oa/news/NewsR.jsp',
  90. caller :'News',
  91. firstPage:true,
  92. defaultCondition : '',
  93. dockedItems : [{
  94. id : 'pagingtoolbar2',
  95. xtype: 'erpDatalistToolbar',
  96. dock: 'bottom',
  97. displayInfo: true
  98. }],
  99. showRowNum : false,
  100. plugins : [Ext.create(
  101. 'erp.view.core.grid.HeaderFilter'
  102. ), Ext.create('erp.view.core.plugin.CopyPasteMenu')]
  103. }]
  104. }]
  105. });
  106. me.callParent(arguments);
  107. }
  108. });