?? lorgsearchform.js
字號:
function newLoRgSearchForm() {
if(!LoRgItems){
var LoRgItems = new initItems();
}
var loRgSearchPanel=new Ext.Panel({
labelWidth : 90,
height:545,
border:true,
layout:'form',
hideLabels:false,
autoScroll:true,
layoutConfig:{
comluns:4}
}
);
var loRgSearchForm = new Ext.form.FormPanel({
labelWidth : 90,
border:false,
autoScroll:true,
buttonAlign: 'right',
keys:[{
key:[10,13],
fn:searchOnClickAction
}],
id:'loRgSearchForm',
buttons : [{
text :"查詢",
handler : searchOnClickAction
},{
text:"重置",
handler:function(){
Ext.getCmp('loRgSearchForm').getForm().reset();
}
}]
});
function searchOnClickAction() {
searchForm=loRgSearchForm.getForm();
if(searchForm){
var paramValue=searchForm.getValues();
Ext.getCmp("loRgResultPanel").add(new newLoRgSearchGrid("已登記場所查詢"+window.loRgSearchCount,paramValue)).show();
}
}
with (LoRgItems) {
loRgSearchPanel.add(locationDistrict, locationAddress, locationName,
locationRegDate,locationRegID,locationCatogory,locationSect,
locationConsturctArea,locationCoversArea,locationPostcode,
locationPhone,staffNumber,otherNumber,locationAdmin )
};
loRgSearchForm.add(loRgSearchPanel);
loRgSearchPanel=new Ext.Panel({
title:"已登記場所查詢",
id:"loRgSearchPanel"
});
loRgSearchPanel.add(loRgSearchForm);
return loRgSearchPanel;
}
function initItems() {
var TextField = Ext.form.TextField;
this.locationDistrict=new Ext.form.ComboBox({
fieldLabel : '所在區(qū)',
name : 'locationDistrict',
width : 175,
colspan:2,
transform:"loForm-locationdistrict",
triggerAction:"all",
typeAhead:true,
lazyRender:true
});
this.locationAddress = new TextField({
fieldLabel : '場所地址',
name : 'locationAddress',
width : 175
});
this.locationName = new TextField({
fieldLabel : '場所名稱',
name : 'locationName',
width : 175
});
this.locationRegDate = new Ext.form.DateField({
fieldLabel : '批準時間',
name : 'locationRegDate',
format:"Y-m-d",
width : 175
});
this.locationRegID = new Ext.form.NumberField({
fieldLabel : '登記證號',
name : 'locationRegID',
width : 175
});
this.locationCatogory = new Ext.form.ComboBox({
fieldLabel : '登記類別',
name : 'locationCatogory',
width : 175,
transform:"loForm-locationcatogory",
triggerAction:"all",
typeAhead:true,
lazyRender:true//這個必須要,因為好像是先加載的js,那時候還沒有l(wèi)ocationCatogory下拉列表。所以要延遲加載。
//selectOnFocus:true//是否可以為空,false是不可以為空,嗎的搞不清楚
});
this.locationSect = new Ext.form.ComboBox({
fieldLabel : '教派',
name : 'locationSect',
width : 175,
transform:"loForm-locationsect",
triggerAction:"all",
typeAhead:true,
lazyRender:true
});
this.locationConsturctArea = new Ext.form.NumberField({
fieldLabel : '場所建筑面積',
name : 'locationConstructArea',
width : 175
});
this.locationCoversArea = new Ext.form.NumberField({
fieldLabel : '場所占地面積',
name : 'locationConversArea',
width : 175
});
this.locationPostcode = new Ext.form.NumberField({
fieldLabel : '場所郵編',
name : 'locationPostcode',
width : 175
});
this.locationPhone = new Ext.form.NumberField({
fieldLabel : '場所電話',
name : 'locationPhone',
width : 175
});
this.staffNumber = new Ext.form.NumberField({
fieldLabel : '教職人員數',
name : 'staffNumber',
width : 175
});
this.otherNumber = new Ext.form.NumberField({
fieldLabel : '其他人員數',
name : 'otherNumber',
width : 175
});
this.locationAdmin = new TextField({
fieldLabel : '場所主負責人',
name : 'locationAdmin',
width : 175
});
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -