📄 dc0035.js
字号:
this.fields.add("BPCONTR_NAME", new N21.DataComp.LOV0019({xtype: "LOV0019",displayColumn: "doc_no_full",fieldMapping: [{column:"ID",field:"DC0035F_BPCONTR_ID"}],selectOnFocus:true,name:"BPCONTR_NAME",id:"DC0035F_BPCONTR_NAME",dataIndex:"BPCONTR_NAME",width:150,allowBlank:true,fieldLabel: this.resourceBundle.FieldLabel.BPCONTR_NAME||"Ref Contract",insert_allowed:true,update_allowed:true}) );
this.fields.add("BPCONTR_ID", new Ext.form.Hidden ({xtype: "hidden",name:"BPCONTR_ID",id:"DC0035F_BPCONTR_ID",dataIndex:"BPCONTR_ID",width:100,allowBlank:true,fieldLabel: this.resourceBundle.FieldLabel.BPCONTR_ID||"Bpcontr_id",insert_allowed:true,update_allowed:true}) );
this.fields.add("NOTES", new Ext.form.TextArea ({xtype: "textarea",name:"NOTES",id:"DC0035F_NOTES",dataIndex:"NOTES",width:200,height:40,allowBlank:true,fieldLabel: this.resourceBundle.FieldLabel.NOTES||"Notes",insert_allowed:true,update_allowed:true}) );
this.fields.add("CONTRSTAT_CODE", new Ext.form.TextField ({xtype: "textfield",name:"CONTRSTAT_CODE",id:"DC0035F_CONTRSTAT_CODE",dataIndex:"CONTRSTAT_CODE",width:80,allowBlank:true,fieldLabel: this.resourceBundle.FieldLabel.CONTRSTAT_CODE||"Contrstat_code",insert_allowed:true,update_allowed:true}) );
Ext.apply(this, {
items:[this.fields.get("_p_record_status"),this.fields.get("_p_record_status")
,this.fields.get("ID")
,this.fields.get("CLIENT_ID")
,this.fields.get("CLIENT_NAME")
,this.fields.get("DOC_NO")
,this.fields.get("DOC_DATE")
,this.fields.get("CUST_BPARTNER_NAME")
,this.fields.get("CUST_BPARTNER_ID")
,this.fields.get("SUPP_BPARTNER_ID")
,this.fields.get("SUPP_BPARTNER_NAME")
,this.fields.get("CONTRTYPE_CODE")
,this.fields.get("STARTDATE")
,this.fields.get("ENDDATE")
,this.fields.get("BPCONTR_NAME")
,this.fields.get("BPCONTR_ID")
,this.fields.get("NOTES")
,this.fields.get("CONTRSTAT_CODE")
]
,border:false
,defaults:{labelWidth:110}
,frame:true
,width: "100%"
,dataComponentName:"DC0035F"
,firstFocusFieldName:"DOC_NO"
,toolbarConfig:"STANDARD"
});
N21.DataComp.DC0035F.superclass.initComponent.apply(this, arguments);
}
,onRender:function() {
N21.DataComp.DC0035F.superclass.onRender.apply(this, arguments);
}
,newDataRecord:function() {
return new this.dataRecordMeta({_p_record_status:"insert"
,ID:""
,CLIENT_ID:""
,CLIENT_NAME:""
,DOC_NO:""
,DOC_DATE:""
,CUST_BPARTNER_NAME:""
,CUST_BPARTNER_ID:""
,SUPP_BPARTNER_ID:""
,SUPP_BPARTNER_NAME:""
,CONTRTYPE_CODE:""
,STARTDATE:""
,ENDDATE:""
,BPCONTR_NAME:""
,BPCONTR_ID:""
,NOTES:""
,CREATEDON:""
,CREATEDBY:""
,MODIFIEDON:""
,MODIFIEDBY:""
,CONTRSTAT_CODE:""});
}
});
Ext.reg("DC0035F", N21.DataComp.DC0035F);
/**
* DataControl: Grid with Edit Form
* Code: DC0035
* Title: Contracts
*/
Ext.ns("N21.DataComp");
N21.DataComp.DC0035 = Ext.extend(N21.Base.GridEditForm, {
initComponent:function() {
Ext.apply(this, {
autoScroll:false
,layout:"border"
,dataComponentName:"DC0035"
,masterName:"DC0035G"
,detailName:"DC0035F"
,mdLayout:"card"
,border: false
,items: [
{
xtype:"panel"
,layout:"card"
,id:"MDTab"
,region:"center"
,defaults:{layout:"fit"}
,activeItem:0
,tabPosition: "bottom"
,items: [{
xtype: "DC0035G"
,id: "DC0035G"
,height:350
},{
xtype:"DC0035F"
,id:"DC0035F"
,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.DC0035.superclass.initComponent.apply(this, arguments);
}
});
Ext.reg("DC0035", N21.DataComp.DC0035);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -