7d2e2303359ee28fa373eb440d876346a0d0342b.svn-base 39.9 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 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919
<%@ 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 flag = '${flag}';
	$(document).ready(function() {
		if(flag == '1'){
			alert("权利人导入成功");
		}
	});
	var js = 0;
	  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;
	  var ychid = "";
	  var yts="";
	  var tuceng;
	  
	  function Qlrdaoru()
		{
		   
			$.jBox($("#importBox").html(), {title:"导入数据", buttons:{"关闭":true}, 
				bottomText:"导入文件不能超过5M,仅允许导入“xls”或“xlsx”格式文件!"});
		}
	  function daoruqlr()
		{
			$.jBox($("#importNFBox").html(), {title:"导入数据", buttons:{"关闭":true}, 
				bottomText:"导入文件不能超过5M,仅允许导入“xls”或“xlsx”格式文件!"});
		}
	  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 "N":
    		  tucengValue=actualSvrcfg.NYDGDBP;
    		  break;
      	  case "I":
      		  break;
      	  case "J":
      		  break;
      	  default:break;
      	
      	}
      	return tucengValue;
      }		
	
	 function AddquyaosutoTC()
	{	
		if(false==checkzb()){ $("#btnSubmit").attr("disabled",false);return;}
	    if(TempZBArray[0]!=TempZBArray[TempZBArray.length-1])
		{
	    	 TempZBArray[TempZBArray.length]=TempZBArray[0];
	    	 TempZBYXArray[TempZBYXArray.length]=TempZBYXArray[0];
	    	 
	    }
      shujvfenxijianyan();
	}
	function shujvfenxijianyan()
	{
		var strTucengg;
		var pointObj = new Array(); 
		var qupointObj = new Array();
		var lengthzb;
	      qupointObj=TempZBYXArray;
		  var geomObj = new Zondy.Object.Polygon(qupointObj);    
		  geomObj.nearDis=0.001;
		  var queryStruct=new Zondy.Service.QueryFeatureStruct(
				  {
					  IncludeGeometry:true,
					  IncludeAttribute:true,
					  IncludeWebGraphic:false
					  });
		  var featureRule =Zondy.Service.QueryFeatureRule({
              MustInside:true,
              Intersect: true
          });
		  strTucengg=selectTuCeng('${zdtzm}'); 
	  	 var queryParam=new Zondy.Service.QueryByLayerParameter(
	  			strTucengg,
	  			{ 
               geometry: geomObj,
               resultFormat: "json",
               isAsc: true,//排序 旧API文档没有
               rule: featureRule,
               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(querryfenxiSuccess);
	}
	function querryfenxiSuccess(data){
		var a=0;
		if(data.TotalCount>0)
			{	
				a=1;
				$('#selectOkCancleButton').dialog('open');	
				$("#selectOkCancleButton").dialog("move",{top:$(document).scrollTop() + ($(window).height()-300) * 0.5});//带滚动条的div窗口居中显示
			}
		if(a==0)
		{
			 addzongdi();
		}
 }
	function continueAddyaosu()
	{
		$('#selectOkCancleButton').dialog('close');
		addzongdi();
	}
	function cancelAdd()
	{
		$('#selectOkCancleButton').dialog('close');
		return;
	} 
	
 
 function checkzb(){
	   if($("#chrymctext").val()== ""){
			$("<label for='name' class='error'>必填信息</label>").insertAfter("#chrymctext");
			return false;
		}
		var tb = document.getElementById("contentTable");
		var tempx,tempy,indexNO=0,flag=0;
		console.log(TempZBArray);//清空数组
		console.log(TempZBYXArray);//清空数组
		 zblisttemp="";
		 console.log(tb.rows.length);
		for (var i=1;i<tb.rows.length-1;i++){
			tempx = tb.rows[i].cells[3].getElementsByTagName("INPUT")[0].value;
		    tempy = tb.rows[i].cells[4].getElementsByTagName("INPUT")[0].value;
		    var str=tb.rows[i].cells[5].innerText;
		    str=str.replace( /^\s+|\s+$/g, "" );
			if(str=="删 除"||str=="撤销删除")
			{	
				flag = 0;
				 //判断导入的数据格式,为文本则可导入
				  if((tempx.indexOf("E") != -1) || (tempy.indexOf("E") != -1)){
						 alert("导入的界址点格式为 非文本 格式,无法导入,请修改后重新导入");
						 gobackchxxlist();
						 flag = 1;
						 return false;
						}
				     var arr = tempx.split(".");
					 var arr1 = tempy.split(".");
					 var indexNO = 0;
					if((arr[0].length>=7)&&(arr1[0].length>=7))
					    {
							if($("#regBaseZbinfoList"+(i-1)+"_delFlag").val()=="0"){
								//坐标与GIS图XY坐标颠倒
							if((arr[0].length == 7)&&(arr1[0].length==8)){
							TempZBArray[indexNO]=tempy+","+tempx;
						    TempZBYXArray[indexNO]= new Zondy.Object.Point2D(parseFloat(tempy), parseFloat(tempx));	
							zblisttemp=zblisttemp+$("#regBaseZbinfoList"+(i-1)+"_zbdmc").val()+"["+$("#regBaseZbinfoList"+(i-1)+"_zby").val()+","+$("#regBaseZbinfoList"+(i-1)+"_zbx").val()+"] "+","+$("#regBaseZbinfoList"+(i-1)+"_id").val()+","+$("#regBaseZbinfoList"+(i-1)+"_delFlag").val()+","+$("#regBaseZbinfoList"+(i-1)+"_sort").val()+";";
							 indexNO=indexNO+1;
							}
							//坐标正常,XY一一对应
							else if((arr[0].length == 8)&&(arr1[0].length==7)){
							  TempZBArray[indexNO]=tempx+","+tempy;
						      TempZBYXArray[indexNO]= new Zondy.Object.Point2D(parseFloat(tempx), parseFloat(tempy));
							   zblisttemp=zblisttemp+$("#regBaseZbinfoList"+(i-1)+"_zbdmc").val()+"["+$("#regBaseZbinfoList"+(i-1)+"_zbx").val()+","+$("#regBaseZbinfoList"+(i-1)+"_zby").val()+"] "+","+$("#regBaseZbinfoList"+(i-1)+"_id").val()+","+$("#regBaseZbinfoList"+(i-1)+"_delFlag").val()+","+$("#regBaseZbinfoList"+(i-1)+"_sort").val()+";";
							 indexNO=indexNO+1;
							}else{
							  alert("第"+i+ "行坐标输入有误,请检查");
							  return false;	
							}
							}					
					        
					    }
					else
					{
						alert("第"+i+ "行坐标输入有误,请检查");
						return false;
					}
			 }					
		}
		if(flag == 0){
		if((TempZBArray.length<4)||(regBaseZbinfoRowIdx<4)) {alert("请输入至少4个坐标点!");return false;}
	      }
		return true;
}
	
	function addyaosu()
	{
		 
		var zdbdcdyh = $("#bdcdyhtext").val();
		$.ajax({ 
			type:"POST", //请求方式 
			url:"${ctx}/gis/web/gisController/cxzd", //请求路径 
			cache: false,   //(默认: true,dataType为script和jsonp时默认为false) jQuery 1.2 新功能,设置为 false 将不缓存此页面。 
			//data:"zddmvalue="+ss+"&bdcdyhvalue="+""+"&qlrvalue="+"",  //传参 
			data:"bdcdyh="+zdbdcdyh,
			async:false,
	        //dataType: "html",   //返回值类型 
			success:function(modelmap){
				   mapreturnvale =modelmap.regBaseChxxData;
				  if(mapreturnvale == ""){
					  alert("无此宗地存在!请确认不动产单元号");
				  }else{
				   ychid = mapreturnvale.chid;
				   yts = modelmap.yts;
				   var queryStruct=new Zondy.Service.QueryFeatureStruct();
	  				queryStruct.IncludeGeometry=true;
	  				 tuceng=selectTuCeng(mapreturnvale.zdtzm);

	  				var str="CHID='"+ ychid +"'";
	  				
	  				var queryParam=new Zondy.Service.QueryByLayerParameter(tuceng,{ 
	  	                   // geometry: line,
	  	                   resultFormat: "json",
	  	                   struct:queryStruct,
	  	                   where :  str
	  	                   });
	  				var queryService=new Zondy.Service.QueryLayerFeature(queryParam,
	  						{
	  					ip: actualSvrcfg.ip,        //IP地址
	  					port: actualSvrcfg.port ,   //端口号
	  					requestType:"POST"
	  					});
	  				queryService.query(UpdatedataSuccess);
				  }  
	}
		});
	}
	
	function UpdatedataSuccess(data){
		if(data.TotalCount > 0){
			var editDocFeature = new Zondy.Service.EditLayerFeature(tuceng, { ip: actualSvrcfg.ip,  port: actualSvrcfg.port });			   
			editDocFeature.deletes(data.SFEleArray[0].FID, deleteSuccess);
		}else{
			addzongdi();
		}
	}
	function deleteSuccess(data){
		if(data == true){
			addzongdi();
		}
	}
	function addzongdi()
	{
		var point = new Array(); 
		var qupoint = new Array();
	    var lengthzb;
	    var r = /\[(.+?)\]/g;
	    var temp;
        lengthzb="";
        point=[];
        qupoint=[];
		lengthzb=mapreturnvale.zb;		
		lengthzb=lengthzb.replace( /^\s+|\s+$/g, "" );
		point=lengthzb.match(r);
		
		for(var i=0;i<point.length;i++)
		{
			temp= point[i].substring(1,point[i].length-1);
			temp=temp.replace( /^\s+|\s+$/g, "" );
			lengthzb=temp.split(",");
			if(lengthzb.length==2)
			{
                           if(lengthzb[1].split(".")[0].length == 8){
        						qupoint[i] = new Zondy.Object.Point2D(parseFloat(lengthzb[1]), parseFloat(lengthzb[0]));
								}else if(lengthzb[1].split(".")[0].length == 7){
								qupoint[i] = new Zondy.Object.Point2D(parseFloat(lengthzb[0]), parseFloat(lengthzb[1]));
        					}else{
								alert("该宗地坐标有误!");return false;
							}			
			}
			else
			{alert("该宗地坐标有误!");return false;}
	    }
		  var gArc = new Zondy.Object.Arc(qupoint);              //构成区要素的弧段
		  var gAnyLine = new Zondy.Object.AnyLine([gArc]);        //构成区要素折线
		  var gRegion = new Zondy.Object.GRegion([gAnyLine]);     //构成区要素
		  var fGeom = new Zondy.Object.FeatureGeometry({ RegGeom: [gRegion] }); //构成区要素的几何信息

		//设置区要素的图形参数信息
		  var cRegionInfo = new Zondy.Object.CRegionInfo({ EndColor: 136, FillColor:136, FillMode: 0, OutPenWidth: 1, OverMethod: 0, PatAngle: 1, PatColor: 1, PatHeight: 1, PatID: 0, PatWidth: 1 }); //区形状图形参数信息
		  var graphicInfo = new Zondy.Object.WebGraphicsInfo({ InfoType: 3, RegInfo: cRegionInfo }); //要素图形参数信
        //设置区要素的属性信息
    	 var attValue = [0,,,,mapreturnvale.zddm,mapreturnvale.bdcdyh,mapreturnvale.ysdm,mapreturnvale.zdtzm,mapreturnvale.zl,mapreturnvale.zdmj,mapreturnvale.yt,mapreturnvale.mjdw,yts,mapreturnvale.dj,,mapreturnvale.qllx,mapreturnvale.qlxz,mapreturnvale.qlsdfs,mapreturnvale.rjl,mapreturnvale.jzmd,mapreturnvale.jzxg,mapreturnvale.zdszd,mapreturnvale.zdszn,mapreturnvale.zdszx,mapreturnvale.zdszb,mapreturnvale.zdt,mapreturnvale.tfh,mapreturnvale.djh,mapreturnvale.dah,mapreturnvale.zt,mapreturnvale.qlrxm,mapreturnvale.chid,mapreturnvale.islogout,mapreturnvale.bz,mapreturnvale.isls,"xg"];//tempselectdata.jg
       //创建一个新的区要素
       var newFeature = new Zondy.Object.Feature({ AttValue: attValue, fGeom: fGeom, GraphicInfo: graphicInfo });
       newFeature.setFType(3);

       //创建一个要素数据集
       var featureSet = new Zondy.Object.FeatureSet();
       var fldNumber = 36;
       var fldType = ["long",    "double", "double",   "long",  "string","string","string","string","string","double","string","string","string","string","double","string","string","string","string","float","float","string","string","string","string","string","string","string","string","string","string","string","string","string","string","string"];
       var fldName = ["mpLayer", "mpArea", "mpPerimeter","BSM", "ZDDM",  "BDCDYH","YSDM",  "ZDTZM","ZL",    "ZDMJ",  "YTMC", "MJDW", "YT",    "DJ",    "JG",    "QLLX"  ,"QLXZ",  "QLSDFS",  "RJL", "JZMD","JZXG", "ZDSZD", "ZDSZN", "ZDSZX", "ZDSZB",  "ZDT",    "TFH", "DJH","DAH","ZT","QLRXM","CHID","islogout","BZ","ISLS","BB"];
       var cAttValue = new Zondy.Object.CAttStruct({ FldNumber: fldNumber, FldType: fldType, FldName: fldName });
       featureSet.AttStruct = cAttValue;
       featureSet.addFeature(newFeature);
         //创建一个要素编辑服务对象
	       var editDocFeature = new Zondy.Service.EditLayerFeature(tuceng, { ip: actualSvrcfg.ip,  port: actualSvrcfg.port });

         editDocFeature.add(featureSet, chxxsuccess);	 

		
	}

	function chxxsuccess(data)
	{
		if (data == true) {
			alert("添加要素成功!");
			var url ="${ctx}/gis/web/gisController/importGIS";
			 window.location = url;
		}
	   else {
	        alert("添加要素失败!");
	    }

	}

		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;
			  }
			  } 
	   function ljz(){
		   $.ajax({ 
				type:"POST", //请求方式 
				url:"${ctx}/title/web/ljzController/Ljz", //请求路径 
				cache: false, 
				data:"zddm="+$("#zddmtext").val(),
				async:false,
				success:function(modelmap){
					
				}
		   })
	   }
		function addzrzyaosu(flag){
			var zdbdcdyh = $("#bdcdyhtext").val();
			$.ajax({ 
				type:"POST", //请求方式 
				url:"${ctx}/gis/web/gisController/cxzd", //请求路径 
				cache: false,   //(默认: true,dataType为script和jsonp时默认为false) jQuery 1.2 新功能,设置为 false 将不缓存此页面。 
				//data:"zddmvalue="+ss+"&bdcdyhvalue="+""+"&qlrvalue="+"",  //传参 
				data:"bdcdyh="+zdbdcdyh+"&flag="+flag,
				async:false,
		        //dataType: "html",   //返回值类型 
				success:function(modelmap){
					var lcxxvalue = modelmap.zrz;
					if(lcxxvalue == ""){
						 alert("无此宗地存在!请确认不动产单元号");
					}else{
					var yt = modelmap.yt;
					var zrzpointObj = new Array(); 
					var zrzqupointObj = new Array();
				    var lengthzb;
				    var r = /\[(.+?)\]/g;
				    var temp;
			        lengthzb="";
			        zrzpointObj=[];
			        zrzqupointObj=[];
					lengthzb=lcxxvalue.zb;		
					lengthzb=lengthzb.replace( /^\s+|\s+$/g, "" );
					zrzpointObj=lengthzb.match(r);
					
					for(var i=0;i<zrzpointObj.length;i++)
					{
						temp= zrzpointObj[i].substring(1,zrzpointObj[i].length-1);
						temp=temp.replace( /^\s+|\s+$/g, "" );
						lengthzb=temp.split(",");
						if(lengthzb.length==2)
						{
							 if(lengthzb[1].split(".")[0].length == 8){
        						zrzqupointObj[i] = new Zondy.Object.Point2D(parseFloat(lengthzb[1]), parseFloat(lengthzb[0]));
								}else if(lengthzb[1].split(".")[0].length == 7){
								zrzqupointObj[i] = new Zondy.Object.Point2D(parseFloat(lengthzb[0]), parseFloat(lengthzb[1]));
        					}else{
								alert("该宗地坐标有误!");return false;
							}	
							
						}
						else
						{alert("该宗地坐标有误!");return false;}
				    }
					
			  var gArc = new Zondy.Object.Arc(zrzqupointObj);              //构成区要素的弧段
			  var gAnyLine = new Zondy.Object.AnyLine([gArc]);        //构成区要素折线
			  var gRegion = new Zondy.Object.GRegion([gAnyLine]);     //构成区要素
			  var fGeom = new Zondy.Object.FeatureGeometry({ RegGeom: [gRegion] }); //构成区要素的几何信息
			 //设置区要素的图形参数信息
			  var cRegionInfo = new Zondy.Object.CRegionInfo({ EndColor: 533, FillColor:533, FillMode: 0, OutPenWidth: 1, OverMethod: 0, PatAngle: 1, PatColor: 1, PatHeight: 1, PatID: 0, PatWidth: 1 }); //区形状图形参数信息
			  var graphicInfo = new Zondy.Object.WebGraphicsInfo({ InfoType: 3, RegInfo: cRegionInfo }); //要素图形参数信
             //设置区要素的属性信息
             var attValue = [0,,,lcxxvalue.bsm,lcxxvalue.zddm,lcxxvalue.bdcdyh,lcxxvalue.zrzh,lcxxvalue.ysdm,lcxxvalue.gzwmc,,lcxxvalue.zzdmj,lcxxvalue.xmmc,lcxxvalue.ghyt,lcxxvalue.jzwgd,lcxxvalue.zydmj,lcxxvalue.ycjzmj,lcxxvalue.scjzmj,lcxxvalue.zcs,lcxxvalue.dscs,lcxxvalue.dxcs,lcxxvalue.dxsd,lcxxvalue.fwjg,yt,lcxxvalue.zts,lcxxvalue.jzwjbyt,lcxxvalue.zt,lcxxvalue.dah,"0",lcxxvalue.bz,chxxvalue.id];//$("#textnewyaosu").val()];
            //创建一个新的区要素
            var newFeature = new Zondy.Object.Feature({ AttValue: attValue, fGeom: fGeom, GraphicInfo: graphicInfo });
            newFeature.setFType(3);
            //创建一个要素数据集
            var featureSet = new Zondy.Object.FeatureSet();
            var fldNumber = 30;
            var fldType = ["long",    "double", "double",   "long",  "string","string","string","string","string","date","double","string","string","double","double","double","double","long","string","string","double","string","string","long","string","string","string","string","string","string"];
            var fldName = ["mpLayer", "mpArea", "mpPerimeter", "BSM", "ZDDM", "BDCDYH","ZRZH",  "YSDM","JZWMC","JGRQ","ZZDMJ","XMMC","GHYT","JZWGD", "ZYDMJ","YCJZMJ", "SCJZMJ", "ZCS" ,"DSCS","DXCS", "DZSD", "FWJG", "YTMC","ZTS","JZWJBYT","ZT","DAH","islogout","BZ","CHID"];
           var cAttValue = new Zondy.Object.CAttStruct({ FldNumber: fldNumber, FldType: fldType, FldName: fldName });
            featureSet.AttStruct = cAttValue;
            featureSet.addFeature(newFeature);
            console.log(featureSet.AttStruct);
           //创建一个要素编辑服务对象
           var temptuceng=actualSvrcfg.ZRZ;
           if(temptuceng !="")
           {
   	       var editDocFeature = new Zondy.Service.EditLayerFeature(temptuceng, { ip: actualSvrcfg.ip,  port: actualSvrcfg.port });
           editDocFeature.add(featureSet, chxxsuccess);	 
				  //--------------------------------
			}
				}
				}
			})
		}
		
		var LQdata;
		var label;
		function readlqtd(){
			var queryStruct=new Zondy.Service.QueryFeatureStruct();
				queryStruct.IncludeGeometry=true;
				var queryParam=new Zondy.Service.QueryByLayerParameter(zhijian.LD,{ 
	                   // 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(readOnSuccess);
		  }  
		function readOnSuccess(data){
			console.log(data);
			 for(var i=0;i<data.TotalCount;i++){
				var djzqdm = data.SFEleArray[i].AttValue[26];
				var zl = data.SFEleArray[i].AttValue[5];
				var zdmj = data.SFEleArray[i].AttValue[6];
				var mjdw = data.SFEleArray[i].AttValue[7];
				var yt = data.SFEleArray[i].AttValue[8];
				var dj = data.SFEleArray[i].AttValue[9];
				var jg = data.SFEleArray[i].AttValue[10];
				var qllx = data.SFEleArray[i].AttValue[11];
				var qlxz = data.SFEleArray[i].AttValue[12];
				var qlsdfs = data.SFEleArray[i].AttValue[13];
				var dz = data.SFEleArray[i].AttValue[17];
				var nz= data.SFEleArray[i].AttValue[18];
				var xz = data.SFEleArray[i].AttValue[19];
				var bz = data.SFEleArray[i].AttValue[20];
				var tfh = data.SFEleArray[i].AttValue[21];
				var zdt = data.SFEleArray[i].AttValue[29];
				var bdcdyh = data.SFEleArray[i].AttValue[2];
				var fGeom = data.SFEleArray[i].fGeom;
				var zbs = data.SFEleArray[i].fGeom.RegGeom[0].Rings[0].Arcs[0].Dots;
				var ZBArray = new Array();
				var zblist="";
				var jzdzb = "";
				if(i == 0){
					js = 1;
				}else{
					js = 0;
				}
				for(var j = 0;j<zbs.length;j++){
					var tempx = zbs[j].x;
					var tempy = zbs[j].y;
					var s = j+1;
					jzdzb = jzdzb +"J"+s+"["+tempx+","+tempy+"] ";
				    zblist = zblist+"J"+s+","+"["+tempx+","+tempy+"] "+","+"0"+","+s+";";
				}
				$.ajax({ 
					type:"POST", //请求方式 
					url:"${ctx}/gis/web/gisController/lqzdrk", //请求路径 
					cache: false, 
					data:"djzqdm="+djzqdm+"&zl="+zl+"&zdmj="+zdmj+"&mjdw="+mjdw+"&yt="+yt+"&dj="+dj+"&jg="+jg+"&qllx="+qllx+"&qlxz="+qlxz+"&qlsdfs="+qlsdfs+"&dz="+dz+"&nz="+nz+"&xz="+xz+"&bz="+bz+"&tfh="+tfh+"&zdt="+zdt+"&zblist="+zblist+"&bdcdyh="+bdcdyh+"&jzdzb="+jzdzb,
					async:false,
					success:function(modelmap){
						
		}
				});
				} 
		}
		
		function Rksuccess(data){
			
			
		}
		
		function readlq(){
			var queryStruct=new Zondy.Service.QueryFeatureStruct();
				queryStruct.IncludeGeometry=true;
				var queryParam=new Zondy.Service.QueryByLayerParameter(zhijian.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(readSuccess);
		  }  
		function readSuccess(data){
			 for(var i=0;i<data.TotalCount;i++){
				var fbf = data.SFEleArray[i].AttValue[7];
				var syqmj = data.SFEleArray[i].AttValue[8];
				var qllx = data.SFEleArray[i].AttValue[4];
				var djlx = data.SFEleArray[i].AttValue[5];
				var djyy = data.SFEleArray[i].AttValue[6];
				var qssj = data.SFEleArray[i].AttValue[9];
				var jssj= data.SFEleArray[i].AttValue[10];
				var syqr1 = data.SFEleArray[i].AttValue[12];
				var syqr2 = data.SFEleArray[i].AttValue[13];
				var syqxz = data.SFEleArray[i].AttValue[11];
				var bdcdyh = data.SFEleArray[i].AttValue[2];
				var zysz = data.SFEleArray[i].AttValue[14];
				var zs = data.SFEleArray[i].AttValue[15];
				var lz = data.SFEleArray[i].AttValue[16];
				var qy = data.SFEleArray[i].AttValue[17];
				var zlnd = data.SFEleArray[i].AttValue[18];
				var lb = data.SFEleArray[i].AttValue[19];
				var xb = data.SFEleArray[i].AttValue[20];
				var xdm = data.SFEleArray[i].AttValue[21];
				var bdcqzh = data.SFEleArray[i].AttValue[22];
				var qxdm = data.SFEleArray[i].AttValue[23];
				var djjg = data.SFEleArray[i].AttValue[24];
				var dbr = data.SFEleArray[i].AttValue[25];
				var djsj = data.SFEleArray[i].AttValue[26];
				var fj = data.SFEleArray[i].AttValue[27];
				var qszt = data.SFEleArray[i].AttValue[28];
				var fGeom = data.SFEleArray[i].fGeom;
				var bdcdyh = data.SFEleArray[i].AttValue[2];

			    $.ajax({ 
					type:"POST", //请求方式 
					url:"${ctx}/gis/web/gisController/lqrk", //请求路径 
					cache: false, 
					data:"fbf="+fbf+"&syqmj="+syqmj+"&qllx="+qllx+"&djlx="+djlx+"&djyy="+djyy+"&qssj="+qssj+"&jssj="+jssj+"&syqr1="+syqr1+"&syqr2="+syqr2+"&syqxz="+syqxz+"&zysz="+zysz+"&zs="+zs+"&lz="+lz+"&qy="+qy+"&zlnd="+zlnd+"&lb="+lb+"&xb="+xb+"&xdm="+xdm+"&bdcqzh="+bdcqzh+"&qxdm="+qxdm+"&djjg="+djjg+"&dbr="+dbr+"&djsj="+djsj+"&fj="+fj+"&qszt="+qszt+"&bdcdyh="+bdcdyh,
					async:false,
					success:function(modelmap){
						var zdjbxx = modelmap.regBaseZdjbxx;
						var yt = modelmap.yt;
						var cRegionInfo = new Zondy.Object.CRegionInfo({ EndColor: 7, FillColor:7, FillMode: 0, OutPenWidth: 1, OverMethod: 0, PatAngle: 1, PatColor: 1, PatHeight: 1, PatID: 0, PatWidth: 1 }); //区形状图形参数信息
						var graphicInfo = new Zondy.Object.WebGraphicsInfo({ InfoType: 3, RegInfo: cRegionInfo }); //要素图形参数信
			             //设置区要素的属性信息
    	                var attValue = [0,,,,zdjbxx.zddm,zdjbxx.bdcdyh,zdjbxx.ysdm,zdjbxx.zdtzm,zdjbxx.zl,zdjbxx.zdmj,zdjbxx.yt,zdjbxx.mjdw,yt,zdjbxx.dj,,zdjbxx.qllx,zdjbxx.qlxz,zdjbxx.qlsdfs,zdjbxx.rjl,zdjbxx.jzmd,zdjbxx.jzxg,zdjbxx.zdszd,zdjbxx.zdszn,zdjbxx.zdszx,zdjbxx.zdszb,zdjbxx.zdt,zdjbxx.tfh,zdjbxx.djh,zdjbxx.dah,zdjbxx.zt,zdjbxx.qlrxm,zdjbxx.chid,zdjbxx.islogout,zdjbxx.bz,zdjbxx.isls,"rk"];//tempselectdata.jg
			            //创建一个新的区要素
			            var newFeature = new Zondy.Object.Feature({ AttValue: attValue, fGeom: fGeom, GraphicInfo: graphicInfo });
			            newFeature.setFType(3);
			            //创建一个要素数据集
			            var featureSet = new Zondy.Object.FeatureSet();
			            var fldNumber = 36;
			            var fldType = ["long",    "double", "double",   "long",  "string","string","string","string","string","double","string","string","string","string","double","string","string","string","string","float","float","string","string","string","string","string","string","string","string","string","string","string","string","string","string","string"];
			            var fldName = ["mpLayer", "mpArea", "mpPerimeter","BSM", "ZDDM",  "BDCDYH","YSDM",  "ZDTZM","ZL",    "ZDMJ",  "YTMC", "MJDW", "YT",    "DJ",    "JG",    "QLLX"  ,"QLXZ",  "QLSDFS",  "RJL", "JZMD","JZXG", "ZDSZD", "ZDSZN", "ZDSZX", "ZDSZB",  "ZDT",    "TFH", "DJH","DAH","ZT","QLRXM","CHID","islogout","BZ","ISLS","BB"];
			            var cAttValue = new Zondy.Object.CAttStruct({ FldNumber: fldNumber, FldType: fldType, FldName: fldName });
			            featureSet.AttStruct = cAttValue;
			            featureSet.addFeature(newFeature);
			            console.log(featureSet.AttStruct);
			           //创建一个要素编辑服务对象
			           var temptuceng=actualSvrcfg.CBJYQZD_LD;
			           if(temptuceng !="")
			           {
			   	       var editDocFeature = new Zondy.Service.EditLayerFeature(temptuceng, { ip: actualSvrcfg.ip,  port: actualSvrcfg.port });
			           editDocFeature.add(featureSet, Rksuccess);	 
							  //--------------------------------
						}
					}
				}) 
			 }
		}
		
		function qlr(){
			$.ajax({ 
				type:"POST", //请求方式 
				url:"${ctx}/gis/web/gisController/qlrrk", //请求路径 
				cache: false, 
				async:false,
				success:function(modelmap){
					if(modelmap.flag == "成功"){
						alert("林权权利人入库完成!!");
					}
	}
			});
		}
		
		
		
		function readtd(){
			
			var queryStruct=new Zondy.Service.QueryFeatureStruct();
				queryStruct.IncludeGeometry=true;
				var queryParam=new Zondy.Service.QueryByLayerParameter(zhijian.ZD,{ 
	                   // 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){
			var sums=data.TotalCount -1;
			 for(var i=0;i<data.TotalCount;i++){
				 var zddm = data.SFEleArray[i].AttValue[2];
					var zl = data.SFEleArray[i].AttValue[4];
					var qlxz = data.SFEleArray[i].AttValue[5];
					var qllx = data.SFEleArray[i].AttValue[6];
					var zdmj = data.SFEleArray[i].AttValue[19];
					var yt = data.SFEleArray[i].AttValue[9];
					var rjl= data.SFEleArray[i].AttValue[10];
					var jzmd = data.SFEleArray[i].AttValue[11];
					var dz = data.SFEleArray[i].AttValue[14];
					var nz = data.SFEleArray[i].AttValue[15];
					var xz = data.SFEleArray[i].AttValue[16];
					var bz = data.SFEleArray[i].AttValue[17];
					var tfh = data.SFEleArray[i].AttValue[20];
					var zdt = data.SFEleArray[i].AttValue[28];
					var qlr = data.SFEleArray[i].AttValue[21];
					var dj = data.SFEleArray[i].AttValue[22];
					var zdtzm = data.SFEleArray[i].AttValue[24];
					var qlsdfs = data.SFEleArray[i].AttValue[25];
					var bdcdyh = data.SFEleArray[i].AttValue[26];
					var mjdw = data.SFEleArray[i].AttValue[27];
					var zjhm = data.SFEleArray[i].AttValue[31];
					var fGeom = data.SFEleArray[i].fGeom;
					var zbs = data.SFEleArray[i].fGeom.RegGeom[0].Rings[0].Arcs[0].Dots;
					var ZBArray = new Array();
					var zblist="";
					var jzdzb = "";
					
					for(var j = 0;j<zbs.length;j++){
						var tempx = zbs[j].x
						tempx = tempx.toString().substr(0,12);
						var tempy = zbs[j].y
						tempy = tempy.toString().substr(0,11);
						var s = j+1;
						
						jzdzb = jzdzb +"J"+s+"["+tempx+","+tempy+"] ";
					    zblist = zblist+"J"+s+","+"["+tempx+","+tempy+"]"+","+"0"+","+s+"; ";
					}
					$.ajax({ 
						type:"POST", //请求方式 
						url:"${ctx}/gis/web/gisController/zdrk", //请求路径 
						cache: false, 
						data:"bdcdyh="+ bdcdyh +"&zddm="+zddm+"&qlr="+qlr+"&dj="+dj+"&zdtzm="+zdtzm+"&jzmd="+jzmd+"&rjl="+rjl+"&zl="+zl+"&zdmj="+zdmj+"&mjdw="+mjdw+"&yt="+yt+"&qllx="+qllx+"&qlxz="+qlxz+"&qlsdfs="+qlsdfs+"&dz="+dz+"&nz="+nz+"&xz="+xz+"&bz="+bz+"&tfh="+tfh+"&zdt="+zdt+"&zjhm="+zjhm+"&zblist="+zblist+"&jzdzb="+jzdzb,
						async:false,
						success:function(modelmap){
							var pass = modelmap.pass;
							if(pass == '0'){
							var zdjbxx = modelmap.regBaseZdjbxx;
							var yt = modelmap.yt;
							label = modelmap.label;
							var cRegionInfo = new Zondy.Object.CRegionInfo({ EndColor: 136, FillColor:136, FillMode: 0, OutPenWidth: 1, OverMethod: 0, PatAngle: 1, PatColor: 1, PatHeight: 1, PatID: 0, PatWidth: 1 }); //区形状图形参数信息
							var graphicInfo = new Zondy.Object.WebGraphicsInfo({ InfoType: 3, RegInfo: cRegionInfo }); //要素图形参数信
				             //设置区要素的属性信息
	    	                var attValue = [0,,,,zdjbxx.zddm,zdjbxx.bdcdyh,zdjbxx.ysdm,zdjbxx.zdtzm,zdjbxx.zl,zdjbxx.zdmj,zdjbxx.yt,zdjbxx.mjdw,yt,zdjbxx.dj,,zdjbxx.qllx,zdjbxx.qlxz,zdjbxx.qlsdfs,zdjbxx.rjl,zdjbxx.jzmd,zdjbxx.jzxg,zdjbxx.zdszd,zdjbxx.zdszn,zdjbxx.zdszx,zdjbxx.zdszb,zdjbxx.zdt,zdjbxx.tfh,zdjbxx.djh,zdjbxx.dah,zdjbxx.zt,zdjbxx.qlrxm,zdjbxx.chid,zdjbxx.islogout,zdjbxx.bz,zdjbxx.isls,"rk"];//tempselectdata.jg
				            //创建一个新的区要素
				            var newFeature = new Zondy.Object.Feature({ AttValue: attValue, fGeom: fGeom, GraphicInfo: graphicInfo });
				            newFeature.setFType(3);
				            //创建一个要素数据集
				            var featureSet = new Zondy.Object.FeatureSet();
				            var fldNumber = 36;
				            var fldType = ["long",    "double", "double",   "long",  "string","string","string","string","string","double","string","string","string","string","double","string","string","string","string","float","float","string","string","string","string","string","string","string","string","string","string","string","string","string","string","string"];
				            var fldName = ["mpLayer", "mpArea", "mpPerimeter","BSM", "ZDDM",  "BDCDYH","YSDM",  "ZDTZM","ZL",    "ZDMJ",  "YTMC", "MJDW", "YT",    "DJ",    "JG",    "QLLX"  ,"QLXZ",  "QLSDFS",  "RJL", "JZMD","JZXG", "ZDSZD", "ZDSZN", "ZDSZX", "ZDSZB",  "ZDT",    "TFH", "DJH","DAH","ZT","QLRXM","CHID","islogout","BZ","ISLS","BB"];
				            var cAttValue = new Zondy.Object.CAttStruct({ FldNumber: fldNumber, FldType: fldType, FldName: fldName });
				            featureSet.AttStruct = cAttValue;
				            featureSet.addFeature(newFeature);
				           //创建一个要素编辑服务对象
				           var temptuceng=selectTuCeng(zdjbxx.zdtzm);
				           if(temptuceng !="")
				           {
				   	       var editDocFeature = new Zondy.Service.EditLayerFeature(temptuceng, { ip: actualSvrcfg.ip,  port: actualSvrcfg.port });
				           editDocFeature.add(featureSet, Rksuccess);	 
							}
							}
			}
					});
					 
			}
			 
		}
		
		
		function readfw(){
		/* 	var label = "${label}";
			if(label != "成功"){
				alert("宗地信息未读取,请先读取宗地信息!");
				return;
			} */
			var queryStruct=new Zondy.Service.QueryFeatureStruct();
				queryStruct.IncludeGeometry=true;
				var queryParam=new Zondy.Service.QueryByLayerParameter(zhijian.FW,{ 
	                   // 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(readFWSuccess);
		  }  
		
		function readFWSuccess(data){
			 for(var i=0;i<data.TotalCount;i++){
				 var bdcdyh = data.SFEleArray[i].AttValue[2];
				 var zddm = data.SFEleArray[i].AttValue[3];
					var lszd = data.SFEleArray[i].AttValue[4];
					var fwbh = data.SFEleArray[i].AttValue[5];
					var fwmc = data.SFEleArray[i].AttValue[6];
					var zldz = data.SFEleArray[i].AttValue[7];
					var fwjg = data.SFEleArray[i].AttValue[8];
					var zcs = data.SFEleArray[i].AttValue[9];
					var dscs = data.SFEleArray[i].AttValue[10];
					var dxcs = data.SFEleArray[i].AttValue[11];
					var jzmj = data.SFEleArray[i].AttValue[12];
					var zdmj = data.SFEleArray[i].AttValue[13];
					var ghyt = data.SFEleArray[i].AttValue[16];
					var zts = data.SFEleArray[i].AttValue[17];
					var zt = data.SFEleArray[i].AttValue[18];
					var jgsj = data.SFEleArray[i].AttValue[19];
					var fGeom = data.SFEleArray[i].fGeom;
					var zbs = data.SFEleArray[i].fGeom.RegGeom[0].Rings[0].Arcs[0].Dots;
					var ZBArray = new Array();
					var zblist="";
					var jzdzb = "";
					
					for(var j = 0;j<zbs.length;j++){
						var tempx = (zbs[j].x)
						tempx = tempx.toString().substr(0,12);
						var tempy = (zbs[j].y)
						tempy = tempy.toString().substr(0,11);
						var s = j+1;
						
						jzdzb = jzdzb +"J"+s+"["+tempx+","+tempy+"] ";
					    zblist = zblist+"J"+s+","+"["+tempx+","+tempy+"] "+","+"0"+","+s+";";
					}
					$.ajax({ 
						type:"POST", //请求方式 
						url:"${ctx}/gis/web/gisController/fwrk", //请求路径 
						cache: false, 
						data:"bdcdyh="+bdcdyh+"&zddm="+zddm+"&lszd="+lszd+"&fwbh="+fwbh+"&fwmc="+fwmc+"&zldz="+zldz+"&fwjg="+fwjg+"&zcs="+zcs+"&dscs="+dscs+"&dxcs="+dxcs+"&jzmj="+jzmj+"&zdmj="+zdmj+"&ghyt="+ghyt+"&zts="+zts+"&zt="+zt+"&zblist="+zblist+"&jzdzb="+jzdzb+"&jgsj="+jgsj,
						async:false,
						success:function(modelmap){
							var fwjbxx = modelmap.regBaseZrz;
							var chxxvalue = modelmap.chxx;
							 var cRegionInfo = new Zondy.Object.CRegionInfo({ EndColor: 533, FillColor:533, FillMode: 0, OutPenWidth: 1, OverMethod: 0, PatAngle: 1, PatColor: 1, PatHeight: 1, PatID: 0, PatWidth: 1 }); //区形状图形参数信息
							  var graphicInfo = new Zondy.Object.WebGraphicsInfo({ InfoType: 3, RegInfo: cRegionInfo }); //要素图形参数信
				             //设置区要素的属性信息
				             var attValue = [0,,,fwjbxx.bsm,fwjbxx.zddm,fwjbxx.bdcdyh,fwjbxx.zrzh,fwjbxx.ysdm,fwjbxx.gzwmc,,fwjbxx.zzdmj,fwjbxx.xmmc,fwjbxx.ghyt,fwjbxx.jzwgd,fwjbxx.zydmj,fwjbxx.ycjzmj,fwjbxx.scjzmj,fwjbxx.zcs,fwjbxx.dscs,fwjbxx.dxcs,fwjbxx.dxsd,fwjbxx.fwjg,fwjbxx.ghyt,fwjbxx.zts,fwjbxx.jzwjbyt,fwjbxx.zt,fwjbxx.dah,"0","rk",chxxvalue.id];//$("#textnewyaosu").val()];
				            //创建一个新的区要素
				            var newFeature = new Zondy.Object.Feature({ AttValue: attValue, fGeom: fGeom, GraphicInfo: graphicInfo });
				            newFeature.setFType(3);
				            //创建一个要素数据集
				            var featureSet = new Zondy.Object.FeatureSet();
				            var fldNumber = 30;
				            var fldType = ["long",    "double", "double",   "long",  "string","string","string","string","string","date","double","string","string","double","double","double","double","long","string","string","double","string","string","long","string","string","string","string","string","string"];
				            var fldName = ["mpLayer", "mpArea", "mpPerimeter", "BSM", "ZDDM", "BDCDYH","ZRZH",  "YSDM","JZWMC","JGRQ","ZZDMJ","XMMC","GHYT","JZWGD", "ZYDMJ","YCJZMJ", "SCJZMJ", "ZCS" ,"DSCS","DXCS", "DZSD", "FWJG", "YTMC","ZTS","JZWJBYT","ZT","DAH","islogout","BZ","CHID"];
				           var cAttValue = new Zondy.Object.CAttStruct({ FldNumber: fldNumber, FldType: fldType, FldName: fldName });
				            featureSet.AttStruct = cAttValue;
				            featureSet.addFeature(newFeature);
				            console.log(featureSet.AttStruct);
				           //创建一个要素编辑服务对象
				           var temptuceng=actualSvrcfg.ZRZ;
				           
				   	       var editDocFeature = new Zondy.Service.EditLayerFeature(temptuceng, { ip: actualSvrcfg.ip,  port: actualSvrcfg.port });
				           editDocFeature.add(featureSet, Rksuccess);	 
								  //--------------------------------
							
						}
					})
			 }
		}
	</script>
</head>
<body>
	  <div id="importBox" class="hide">
		<form id="importXkbForm" name="importXkbForm" action="${ctx}/gis/web/gisController/qlrrk" method="post" enctype="multipart/form-data"
			class="form-search" style="padding-left:20px;text-align:center;" ><br/>
			 <input id="uploadFile" name="filename" type="file" style="width:330px"/><br/><br/>
			<input id="btnImportSubmit" class="btn btn-primary" type="submit" value="   导    入   " />
		</form>
	</div>
	<div id="importNFBox" class="hide">
		<form id="importXkbForm" action="${ctx}/gis/web/gisController/nfqlrrk" method="post" enctype="multipart/form-data"
			class="form-search" style="padding-left:20px;text-align:center;"><br/>
			 <input id="uploadFile" name="filename" type="file" style="width:330px"/><br/><br/>
			<input id="btnImportSubmit" class="btn btn-primary" type="submit" value="   导    入   " />
		</form>
	</div>
	<c:if test="${not empty VIEW}">
		<br>
		<h5 style="color:red;">错误信息如下:</h5>
		<ol id="errormsg">
		<c:forEach items="${errorList}" var="str" varStatus="status">
			<c:if test="${status.index!=0 }">
				<li>${str }</li>
			</c:if>
		</c:forEach>
		</ol> 
	</c:if> 
	<c:if test="${empty VIEW}">
		 <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>
		
		<tr>
			<td  class="tit">宗地代码 &nbsp;</td>
			<td>
				<input  id="zddmtext" htmlEscape="false" maxlength="30" class="input-medium"/>
			</td>
			
			<td class="btns"><input id="btnSubmit" class="btn btn-primary" type="button" value="自然幢转逻辑幢" onclick="ljz()"/></td>
			
			<td class="clearfix"></td>
		</tr>
	</table> 
	
	   
         
	 <div style="width:35%;float:left">
	<fieldset border="#06c dashed 1px">
	   <legend>林权入库</legend>
	   	<input id="btnSubmit" class="btn btn-primary" type="button" value="林权权利人入库" onclick="Qlrdaoru()"/><br><br>
	    <input id="btnSubmit" class="btn btn-primary" type="button" value="读取林权土地数据" onclick="readlqtd()"/><br><br>
	    <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="daoruqlr()"/><br><br>
	    <input id="btnSubmit" class="btn btn-primary" type="button" value="读取土地数据" onclick="readtd()"/><br><br>
	    <input id="btnSubmit" class="btn btn-primary" type="button" value="读取房屋数据" onclick="readfw()"/>
	</fieldset>
   	</div>   
   	</c:if>   
</body>

</html>