| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- Ext.define('erp.view.fa.gla.DeptDetail',{
- extend: 'Ext.Viewport',
- layout: 'anchor',
- hideBorders: true,
- initComponent : function(){
- var me = this;
- Ext.apply(me, {
- items: [{
- xtype: 'form',
- anchor: '100% 5%',
- layout: 'column',
- bodyStyle: 'background:#f1f1f1;',
- buttonAlign: 'center',
- bbar: [/*{
- xtype: 'tbtext',
- id: 'gl_info_ym',
- updateInfo: function(args) {
- if(args.sl_yearmonth) {
- this.setText('期间: 从 ' + args.sl_yearmonth.begin + ' 到 ' +
- args.sl_yearmonth.end + ' ');
- } else if(args.sl_date){
- this.setText('日期: 从 ' + args.sl_date.begin + ' 到 ' +
- args.sl_date.end + ' ');
- }
- }
- },'-',{
- xtype: 'tbtext',
- id: 'gl_info_c',
- updateInfo: function(args) {
- this.setText('科目: ' + (args.catecode || ' ') + ' [' + (args.catename || ' ') + ']');
- }
- },'-',{
- xtype: 'tbtext',
- id: 'gl_info_ass',
- updateInfo: function(args) {
- if(args.asstype)
- this.setText((args.asstype || ' ') + ' [' + (args.assname || ' ') + ']');
- else
- this.setText(' ');
- }
- },'-' ,'->',*/{
- name: 'query',
- id: 'query',
- text: $I18N.common.button.erpQueryButton,
- iconCls: 'x-button-icon-query',
- cls: 'x-btn-gray',
- margin: '0 4 0 0'
- },'->',{
- name: 'export',
- text: $I18N.common.button.erpExportButton,
- iconCls: 'x-button-icon-excel',
- cls: 'x-btn-gray',
- margin: '0 4 0 0'
- },{
- name: 'print',
- text: $I18N.common.button.erpPrintButton,
- iconCls: 'x-button-icon-print',
- margin: '0 4 0 0',
- cls: 'x-btn-gray'
- },{
- text: $I18N.common.button.erpCloseButton,
- iconCls: 'x-button-icon-close',
- cls: 'x-btn-gray',
- margin: '0 10 0 0',
- handler: function(){
- var main = parent.Ext.getCmp("content-panel");
- main.getActiveTab().close();
- }
- }/*,{
- name: 'export',
- text: $I18N.common.button.erpExportButton,
- iconCls: 'x-button-icon-excel',
- cls: 'x-btn-gray',
- margin: '0 4 0 0'
- },{
- name: 'print',
- text: $I18N.common.button.erpPrintButton,
- iconCls: 'x-button-icon-print',
- margin: '0 4 0 0',
- cls: 'x-btn-gray'
- },{
- text: $I18N.common.button.erpCloseButton,
- iconCls: 'x-button-icon-close',
- cls: 'x-btn-gray',
- margin: '0 10 0 0',
- handler: function(){
- var main = parent.Ext.getCmp("content-panel");
- main.getActiveTab().close();
- }
- }*/]
- },{
- xtype: 'ledgerdeptdetail',
- anchor: '100% 95%'
- }]
- });
- me.callParent(arguments);
- }
- });
|