📄 dc0039.js
字号:
this.fields.add("REVENUE_ACCOUNT", new N21.DataComp.LOV0025({xtype: "LOV0025",selectOnFocus:true,name:"REVENUE_ACCOUNT",id:"DC0039F_REVENUE_ACCOUNT",dataIndex:"REVENUE_ACCOUNT",width:100,allowBlank:true,fieldLabel: this.resourceBundle.FieldLabel.REVENUE_ACCOUNT||"Revenue_account",insert_allowed:true,update_allowed:true}) );
this.fields.add("PROD_TYPE", new Ext.form.TextField ({xtype: "textfield",name:"PROD_TYPE",id:"DC0039F_PROD_TYPE",dataIndex:"PROD_TYPE",width:80,allowBlank:true,fieldLabel: this.resourceBundle.FieldLabel.PROD_TYPE||"Prod_type",insert_allowed:true,update_allowed:true}) );
this.fields.add("SUMMARY", new Ext.ux.form.XCheckbox ({xtype: "xcheckbox",name:"SUMMARY",id:"DC0039F_SUMMARY",dataIndex:"SUMMARY",width:50,allowBlank:true,fieldLabel: this.resourceBundle.FieldLabel.SUMMARY||"Summary",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("CODE")
,this.fields.get("NAME")
,this.fields.get("PRODCATEG_CODE")
,this.fields.get("PRODCATEG_ID")
,this.fields.get("STORABLE")
,this.fields.get("UOM_CODE")
,this.fields.get("DESCRIPTION")
,this.fields.get("EXPENSE_ACCOUNT")
,this.fields.get("REVENUE_ACCOUNT")
,this.fields.get("PROD_TYPE")
,this.fields.get("SUMMARY")
]
,border:false
,defaults:{labelWidth:110}
,frame:true
,width: "100%"
,dataComponentName:"DC0039F"
,firstFocusFieldName:"CODE"
,toolbarConfig:"STANDARD"
});
N21.DataComp.DC0039F.superclass.initComponent.apply(this, arguments);
}
,onRender:function() {
N21.DataComp.DC0039F.superclass.onRender.apply(this, arguments);
}
,newDataRecord:function() {
return new this.dataRecordMeta({_p_record_status:"insert"
,ID:""
,CLIENT_ID:""
,CLIENT_NAME:""
,CODE:""
,NAME:""
,PRODCATEG_CODE:""
,PRODCATEG_ID:""
,STORABLE:""
,UOM_CODE:""
,DESCRIPTION:""
,EXPENSE_ACCOUNT:""
,REVENUE_ACCOUNT:""
,PROD_TYPE:""
,SUMMARY:""
,VOLUME:""
,WEIGHT:""
,CREATEDON:""
,CREATEDBY:""
,MODIFIEDON:""
,MODIFIEDBY:""
,FOR_SALE:""});
}
});
Ext.reg("DC0039F", N21.DataComp.DC0039F);
/**
* DataControl: Grid with Edit Form
* Code: DC0039
* Title: Product masterdata
*/
Ext.ns("N21.DataComp");
N21.DataComp.DC0039 = Ext.extend(N21.Base.GridEditForm, {
initComponent:function() {
Ext.apply(this, {
autoScroll:false
,layout:"border"
,dataComponentName:"DC0039"
,masterName:"DC0039G"
,detailName:"DC0039F"
,mdLayout:"card"
,border: false
,items: [
{
xtype:"panel"
,layout:"card"
,id:"MDTab"
,region:"center"
,defaults:{layout:"fit"}
,activeItem:0
,tabPosition: "bottom"
,items: [{
xtype: "DC0039G"
,id: "DC0039G"
,height:350
},{
xtype:"DC0039F"
,id:"DC0039F"
,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.DC0039.superclass.initComponent.apply(this, arguments);
}
});
Ext.reg("DC0039", N21.DataComp.DC0039);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -