📄 dc0026.js
字号:
,onRender:function() {
N21.DataComp.DC0026F.superclass.onRender.apply(this, arguments);
}
,newDataRecord:function() {
return new this.dataRecordMeta({_p_record_status:"insert"
,ID:""
,CLIENT_ID:""
,CLIENT_NAME:""
,RECEIVER_NAME:""
,RECEIVER_ID:""
,DOC_TYPE:""
,DOC_NO:""
,DOC_DATE:""
,ISSUER_NAME:""
,ISSUER_ID:""
,ACCT:""
,DOC_CURRENCY:""
,TOTAL_AMOUNT:""
,TOTAL_NET_AMOUNT:""
,TOTAL_TAX_AMOUNT:""
,DUE_DATE:""
,IS_INSERTED:""
,IS_PAYABLE:""
,IS_PAYED:""
,IS_POSTED:""
,ACCDOC_NAME:""
,ACCDOC_ID:""
,REF_RINVOICE_ID:""
,REF_RINVOICE_NAME:""
,NOTES:""
,INSERTEDBY:""
,INSERTEDON:""
,CREATEDON:""
,CREATEDBY:""
,MODIFIEDON:""
,MODIFIEDBY:""
,POSTEDON:""
,POSTEDBY:""});
}
,change_TOTAL_AMOUNT:function(fld, newVal, oldVal) {
if ( !Ext.isEmpty(newVal) ) {
this.setFieldValue("TOTAL_NET_AMOUNT", this.getFieldValue("TOTAL_AMOUNT")/1.19 );
this.setFieldValue("TOTAL_TAX_AMOUNT", this.getFieldValue("TOTAL_AMOUNT") - this.getFieldValue("TOTAL_NET_AMOUNT") );
} else {
this.setFieldValue("TOTAL_NET_AMOUNT", "" );
this.setFieldValue("TOTAL_TAX_AMOUNT", "");
}
}
});
Ext.reg("DC0026F", N21.DataComp.DC0026F);
/**
* DataControl: Grid with Edit Form
* Code: DC0026
* Title: Received invoice
*/
Ext.ns("N21.DataComp");
N21.DataComp.DC0026 = Ext.extend(N21.Base.GridEditForm, {
initComponent:function() {
Ext.apply(this, {
autoScroll:false
,layout:"border"
,dataComponentName:"DC0026"
,masterName:"DC0026G"
,detailName:"DC0026F"
,mdLayout:"card"
,border: false
,items: [
{
xtype:"panel"
,layout:"card"
,id:"MDTab"
,region:"center"
,defaults:{layout:"fit"}
,activeItem:0
,tabPosition: "bottom"
,items: [{
xtype: "DC0026G"
,id: "DC0026G"
,height:350
},{
xtype:"DC0026F"
,id:"DC0026F"
,height:350
,frame:true
,autoScroll:true
,layout:"form"
}]
}
]
,tbar: new Array(
new Ext.Toolbar.Button({ id:"tlb_FILTER" ,xtype:"button" ,cls:"x-btn-icon" ,icon:"_static/icon/g_rec_src.png" ,tooltip:"Apply filter" ,handler: this.executeQuery ,scope :this})
,new Ext.Toolbar.Separator()
,new Ext.Toolbar.Button({ id:"tlb_SAVE" ,xtype:"button" ,cls:"x-btn-icon" ,icon:"_static/icon/g_rec_commit.png" ,tooltip:"Save changes <Ctrl+S>" ,handler: this.commitForm ,scope :this})
,new Ext.Toolbar.Button({ id:"tlb_NEW" ,xtype:"button" ,cls:"x-btn-icon" ,icon:"_static/icon/g_rec_new.png" ,tooltip:"Create new record <Ctrl+N>" ,handler: this.createNewRecord ,scope :this})
,new Ext.Toolbar.Button({ id:"tlb_DELETE" ,xtype:"button" ,cls:"x-btn-icon" ,icon:"_static/icon/g_rec_del.png" ,tooltip:"Delete record <Ctrl+D>" ,handler: this.deleteRecord ,scope :this})
,new Ext.Toolbar.Separator()
,new Ext.Toolbar.Button({ id:"tlb_LIST_EDITOR_MODE" ,xtype:"button" ,cls:"x-btn-icon" ,icon:"_static/icon/g_rec_upd.png" ,tooltip:"Editor<Enter>, List<Ctrl+Q>" ,handler: this.toggleEditMode ,scope :this})
,new Ext.Toolbar.Button({ id:"tlb_REFRESH_RECORD" ,xtype:"button" ,cls:"x-btn-icon" ,icon:"_static/icon/g_rec_refresh.gif" ,tooltip:"Refresh record" ,handler: this.reloadRecord ,scope :this})
,new Ext.Toolbar.Separator()
,new Ext.Toolbar.Button({ id:"tlb_PREV_REC" ,xtype:"button" ,cls:"x-btn-icon" ,icon:"_static/icon/f_rec_prev.gif" ,tooltip:"Previous record" ,handler: this.goToPrevRecord ,scope :this})
,new Ext.Toolbar.Button({ id:"tlb_NEXT_REC" ,xtype:"button" ,cls:"x-btn-icon" ,icon:"_static/icon/f_rec_next.gif" ,tooltip:"Next record" ,handler: this.goToNextRecord ,scope :this})
,new Ext.Toolbar.Separator()
,new Ext.Toolbar.Button({ id:"tlb_PRINT" ,xtype:"button" ,cls:"x-btn-icon" ,icon:"_static/icon/print.png" ,tooltip:"Print list" ,handler: this.exportList ,scope :this})
)
});
N21.DataComp.DC0026.superclass.initComponent.apply(this, arguments);
}
});
Ext.reg("DC0026", N21.DataComp.DC0026);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -