📄 dc0046.js
字号:
this.fields.add("IS_CLOSED", new Ext.ux.form.XCheckbox ({xtype: "xcheckbox",name:"IS_CLOSED",id:"DC0046F_IS_CLOSED",dataIndex:"IS_CLOSED",width:50,allowBlank:true,fieldLabel: this.resourceBundle.FieldLabel.IS_CLOSED||"Closed",insert_allowed:true,update_allowed:true}) );
this.fields.add("DESCRIPTION", new Ext.form.TextArea ({xtype: "textarea",name:"DESCRIPTION",id:"DC0046F_DESCRIPTION",dataIndex:"DESCRIPTION",width:350,height:120,allowBlank:true,labelSeparator: "",insert_allowed:true,update_allowed:true}) );
this.fields.add("CREATEDON", new Ext.form.DateField ({xtype: "datefield",name:"CREATEDON",id:"DC0046F_CREATEDON",dataIndex:"CREATEDON",width:100,allowBlank:false,labelSeparator:":*" ,fieldLabel: this.resourceBundle.FieldLabel.CREATEDON||"Created on",disabled:true,format:Ext.DATE_FORMAT}) );
this.fields.add("CREATEDBY", new Ext.form.TextField ({xtype: "textfield",name:"CREATEDBY",id:"DC0046F_CREATEDBY",dataIndex:"CREATEDBY",width:100,allowBlank:false,labelSeparator:":*" ,fieldLabel: this.resourceBundle.FieldLabel.CREATEDBY||"Created by",disabled:true}) );
this.fields.add("MODIFIEDON", new Ext.form.DateField ({xtype: "datefield",name:"MODIFIEDON",id:"DC0046F_MODIFIEDON",dataIndex:"MODIFIEDON",width:100,allowBlank:false,labelSeparator:":*" ,fieldLabel: this.resourceBundle.FieldLabel.MODIFIEDON||"Modified on",disabled:true,format:Ext.DATE_FORMAT}) );
this.fields.add("MODIFIEDBY", new Ext.form.TextField ({xtype: "textfield",name:"MODIFIEDBY",id:"DC0046F_MODIFIEDBY",dataIndex:"MODIFIEDBY",width:100,allowBlank:false,labelSeparator:":*" ,fieldLabel: this.resourceBundle.FieldLabel.MODIFIEDBY||"Modified by",disabled:true}) );
this.fields.add("ASSIGNED_TO", new Ext.form.TextField ({xtype: "textfield",name:"ASSIGNED_TO",id:"DC0046F_ASSIGNED_TO",dataIndex:"ASSIGNED_TO",width:80,allowBlank:true,fieldLabel: this.resourceBundle.FieldLabel.ASSIGNED_TO||"Assigned to",insert_allowed:true,update_allowed:true}) );
this.fields.add("PLAN_STARTDATE", new Ext.form.DateField ({xtype: "datefield",name:"PLAN_STARTDATE",id:"DC0046F_PLAN_STARTDATE",dataIndex:"PLAN_STARTDATE",width:100,allowBlank:true,fieldLabel: this.resourceBundle.FieldLabel.PLAN_STARTDATE||"Planned start-date",insert_allowed:true,update_allowed:true,format:Ext.DATE_FORMAT}) );
this.fields.add("PLAN_ENDDATE", new Ext.form.DateField ({xtype: "datefield",name:"PLAN_ENDDATE",id:"DC0046F_PLAN_ENDDATE",dataIndex:"PLAN_ENDDATE",width:100,allowBlank:true,fieldLabel: this.resourceBundle.FieldLabel.PLAN_ENDDATE||"Planned end-date",insert_allowed:true,update_allowed:true,format:Ext.DATE_FORMAT}) );
this.fields.add("ACT_STARTDATE", new Ext.form.DateField ({xtype: "datefield",name:"ACT_STARTDATE",id:"DC0046F_ACT_STARTDATE",dataIndex:"ACT_STARTDATE",width:100,allowBlank:true,fieldLabel: this.resourceBundle.FieldLabel.ACT_STARTDATE||"Actual start-date",insert_allowed:true,update_allowed:true,format:Ext.DATE_FORMAT}) );
this.fields.add("ACT_ENDDATE", new Ext.form.DateField ({xtype: "datefield",name:"ACT_ENDDATE",id:"DC0046F_ACT_ENDDATE",dataIndex:"ACT_ENDDATE",width:100,allowBlank:true,fieldLabel: this.resourceBundle.FieldLabel.ACT_ENDDATE||"Actual end-date",insert_allowed:true,update_allowed:true,format:Ext.DATE_FORMAT}) );
this.layoutItems.add("DC0048",
new Ext.Window({ xtype:"window", modal:true, title:N21.DataComp.DC0048.prototype.resourceBundle.DcProperty.Title, closeAction:"hide",closable:true,layout:"fit", width:500, height:420, items:{xtype:"DC0048",id:"DC0048", parentDcRelation:{name:"DC0046F",relation:[{parent:"ID",child:"PROJECT_ISSUE_ID"}]} }} ) );
this.layoutItems.add("Timing",
{ xtype:"fieldset", title:this.resourceBundle.FieldsetTitle.Timing||"Timing",autoHeight:true,collapsible: true,width:"90%",items:[ this.fields.get("IS_CLOSED"),this.fields.get("PLAN_STARTDATE"),this.fields.get("PLAN_ENDDATE"),this.fields.get("ACT_STARTDATE"),this.fields.get("ACT_ENDDATE")]});
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.layoutItems.add("C3",
{ layout:"form",columnWidth:.25, items:[ this.layoutItems.get("Timing"),this.layoutItems.get("Modified")]});
this.layoutItems.add("Impact",
{ xtype:"fieldset", title:this.resourceBundle.FieldsetTitle.Impact||"Impact",autoHeight:true,collapsible: true,width:"90%",items:[ this.fields.get("AFF_CMP_TYPE_CODE"),this.fields.get("AFF_CMP"),this.fields.get("AFF_PROJECT_RELEASE_CODE")]});
this.layoutItems.add("Effort",
{ xtype:"fieldset", title:this.resourceBundle.FieldsetTitle.Effort||"Effort",autoHeight:true,collapsible: true,width:"90%",items:[ this.fields.get("EFFORT_UNIT"),this.fields.get("ESTIMATE_EFFORT"),this.fields.get("ACTUAL_EFFORT")]});
this.layoutItems.add("C2",
{ layout:"form",columnWidth:.3, items:[ this.layoutItems.get("Impact"),this.layoutItems.get("Effort")]});
this.layoutItems.add("Info",
{ xtype:"fieldset", title:this.resourceBundle.FieldsetTitle.Info||"Info",autoHeight:true,collapsible: true,width:"90%",items:[ this.fields.get("PROJECT_NAME"),this.fields.get("TITLE"),this.fields.get("ISSUE_TYPE_CODE"),this.fields.get("SEVERITY_CODE"),this.fields.get("STATUS_CODE"),this.fields.get("PRIORITY_CODE"),this.fields.get("ASSIGNED_TO")]});
this.layoutItems.add("Notes",
{ xtype:"fieldset", title:this.resourceBundle.FieldsetTitle.Notes||"Notes",autoHeight:true,collapsible: true,labelWidth:1,width:"90%",items:[ this.fields.get("DESCRIPTION")]});
this.layoutItems.add("C1",
{ layout:"form",columnWidth:.4, items:[ this.fields.get("PROJECT_ID"),this.fields.get("ID"),this.layoutItems.get("Info"),this.layoutItems.get("Notes")]});
this.layoutItems.add("DC0055",
new Ext.Window({ xtype:"window", modal:true, title:N21.DataComp.DC0055.prototype.resourceBundle.DcProperty.Title, closeAction:"hide",closable:true,layout:"fit", width:550, height:300, items:{xtype:"DC0055",id:"DC0055", parentDcRelation:{name:"DC0046F",relation:[{parent:"ID",child:"PROJECT_ISSUE_ID"}]} }} ) );
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:"DC0046F"
,firstFocusFieldName:"TITLE"
,childDCs: [{name:"DC0055",relation:[{parent:"ID",child:"PROJECT_ISSUE_ID"}]},{name:"DC0048",relation:[{parent:"ID",child:"PROJECT_ISSUE_ID"}]}]
,buttons: [{xtype:"button",text:"Timesheet charge",scope:this,handler:function() {this.show_window("DC0055");} },{xtype:"button",text:"Notes",scope:this,handler:function() {this.show_window("DC0048");} }]
,buttonAlign:"left"
,toolbarConfig:"STANDARD"
});
N21.DataComp.DC0046F.superclass.initComponent.apply(this, arguments);
}
,onRender:function() {
N21.DataComp.DC0046F.superclass.onRender.apply(this, arguments);
}
,newDataRecord:function() {
return new this.dataRecordMeta({_p_record_status:"insert"
,PROJECT_ID:""
,ID:""
,PROJECT_NAME:""
,TITLE:""
,ISSUE_TYPE_CODE:""
,SEVERITY_CODE:""
,STATUS_CODE:""
,PRIORITY_CODE:""
,AFF_CMP_TYPE_CODE:""
,AFF_CMP:""
,AFF_PROJECT_RELEASE_CODE:""
,EFFORT_UNIT:""
,ESTIMATE_EFFORT:""
,ACTUAL_EFFORT:""
,IS_CLOSED:""
,DESCRIPTION:""
,CREATEDON:""
,CREATEDBY:""
,MODIFIEDON:""
,MODIFIEDBY:""
,ASSIGNED_TO:""
,PLAN_STARTDATE:""
,PLAN_ENDDATE:""
,ACT_STARTDATE:""
,ACT_ENDDATE:""});
}
});
Ext.reg("DC0046F", N21.DataComp.DC0046F);
/**
* DataControl: Grid with Edit Form
* Code: DC0046
* Title: Project issues
*/
Ext.ns("N21.DataComp");
N21.DataComp.DC0046 = Ext.extend(N21.Base.GridEditForm, {
initComponent:function() {
Ext.apply(this, {
autoScroll:false
,layout:"border"
,dataComponentName:"DC0046"
,masterName:"DC0046G"
,detailName:"DC0046F"
,mdLayout:"card"
,border: false
,items: [
{
xtype:"panel"
,layout:"card"
,id:"MDTab"
,region:"center"
,defaults:{layout:"fit"}
,activeItem:0
,tabPosition: "bottom"
,items: [{
xtype: "DC0046G"
,id: "DC0046G"
,height:350
},{
xtype:"DC0046F"
,id:"DC0046F"
,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.DC0046.superclass.initComponent.apply(this, arguments);
}
});
Ext.reg("DC0046", N21.DataComp.DC0046);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -