DeptDetail.js 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. Ext.define('erp.view.fa.gla.DeptDetail',{
  2. extend: 'Ext.Viewport',
  3. layout: 'anchor',
  4. hideBorders: true,
  5. initComponent : function(){
  6. var me = this;
  7. Ext.apply(me, {
  8. items: [{
  9. xtype: 'form',
  10. anchor: '100% 5%',
  11. layout: 'column',
  12. bodyStyle: 'background:#f1f1f1;',
  13. buttonAlign: 'center',
  14. bbar: [/*{
  15. xtype: 'tbtext',
  16. id: 'gl_info_ym',
  17. updateInfo: function(args) {
  18. if(args.sl_yearmonth) {
  19. this.setText('期间: 从 ' + args.sl_yearmonth.begin + ' 到 ' +
  20. args.sl_yearmonth.end + ' ');
  21. } else if(args.sl_date){
  22. this.setText('日期: 从 ' + args.sl_date.begin + ' 到 ' +
  23. args.sl_date.end + ' ');
  24. }
  25. }
  26. },'-',{
  27. xtype: 'tbtext',
  28. id: 'gl_info_c',
  29. updateInfo: function(args) {
  30. this.setText('科目: ' + (args.catecode || ' ') + ' [' + (args.catename || ' ') + ']');
  31. }
  32. },'-',{
  33. xtype: 'tbtext',
  34. id: 'gl_info_ass',
  35. updateInfo: function(args) {
  36. if(args.asstype)
  37. this.setText((args.asstype || ' ') + ' [' + (args.assname || ' ') + ']');
  38. else
  39. this.setText(' ');
  40. }
  41. },'-' ,'->',*/{
  42. name: 'query',
  43. id: 'query',
  44. text: $I18N.common.button.erpQueryButton,
  45. iconCls: 'x-button-icon-query',
  46. cls: 'x-btn-gray',
  47. margin: '0 4 0 0'
  48. },'->',{
  49. name: 'export',
  50. text: $I18N.common.button.erpExportButton,
  51. iconCls: 'x-button-icon-excel',
  52. cls: 'x-btn-gray',
  53. margin: '0 4 0 0'
  54. },{
  55. name: 'print',
  56. text: $I18N.common.button.erpPrintButton,
  57. iconCls: 'x-button-icon-print',
  58. margin: '0 4 0 0',
  59. cls: 'x-btn-gray'
  60. },{
  61. text: $I18N.common.button.erpCloseButton,
  62. iconCls: 'x-button-icon-close',
  63. cls: 'x-btn-gray',
  64. margin: '0 10 0 0',
  65. handler: function(){
  66. var main = parent.Ext.getCmp("content-panel");
  67. main.getActiveTab().close();
  68. }
  69. }/*,{
  70. name: 'export',
  71. text: $I18N.common.button.erpExportButton,
  72. iconCls: 'x-button-icon-excel',
  73. cls: 'x-btn-gray',
  74. margin: '0 4 0 0'
  75. },{
  76. name: 'print',
  77. text: $I18N.common.button.erpPrintButton,
  78. iconCls: 'x-button-icon-print',
  79. margin: '0 4 0 0',
  80. cls: 'x-btn-gray'
  81. },{
  82. text: $I18N.common.button.erpCloseButton,
  83. iconCls: 'x-button-icon-close',
  84. cls: 'x-btn-gray',
  85. margin: '0 10 0 0',
  86. handler: function(){
  87. var main = parent.Ext.getCmp("content-panel");
  88. main.getActiveTab().close();
  89. }
  90. }*/]
  91. },{
  92. xtype: 'ledgerdeptdetail',
  93. anchor: '100% 95%'
  94. }]
  95. });
  96. me.callParent(arguments);
  97. }
  98. });