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

📄 command.js

📁 一些Acjax的控件简单应用学习实例
💻 JS
📖 第 1 页 / 共 2 页
字号:
		}
	},
	setChooseValue:function(value)
	{
		toolbar.setDefaultTool();
		if(map.model.targetList)
		{
			var targets=Object.keys(map.model.targetList);
			for(var i=0;i<targets.length;i++)
			{	
				if(map.model.targetList[targets[i]] )
				{					
					if(this.isLineTarget)
					{
						if(map.model.targetList[targets[i]].set_vml_path_color)
						{
							map.model.targetList[targets[i]].set_vml_path_color(value);	
						}
					}
					else
					{
						if(map.model.targetList[targets[i]].set_vml_fill_color)
						{
							map.model.targetList[targets[i]].set_vml_fill_color(value);	
						}
					}			
				}
			}			
		}

	}
    
});


/*
 * line width chooser
 * added by lfcui on 30Mar2007
 */
ChooseLineWidthCmd = Class.create(); 
ChooseLineWidthCmd.prototype = Object.extend(new Abstract.Command(), 
{
	alt: '选择线条宽度',
	selected: false, 
	cmd_clickHandler: function(cmd, model, mapDiv)
	{		
		this.chooseWidth(cmd,mapDiv);
	},
	chooseWidth: function(cmd,mapDiv)
	{   
	    
//		if(!map.model.targetList&& (Object.values(map.model.targetList).length<2))
//		{
//		    alert(map.model.targetList);
//			return;
//		}
		/*
		 * added for emulating popup chooser
		 */
		if(!this.lineWidthchooser)
		{
			this.lineWidthchooser =new Chooser(this,mapDiv.parentNode,lineWidth,'line_wid_chooser');
		}
		if((!this.lineWidthchooser)||!this.lineWidthchooser.visibility)
		{
			this.lineWidthchooser.show(cmd.left+8,0);
		}
		else
		{
			this.lineWidthchooser.hide();
		}
		 
	},

	setChooseValue:function(value)
	{
		
		toolbar.setDefaultTool();
		if(map.model.targetList)
		{
			var targets=Object.keys(map.model.targetList);
			for(var i=0;i<targets.length;i++)
			{	
				if(map.model.targetList[targets[i]])
				{
					if(map.model.targetList[targets[i]].set_vml_path_width)
						map.model.targetList[targets[i]].set_vml_path_width(value);					
				}
			}			
		}
	}
    
});
//特殊、公共娱乐场所登记簿
HappePlaceRegCmd = Class.create(); 
HappePlaceRegCmd.prototype = Object.extend(new Abstract.Command(), {
    alt: '特殊、公共娱乐场所登记簿',
     selected: false, 
    cmd_clickHandler: function(cmd, model, mapDiv){
        this.clearOrgDiv(mapDiv.parentNode,2);
         //id,mapDiv, model,left,top,width,hight,title,srcUrl
       // var left = Util.getValueOfNoPX(mapDiv.parentNode.style.width)-500;
        this.createNewDiv('command',mapDiv,model,200,50,1000,750,'特殊、公共娱乐场所登记簿','Report/SpecialOrgInfoReport.aspx');
    }
});

//要害单(部)位登记簿
KeyUnitRegCmd = Class.create(); 
KeyUnitRegCmd.prototype = Object.extend(new Abstract.Command(), {
    alt: '要害单(部)位登记簿',
    selected: false, 
    cmd_clickHandler: function(cmd, model, mapDiv){
        this.clearOrgDiv(mapDiv.parentNode,2);
        //id,mapDiv, model,left,top,width,hight,title,srcUrl
        this.createNewDiv('command',mapDiv,model,200,50,1000,750,'要害单(部)位登记簿','Report/KeyPositionReport.aspx');
    }
});

//派出所基础数据统计表
PoliceDataTableCmd = Class.create(); 
PoliceDataTableCmd.prototype = Object.extend(new Abstract.Command(), {
    alt: '派出所基础数据统计表',
    selected: false, 
    cmd_clickHandler: function(cmd, model, mapDiv){
        this.clearOrgDiv(mapDiv.parentNode,2);
        //id,mapDiv, model,left,top,width,hight,title,srcUrl
        this.createNewDiv('command',mapDiv,model,200,50,1000,750,'派出所基础数据统计表','statistic/BaseData.aspx');
    }
});
//社区(责任区)基本情况登记表
CommunityRegCmd = Class.create(); 
CommunityRegCmd.prototype = Object.extend(new Abstract.Command(), {
    alt: '社区(责任区)基本情况登记表',
    selected: false, 
    cmd_clickHandler: function(cmd, model, mapDiv){
        this.clearOrgDiv(mapDiv.parentNode,2);
         //id,mapDiv, model,left,top,width,hight,title,srcUrl
        this.createNewDiv('command',mapDiv,model,200,50,1000,750,'社区(责任区)基本情况登记表','statistic/BaseThing.aspx');
    } 
});

//人员查询
PersonSearchCmd = Class.create(); 
PersonSearchCmd.prototype = Object.extend(new Abstract.Command(), {
    alt: '人员查询',
    selected: false, 
    cmd_clickHandler: function(cmd, model, mapDiv){
        this.clearOrgDiv(mapDiv.parentNode,2);
        //id,mapDiv, model,left,top,width,hight,title,srcUrl
        this.createNewDiv('command',mapDiv,model,300,50,280,300,'人员查询','toolbars/personSearch.aspx');
    }
});

//房屋查询
HouseSearchCmd = Class.create(); 
HouseSearchCmd.prototype = Object.extend(new Abstract.Command(), {
    alt: '房屋查询',
    selected: false, 
    cmd_clickHandler: function(cmd, model, mapDiv){
        this.clearOrgDiv(mapDiv.parentNode,2);
        //id,mapDiv, model,left,top,width,hight,title,srcUrl
        this.createNewDiv('command',mapDiv,model,200,50,300,320,'房屋查询','toolbars/SearchHouseCondition.aspx');
    }  
});

//警力机构
PoliceFrameCmd = Class.create(); 
PoliceFrameCmd.prototype = Object.extend(new Abstract.Command(), {
    alt: '警力机构',
    selected: false, 
    cmd_clickHandler: function(cmd, model, mapDiv){
        this.clearOrgDiv(mapDiv.parentNode,2);
        //var left = Util.getValueOfNoPX(mapDiv.parentNode.style.width)-500;
        //id,mapDiv, model,left,top,width,hight,title,srcUrl
        this.createNewDiv('command',mapDiv,model,200,20,850,485,'警力机构','PoliceManage/PoliceResourceFrame.htm');
    }
});

//领导任务
LeaderTaskCmd = Class.create(); 
LeaderTaskCmd.prototype = Object.extend(new Abstract.Command(), {
    alt: '领导任务',
    selected: false, 
    cmd_clickHandler: function(cmd, model, mapDiv){
        this.clearOrgDiv(mapDiv.parentNode,2);
        //var left = Util.getValueOfNoPX(mapDiv.parentNode.style.width)-500;
        //id,mapDiv, model,left,top,width,hight,title,srcUrl
        this.createNewDiv('command',mapDiv,model,200,50,850,650,'领导任务','BllManage/LeaderTask.aspx');
    }
});

//单位场所信息
UnitInfoCmd = Class.create(); 
UnitInfoCmd.prototype = Object.extend(new Abstract.Command(), {
    alt: '单位场所信息',
    selected: false, 
    cmd_clickHandler: function(cmd, model, mapDiv){
        this.clearOrgDiv(mapDiv.parentNode,2);
        //id,mapDiv, model,left,top,width,hight,title,srcUrl
        this.createNewDiv('command',mapDiv,model,200,50,850,540,'单位场所信息','OrgManage/OrgMainInfo.aspx');
    }
});

//人口信息
PersonInfoCmd = Class.create(); 
PersonInfoCmd.prototype = Object.extend(new Abstract.Command(), {
    alt: '人口信息',
    selected: false, 
    cmd_clickHandler: function(cmd, model, mapDiv){
        this.clearOrgDiv(mapDiv.parentNode,2);
        //id,mapDiv, model,left,top,width,hight,title,srcUrl
        this.createNewDiv('command',mapDiv,model,200,50,700,440,'人口信息','PersonManage/PersonSearch.aspx');
    }
});

//房屋信息
HouseInfoCmd = Class.create(); 
HouseInfoCmd.prototype = Object.extend(new Abstract.Command(), {
    alt: '房屋信息',
    selected: false, 
    cmd_clickHandler: function(cmd, model, mapDiv){
        if(this.url!="")
        {
          // this.clearOrgDiv(mapDiv.parentNode,2);
           //id,mapDiv, model,left,top,width,hight,title,srcUrl
           this.createNewDiv('command',mapDiv,model,200,50,850,500,'房屋信息',this.url);
        }
        else
        {
            this.clearOrgDiv(mapDiv.parentNode,2);
           //id,mapDiv, model,left,top,width,hight,title,srcUrl
           this.createNewDiv('command',mapDiv,model,200,50,850,500,'房屋信息','doorplatemanage/HouseInfo.aspx'); 
        }
    }
});

//线索信息
ClewInfoCmd = Class.create(); 
ClewInfoCmd.prototype = Object.extend(new Abstract.Command(), {
    alt: '线索信息',
    selected: false, 
    cmd_clickHandler: function(cmd, model, mapDiv){
        this.clearOrgDiv(mapDiv.parentNode,2);
         //id,mapDiv, model,left,top,width,hight,title,srcUrl
        this.createNewDiv('command',mapDiv,model,200,50,850,650,'线索信息','PersonManage/ClewManage.aspx');
    }
});

//流动人口管理
TempPersonCmd = Class.create(); 
TempPersonCmd.prototype = Object.extend(new Abstract.Command(), {
    alt: '流动人口管理',
    selected: false, 
    cmd_clickHandler: function(cmd, model, mapDiv){
        this.clearOrgDiv(mapDiv.parentNode,2);
        //id,mapDiv, model,left,top,width,hight,title,srcUrl
        this.createNewDiv('command',mapDiv,model,200,10,710,480,'流动人口管理','TempPersonManage/TempPersonManageMain.aspx');
    }
});

//出租房屋管理
LendHouseCmd = Class.create(); 
LendHouseCmd.prototype = Object.extend(new Abstract.Command(), {
    alt: '出租房屋管理',
    selected: false, 
    cmd_clickHandler: function(cmd, model, mapDiv){
        this.clearOrgDiv(mapDiv.parentNode,2);
        //id,mapDiv, model,left,top,width,hight,title,srcUrl
        this.createNewDiv('command',mapDiv,model,200,50,850,650,'出租房屋管理','doorplatemanage/HouseInfo.aspx?type=rendhouse');
    }
});

//房屋信息登记簿
HouseInfoRegCmd = Class.create(); 
HouseInfoRegCmd.prototype = Object.extend(new Abstract.Command(), {
    alt: '房屋信息登记簿',
    selected: false, 
    cmd_clickHandler: function(cmd, model, mapDiv){
        this.clearOrgDiv(mapDiv.parentNode,2);
        //id,mapDiv, model,left,top,width,hight,title,srcUrl
        this.createNewDiv('command',mapDiv,model,200,50,1000,750,'房屋信息登记簿','Report/HouseInfoReport.aspx');
    }
});

//租赁房屋登记簿

LendHouseRegCmd = Class.create(); 
LendHouseRegCmd.prototype = Object.extend(new Abstract.Command(), {
    alt: '租赁房屋登记簿',
    selected: false, 
    cmd_clickHandler: function(cmd, model, mapDiv){
        this.clearOrgDiv(mapDiv.parentNode,2);
        //id,mapDiv, model,left,top,width,hight,title,srcUrl
     this.createNewDiv('command',mapDiv,model,200,50,1000,750,'租赁房屋登记簿','Report/LeasedHouse.aspx');
    }
});

//单位场所登记簿

UnitPlaceRegCmd = Class.create(); 
UnitPlaceRegCmd.prototype = Object.extend(new Abstract.Command(), {
    alt: '单位场所登记簿',
    selected: false, 
    cmd_clickHandler: function(cmd, model, mapDiv){
        this.clearOrgDiv(mapDiv.parentNode,2);
        //id,mapDiv, model,left,top,width,hight,title,srcUrl
        this.createNewDiv('command',mapDiv,model,200,50,1000,750,'单位场所登记簿','Report/OrgInfoReport.aspx');
    }
});

//人口信息台帐
PersonInfoRegCmd = Class.create(); 
PersonInfoRegCmd.prototype = Object.extend(new Abstract.Command(), {
    alt: '人口信息台帐',
    selected: false, 
    cmd_clickHandler: function(cmd, model, mapDiv){
        this.clearOrgDiv(mapDiv.parentNode,2);
        //id,mapDiv, model,left,top,width,hight,title,srcUrl
        this.createNewDiv('command',mapDiv,model,200,50,1000,750,'人口信息台帐','AccountPrint/PersonInfoPrintFrame.htm');
    }
});

//治安防范台帐
PeaceKeepRegCmd = Class.create(); 
PeaceKeepRegCmd.prototype = Object.extend(new Abstract.Command(), {
    alt: '治安防范台帐',
    selected: false, 
    cmd_clickHandler: function(cmd, model, mapDiv){
        this.clearOrgDiv(mapDiv.parentNode,2);
        //id,mapDiv, model,left,top,width,hight,title,srcUrl
        this.createNewDiv('command',mapDiv,model,200,50,1000,750,'治安防范台帐','AccountPrint/SecurityPreventionPrintFrame.htm');
    }
});

//中介房屋出租(出售)情况登记薄
MediHouseRegCmd = Class.create(); 
MediHouseRegCmd.prototype = Object.extend(new Abstract.Command(), {
    alt: '中介房屋出租(出售)情况登记薄',
    selected: false, 
    cmd_clickHandler: function(cmd, model, mapDiv){
        this.clearOrgDiv(mapDiv.parentNode,2);
        //id,mapDiv, model,left,top,width,hight,title,srcUrl
        this.createNewDiv('command',mapDiv,model,200,50,1000,750,'中介房屋出租(出售)情况登记薄','Report/MediHouseLease.aspx');
    }
});

//系统运行状况统计
SysRunSticCmd = Class.create(); 
SysRunSticCmd.prototype = Object.extend(new Abstract.Command(), {
    alt: '系统运行状况统计',
    selected: false, 
    cmd_clickHandler: function(cmd, model, mapDiv){
        this.clearOrgDiv(mapDiv.parentNode,2);
        //id,mapDiv, model,left,top,width,hight,title,srcUrl
        this.createNewDiv('command',mapDiv,model,200,50,1000,750,'系统运行状况统计','statistic/RunStatus.aspx');
    } 
});

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -