fcf77d783f5065da5aa2df4f9cb6bf79f3cf12b0.svn-base 10.1 KB
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>测绘信息管理</title>
	<meta name="decorator" content="default"/>
    <script src="${ctxStatic}/gis/js/init.js" type="text/javascript"></script>
    <script src="${ctxStatic}/gis/lib/OpenLayers.js" type="text/javascript"></script>
    <script src="${ctxStatic}/gis/lib/zdclient.js" type="text/javascript"></script>
    <script src="${ctxStatic}/gis/lib/jquery.orbit-1.2.3.js" type="text/javascript"></script>    
    <script src="${ctxStatic}/gis/js/global.js" type="text/javascript"></script>
    <script src="${ctxStatic}/gis/js/config.js" type="text/javascript"></script>
	<script src="${ctxStatic}/select3/AreaData_min.js" type="text/javascript"></script>
	<link href="${ctxStatic}/gis/lib/jqueryEasyui/easyui.css" rel="stylesheet" type="text/css" />
    <link href="${ctxStatic}/gis/lib/jqueryEasyui/icon.css" rel="stylesheet" type="text/css" />
    <script src="${ctxStatic}/gis/lib/jqueryEasyui/jquery.easyui.min.js" type="text/javascript"></script>
	<script type="text/javascript">
	
	  function Qlrdaoru()
		{
		   
		  var url = "${ctx}/gis/web/CheckController/nfqlrck";
		  window.location.href=url; 
		}
	  function daoruqlr()
		{
		  var url = "${ctx}/gis/web/CheckController/nfqlrck";
		  window.location.href=url; 
		}
	  function zbinfo()
		{
		  var zddm = document.getElementById("zddmtext").value;
		  var url = "${ctx}/gis/web/CheckController/zdinfo?zddm="+zddm;
		  window.location.href=url; 
		}
		
		
		
		function readlq(){
			var queryStruct=new Zondy.Service.QueryFeatureStruct();
				queryStruct.IncludeGeometry=true;
				var queryParam=new Zondy.Service.QueryByLayerParameter("gdbp://MapGisLocal/示例数据/sfcls/LD,gdbp://MapGisLocal/示例数据/sfcls/LQ",{ 
	                   // geometry: line,
	                   resultFormat: "json",
	                   struct:queryStruct,
	                   });
				queryParam.recordNumber = 10000;
				var queryService=new Zondy.Service.QueryLayerFeature(queryParam,
						{
					ip: actualSvrcfg.ip,        //IP地址
					port: actualSvrcfg.port,   //端口号
					requestType:"POST"
					});
				queryService.query(readLQSuccess);
		  }  
		function readLQSuccess(data){
			console.log(data);
			var datas = data;
			console.log(datas);
			  var LDname = datas[0].AttStruct.FldName;
			 var LDtype = datas[0].AttStruct.FldType;
			 var LDresult = new Array();
			  for(var m=0;m<datas[0].TotalCount;m++){
				 LDresult.push("["+ datas[0].SFEleArray[m].AttValue+"]");
			 } 
			  var LQname = datas[1].AttStruct.FldName;
			 var LQtype = datas[1].AttStruct.FldType;
			 var LQresult = new Array(); 
			  for(var j=0;j<datas[1].TotalCount;j++){
				 LQresult.push("["+ datas[1].SFEleArray[j].AttValue+"]");
			 } 
			  var downloadURL = "${ctx}/gis/web/CheckController/lqck";  
			  var form = $("<form>");   //定义一个form表单  
			  form.attr('style','display:none');   //在form表单中添加查询参数  
			  form.attr('target','');  
			  form.attr('method','post');  
			  form.attr('action',downloadURL);  
			                        
			  var input1 = $('<input>');   
			  input1.attr('type','hidden');   
			  input1.attr('name','LDname');   
			  input1.attr('value',LDname);    
			    
			  var input2 = $('<input>');   
			  input2.attr('type','hidden');   
			  input2.attr('name','LDtype');   
			  input2.attr('value',LDtype);
			  var input3 = $('<input>');   
			  input3.attr('type','hidden');   
			  input3.attr('name','LDresult');   
			  input3.attr('value',LDresult);
			  var input4 = $('<input>');   
			  input4.attr('type','hidden');   
			  input4.attr('name','LQname');   
			  input4.attr('value',LQname);
			  var input5 = $('<input>');   
			  input5.attr('type','hidden');   
			  input5.attr('name','LQtype');   
			  input5.attr('value',LQtype);
			  var input6 = $('<input>');   
			  input6.attr('type','hidden');   
			  input6.attr('name','LQresult');   
			  input6.attr('value',LQresult);
			  $('body').append(form);  //将表单放置在web中  
			  form.append(input1);
			  form.append(input2);
			  form.append(input3);
			  form.append(input4);
			  form.append(input5);
			  form.append(input6);
			  //将查询参数控件提交到表单上  
			  form.submit(); 
			
		} 
		
		 
	  	function readtd(){
			
			js = 0;
			var queryStruct=new Zondy.Service.QueryFeatureStruct();
				queryStruct.IncludeGeometry=true;
				var queryParam=new Zondy.Service.QueryByLayerParameter(zhijian.Q,{ 
	                   // geometry: line,
	                   resultFormat: "json",
	                   struct:queryStruct,
	                   });
				queryParam.recordNumber = 10000;
				var queryService=new Zondy.Service.QueryLayerFeature(queryParam,
						{
					ip: actualSvrcfg.ip,        //IP地址
					port: actualSvrcfg.port,   //端口号
					requestType:"POST"
					});
				queryService.query(readZDSuccess);
		  }  
		function readZDSuccess(data){
			console.log(data);
			 var ZDname = data[0].AttStruct.FldName;
			 var ZDtype = data[0].AttStruct.FldType;
			 var ZDresult = new Array();
			 for(var i=0;i<data[0].TotalCount;i++){
				 ZDresult.push("["+ data[0].SFEleArray[i].AttValue+"]");
			 }
			 var FWname = data[1].AttStruct.FldName;
			 var FWtype = data[1].AttStruct.FldType;
			 var FWresult = new Array();
			 for(var i=0;i<data[1].TotalCount;i++){
				 FWresult.push("["+ data[1].SFEleArray[i].AttValue+"]");
			 }
			 var downloadURL = "${ctx}/gis/web/CheckController/zdck";  
			  var form = $("<form>");   //定义一个form表单  
			  form.attr('style','display:none');   //在form表单中添加查询参数  
			  form.attr('target','');  
			  form.attr('method','post');  
			  form.attr('action',downloadURL);  
			                        
			  var input1 = $('<input>');   
			  input1.attr('type','hidden');   
			  input1.attr('name','ZDname');   
			  input1.attr('value',ZDname);    
			    
			  var input2 = $('<input>');   
			  input2.attr('type','hidden');   
			  input2.attr('name','ZDtype');   
			  input2.attr('value',ZDtype);
			  var input3 = $('<input>');   
			  input3.attr('type','hidden');   
			  input3.attr('name','ZDresult');   
			  input3.attr('value',ZDresult);
			  var input4 = $('<input>');   
			  input4.attr('type','hidden');   
			  input4.attr('name','FWname');   
			  input4.attr('value',FWname);
			  var input5 = $('<input>');   
			  input5.attr('type','hidden');   
			  input5.attr('name','FWtype');   
			  input5.attr('value',FWtype);
			  var input6 = $('<input>');   
			  input6.attr('type','hidden');   
			  input6.attr('name','FWresult');   
			  input6.attr('value',FWresult);
			  $('body').append(form);  //将表单放置在web中  
			  form.append(input1);
			  form.append(input2);
			  form.append(input3);
			  form.append(input4);
			  form.append(input5);
			  form.append(input6);
			  //将查询参数控件提交到表单上  
			  form.submit();  
		}
		
		
		
		
		function readgis(){
			
			js = 0;
			var queryStruct=new Zondy.Service.QueryFeatureStruct();
				queryStruct.IncludeGeometry=true;
				var queryParam=new Zondy.Service.QueryByLayerParameter(actualSvrcfg.TUCENG,{ 
	                   // geometry: line,
	                   resultFormat: "json",
	                   struct:queryStruct,
	                   });
				queryParam.recordNumber = 1000000;
				var queryService=new Zondy.Service.QueryLayerFeature(queryParam,
						{
					ip: actualSvrcfg.ip,        //IP地址
					port: actualSvrcfg.port,   //端口号
					requestType:"POST"
					});
				queryService.query(readSuccess);
		  }  
		function readSuccess(data){
			console.log(data);
			 var result = new Array();
			 for(var k =0;k < 9;k++){
				 if(data[k].TotalCount > 0){
			         for(var i=0;i<data[k].TotalCount;i++){
				        result.push(data[k].SFEleArray[i].AttValue[5]);
			        }
				 }
			 }
			var downloadURL = "${ctx}/gis/web/RegGisController/save";  
			  var form = $("<form>");   //定义一个form表单  
			  form.attr('style','display:none');   //在form表单中添加查询参数  
			  form.attr('target','');  
			  form.attr('method','post');  
			  form.attr('action',downloadURL);  
			                        
			 
			  var input3 = $('<input>');   
			  input3.attr('type','hidden');   
			  input3.attr('name','result');   
			  input3.attr('value',result);
			 
			  $('body').append(form);  //将表单放置在web中  
			
			  form.append(input3);
			 
			  //将查询参数控件提交到表单上  
			  form.submit();  
		}
		
		
	</script>
</head>
<body>
	
	<%--<table>
		<tr>
			<td  class="tit">不动产单元号 &nbsp;</td>
			<td>
				<input value="${bdcdyh}" id="bdcdyhtext" htmlEscape="false" maxlength="30" class="input-medium"/>
			</td>
			
			<td class="btns"><input id="btnSubmit" class="btn btn-primary" type="button" value="宗地导入GIS库" onclick="addyaosu()"/></td>
			<td class="btns"><input id="btnSubmit" class="btn btn-primary" type="button" value="楼栋导入GIS库" onclick="addzrzyaosu()"/></td>
			<td class="clearfix"></td>
		</tr>
	</table>--%>
	
	   
  <div>   
	 <div style="width:35%;float:left">
	<fieldset border="#06c dashed 1px">
	   <legend>林权入库</legend>
	    <input id="btnSubmit" class="btn btn-primary" type="button" value="质检林权数据" onclick="readlq()"/>
	</fieldset>
   	</div>&nbsp;&nbsp;&nbsp;&nbsp; 
   	<div style="width:35%;float:left">
	<fieldset border="#06c dashed 1px">
	   <legend>农房一体化成果质检</legend>
	    <input id="btnSubmit" class="btn btn-primary" type="button" value="检查农房数据" onclick="readtd()"/><br><br>
	</fieldset>
   	</div>   
   	<div style="width:20%;float:left">
   	 <fieldset border="#06c dashed 1px">
	   <legend>浪子回头</legend>
	   <input id="zddmtext" htmlEscape="false" maxlength="30" class="input-medium"/>
	    <input id="btnSubmit" class="btn btn-primary" type="button" value="浪子回头" onclick="zbinfo()"/><br><br>
	</fieldset>
   	</div>
</div>	
	<br>
	 	<div style="width:20%;float:left">
   	 <fieldset border="#06c dashed 1px">
	   <legend>GIS/REG</legend>
	    <input id="btnSubmit" class="btn btn-primary" type="button" value="差异数据读取" onclick="readgis()"/><br><br>
	</fieldset>
   	</div>  
</body>

</html>