📄 dc0026.js
字号:
,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:""});
}
});
Ext.reg("DC0026G", N21.DataComp.DC0026G);
/**
* Data Component: DC0026F, Title: Received invoice
*/
Ext.ns("N21.DataComp");
N21.DataComp.DC0026F = Ext.extend(N21.Base.EditForm, {
fields: new Ext.util.MixedCollection()
,dataRecordMeta : N21.DataComp.DC0026G.prototype.dataRecordMeta
,layoutItems: new Ext.util.MixedCollection()
,initComponent:function() {
this.fields.add("_p_record_status",new Ext.form.Hidden({xtype: "hidden", allowBlank: true, fieldLabel: "record_status", selectOnFocus: false, style: "", name: "_p_record_status"}) );
this.fields.add("ID", new Ext.form.Hidden ({xtype: "hidden",name:"ID",id:"DC0026F_ID",dataIndex:"ID",width:100,allowBlank:false,labelSeparator:":*" ,fieldLabel: this.resourceBundle.FieldLabel.ID||"Id",insert_allowed:true,update_allowed:true}) );
this.fields.add("CLIENT_ID", new Ext.form.Hidden ({xtype: "hidden",name:"CLIENT_ID",id:"DC0026F_CLIENT_ID",dataIndex:"CLIENT_ID",width:100,allowBlank:false,labelSeparator:":*" ,fieldLabel: this.resourceBundle.FieldLabel.CLIENT_ID||"Client_id",insert_allowed:true,update_allowed:true}) );
this.fields.add("CLIENT_NAME", new N21.DataComp.LOV0008({xtype: "LOV0008",displayColumn: "CODE",fieldMapping: [{column:"ID",field:"DC0026F_CLIENT_ID"}],selectOnFocus:true,name:"CLIENT_NAME",id:"DC0026F_CLIENT_NAME",dataIndex:"CLIENT_NAME",width:120,allowBlank:false,labelSeparator:":*" ,fieldLabel: this.resourceBundle.FieldLabel.CLIENT_NAME||"Client",insert_allowed:true,update_allowed:true}) );
this.fields.add("RECEIVER_NAME", new N21.DataComp.LOV0009({xtype: "LOV0009",displayColumn: "NAME",fieldMapping: [{column:"ID",field:"DC0026F_RECEIVER_ID"}],selectOnFocus:true,name:"RECEIVER_NAME",id:"DC0026F_RECEIVER_NAME",dataIndex:"RECEIVER_NAME",width:200,allowBlank:false,labelSeparator:":*" ,fieldLabel: this.resourceBundle.FieldLabel.RECEIVER_NAME||"Receiver",insert_allowed:true,update_allowed:true}) );
this.fields.add("RECEIVER_ID", new Ext.form.Hidden ({xtype: "hidden",name:"RECEIVER_ID",id:"DC0026F_RECEIVER_ID",dataIndex:"RECEIVER_ID",width:100,allowBlank:false,labelSeparator:":*" ,fieldLabel: this.resourceBundle.FieldLabel.RECEIVER_ID||"Receiver_id",insert_allowed:true,update_allowed:true}) );
this.fields.add("DOC_TYPE", new N21.DataComp.LOV0015({xtype: "LOV0015",displayColumn: "CODE",selectOnFocus:true,name:"DOC_TYPE",id:"DC0026F_DOC_TYPE",dataIndex:"DOC_TYPE",width:120,allowBlank:false,labelSeparator:":*" ,fieldLabel: this.resourceBundle.FieldLabel.DOC_TYPE||"Doc type",insert_allowed:true,update_allowed:true}) );
this.fields.add("DOC_NO", new Ext.form.TextField ({xtype: "textfield",name:"DOC_NO",id:"DC0026F_DOC_NO",dataIndex:"DOC_NO",width:120,allowBlank:false,labelSeparator:":*" ,fieldLabel: this.resourceBundle.FieldLabel.DOC_NO||"Doc no",insert_allowed:true,update_allowed:true}) );
this.fields.add("DOC_DATE", new Ext.form.DateField ({xtype: "datefield",name:"DOC_DATE",id:"DC0026F_DOC_DATE",dataIndex:"DOC_DATE",width:100,allowBlank:false,labelSeparator:":*" ,fieldLabel: this.resourceBundle.FieldLabel.DOC_DATE||"Date",insert_allowed:true,update_allowed:true,format:Ext.DATE_FORMAT}) );
this.fields.add("ISSUER_NAME", new N21.DataComp.LOV0042({xtype: "LOV0042",displayColumn: "NAME",fieldMapping: [{column:"ID",field:"DC0026F_ISSUER_ID"},{column:"ACCT",field:"DC0026F_ACCT"}],selectOnFocus:true,name:"ISSUER_NAME",id:"DC0026F_ISSUER_NAME",dataIndex:"ISSUER_NAME",width:200,allowBlank:false,labelSeparator:":*" ,fieldLabel: this.resourceBundle.FieldLabel.ISSUER_NAME||"Issuer",insert_allowed:true,update_allowed:true}) );
this.fields.add("ISSUER_ID", new Ext.form.Hidden ({xtype: "hidden",name:"ISSUER_ID",id:"DC0026F_ISSUER_ID",dataIndex:"ISSUER_ID",width:100,allowBlank:false,labelSeparator:":*" ,fieldLabel: this.resourceBundle.FieldLabel.ISSUER_ID||"Issuer_id",insert_allowed:true,update_allowed:true}) );
this.fields.add("ACCT", new N21.DataComp.LOV0025({xtype: "LOV0025",selectOnFocus:true,name:"ACCT",id:"DC0026F_ACCT",dataIndex:"ACCT",width:100,allowBlank:true,fieldLabel: this.resourceBundle.FieldLabel.ACCT||"Exp_acct",insert_allowed:true,update_allowed:true}) );
this.fields.add("DOC_CURRENCY", new N21.DataComp.LOV0001({xtype: "LOV0001",displayColumn: "CODE",selectOnFocus:true,name:"DOC_CURRENCY",id:"DC0026F_DOC_CURRENCY",dataIndex:"DOC_CURRENCY",width:80,allowBlank:false,labelSeparator:":*" ,fieldLabel: this.resourceBundle.FieldLabel.DOC_CURRENCY||"Currency",insert_allowed:true,update_allowed:true}) );
this.fields.add("TOTAL_AMOUNT", new Ext.form.NumberField ({xtype: "numberfield",name:"TOTAL_AMOUNT",id:"DC0026F_TOTAL_AMOUNT",dataIndex:"TOTAL_AMOUNT",width:100,allowBlank:false,labelSeparator:":*" ,fieldLabel: this.resourceBundle.FieldLabel.TOTAL_AMOUNT||"Total amount",insert_allowed:true,update_allowed:true,decimalPrecision:2,style: "text-align:right;",fieldClass: "field_important_1",listeners:{ "change":{scope:this, fn:this.change_TOTAL_AMOUNT} }}) );
this.fields.add("TOTAL_NET_AMOUNT", new Ext.form.NumberField ({xtype: "numberfield",name:"TOTAL_NET_AMOUNT",id:"DC0026F_TOTAL_NET_AMOUNT",dataIndex:"TOTAL_NET_AMOUNT",width:100,allowBlank:false,labelSeparator:":*" ,fieldLabel: this.resourceBundle.FieldLabel.TOTAL_NET_AMOUNT||"Net amount",insert_allowed:true,update_allowed:true,decimalPrecision:2,style: "text-align:right;"}) );
this.fields.add("TOTAL_TAX_AMOUNT", new Ext.form.NumberField ({xtype: "numberfield",name:"TOTAL_TAX_AMOUNT",id:"DC0026F_TOTAL_TAX_AMOUNT",dataIndex:"TOTAL_TAX_AMOUNT",width:100,allowBlank:false,labelSeparator:":*" ,fieldLabel: this.resourceBundle.FieldLabel.TOTAL_TAX_AMOUNT||"Tax amount",insert_allowed:true,update_allowed:true,decimalPrecision:2,style: "text-align:right;"}) );
this.fields.add("DUE_DATE", new Ext.form.DateField ({xtype: "datefield",name:"DUE_DATE",id:"DC0026F_DUE_DATE",dataIndex:"DUE_DATE",width:100,allowBlank:true,fieldLabel: this.resourceBundle.FieldLabel.DUE_DATE||"Due date",insert_allowed:true,update_allowed:true,format:Ext.DATE_FORMAT}) );
this.fields.add("IS_INSERTED", new Ext.ux.form.XCheckbox ({xtype: "xcheckbox",name:"IS_INSERTED",id:"DC0026F_IS_INSERTED",dataIndex:"IS_INSERTED",width:50,allowBlank:true,fieldLabel: this.resourceBundle.FieldLabel.IS_INSERTED||"Registered",insert_allowed:true,update_allowed:true}) );
this.fields.add("IS_PAYABLE", new Ext.ux.form.XCheckbox ({xtype: "xcheckbox",name:"IS_PAYABLE",id:"DC0026F_IS_PAYABLE",dataIndex:"IS_PAYABLE",width:50,allowBlank:true,fieldLabel: this.resourceBundle.FieldLabel.IS_PAYABLE||"Is_payable",insert_allowed:true,update_allowed:true}) );
this.fields.add("IS_PAYED", new Ext.ux.form.XCheckbox ({xtype: "xcheckbox",name:"IS_PAYED",id:"DC0026F_IS_PAYED",dataIndex:"IS_PAYED",width:50,allowBlank:true,fieldLabel: this.resourceBundle.FieldLabel.IS_PAYED||"Is_payed",insert_allowed:true,update_allowed:true}) );
this.fields.add("IS_POSTED", new Ext.ux.form.XCheckbox ({xtype: "xcheckbox",name:"IS_POSTED",id:"DC0026F_IS_POSTED",dataIndex:"IS_POSTED",width:50,allowBlank:true,fieldLabel: this.resourceBundle.FieldLabel.IS_POSTED||"Is_posted",insert_allowed:true,update_allowed:true}) );
this.fields.add("ACCDOC_NAME", new Ext.form.TextField ({xtype: "textfield",name:"ACCDOC_NAME",id:"DC0026F_ACCDOC_NAME",dataIndex:"ACCDOC_NAME",width:150,allowBlank:false,labelSeparator:":*" ,fieldLabel: this.resourceBundle.FieldLabel.ACCDOC_NAME||"Acc. doc",disabled:true}) );
this.fields.add("ACCDOC_ID", new Ext.form.Hidden ({xtype: "hidden",name:"ACCDOC_ID",id:"DC0026F_ACCDOC_ID",dataIndex:"ACCDOC_ID",width:100,allowBlank:true,fieldLabel: this.resourceBundle.FieldLabel.ACCDOC_ID||"Acc. doc id",insert_allowed:true,update_allowed:true}) );
this.fields.add("REF_RINVOICE_ID", new Ext.form.Hidden ({xtype: "hidden",name:"REF_RINVOICE_ID",id:"DC0026F_REF_RINVOICE_ID",dataIndex:"REF_RINVOICE_ID",width:100,allowBlank:true,fieldLabel: this.resourceBundle.FieldLabel.REF_RINVOICE_ID||"Ref_rinvoice_id",insert_allowed:true,update_allowed:true}) );
this.fields.add("REF_RINVOICE_NAME", new N21.DataComp.LOV0027({xtype: "LOV0027",fieldMapping: [{column:"ID",field:"DC0026F_REF_RINVOICE_ID"}],paramMapping: [{param:"p_client_id",field:"DC0026F_CLIENT_ID"},{param:"p_issuer_id",field:"DC0026F_ISSUER_ID"}],selectOnFocus:true,name:"REF_RINVOICE_NAME",id:"DC0026F_REF_RINVOICE_NAME",dataIndex:"REF_RINVOICE_NAME",width:150,allowBlank:true,fieldLabel: this.resourceBundle.FieldLabel.REF_RINVOICE_NAME||"Ref. doc.",insert_allowed:true,update_allowed:true}) );
this.fields.add("NOTES", new Ext.form.TextArea ({xtype: "textarea",name:"NOTES",id:"DC0026F_NOTES",dataIndex:"NOTES",width:250,height:40,allowBlank:true,labelSeparator: "",insert_allowed:true,update_allowed:true}) );
this.fields.add("INSERTEDBY", new Ext.form.TextField ({xtype: "textfield",name:"INSERTEDBY",id:"DC0026F_INSERTEDBY",dataIndex:"INSERTEDBY",width:100,allowBlank:true,fieldLabel: this.resourceBundle.FieldLabel.INSERTEDBY||"Registered by",disabled:true}) );
this.fields.add("INSERTEDON", new Ext.form.DateField ({xtype: "datefield",name:"INSERTEDON",id:"DC0026F_INSERTEDON",dataIndex:"INSERTEDON",width:100,allowBlank:true,fieldLabel: this.resourceBundle.FieldLabel.INSERTEDON||"Registered on",disabled:true,format:Ext.DATE_FORMAT}) );
this.fields.add("CREATEDON", new Ext.form.DateField ({xtype: "datefield",name:"CREATEDON",id:"DC0026F_CREATEDON",dataIndex:"CREATEDON",width:100,allowBlank:true,fieldLabel: this.resourceBundle.FieldLabel.CREATEDON||"CreatedOn",disabled:true,format:Ext.DATE_FORMAT}) );
this.fields.add("CREATEDBY", new Ext.form.TextField ({xtype: "textfield",name:"CREATEDBY",id:"DC0026F_CREATEDBY",dataIndex:"CREATEDBY",width:100,allowBlank:true,fieldLabel: this.resourceBundle.FieldLabel.CREATEDBY||"CreatedBy",disabled:true}) );
this.fields.add("MODIFIEDON", new Ext.form.DateField ({xtype: "datefield",name:"MODIFIEDON",id:"DC0026F_MODIFIEDON",dataIndex:"MODIFIEDON",width:100,allowBlank:true,fieldLabel: this.resourceBundle.FieldLabel.MODIFIEDON||"ModifiedOn",disabled:true,format:Ext.DATE_FORMAT}) );
this.fields.add("MODIFIEDBY", new Ext.form.TextField ({xtype: "textfield",name:"MODIFIEDBY",id:"DC0026F_MODIFIEDBY",dataIndex:"MODIFIEDBY",width:100,allowBlank:true,fieldLabel: this.resourceBundle.FieldLabel.MODIFIEDBY||"ModifiedBy",disabled:true}) );
this.fields.add("POSTEDON", new Ext.form.DateField ({xtype: "datefield",name:"POSTEDON",id:"DC0026F_POSTEDON",dataIndex:"POSTEDON",width:100,allowBlank:true,fieldLabel: this.resourceBundle.FieldLabel.POSTEDON||"Postedon",disabled:true,format:Ext.DATE_FORMAT}) );
this.fields.add("POSTEDBY", new Ext.form.TextField ({xtype: "textfield",name:"POSTEDBY",id:"DC0026F_POSTEDBY",dataIndex:"POSTEDBY",width:100,allowBlank:true,fieldLabel: this.resourceBundle.FieldLabel.POSTEDBY||"Postedby",disabled:true}) );
this.layoutItems.add("DC0041",
new Ext.Window({ xtype:"window", modal:true, title:N21.DataComp.DC0041.prototype.resourceBundle.DcProperty.Title, closeAction:"hide",closable:true,layout:"fit", width:840, height:480, items:{xtype:"DC0041",id:"DC0041", parentDcRelation:{name:"DC0026F",relation:[{parent:"ID",child:"RINV_ID"}]} }} ) );
this.layoutItems.add("Notes",
{ xtype:"fieldset", title:this.resourceBundle.FieldsetTitle.Notes||"Notes",autoHeight:true,collapsible: true,labelWidth:1,width:"90%",items:[ this.fields.get("NOTES")]});
this.layoutItems.add("Modified",
{ xtype:"fieldset", title:this.resourceBundle.FieldsetTitle.Modified||"Modified",autoHeight:true,collapsible: true,collapsed:true,width:"90%",items:[ this.fields.get("CREATEDON"),this.fields.get("CREATEDBY"),this.fields.get("MODIFIEDON"),this.fields.get("MODIFIEDBY"),this.fields.get("INSERTEDON"),this.fields.get("INSERTEDBY"),this.fields.get("POSTEDON"),this.fields.get("POSTEDBY")]});
this.layoutItems.add("C3",
{ layout:"form",columnWidth:.3, items:[ this.layoutItems.get("Notes"),this.layoutItems.get("Modified")]});
this.layoutItems.add("DC0044",
new Ext.Window({ xtype:"window", modal:true, title:N21.DataComp.DC0044.prototype.resourceBundle.DcProperty.Title, closeAction:"hide",closable:true,layout:"fit", width:550, height:350, items:{xtype:"DC0044",id:"DC0044", parentDcRelation:{name:"DC0026F",relation:[{parent:"ID",child:"RINV_ID"},{parent:"CLIENT_ID",child:"CLIENT_ID"},{parent:"ISSUER_ID",child:"BPARTNER_TO"},{parent:"RECEIVER_ID",child:"BPARTNER_FROM"}]} }} ) );
this.layoutItems.add("DC0042",
new Ext.Window({ xtype:"window", modal:true, title:N21.DataComp.DC0042.prototype.resourceBundle.DcProperty.Title, closeAction:"hide",closable:true,layout:"fit", width:600, height:400, items:{xtype:"DC0042",id:"DC0042", parentDcRelation:{name:"DC0026F",relation:[{parent:"ACCDOC_ID",child:"ACCDOC_ID"}]} }} ) );
this.layoutItems.add("Amounts",
{ xtype:"fieldset", title:this.resourceBundle.FieldsetTitle.Amounts||"Amounts",autoHeight:true,collapsible: true,width:"90%",items:[ this.fields.get("DOC_CURRENCY"),this.fields.get("TOTAL_AMOUNT"),this.fields.get("TOTAL_NET_AMOUNT"),this.fields.get("TOTAL_TAX_AMOUNT")]});
this.layoutItems.add("ProcessingStatus",
{ xtype:"fieldset", title:this.resourceBundle.FieldsetTitle.ProcessingStatus||"ProcessingStatus",autoHeight:true,collapsible: true,width:"90%",items:[ this.fields.get("IS_INSERTED"),this.fields.get("IS_PAYABLE"),this.fields.get("IS_PAYED"),this.fields.get("IS_POSTED"),this.fields.get("ACCDOC_ID"),this.fields.get("ACCDOC_NAME")]});
this.layoutItems.add("C2",
{ layout:"form",columnWidth:.3, items:[ this.layoutItems.get("Amounts"),this.layoutItems.get("ProcessingStatus")]});
this.layoutItems.add("Unit",
{ xtype:"fieldset", title:this.resourceBundle.FieldsetTitle.Unit||"Unit",autoHeight:true,collapsible: true,width:"90%",items:[ this.fields.get("CLIENT_ID"),this.fields.get("CLIENT_NAME"),this.fields.get("RECEIVER_ID"),this.fields.get("RECEIVER_NAME")]});
this.layoutItems.add("DocInfo",
{ xtype:"fieldset", title:this.resourceBundle.FieldsetTitle.DocInfo||"DocInfo",autoHeight:true,collapsible: true,width:"90%",items:[ this.fields.get("DOC_TYPE"),this.fields.get("DOC_NO"),this.fields.get("DOC_DATE"),this.fields.get("ISSUER_ID"),this.fields.get("ISSUER_NAME"),this.fields.get("ACCT"),this.fields.get("DUE_DATE"),this.fields.get("REF_RINVOICE_ID"),this.fields.get("REF_RINVOICE_NAME")]});
this.layoutItems.add("C1",
{ layout:"form",columnWidth:.4, items:[ this.fields.get("ID"),this.layoutItems.get("Unit"),this.layoutItems.get("DocInfo")]});
Ext.apply(this, {
items:[this.fields.get("_p_record_status"),this.layoutItems.get("C1"),this.layoutItems.get("C2"),this.layoutItems.get("C3")]
,border:false
,layout:"column"
,defaults:{labelWidth:110}
,frame:true
,width: "100%"
,dataComponentName:"DC0026F"
,firstFocusFieldName:"RECEIVER_NAME"
,childDCs: [{name:"DC0042",relation:[{parent:"ACCDOC_ID",child:"ACCDOC_ID"}]},{name:"DC0044",relation:[{parent:"ID",child:"RINV_ID"},{parent:"CLIENT_ID",child:"CLIENT_ID"},{parent:"ISSUER_ID",child:"BPARTNER_TO"},{parent:"RECEIVER_ID",child:"BPARTNER_FROM"}]},{name:"DC0041",relation:[{parent:"ID",child:"RINV_ID"}]}]
,buttons: [{xtype:"button",text:"AccDoc",scope:this,handler:function() {this.show_window("DC0042");} },{xtype:"button",text:"Payment",scope:this,handler:function() {this.show_window("DC0044");} },{xtype:"button",text:"Inv. items",scope:this,handler:function() {this.show_window("DC0041");} }]
,buttonAlign:"left"
,toolbarConfig:"STANDARD"
});
N21.DataComp.DC0026F.superclass.initComponent.apply(this, arguments);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -