regBaseChxxFormhu.jsp 7.62 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">
	  var mapreturnvale;
	  var mapreturnvaleList;
	  var DJQTotle,DJZQTotle;
	  var DJQName = new Array();
	  var DJZQName = new Array();
	  var regBaseZbinfoRowIdx = 0;
	  var tempdjq,tempdjzq,tempxzq;
	  var TempZBArray = new Array();
	  var TempZBYXArray = new Array();
	  var zblisttemp="";
	  var daoru="";
	  var minArea = 0, maxArea = 0;
	  $(document).ready(function() {
		  $("tbody > tr").bind("click",function(){
				$("tbody > tr").each(function(i){    
		             $(this).removeClass("trBgcolor");
		        });
				$(this).find('input:radio').prop('checked', true);
				$(this).addClass("trBgcolor");
			});	
		  var wfbl = "${wfbl}";
		  var zb = "${zb}";
		  
		  if(wfbl == '1'){
                 alert("此处无权限进行修改,请经过变更业务修改!!");
                 var url = "${ctx}/reg/base/regBaseChxx/xglist";
	                window.location.href=url;
			  }
			  if(zb == '1'){
                 alert("请删除此宗地上的楼栋坐标,再进行更改");
                 var url = "${ctx}/reg/base/regBaseChxx/xglist";
	                window.location.href=url;
			  }
	  });
	 
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
      	return false;
      }
		    function huoqu(){
		  				var queryStruct=new Zondy.Service.QueryFeatureStruct();
		  				queryStruct.IncludeGeometry=true;
		  				var queryParam=new Zondy.Service.QueryByLayerParameter(actualSvrcfg.LINQUAN,{ 
		  	                   // geometry: line,
		  	                   resultFormat: "json",
		  	                   struct:queryStruct,
		  	                   });
		  				 queryParam.recordNumber = 2000;
		  				var queryService=new Zondy.Service.QueryLayerFeature(queryParam,
		  						{
		  					ip: actualSvrcfg.ip,        //IP地址
		  					port: actualSvrcfg.port ,   //端口号
		  					requestType:"POST"
		  					});
		  				queryService.query(queryUpdatedataSuccess);
		  				//------------------------------------	  				  	  				
	  			}
	  		
		
		function queryUpdatedataSuccess(data)
		{
			console.log(data);
			var  list = {};
			for(var i = 0;i<data.TotalCount;i++){
				var temp = new Array();
             var zbArray = data.SFEleArray[i].fGeom.RegGeom[0].Rings[0].Arcs[0].Dots;
				
			for (var j = 0;j<zbArray.length;j++){
                  temp[j] = zbArray[j].x + ","+zbArray[j].y;
				}
			var zdxx = new Object();
			zdxx.zddm = data.SFEleArray[i].AttValue[3];
			zdxx.bdcdyh = data.SFEleArray[i].AttValue[4];
			zdxx.zb = temp;
			list[i] = zdxx;
			}

			$.ajax({  
			    url : "${ctx}/reg/base/regBaseChxx/lqcs",  
			    type:"POST",
			    data : {'zdxx':JSON.stringify(list)},  
			    dataType : "json",  
			    success : function(data) {  
			        console.log(data);
			    }  
			});
		}
		
		function zbdaoru()
		{
			$.jBox($("#importBox").html(), {title:"导入数据", buttons:{"关闭":true}, 
				bottomText:"导入文件不能超过5M,仅允许导入“xls”或“xlsx”格式文件!"});
		}
		function cxzd(){
                var zdbdcdyh = $("#bdcdyhtext").val();
                var url = "${ctx}/reg/base/regBaseChxx/xgcxzd?bdcdyh="+zdbdcdyh;
                window.location.href=url;
			}

		function auditXgDjxx(chid,isaudit,bdcdyh){
			  if(confirm('审核后数据将正式生效,并且不能删除和修改。确认要审核该信息吗?')){
				  var url = "${ctx}/reg/base/regBaseChxx/xgaudit?id="+chid+"&lsbj=1"+"&bdcdyh="+bdcdyh;
	                window.location.href=url;
			  }
			  } 
	
	</script>
</head>
<body>
	  <div id="importBox" class="hide">
		<form id="importForm" action="${ctx}/reg/base/regBaseChxx/importxgFile?bdcdyh=${regBaseZdjbxx.bdcdyh}" 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>
		<!-- <input id="getdjqdjzqCancel" class="btn" type="button" value="读取林权信息" onclick="huoqu();"/> -->
		<form:form id="searchForm" modelAttribute="regBaseZdjbxx" action="${ctx}/reg/base/regBaseChxx/xgcxzd" 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  class="tit">不动产单元号 &nbsp;</td>
			<td>
				<input path="bdcdyh" name="bdcdyh" value="${zdbdcdyh}" id="bdcdyhtext" htmlEscape="false" maxlength="30" class="input-medium"/>
			</td>
			
			<td class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询" /></td>
			<td class="clearfix"></td>
		</tr>
	</table>
	</form:form>
	   
         <table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr> 
				<th>宗地代码</th>
				<th>不动产单元号</th>
				<th>坐落</th>
				<th>宗地面积</th>
				<th>面积单位</th>
				<th>权利人</th>
				<th>权利类型</th> 
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="regBaseZdjbxx">
			<tr> 
				<td>${regBaseZdjbxx.zddm}</td>
				<td>
				<c:if test="${regBaseZdjbxx.isaudit eq '10'}">
				   <a href="${ctx}/reg/base/regBaseChxx/xgform?chid=${regBaseZdjbxx.chid}&bdcdyh=${regBaseZdjbxx.bdcdyh}&VIEWS=1&xg=1">
				${regBaseZdjbxx.bdcdyh}</a></c:if>
			   <c:if test="${regBaseZdjbxx.isaudit eq '2'}">
	             ${regBaseZdjbxx.bdcdyh}</c:if>
				</td> 
				<td>
					${regBaseZdjbxx.zl}
				</td>
				<td>
					${regBaseZdjbxx.zdmj}
				</td>
				<td>
					${fns:getDictLabel(regBaseZdjbxx.mjdw, 'reg_bus_mjdw', '')}
				</td>
			<td>
					${regBaseZdjbxx.qlrxm}
				</td>
				<td>
					${fns:getDictLabel(regBaseZdjbxx.qllx, 'reg_bus_qllx', '')}
				</td> 
				<td>
				<c:if test="${regBaseZdjbxx.isaudit eq '2'}">
					<input id="btndaoru" class="btn btn-primary" type="button" value="坐标导入" onclick="zbdaoru()"/>
					</c:if>
					<c:if test="${regBaseZdjbxx.isaudit eq '10'}">
                      <a href="#" onclick="auditXgDjxx('${regBaseZdjbxx.chid}','${regBaseZdjbxx.isaudit}','${regBaseZdjbxx.bdcdyh}');">审核</a>
	    					<a href="${ctx}/reg/base/regBaseChxx/xgform?chid=${regBaseZdjbxx.chid}&bdcdyh=${regBaseZdjbxx.bdcdyh}&xg=1">修改</a>
					 </c:if>
				</td>
			</tr>
			</c:forEach>
		</tbody>
	</table> 
	<div class="pagination">${page}</div>      
</body>

</html>