6ec93f737fe47bd7da8c947fe89f481b9a6debea.svn-base 17 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442
<%@ 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 type="text/javascript">
	var TempTUceng;
	var TempID;
	var chsqr,chzdmj;
		$(document).ready(function() {
			
			chsqr = document.getElementById('qlrmc').value;
			chzdmj= document.getElementById('zdmj').value;
			$("tbody > tr").bind("click",function(){
				$("tbody > tr").each(function(i){    
		             $(this).removeClass("trBgcolor");
		        });
				$(this).find('input:radio').prop('checked', true);
				$(this).addClass("trBgcolor");
			});							
		});
		
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
		
		function winBackZdjbxx() 
		{
			var checkedCount = $("input[type='radio']:checked").length;
			if(checkedCount == 0){
				alert("必须选择一条测绘信息!");
				return;
			}
			//选中一行后,获取测绘信息相关值 
			var districtValue = $("input[name='radio_chxx']:checked").parent().next().text();
			var qlrxmValue = $("input[name='radio_chxx']:checked").parent().next().next().text();
			var zjlxValue = $("input[name='radio_chxx']:checked").parent().next().next().next().next().text();
			var zjhmValue = $("input[name='radio_chxx']:checked").parent().next().next().next().next().next().text();
			var zlValue = $("input[name='radio_chxx']:checked").parent().next().next().next().next().next().next().text();
			var zdszdValue = $("input[name='radio_chxx']:checked").parent().next().next().next().next().next().next().next().text();
			var zdsznValue = $("input[name='radio_chxx']:checked").parent().next().next().next().next().next().next().next().next().text();
			var zdszxValue = $("input[name='radio_chxx']:checked").parent().next().next().next().next().next().next().next().next().next().text();
			var zdszbValue = $("input[name='radio_chxx']:checked").parent().next().next().next().next().next().next().next().next().next().next().text(); 
			var zbValue = $("input[name='radio_chxx']:checked").parent().next().next().next().next().next().next().next().next().next().next().next().text();
			var zdmjValue = $("input[name='radio_chxx']:checked").parent().next().next().next().next().next().next().next().next().next().next().next().next().text();
			var zdtValue = $("input[name='radio_chxx']:checked").parent().next().next().next().next().next().next().next().next().next().next().next().next().next().next().text();
			var zdtzmValue = $("input[name='radio_chxx']:checked").parent().next().next().next().next().next().next().next().next().next().next().next().next().next().next().next().text();
			var tfhValue = $("input[name='radio_chxx']:checked").parent().next().next().next().next().next().next().next().next().next().next().next().next().next().next().next().next().text();
			var mjdwValue = $("input[name='radio_chxx']:checked").parent().next().next().next().next().next().next().next().next().next().next().next().next().next().next().next().next().next().text();
			if(window.opener) { 
		    	fWindowqlrxmText = window.opener.document.getElementById("qlrxmtext");
		    	//fWindowzjlxText = window.opener.document.getElementById("zjlxtext");
		    	fWindowzjhmText = window.opener.document.getElementById("zjhmtext");
		    	fWindowzlText = window.opener.document.getElementById("zltext");
		    	fWindowzdszdText = window.opener.document.getElementById("zdszdtext");
	           	fWindowzdsznText = window.opener.document.getElementById("zdszntext");
	           	fWindowzdszxText = window.opener.document.getElementById("zdszxtext");
	           	fWindowzdszbText = window.opener.document.getElementById("zdszbtext");
	           	fWindowdistrictText = window.opener.document.getElementById("zddm");
	           	fWindowzbText = window.opener.document.getElementById("zbtext");
	           	fWindowzdmjText = window.opener.document.getElementById("zdmjtext");
	        	fWindowmjdwText = window.opener.document.getElementById("mjdwtext");
	           	fWindowzdtText = window.opener.document.getElementById("zdt");
	           	fWindowzdtzmText = window.opener.document.getElementById("zdtzmTxt");
	           	fWindowtfhText = window.opener.document.getElementById("tfhtext");
				fWindowchidtext = window.opener.document.getElementById("chidtext");
	           	if(fWindowqlrxmText){
	           		fWindowqlrxmText.value = qlrxmValue.trim();
	           	}
				//证件类型 
	           	window.opener.select2_zjlx(zjlxValue.trim());
				//宗地图 给input id=”zdt” 先赋值,然后调用组件内置函数zdtPreview()
				if(fWindowzdtText){
					fWindowzdtText.value = zdtValue.trim();
					window.opener.upfile_zdt(zdtValue.trim());
				}
				if(fWindowzdtzmText){
					window.opener.select2_zdtzm(zdtzmValue.trim());
				}
				
				if(fWindowzjhmText){
					fWindowzjhmText.value = zjhmValue.trim();
				}
				if(fWindowzlText){
					fWindowzlText.value = zlValue.trim();
				}
	           	fWindowzdszdText.value = zdszdValue.trim();
	           	fWindowzdsznText.value = zdsznValue.trim();
	           	fWindowzdszxText.value = zdszxValue.trim();
	           	fWindowzdszbText.value = zdszbValue.trim();
	           	if(fWindowdistrictText){
	           		fWindowdistrictText.value = districtValue.trim();
	           	}
	           	if(fWindowzbText){
	           		fWindowzbText.value = zbValue.trim()+" ";
	           	}
	           	if(fWindowzdmjText){
	           		fWindowzdmjText.value = zdmjValue.trim();
	           	}
	           	if(fWindowtfhText){
	           		fWindowtfhText.value = tfhValue.trim();
	           	}
	           	fWindowchidtext.value = $("input[type='radio']:checked").val();
	           	window.opener.select3_dwlx(mjdwValue.trim());
	        	window.close();
		    }
		}
		
		function auditChxx(id){
			if(confirm('审核后数据将正式生效,并且不能删除和修改。确认要审核该信息吗?')){
				url = "${ctx}/reg/base/regBaseChxx/audit?id="+id;
				window.location.href=url;
			}
		}
		function unauditChxx(id){
			if(confirm('反审核后数据恢复可删除和修改。确认要反审核该信息吗?')){
				url = "${ctx}/reg/base/regBaseChxx/unaudit?id="+id;
				window.location.href=url;
			}
		}
		function daoru()
		{
			$.jBox($("#importBox").html(), {title:"导入数据", buttons:{"关闭":true}, 
				bottomText:"导入文件不能超过5M,仅允许导入“xls”或“xlsx”格式文件!"});
		}
		
		function batchdaoru(){
			url = "${ctx}/reg/base/regBaseChxx/batchform";
				window.location.href=url;
		}
		 function selectTuCeng(ListTucengNO)
	        {
	        	var tucengValue="";
	        	switch(ListTucengNO)
	        	{
	        	 case "A":
	        		  tucengValue=actualSvrcfg.SYQZDGDBP;
	        		  break;
	        	  case "B":
	        		  tucengValue=actualSvrcfg.SHYQZD_DB;
	        		  break;
	        	  case "S":
	        		  tucengValue=actualSvrcfg.SHYQZD_DS;
	        		  break;
	        	  case "X":
	        		  tucengValue=actualSvrcfg.SHYQZD_DX;
	        		  break;
	        	  case "C":
	        		  tucengValue=actualSvrcfg.ZJDGDBP;
	        		  break;
	        	  case "D":
	        		  tucengValue=actualSvrcfg.CBJYQZD_GD;
	        		  break;
	        	  case "E":
	        		  tucengValue=actualSvrcfg.CBJYQZD_LD;
	        		  break;
	        	  case "F":
	        		  tucengValue=actualSvrcfg.CBJYQZD_CD;
	        		  break;
	        	  case "I":
	        		  break;
	        	  case "J":
	        		  break;
	        	  default:break;
	        	}
	        	return tucengValue;
	        }		
	    function deleteChxx(id,tzm)
	    {
	    	if(confirm('确认要删除该测绘信息吗?')){
	    		 //---------------------根据id查询到宗地 更新对应宗地信息 
  				var queryStruct=new Zondy.Service.QueryFeatureStruct();
  				queryStruct.IncludeGeometry=true;
  				 var temptuceng=selectTuCeng(tzm);
  				TempID=id;
  				TempTUceng=temptuceng;
  				var str="CHID='"+id +"'";
  				
  				var queryParam=new Zondy.Service.QueryByLayerParameter(temptuceng,{ 
  	                   // geometry: line,
  	                   resultFormat: "json",
  	                   struct:queryStruct,
  	                   where :  str
  	                   });
  				queryParam.recordNumber=1000;
  				var queryService=new Zondy.Service.QueryLayerFeature(queryParam,
  						{
  					ip: actualSvrcfg.ip,        //IP地址
  					port: actualSvrcfg.port ,   //端口号
  					requestType:"POST"
  					});
  				queryService.query(queryquerydataSuccess);
  				//------------------------------------	  			
  				//url = "${ctx}/reg/base/regBaseChxx/delete?id="+TempID;
		        //window.location.href=url;
				
			}
	    }
	    function queryquerydataSuccess(data)
		{
			 var chaxunvalue=data;
			 if(chaxunvalue.TotalCount>0)
			 {
				 var editDocFeature = new Zondy.Service.EditLayerFeature(TempTUceng, { ip: actualSvrcfg.ip,  port: actualSvrcfg.port });			   
				 editDocFeature.deletes(chaxunvalue.SFEleArray[0].FID, deleteonSuccess);			 
			 }
			 /*else
			 {
				 url = "${ctx}/reg/base/regBaseChxx/delete?id="+TempID;
		         window.location.href=url;
			 }*/
			 
		}
	    function deleteonSuccess(data)
		{ 
			if (data == true) {
	         alert("已删除!");
	            url = "${ctx}/reg/base/regBaseChxx/delete?id="+TempID;
	         	window.location.href=url;
	          }
	        else {
	         alert("删除失败,请检查参数是否填写完整!");
	        }		 
		}
		function dispform(id){
			 <%-- <a href="${ctx}/reg/base/regBaseChxx/form?id=${regBaseChxx.id}&VIEWS=1"> --%>
			 url = "${ctx}/reg/base/regBaseChxx/form?id="+id+"&VIEWS=1&chsqr="+chsqr+"&chzdmj="+chzdmj;
			 window.location.href=url;
		}
       
	</script>
</head>
<body>
    
     <div id="importBox" class="hide">
		<form id="importForm" action="${ctx}/reg/base/regBaseChxx/importFile" method="post" enctype="multipart/form-data"
			class="form-search" style="padding-left:20px;text-align:center;" onsubmit="loading('正在导入,请稍等...');"><br/>
			<input id="uploadFile" name="file" type="file" style="width:330px"/><br/><br/>
			<input id="btnImportSubmit" class="btn btn-primary" type="submit" value="   导    入   " />
			<a href="${ctx}/reg/base/regBaseChxx/importFileTemplate">下载模板</a>
		</form>
	</div>
    
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/reg/base/regBaseChxx/list?CHXXXZ=${CHXXXZ}&flag=${flag}&syq=${syq}">测绘信息列表</a></li>
		<c:if test="${empty CHXXXZ}">
		<shiro:hasPermission name="reg:base:RegBaseChxx1111:edit"><li><a href="${ctx}/reg/base/regBaseChxx/form">测绘信息添加</a></li></shiro:hasPermission>
		</c:if>
	</ul>
	<form:form id="searchForm" modelAttribute="regBaseChxx11" action="${ctx}/reg/base/regBaseChxx/list?CHXXXZ=${CHXXXZ}&flag=${flag}&syq=${syq}" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<table>
		<tr>
			<td>测绘申请人名称&nbsp;</td>
			<td>
				<form:input path="qlrmc" id="qlrmc" htmlEscape="false" maxlength="100" class="input-medium"/>
			</td>
			<td>&nbsp;&nbsp;&nbsp;宗地面积&nbsp;</td>
			<td>
				<form:input path="zdmj" id="zdmj" htmlEscape="false" maxlength="100" class="input-medium"/>
			</td>
			<td class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
			   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			    <c:if test="${empty CHXXXZ}">
			       <input id="btndaoru" class="btn btn-primary" type="button" value="界址点导入" onclick="daoru()"/>
		        </c:if>
			</li>
			<li class="clearfix"></li>
		</tr>
	  </table>
	</form:form>
	<c:if test="${not empty CHXXXZ}">
		<div class="zxdiv"><label><span class="tipinfo">请点击测绘信息选择按钮,只能选择一个</span></label>
			<input id="btnChose" class="btn btn-primary" type="button" onclick="javascript:winBackZdjbxx();" value="测绘信息选择"/>
		</div>
		<br>
	</c:if>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-bordered table-condensed">
		<thead>
			<tr>
				<c:if test="${not empty CHXXXZ}">
					<th>选择</th>
				</c:if>
				<th>测绘编码</th>
				<th>测绘申请人名称</th>
				<th>证件类型</th>
				<th style="display:none;">证件类型代码</th>
				<th>证件号</th>
				<th>坐落</th>
				<th style="display:none;">宗地四至-东</th>
				<th style="display:none;">宗地四至-南</th>
				<th style="display:none;">宗地四至-西</th>
				<th style="display:none;">宗地四至-北</th> 
				<th style="display:none;">界址点坐标</th>
				<th>宗地面积</th>
				<th>面积单位</th>
				<th style="display:none;">宗地图</th>
				<th style="display:none;">宗地特征码</th>
				<th>图幅号</th>
				<th style="display:none;">面积单位代码</th>
				<!-- 
				<th>创建时间</th>
				<th>更新时间</th>
				 -->
				<c:if test="${empty CHXXXZ}">
				<shiro:hasPermission name="reg:base:RegBaseChxx11:edit"><th>操作</th></shiro:hasPermission>
				</c:if>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="regBaseChxx">
			<tr>
				<c:if test="${not empty CHXXXZ}">
				<td>
					<input type="radio" name="radio_chxx" id="${regBaseChxx.id}" value="${regBaseChxx.id}"/>
				</td>
				<td>
					${regBaseChxx.chcode}
				</td>
				</c:if>
				<c:if test="${empty CHXXXZ}">
				<td>
				  <%-- <a href="${ctx}/reg/base/regBaseChxx/form?id=${regBaseChxx.id}&VIEWS=1"> --%>
				   <a href="#"  onclick="dispform('${regBaseChxx.id}');">
					${regBaseChxx.chcode}
				   </a>
				</td>
				</c:if>
				<td>
					${regBaseChxx.qlrmc}
				</td>
				<td>
					${fns:getDictLabel(regBaseChxx.zjlx, 'reg_bus_zjlx', '')}
				</td>
				<td style="display:none;">
					${regBaseChxx.zjlx}
				</td>
				<td>
					${regBaseChxx.zjhm}
				</td>
				<td>
					${regBaseChxx.zl}
				</td>
				<td style="display:none;">
					${regBaseChxx.zdszd}
				</td>
				<td style="display:none;">
					${regBaseChxx.zdszn}
				</td>
				<td style="display:none;">
					${regBaseChxx.zdszx}
				</td>
				<td style="display:none;">
					${regBaseChxx.zdszb}
				</td>
				<td style="display:none;">
					${regBaseChxx.jzdzb}
				</td>
				<td>
				    <fmt:formatNumber value="${regBaseChxx.zdmj}"   pattern="#0.##"  var="formattedNumber"/>
	               ${formattedNumber}
				</td>
				<td>
					${fns:getDictLabel(regBaseChxx.mjdw, 'reg_bus_mjdw', '')}
				</td>
				<td style="display:none;">
					${regBaseChxx.zdt}
				</td>
				<td style="display:none;">
					${regBaseChxx.zdtzm}
				</td>
				<td>
					${regBaseChxx.tfh}
				</td>
				<td  style="display:none;">
					${regBaseChxx.mjdw}
				</td>
				<!-- 
				<td>
					<fmt:formatDate value="${regBaseChxx.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>
				<td>
					<fmt:formatDate value="${regBaseChxx.updateDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>
				 -->
				<c:if test="${empty CHXXXZ}">
				<shiro:hasPermission name="reg:base:RegBaseChxx11:edit">
				<td>
					<c:if test="${regBaseChxx.isaudit ne '2'}">
	    				<c:if test="${regBaseChxx.isaudit eq '0'}">
	    					<a href="#" onclick="auditChxx('${regBaseChxx.id}');">审核</a>
	    					<a href="${ctx}/reg/base/regBaseChxx/form?id=${regBaseChxx.id}&czlx=修改">修改</a>
	    					
	    					<a href="#" onclick="deleteChxx('${regBaseChxx.id}','${regBaseChxx.zdtzm}');">删除</a>
	    					<%-- 
							<a href="${ctx}/reg/base/regBaseChxx/delete?id=${regBaseChxx.id}" onclick="return confirmx('确认要删除该测绘信息吗?', this.href)">删除</a>
	    				   --%>
	    				
	    				</c:if>
	    				<c:if test="${regBaseChxx.isaudit eq '1'}">
	    					<a href="#" onclick="unauditChxx('${regBaseChxx.id}');">反审核</a>
	    				</c:if>
	    				<c:if test="${regBaseChxx.isaudit ne '0' and regBaseChxx.isaudit ne '1'}">
	    					<a href="#" onclick="auditChxx('${regBaseChxx.id}');">审核</a>
	    					<a href="${ctx}/reg/base/regBaseChxx/form?id=${regBaseChxx.id}&czlx=修改">修改</a>
							
							<a href="#" onclick="deleteChxx('${regBaseChxx.id}','${regBaseChxx.zdtzm}');">删除</a>
							<%-- 
							<a href="${ctx}/reg/base/regBaseChxx/delete?id=${regBaseChxx.id}" onclick="return confirmx('确认要删除该测绘信息吗?', this.href)">删除</a>
	    				   --%>
	    				
	    				</c:if>
    				</c:if>
    				<c:if test="${regBaseChxx.isaudit eq '2'}">
    					<a href="#">已引用</a>
    				</c:if>
				</td>
				</shiro:hasPermission>
				</c:if>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>

</body>
</html>