📄 新建 文本文档.txt
字号:
this.form = new Ext.form.Form();
this.form.container({hideLabels:true}, new Ext.form.Field({autoCreate:{tag: 'div', html: '', cls:'form-spacer', style:'height:5px'}, value: '' }));
this.form.container()
this.form.column({width:340, labelWidth:60, labelAlign: 'right'},
new Ext.form.ComboBox({
fieldLabel: 'Report',
hiddenName: 'ReportID',
displayField: 'text',
valueField: 'id',
width:250,
forceSelection: true,
typeAhead:true,
mode:'local',
triggerAction:'all',
emptyText:'Select a Report...',
selectOnFocus:true,
store: new Ext.data.SimpleStore({ fields: ['id', 'text'], data: reportList })
}),
new Ext.form.ComboBox({
fieldLabel: 'Sort By',
hiddenName: 'SortBy',
displayField: 'text',
width:150,
forceSelection: true,
typeAhead:true,
mode:'local',
triggerAction:'all',
selectOnFocus:true,
value: 'Date',
disabled: true,
store: new Ext.data.SimpleStore({ fields: ['text'], data: sortByList })
}));
this.form.column({width:170, hideLabels:true},
// === Hide Phyisican Blind Code ===
new Ext.form.Checkbox({
boxLabel: 'Hide Physician DO/MD#',
name: 'HideMD' // name of field bound to this control
}),
// === Hide Manager Followup ===
new Ext.form.Checkbox({
boxLabel: 'Hide Manager Follow Up',
name: 'HideMFU' // name of field bound to this control
}));
this.form.column({width:130, hideLabels:true},
// === Hide Patient ID# ===
new Ext.form.Checkbox({
boxLabel: 'Hide Patient ID#',
name: 'HideMR' // name of field bound to this control
}));
this.form.end(); // end of container
this.form.fieldset({ labelAlign: 'right', legend:'Include in Report'});
this.form.container();
this.form.column({width:175, labelWidth:70},
// === Occurrence Date ===
new Ext.form.DateField({
fieldLabel: 'Dates',
name: 'StartDate',
format: 'n/j/Y',
width:95,
invalidText: 'Enter date as MM/DD/YYYY'
}));
this.form.column({width:130, labelWidth:25},
// === Entry Date ===
new Ext.form.DateField({
fieldLabel: 'To',
name: 'EndDate',
format: 'n/j/Y',
width:95,
invalidText: 'Enter date as MM/DD/YYYY'
}));
this.form.column({width:320, labelWidth:110},
// === Area of Occurrence ===
new Ext.form.ClearableComboBox({
fieldLabel: 'Occurrence Area',
hiddenName: 'OccurrenceAreaID',
emptyText: '(All Occurrence Areas)',
displayField: 'text',
valueField: 'id',
width:200,
forceSelection: true,
typeAhead:true,
mode:'local',
triggerAction:'all',
selectOnFocus:true,
store: new Ext.data.SimpleStore({ fields: ['id', 'text'], data: occurrenceAreaLookup })
}));
this.form.end(); // end of container
this.form.container();
this.form.column({width:400, labelWidth:70},
// === Event Type
new Ext.form.ClearableComboBox({
fieldLabel: 'Event Type',
hiddenName: 'EventTypeID',
emptyText: '(All Events)',
displayField: 'text',
valueField: 'id',
width:320,
forceSelection: true,
typeAhead:true,
mode:'local',
triggerAction:'all',
selectOnFocus:true,
store: new Ext.data.SimpleStore({ fields: ['id', 'text'], data: eventTypeLookup })
}));
this.form.column({width:225, labelWidth:70},
// === Outcome ===
new Ext.form.ClearableComboBox({
fieldLabel: 'Outcome',
hiddenName: 'OutcomeID',
emptyText: '(All Outcomes)',
displayField: 'text',
valueField: 'id',
width:145,
forceSelection: true,
typeAhead:true,
mode:'local',
triggerAction:'all',
selectOnFocus:true,
store: new Ext.data.SimpleStore({ fields: ['id', 'text'], data: outcomeLookup })
}));
this.form.end(); // end of container
this.form.container();
this.form.column({width:300, labelWidth:70},
// === Medication ===
new Ext.form.ClearableComboBox({
fieldLabel: 'Medication',
hiddenName: 'Medication',
displayField: 'text',
emptyText: '(All Medications)',
width:220,
pageSize: 20,
queryDelay: 10,
minChars: 2,
typeAhead:false,
mode:'remote',
triggerAction:'all',
selectOnFocus:true,
forceSelection: false,
store: this.dsMedLookup
}));
this.form.column({width:325, labelWidth:140},
// === Data Entry Personnel ===
new Ext.form.ClearableComboBox({
fieldLabel: 'Data Entry Personnel',
hiddenName: 'UserID',
emptyText: '(All Personnel)',
displayField: 'text',
valueField: 'id',
width:175,
listWidth: 200,
forceSelection: true,
typeAhead:true,
mode:'local',
triggerAction:'all',
selectOnFocus:true,
store: new Ext.data.SimpleStore({ fields: ['id', 'text'], data: userLookup })
}));
this.form.end(); // end of container
this.form.end(); // end of fieldset
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -