| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- Ext.define('erp.view.co.cost.MakeFeeClose',{
- extend: 'Ext.Viewport',
- layout: {
- type: 'hbox',
- align: 'middle',
- pack: 'center'
- },
- style: 'background: #f1f2f5;',
- initComponent : function(){
- var me = this;
- Ext.apply(me, {
- items: [ this.createForm() ]
- });
- me.callParent(arguments);
- },
- createForm: function() {
- this.form = Ext.create('Ext.form.Panel', {
- title: '制造费用结转凭证制作',
- height: 300,
- width: 500,
- layout: 'vbox',
- bodyStyle: 'background: #f1f1f1;',
- defaults: {
- width: 360,
- margin: '10 0 0 30'
- },
- items: [{
- xtype: 'displayfield',
- fieldLabel: '期间',
- name: 'yearmonth'
- },{
- fieldLabel: '制造费用科目',
- labelWidth: 100,
- layout: 'column',
- height: 36,
- xtype: 'fieldcontainer',
- defaults: {
- fieldStyle : "background:#FFFAFA;color:#515151;"
- },
- items: [{
- xtype: 'dbfindtrigger',
- name: 'ca_code',
- id: 'makeCatecode',
- columnWidth: 0.4,
- listeners: {
- aftertrigger: function(f, d) {
- f.setValue(d.data.ca_code);
- f.ownerCt.down('textfield[name=ca_name]').setValue(d.data.ca_name);
- }
- }
- },{
- xtype: 'textfield',
- name: 'ca_name',
- columnWidth: 0.6,
- readOnly: true,
- fieldStyle: 'background:#f1f1f1;'
- }]
- },{
- fieldLabel: '生产成本科目',
- labelWidth: 100,
- layout: 'column',
- height: 36,
- xtype: 'fieldcontainer',
- defaults: {
- fieldStyle : "background:#FFFAFA;color:#515151;"
- },
- items: [{
- xtype: 'dbfindtrigger',
- name: 'ca_code',
- id: 'makeToCatecode',
- columnWidth: 0.4,
- listeners: {
- aftertrigger: function(f, d) {
- f.setValue(d.data.ca_code);
- f.ownerCt.down('textfield[name=ca_name]').setValue(d.data.ca_name);
- }
- }
- },{
- xtype: 'textfield',
- name: 'ca_name',
- columnWidth: 0.6,
- readOnly: true,
- fieldStyle: 'background:#f1f1f1;'
- }]
- },{
- xtype: 'checkbox',
- id: 'account',
- name: 'account',
- boxLabel: '将生产成本结转产生的凭证立即登账'
- }],
- buttonAlign: 'center',
- buttons: [{
- xtype: 'erpMakeFeeCloseButton'
- },{
- xtype:'erpCloseButton'
- }]
- });
- return this.form;
- }
- });
|