?? unlorgsearchform.js
字號:
function newUnLoRgSearchForm() {
var unLoRgSearchPanel=new Ext.Panel({
labelWidth:90,
height:545,
//height:395,
border:true,
layout:'form',
hideLabels:false,
autoScroll:true,
layoutConfig:{
comluns:4},
//defaultType:"textfield",
items:[{
xtype:"combo",
fieldLabel : "所在區",
name:'locationDistrict',
transform:"unlForm-locationdistrict",
triggerAction:"all",
typeAhead:true,
lazyRender:true,
width:158
},{
xtype:"textfield",
fieldLabel:"場所地址",
name : 'locationAddress',
width:175
},{
xtype:"textfield",
fieldLabel:"場所名稱",
name : 'locationName',
width:175
},{
xtype:"combo",
fieldLabel : '教派',
name : 'locationSect',
width : 158,
transform:"unlForm-locationsect",
triggerAction:"all",
typeAhead:true,
lazyRender:true
},{
xtype:"textfield",
fieldLabel:"負責人",
name :"admin",
width:175
},{
xtype:"combo",
fieldLabel : "房屋屬性",
name : 'housingproperty',
width : 158,
transform:"unlForm-housingproperty",
triggerAction:"all",
typeAhead:true,
lazyRender:true
},{
xtype:"combo",
fieldLabel : "場所屬性",
name : "placeproperty",
width : 158,
transform:"unlForm-placeproperty",
triggerAction:"all",
typeAhead:true,
lazyRender:true
}]
});
function searchOnClickAction(){
searchForm=unLoRgSearchForm.getForm();
if(searchForm){
var paramValue=searchForm.getValues();
Ext.getCmp("unLoRgResultPanel").add(new newUnLoRgSearchGrid("未登記場所查詢"+window.unLoRgSearchCount,paramValue)).show();
}
}
var unLoRgSearchForm = new Ext.form.FormPanel({
labelWidth : 90,
border:false,
autoScroll:true,
buttonAlign: 'right',
id:'unLoRgSearchForm',
keys:[{
key:[10,13],
fn: searchOnClickAction
}],
buttons : [{
text :"查詢",
handler : searchOnClickAction
},{
text:"重置",
handler:function(){
Ext.getCmp('unLoRgSearchForm').getForm().reset();
}
}]
});
unLoRgSearchForm.add(unLoRgSearchPanel);
unLoRgSearchPanel=new Ext.Panel({
title:"未登記場所查詢",
id:"unLoRgSearchPanel"
});
unLoRgSearchPanel.add(unLoRgSearchForm);
return unLoRgSearchPanel;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -