📄 dc0032.js
字号:
this.fields.add("DESCRIPTION", new Ext.form.TextArea ({xtype: "textarea",name:"DESCRIPTION",id:"DC0032F_DESCRIPTION",dataIndex:"DESCRIPTION",width:200,height:40,allowBlank:true,fieldLabel: this.resourceBundle.FieldLabel.DESCRIPTION||"Description",insert_allowed:true,update_allowed:true}) );
this.fields.add("ACCJOURNAL_NAME", new N21.DataComp.LOV0026({xtype: "LOV0026",displayColumn: "NAME",fieldMapping: [{column:"ID",field:"DC0032F_ACCJOURNAL_ID"}],selectOnFocus:true,name:"ACCJOURNAL_NAME",id:"DC0032F_ACCJOURNAL_NAME",dataIndex:"ACCJOURNAL_NAME",width:150,allowBlank:true,fieldLabel: this.resourceBundle.FieldLabel.ACCJOURNAL_NAME||"Journal",insert_allowed:true,update_allowed:true}) );
this.fields.add("ACCJOURNAL_ID", new Ext.form.Hidden ({xtype: "hidden",name:"ACCJOURNAL_ID",id:"DC0032F_ACCJOURNAL_ID",dataIndex:"ACCJOURNAL_ID",width:100,allowBlank:true,fieldLabel: this.resourceBundle.FieldLabel.ACCJOURNAL_ID||"Accjournal_id",insert_allowed:true,update_allowed:true}) );
this.fields.add("ACTIVE", new Ext.ux.form.XCheckbox ({xtype: "xcheckbox",name:"ACTIVE",id:"DC0032F_ACTIVE",dataIndex:"ACTIVE",width:50,allowBlank:true,fieldLabel: this.resourceBundle.FieldLabel.ACTIVE||"Active",insert_allowed:true,update_allowed:true}) );
this.fields.add("MODIFIEDON", new Ext.form.DateField ({xtype: "datefield",name:"MODIFIEDON",id:"DC0032F_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:"DC0032F_MODIFIEDBY",dataIndex:"MODIFIEDBY",width:80,allowBlank:true,fieldLabel: this.resourceBundle.FieldLabel.MODIFIEDBY||"ModifiedBy",disabled:true}) );
this.fields.add("ACCGRP_ID", new Ext.form.Hidden ({xtype: "hidden",name:"ACCGRP_ID",id:"DC0032F_ACCGRP_ID",dataIndex:"ACCGRP_ID",width:100,allowBlank:true,fieldLabel: this.resourceBundle.FieldLabel.ACCGRP_ID||"Accgrp_id",insert_allowed:true,update_allowed:true}) );
this.fields.add("ACCSCHEMA_ID", new Ext.form.Hidden ({xtype: "hidden",name:"ACCSCHEMA_ID",id:"DC0032F_ACCSCHEMA_ID",dataIndex:"ACCSCHEMA_ID",width:100,allowBlank:false,labelSeparator:":*" ,fieldLabel: this.resourceBundle.FieldLabel.ACCSCHEMA_ID||"Accschema_id",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_NAME")
,this.fields.get("CLIENT_ID")
,this.fields.get("ACCOUNT")
,this.fields.get("NAME")
,this.fields.get("PARENT_ACCOUNT")
,this.fields.get("CURRENCY")
,this.fields.get("DESCRIPTION")
,this.fields.get("ACCJOURNAL_NAME")
,this.fields.get("ACCJOURNAL_ID")
,this.fields.get("ACTIVE")
,this.fields.get("MODIFIEDON")
,this.fields.get("MODIFIEDBY")
,this.fields.get("ACCGRP_ID")
,this.fields.get("ACCSCHEMA_ID")
]
,border:false
,defaults:{labelWidth:110}
,frame:true
,width: "100%"
,dataComponentName:"DC0032F"
,firstFocusFieldName:"ACCOUNT"
,toolbarConfig:"STANDARD"
});
N21.DataComp.DC0032F.superclass.initComponent.apply(this, arguments);
}
,onRender:function() {
N21.DataComp.DC0032F.superclass.onRender.apply(this, arguments);
}
,newDataRecord:function() {
return new this.dataRecordMeta({_p_record_status:"insert"
,ID:""
,CLIENT_ID:""
,CLIENT_NAME:""
,ACCOUNT:""
,NAME:""
,PARENT_ACCOUNT:""
,CURRENCY:""
,DESCRIPTION:""
,ACCJOURNAL_NAME:""
,ACCJOURNAL_ID:""
,ACTIVE:""
,CREATEDON:""
,CREATEDBY:""
,MODIFIEDON:""
,MODIFIEDBY:""
,ACCGRP_ID:""
,ACCSCHEMA_ID:""});
}
,change_CLIENT_ID:function(fld, newVal, oldVal) {
this.getField("ACCJOURNAL_NAME").setParamValue("p_client_id",newVal);
}
});
Ext.reg("DC0032F", N21.DataComp.DC0032F);
/**
* DataControl: Grid with Edit Form
* Code: DC0032
* Title: Accounts
*/
Ext.ns("N21.DataComp");
N21.DataComp.DC0032 = Ext.extend(N21.Base.GridEditForm, {
initComponent:function() {
Ext.apply(this, {
autoScroll:false
,layout:"border"
,dataComponentName:"DC0032"
,masterName:"DC0032G"
,detailName:"DC0032F"
,mdLayout:"row"
,border: false
,items: [
{xtype: "DC0032G",id: "DC0032G",region:"west" ,split:true,width:"60%",minWidth:0}
,{xtype: "DC0032F",id: "DC0032F",region:"center",split:true,autoScroll:true}
]
,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.DC0032.superclass.initComponent.apply(this, arguments);
}
});
Ext.reg("DC0032", N21.DataComp.DC0032);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -