| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- Ext.define('erp.view.fa.gs.AccountRegister',{
- extend: 'Ext.Viewport',
- layout: 'anchor',
- hideBorders: true,
- initComponent : function(){
- var me = this;
- Ext.apply(me, {
- items: [{
- anchor: '100% 50%',
- xtype: 'erpFormPanel',
- saveUrl: 'fa/gs/saveAccountRegister.action',
- deleteUrl: 'fa/gs/deleteAccountRegister.action',
- updateUrl: 'fa/gs/updateAccountRegister.action',
- submitUrl: 'fa/gs/submitAccountRegister.action',
- resSubmitUrl: 'fa/gs/resSubmitAccountRegister.action',
- printUrl: 'fa/gs/printAccountRegister.action',
- accountedUrl: 'fa/gs/accountAccountRegister.action',
- resAccountedUrl: 'fa/gs/resAccountAccountRegister.action',
- getIdUrl: 'common/getId.action?seq=ACCOUNTREGISTER_SEQ',
- keyField: 'ar_id',
- statusField: 'ar_statuscode',
- codeField: 'ar_code',
- assCaller:'AccountRegisterAss',
- voucherConfig: {
- voucherField: 'ar_vouchercode',
- vs_code: 'AccountRegiste',
- yearmonth: 'ar_date',
- datas: 'ar_code',
- status: 'ar_statuscode',
- mode: 'single',
- kind: function(form){
- var f = form.down('#ar_type');
- return f ? f.getValue() : null;
- },
- vomode: 'CB'
- }
- },{
- anchor: '100% 50%',
- xtype: 'erpGridPanel2',
- autoSetSequence: true,
- isEmptyRecord: function(data) { // 判断明细单行数据是否有效
- return Ext.isEmpty(data.ard_catecode) && data.ard_debit == 0 && data.ard_credit == 0;
- }
- }]
- });
- me.callParent(arguments);
- }
- });
|