📄 dc0016.js
字号:
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:"DC0016F"
,firstFocusFieldName:"CODE"
,toolbarConfig:"STANDARD"
});
N21.DataComp.DC0016F.superclass.initComponent.apply(this, arguments);
}
,onRender:function() {
N21.DataComp.DC0016F.superclass.onRender.apply(this, arguments);
}
,newDataRecord:function() {
return new this.dataRecordMeta({_p_record_status:"insert"
,ID:""
,CLIENT_ID:""
,CLIENT_NAME:""
,CODE:""
,EXP_BPARTNER_ID:""
,EXP_BPADRESS_ID:""
,EXP_CITY_ID:""
,EXP_NAME:""
,EXP_COUNTRY:""
,EXP_REGION:""
,EXP_CITY:""
,EXP_BPADRESS:""
,EXP_ZIP:""
,EXP_ADRESS_NOTE:""
,DEST_BPADRESS_ID:""
,DEST_BPARTNER_ID:""
,DEST_CITY_ID:""
,DEST_NAME:""
,DEST_COUNTRY:""
,DEST_REGION:""
,DEST_CITY:""
,DEST_BPADRESS:""
,DEST_ZIP:""
,DEST_ADRESS_NOTE:""
,PICKEDUP:""
,PICKUP_MODE:""
,PICKUP_DATE:""
,PICKUP_AGENT_CODE:""
,DELIVERED:""
,DELIVERY_MODE:""
,DELIVERY_DATE:""
,DELIVERY_AGENT_CODE:""
,DELIVERED_TO_NAME:""
,DELIVERED_TO_IDENT:""
,REJECTED:""
,REJECT_DATE:""
,REJECT_REASON:""
,REJECTED_BY_NAME:""
,REJECTED_BY_IDENT:""
,PACKAGE_COUNT:""
,CONTENT:""
,NOTES:""
,DECLARED_VALUE:""
,INSURED_VALUE:""
,REF_PARCEL_ID:""
,REF_PARCEL_REFERENCE_TYPE:""
,CREATEDON:""
,CREATEDBY:""
,MODIFIEDON:""
,MODIFIEDBY:""});
}
});
Ext.reg("DC0016F", N21.DataComp.DC0016F);
/**
* DataControl: Grid with Edit Form
* Code: DC0016
* Title: Parcel masterdata
*/
Ext.ns("N21.DataComp");
N21.DataComp.DC0016 = Ext.extend(N21.Base.GridEditForm, {
initComponent:function() {
Ext.apply(this, {
autoScroll:false
,layout:"border"
,dataComponentName:"DC0016"
,masterName:"DC0016G"
,detailName:"DC0016F"
,mdLayout:"card"
,border: false
,items: [
{
xtype:"panel"
,layout:"card"
,id:"MDTab"
,region:"center"
,defaults:{layout:"fit"}
,activeItem:0
,tabPosition: "bottom"
,items: [{
xtype: "DC0016G"
,id: "DC0016G"
,height:350
},{
xtype:"DC0016F"
,id:"DC0016F"
,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.DC0016.superclass.initComponent.apply(this, arguments);
}
});
Ext.reg("DC0016", N21.DataComp.DC0016);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -