⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lorgsearchform.js

📁 重点不是信息管理系统
💻 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 : '所在区',
		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,那时候还没有locationCatogory下拉列表。所以要延迟加载。
		//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 + -