b892cd5203fb84c59f8caa0da2c46bfe39422f50.svn-base 34.7 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
<%@ 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}/select3/AreaData_min.js" type="text/javascript"></script>
    <script src="${ctxStatic}/select3/Area.js" type="text/javascript"></script>
	<script type="text/javascript">
	    var ytList = null;
		$(document).ready(function() {
			
			$("#inputForm").validate({
				submitHandler: function(form){
					loading('正在提交,请稍等...');
					form.submit();
				},
				errorContainer: "#messageBox",
				errorPlacement: function(error, element) {
					$("#messageBox").text("输入有误,请先更正。");
					if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
						error.appendTo(element.parent().parent());
					} else {
						error.insertAfter(element);
					}
				}
			});
			if(id == undefined || id == null || id ==""){
				initComplexArea('seachprov', 'seachcity', 'seachdistrict', area_array, sub_array, '44', '0', '0');	
			}
			views();
			$("#seachprovtext").data('select2').val(["610702"]);
		});
		
		
		window.onload = function() { 
			//初始化置灰
			$("#zdtzmTxt").attr("disabled","disabled");
			$("#qxdmtext").attr("readOnly","true");
		}; 
		function views(){
			var viewid = "${VIEWS}";
			if(viewid == undefined || viewid == null || viewid ==""){
				return;
			}
			$("input:not(:button,:submit,:hidden),select,textarea").attr("disabled","disabled");
		}
		//得到地区码 
		function getAreaID(){
			var area = 0;
			if($("#seachdistricttext").val() != "0"){
				area = $("#seachdistricttext").val();                
			}else if ($("#seachcitytext").val() != "0"){
				area = $("#seachcitytext").val();
			}else{
				area = $("#seachprovtext").val();
			}
			return area;
		}
		
		function getAreaInfo() {
			//地区码 
			var areaID = getAreaID();
			//地区名 
			var areaName = getAreaNamebyID(areaID) ;
			$("#chcode").val(areaID);
			$("#zddm").val(areaID);
			$("#bdcdyhid").val(areaID);
			$("#zltext").val(areaName);
		}
		
		//根据地区码查询地区名 
		function getAreaNamebyID(areaID){
			var areaName = "";
			if(areaID.length == 6){
				areaName = area_array[areaID];
			}else if(areaID.length == 9){
				var index1 = areaID.substring(0, 6);
				areaName = area_array[index1] + "" + sub_array[index1][areaID];
			}else if(areaID.length == 12){
				var index1 = areaID.substring(0, 6);
				var index2 = areaID.substring(0, 9);
				areaName = area_array[index1] + "" + sub_array[index1][index2] + "" + sub_arr[index2][areaID];
			}
			return areaName;
		}
		
		function addRow(list, idx, tpl, row){
			$(list).append(Mustache.render(tpl, {
				idx: idx, delBtn: true, row: row
			}));
			$(list+idx).find("select").each(function(){
				$(this).val($(this).attr("data-value"));
			});
			for(var i=0;i<150;i++){
				$("#regBaseHisZbinfoList"+i+"_sort").val(i+1);
				$("#regBaseHisZbinfoList"+i+"_zbdmc").val("J"+(i+1));
			}
			$(list+idx).find("input[type='checkbox'], input[type='radio']").each(function(){
				var ss = $(this).attr("data-value").split(',');
				for (var i=0; i<ss.length; i++){
					if($(this).val() == ss[i]){
						$(this).attr("checked","checked");
					}
				}
			});
		}
		
		function delRow(obj, prefix){
			var id = $(prefix+"_id");
			var delFlag = $(prefix+"_delFlag");
			if (id.val() == ""){
				$(obj).parent().parent().remove();
			}else if(delFlag.val() == "0"){
				delFlag.val("1");
				$(obj).html("撤销删除").attr("title", "撤销删除");
				$(obj).parent().parent().addClass("error");
			}else if(delFlag.val() == "1"){
				delFlag.val("0");
				$(obj).html("删    除").attr("title", "删除");
				$(obj).parent().parent().removeClass("error");
			}
		}

		function qlrwinOpen() 
		{
			var chcode = $("#chcodetext").val();
			if(chcode == "" || chcode == null){
				alert("请先添加保存测绘信息");
				return;
			}
			//弹出窗口的宽度; 
			var iWidth=1100; 
			//弹出窗口的高度;
	       	var iHeight=600;
	       	//获得窗口的垂直位置 
	       	var iTop = (window.screen.height - 30 - iHeight) / 2;
	       	//获得窗口的水平位置 
	       	var iLeft = (window.screen.width - 10 - iWidth) / 2;
	       	var op= "${optype}";
	    	var gyfs = "";
	       	$.ajax({ 
				type:"POST", 
				url:"${ctx}/reg/bus/regBusHisHouseQlr/isFlagGyqk", 
				cache: false, 
				data:"YWH="+$("#ywhtext").val(),
			    async : false,  
				success:function(modelmap){
					successbj = modelmap.success;
					gyfs = modelmap.gyfs;
					if(modelmap.success != 1){
						alert(modelmap.msg);
						return;
					}
				}
			});
       		if(successbj == 1){
		       	if(op == 1){
		       		window.open("${ctx}/reg/bus/regBusHisHouseQlr/form?optype=${optype}&YWH="+$("#ywhtext").val()+"&gyfs="+gyfs,"11",
							"height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
		       	}else{
		       		window.open("${ctx}/reg/bus/regBusHisHouseQlr/form?optype=${optype}&YWH="+$("#ywhtext").val()+"&gyfs="+gyfs,"22",
							"height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
		       	}
       		}
		}
		
// 		function ywrwinOpen() 
// 		{
// 			var chcode = $("#chcodetext").val();
// 			if(chcode == "" || chcode == null){
// 				alert("请先添加保存测绘信息");
// 			}
// 			//弹出窗口的宽度; 
// 			var iWidth=1100; 
// 			//弹出窗口的高度;
// 	       	var iHeight=600;
// 	       	//获得窗口的垂直位置 
// 	       	var iTop = (window.screen.height - 30 - iHeight) / 2;
// 	       	//获得窗口的水平位置 
// 	       	var iLeft = (window.screen.width - 10 - iWidth) / 2;
// 	       	var op= "${optype}";
// 	       	if(op == 1){
// 	       		window.open("${ctx}/reg/bus/regBusHisHouseYwr/form?H=4&optype=${optype}&YWH="+$("#ywhtext").val(),"33",
// 						"height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
// 	       	}else{
// 	       		window.open("${ctx}/reg/bus/regBusHisHouseYwr/form?H=4&optype=${optype}&YWH="+$("#ywhtext").val(),"44",
// 						"height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
// 	       	}
// 		}
		function getUrl(){
			var ifmWindow = document.getElementById('qlrframe').contentWindow;
			var tbLen = $(ifmWindow.document).find("#contentTable").find("tbody").find("tr").length;
 			if(tbLen == 0){
				alert("请添加权利人信息!");
 				return;
 			}
			 //查询权利人共有方式
			 var successbj ="";
			 $.ajax({ 
					type:"POST", 
					url:"${ctx}/reg/bus/regBusHisHouseQlr/querygyfs", //请求路径 
					cache: false, 
					data:"YWH="+$("#ywhtext").val(),
				    async : false,  
					success:function(modelmap){
						successbj = modelmap.success;
						if(modelmap.success == 1){
							alert(modelmap.msg);
							return;
						}
					}
			 });
			if(successbj == 0){
	// 			var ztde = $("#zdt").val();
				$("#zdtzmTxt").attr("true","true");
				$(".error").remove();
				if($("#bdcdyh").val() == ""){
					$("<label for='name' class='error'>必填信息</label>").insertAfter("#bdcdyh");
					return;
				}
				if($("#zl").val() == ""){
					$("<label for='name' class='error'>必填信息</label>").insertAfter("#zl");
					return;
				}
				if($("#djxl").val() == ""){
					$("<label for='name' class='error'>必填信息</label>").insertAfter("#djxl");
					return;
				}
				if($("#qllx").val() == ""){
					$("<label for='name' class='error'>必填信息</label>").insertAfter("#qllx");
					return;
				}
				if($("#qlxz").val() == ""){
					$("<label for='name' class='error'>必填信息</label>").insertAfter("#qlxz");
					return;
				}
				if($("#dj").val() == ""){
					$("<label for='name' class='error'>必填信息</label>").insertAfter("#dj");
					return;
				}
				if($("#rjl").val() == ""){
					$("<label for='name' class='error'>必填信息</label>").insertAfter("#rjl");
					return;
				}
				if($("#qlsdfs").val() == ""){
					$("<label for='name' class='error'>必填信息</label>").insertAfter("#qlsdfs");
					return;
				}
				if($("#djjg").val() == ""){
					$("<label for='name' class='error'>必填信息</label>").insertAfter("#djjg");
					return;
				}
				if($("#zdmj").val() == ""){
					$("<label for='name' class='error'>必填信息</label>").insertAfter("#zdmj");
					return;
				}
				if($("#dbr").val() == ""){
					$("<label for='name' class='error'>必填信息</label>").insertAfter("#dbr");
					return;
				}
				if($("#djsj").val() == ""){
					$("<label for='name' class='error'>必填信息</label>").insertAfter("#djsj");
					return;
				}
				if($("#qxdm").val() == ""){
					$("<label for='name' class='error'>必填信息</label>").insertAfter("#qxdm");
					return;
				}
				if($("#djyy").val() == ""){
					$("<label for='name' class='error'>必填信息</label>").insertAfter("#djyy");
					return;
				} 
				var fzsj = $("#textfzsj").val();
				if(fzsj == ""){
					alert("发证时间不能为空!");
					return;
				}
				var qlxz = $("#qlxz").val();
				if (qlxz != "101" && qlxz != "206" && qlxz != "203") {
					var textsyqqssj = $("#textsyqqssj").val();
					var textsyqjssj = $("#textsyqjssj").val();
					if(textsyqqssj == ""){
						alert("使用权起始时间不能为空!");
						return;
					}
					if(textsyqjssj == ""){
						alert("使用权结束时间不能为空!");
						return;
					}
				}
				var yt = $("#yt").val();
				if(yt == "" || yt == null){
					alert("土地用途不能为空!");
					return;
				}
				
				var tdsyqdm = $("#tdsyqdm").val();
				if(tdsyqdm == ""){
					alert("土地所有权代码不能为空!");
					return;
				}
				
				var bdcqzhid = $("#bdcqzhid").val();
				if(bdcqzhid == ""){
					alert("不动产权证号不能为空");
					return;
				}
				if($("#zdmjtext").val() == ""){
					 alert('宗地面积不能为空,请确认!!!');
					 return;
				}
				var zl = $("#zltext").val();
				if(zl.indexOf("X") > 0 ){
				    alert('坐落中包含非法字符X,请确认!!!');
				    return;
				}
	 			var zdtzm = $("#zdtzmTxt").val();
				var tdsyqdm = $("#tdsyqdmTxt").val();
				if (zdtzm == "A" || zdtzm == "C") {
					if(tdsyqdm == 'G' || tdsyqdm == 'Z'){
						alert("土地所有权代码与宗地特征码不匹配,不能保存!");
						return;
					}
				}else if(zdtzm == "B" || zdtzm == "D" || zdtzm == "E" || zdtzm == "F" || zdtzm == "S" || zdtzm == "X") {
					if(tdsyqdm == 'Z'){
						alert("土地所有权代码与宗地特征码不匹配,不能保存!");
						return;
					}
				}else if(zdtzm == "W" || zdtzm == "Y"){
					if(tdsyqdm == 'G' || tdsyqdm == 'J'){
						alert("土地所有权代码与宗地特征码不匹配,不能保存!");
						return;
					}
				}
	 			var zddm = $("#zddm").val();
				var bdcdyh = $("#bdcdyhid").val();
				var dyh = bdcdyh.substr(0,14);
				var zdm = zddm.substr(0,14);
				if(zdm != dyh){
					alert("宗地代码与不动产单元号前14位不一致");
					return;
				}
	// 			document.getElementById("btnSubmit").disabled="disabled";
				document.inputForms.action = "${ctx}/reg/bus/regBusHisBdcqzsdjxx/save?lsbj=1&WO=2&optype=${optype}";
				document.inputForms.submit();
			}
		}
		
		function info() 
		{
			var zdmjtext = $("#zdmjtext").val();
			$("#syqmjtext").val(zdmjtext);
		}
		
		function tdsyq(){
			var zddm = $("#zddm").val();
			if(zddm.length >= 12){
				var zddmjq = zddm.substr(0,12);
				var tdsyqdm = $("#tdsyqdm").val();
				var zdtzm = $("#zdtzmTxt").val();
				$("#zddm").val(zddmjq+tdsyqdm+zdtzm);
				$("#bdcdyhid").val(zddmjq+tdsyqdm+zdtzm);
			}
		}
		function zlinfo() 
		{
			var zl = $("#zltext").val();
			if(zl.indexOf("X") > 0 ){
			    alert('坐落中包含非法字符X,请确认!!!');
			    return;
			}
		}
		//测绘信息添加
		function chxxwinOpen() {
			//弹出窗口的宽度; 
			var iWidth=1100; 
			//弹出窗口的高度;
	       	var iHeight=600;
	       	//获得窗口的垂直位置 
	       	var iTop = (window.screen.height - 30 - iHeight) / 2;
	       	//获得窗口的水平位置 
	       	var iLeft = (window.screen.width - 10 - iWidth) / 2;
			window.open("${ctx}/reg/base/regBaseChxx/tdlslist?flag=2","chxxwindow",
					"height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
		}

		function setchbc(idvalue) {
			//此处发请求保存大表数据
			$.ajax({
				type:"POST", 
				url:"${ctx}/reg/bus/regBusHisBdcqzsdjxx/chxxsave", 
				cache: false, 
				data:"ids="+idvalue,
			    async : false,  
				success:function(modelmap){
					if(modelmap.success==0){
						$("#djxxid").val(modelmap.hisdjxxid);
						var ywh = modelmap.ywh;
						var chcode = modelmap.chcode;
						var djzq = modelmap.djzq;
						var chsj = modelmap.chsj;
						var zdmj = modelmap.zdmj;
						$("#ywhtext").val(ywh);
						$("#zddm").val(chcode);
						$("#bdcdyhid").val(chcode);
						var zdmjtext = $("#zdmjtext").val();
						$("#syqmjtext").val(zdmjtext);
						$("#textchsj").val(chsj);
						$("#syqmjtext").val(zdmj);
					}
				}
			});
		}
		
		//父页面宗地图赋值函数 
		function upfile_zdt(zdtUrlValue){
			var li, urls = zdtUrlValue.split("|");
			$("#zdtPreview").children().remove();
			for (var i=0; i<urls.length; i++){
				if (urls[i]!=""){//
					li = "<li><a href=\""+urls[i]+"\" url=\""+urls[i]+"\" target=\"_blank\">"+decodeURIComponent(urls[i].substring(urls[i].lastIndexOf("/")+1))+"</a>";//
					li += "&nbsp;&nbsp;<a href=\"javascript:\" onclick=\"zdtDel(this);\">×</a></li>";
					$("#zdtPreview").append(li);
				}
			}
			if ($("#zdtPreview").text() == ""){
				$("#zdtPreview").html("<li style='list-style:none;padding-top:5px;'>无</li>");
			}
		}

		function personInfo() {
			var iWidth=1100;
	       	var iHeight=600;
	       	var iTop = (window.screen.height - 30 - iHeight) / 2;
	       	var iLeft = (window.screen.width - 10 - iWidth) / 2;
			window.open("/ODM/a/reg/base/regBasePerson/lslist?WO=1&VIEW=1","人员信息",
					"height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");		
		}
		function select2_zjlx(zdtzmValue){
			$("#zdtzmTxt").data('select2').val([zdtzmValue]);
		}
		
		function select3_dwlx(mjdwValue){
			$("#mjdwtext").data('select2').val([mjdwValue]);

		}
	
		function tdyt(obj) {
			$("#yt").data('select2').val([]);
			if($("#yt").val() == "" || $("#yt").val() == null){
				alert("权利类型发生变化,请重新选择相应的土地用途!");
			}
			if($("#yt").val() != "" || $("#yt").val() != null){
				//此处发请求保存大表数据
				$.ajax({
					type:"POST", 
					url:"${ctx}/reg/bus/regBusHisBdcqzsdjxx/tdytquery", 
					cache: false, 
					data:"qllx="+$("#qllx").val(),
				    async : false,  
					success:function(data){
						 if(data.ytList.length > 0){
							 $("#yt").empty();
							 for(var i=0;i<data.ytList.length;i++){
								 $("#yt").append("<option>"+data.ytList[i]+"</option>"); 
							 }
	// 						 $("#yt").data('select2').val(data.ytList[0]);
						 }
					}
				});
			}
		}
	</script>
</head>
<body>
	<form:form id="inputForm" name="inputForms"  modelAttribute="regBusHisBdcqzsdjxx" action="${ctx}/reg/bus/regBusHisBdcqzsdjxx/save?lsbj=1&optype=${optype}"  method="post" class="form-horizontal">
		<form:hidden path="id" id='djxxid'/>
		<sys:message content="${message}"/>
		<fieldset>
			<legend>测绘信息</legend>
			<table class="table-form">
					<tr>
						<td class="tit">测绘编码:</td>
						<td><form:input path="chcode" id = "chcodetext" readOnly="true" htmlEscape="false" maxlength="100" class="input-large "/>
						<c:if test="${empty xg}">
						<input id="button"  class="btn btn-primary"  type="button" onclick="chxxwinOpen();" value="宗地信息选择"/>
						</c:if>
						</td>
						<td class="tit">宗地面积:</td>
						<td>
						
						<fmt:formatNumber value="${regBusHisBdcqzsdjxx.zdmj}"  pattern="#0.##"  var="formattedNumber"/>
                
		               	<form:input path="zdmj" id="zdmjtext" onblur="info()" readOnly="true" htmlEscape="false"  	value="${formattedNumber}" 	 maxlength="15"  class="input-large number required"/>
									
							<span class="help-inline"><font color="red">*</font> </span>
						</td>
                        <td class="tit">面积单位</td>
						<td>
							<form:select id="mjdwtext" path="mjdw"  class="input-medium required">
 								<form:option value="" label=""/>
								<form:options items="${fns:getDictList('reg_bus_mjdw')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
							</form:select>
							<span class="help-inline"><font color="red">*</font> </span>
						</td>
					</tr>
					<tr>
						<td class="tit">县级行政区:</td>
						<td>
<%-- 							<form:select path="seachprov" id="seachprovtext" class="input-medium required" > --%>
<%-- 								<form:options items="${fns:getDictList('reg_bus_xq')}" itemLabel="label" itemValue="value" htmlEscape="false"/> --%>
<%-- 							</form:select> --%>
							<form:input path="seachprov" id="seachprovtext" readOnly="true" htmlEscape="false" maxlength="100" class="input-large "/>
							<span class="help-inline"><font color="red">*</font> </span>
						</td>
						<td class="tit">地籍区:</td>
						<td>
<%-- 							<form:select path="seachcity" id="seachcitytext" class="input-medium required" onChange="changeCity(this.value,'seachdistricttext');getAreaInfo();"> --%>
<%-- 								<form:option value="" label=""/> --%>
<%-- 								<form:options items="${fns:getDictList('reg_bus_djq')}" itemLabel="label" itemValue="value" htmlEscape="false"/> --%>
<%-- 							</form:select> --%>
						<form:input path="seachcity" id="seachcitytext"  readOnly="true" htmlEscape="false" maxlength="100" class="input-large "/>
							<span class="help-inline"><font color="red">*</font> </span>
						</td>
                        <td class="tit">地籍子区:</td>
						<td>
<%-- 							<form:select path="seachdistrict" id="seachdistricttext" class="input-medium required" onChange="getAreaInfo();"> --%>
<%-- 								<form:option value="" label=""/> --%>
<%-- 								<form:options items="${fns:getDictList('reg_bus_djzq')}" itemLabel="label" itemValue="value" htmlEscape="false"/> --%>
<%-- 							</form:select>  --%>
							<form:input path="seachdistrict" id="seachdistricttext"  readOnly="true" htmlEscape="false" maxlength="100" class="input-large "/>
							<span class="help-inline"><font color="red">*</font> </span>
						</td>
					</tr>
					
					<tr>
						<td >宗地图:</td>
						<td>
							<form:hidden id="zdt" path="zdt" htmlEscape="false" maxlength="4000" class="input-xlarge"/>
							<sys:ckfinder input="zdt" type="files" uploadPath="/reg/base/regBaseChxx" selectMultiple="true"/>
						</td>
						
						<td  class="tit">界址点坐标:</td>
						<td colspan="3">
							<form:textarea path="jzdzb" id="jzdzbtext" htmlEscape="false" rows="4"  readOnly="true"   maxlength="1000" class="input-xxlarge"/>
						</td>
					</tr>
					<tr>
						<td class="tit">图幅号:</td>
						<td>
								<form:input id="tfhtext" path="tfh" htmlEscape="false" maxlength="50"  readOnly="true" class="input-large"/>
						</td>
						<td class="tit">宗地四至-东:</td>
						<td>
							<form:input id="zdszdtext" path="zdszd" htmlEscape="false" maxlength="200"  readOnly="true"  class="input-large required"/>
							<span class="help-inline"><font color="red">*</font> </span>
						</td>
						<td class="tit">宗地四至-南:</td>
						<td>
								<form:input id="zdszntext" path="zdszn" htmlEscape="false" maxlength="200"  readOnly="true" class="input-large required"/>
								<span class="help-inline"><font color="red">*</font> </span>
						</td>
					</tr>
					<tr>
						<td rowspan="2" class="tit">坐落:</td>
						<td rowspan="2">
							<form:textarea path="zl" id="zltext" htmlEscape="false" onChange="zlinfo();"  readOnly="true" rows="2"  maxlength="200" class="input-xlarge required"/>
							<span class="help-inline"><font color="red">*</font> </span>
						</td>
						<td class="tit">宗地四至-西:</td>
						<td>
							<form:input id="zdszxtext" path="zdszx" htmlEscape="false" maxlength="200"   readOnly="true" class="input-large required"/>
							<span class="help-inline"><font color="red">*</font> </span>
						</td>
						<td class="tit">宗地四至-北:</td>
						<td>
								<form:input id="zdszbtext" path="zdszb" htmlEscape="false" maxlength="200"  readOnly="true"  class="input-large required"/>
								<span class="help-inline"><font color="red">*</font> </span>
						</td>
					</tr> 
					<tr>
						<td class="tit">测绘人员:</td>
						<td>
						<form:input path="chrymc" id="chrymctext" readOnly="true"  htmlEscape="false" maxlength="100" class="input-large"/>
						</td>
						<td class="tit">测绘添加时间:</td>
						<td>
<!-- 							<input id="textchsj" path="chsj"  type="text" maxlength="20" class="input-medium Wdate"  -->
<%-- 									value="${fns:getDate value="${regBusHisBdcqzsdjxx.chsj}" pattern="yyyy-MM-dd"/>" /> --%>
									
							<input id="textchsj" name="chsj" type="text" maxlength="20" class="input-medium Wdate"
							value="<fmt:formatDate value="${regBusHisBdcqzsdjxx.chsj}" pattern="yyyy-MM-dd"/>" />
						</td>
					</tr>
			</table>
		</fieldset>
		<fieldset>
			<legend>宗地基本信息</legend>
				<table class="table-form">
					<tr>
						<td class="tit">要素代码</td>
						<td>
							<form:input id="ysdm" path="ysdm"   readOnly="true" htmlEscape="false" value="2001010000" maxlength="10" class="input-large"/>
						</td>
						<td class="tit">宗地代码</td>
						<td>
							<form:input id="zddm" path="zddm"  htmlEscape="false" readonly="true"  maxlength="19" class="input-large required"/>
							<span class="help-inline"><font color="red">*</font> </span>
						</td>
						<td class="tit">土地所有权代码</td>
						<td>
							<form:select path="tdsyqdm"  id="tdsyqdm" onChange="tdsyq()" class="input-medium required">
								<form:option value="" label=""/>
								<form:options items="${fns:getDictList('reg_bus_tdsyqdm')}" itemLabel="label"  itemValue="value" htmlEscape="false"/>
							</form:select>
							<span class="help-inline"><font color="red">*</font> </span>
						</td>
					</tr>
					<tr>
						<td class="tit">宗地特征码</td>
						<td>
							<form:select path="zdtzm" id="zdtzmTxt" onChange="tdsyq()" class="input-large required">
								<form:option value="" label=""/>
								<form:options items="${fns:getDictList('reg_bus_zdtzm')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
							</form:select>
							<span class="help-inline"><font color="red">*</font> </span>
						</td>
						<td class="tit">地籍号</td>
						<td>
							<form:input id="djh" path="djh" htmlEscape="false" maxlength="20" class="input-large "/>
						</td>
						<td class="tit">档案号</td>
						<td>
							<form:input path="dah" htmlEscape="false" maxlength="50" class="input-large "/>
						</td>
					</tr>
					<tr>
						<td class="tit">权利类型</td>
						<td>
							<form:select path="qllx" id="qllx" onchange="tdyt(this)"  class="input-medium required">
								<form:option value="" label="" />
<%-- 								<form:options items="${fns:getDictList('reg_bus_qllx')}" itemLabel="label" itemValue="value" htmlEscape="false"/> --%>
									<form:option value="1"  label="集体土地所有权"/>
									<form:option value="2"  label="国家土地所有权"/>
									<form:option value="3"  label="国有建设用地使用权"/>
									<form:option value="5"  label="宅基地使用权"/>
									<form:option value="7"  label="集体建设用地使用权"/>
							</form:select>
							<span class="help-inline"><font color="red">*</font> </span>
						</td>
						<td class="tit">等级</td>
						<td>
							<form:select id="dj" path="dj" class="input-medium ">
								<form:option value="" label=""/>
								<form:options items="${fns:getDictList('reg_bus_tddj')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
							</form:select>
							<span class="help-inline"><font color="red">*</font> </span>
						</td>
                        <td class="tit">价格</td>
						<td>
							<form:input id="jg" path="jg" htmlEscape="false" class="input-large number"/>
							<span class="help-inline"><font color="#000"></font> </span>
						</td>
					</tr>
					
					<tr>
						<td class="tit">用途</td>
						<td>
							<form:select id="yt" path="yt" class="input-large required">
								<form:option value="" label="" />
								<form:options  items="${ytList}" htmlEscape="false"/>
							</form:select>
							<span class="help-inline"><font color="red">*</font> </span>
						</td>
						<td class="tit">权利性质</td>
						<td>
							<form:select id="qlxz" path="qlxz"  class="input-medium required">
								<form:option value="" label=""/>
								<form:options items="${fns:getDictList('reg_bus_qlxz')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
							</form:select>
							<span class="help-inline"><font color="red">*</font> </span>
						</td>
                        <td class="tit">权利设定方式</td>
						<td>
							<form:select id="qlsdfs" path="qlsdfs" class="input-medium ">
								<form:option value="2" label="${fns:getDictLabel('2', 'reg_bus_qlsdfs', '')}"/>
								<form:options items="${fns:getDictList('reg_bus_qlsdfs')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
							</form:select>
							<span class="help-inline"><font color="red">*</font> </span>
						</td>
					</tr>
					<tr>
						<td class="tit">容积率</td>
						<td>
							<form:input id="rjl" path="rjl" htmlEscape="false" maxlength="100"  class="input-large number"/>
							<span class="help-inline"><font color="red">*</font> </span>
						</td>
						<td class="tit">建筑密度</td>
						<td>
							<form:input id="jzmd" path="jzmd" htmlEscape="false" maxlength="100" class="input-large  number"/>
						</td>
                        <td class="tit">建筑限高</td>
						<td>
							<form:input id="jzxg" path="jzxg" htmlEscape="false" maxlength="100" class="input-large  number"/>
						</td>
					</tr>
					<tr>
						<td class="tit">状态</td>
						<td>
							<form:select id="zt" path="zt" class="input-medium ">
								<form:option value="" label=""/>
								<form:options items="${fns:getDictList('reg_bus_bdcdyzt')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
							</form:select>
						</td>
						<td class="tit">备注信息</td>
						<td  colspan="3">
							<form:input path="remarks" htmlEscape="false"  maxlength="255" class="input-xxlarge "/>
						</td>
					</tr>
				</table>
		</fieldset>
		</br>
		
		<fieldset>
			<legend>权利人信息</legend>
			<table class="table-form">
				<div>
				<c:if test="${empty VIEWS}">
					<input id="btnOpen" class="btn btn-primary" style="float:right;" type="button" onclick="qlrwinOpen();" value="权利人信息添加"/>
				</c:if>
					<iframe id="qlrframe" name="qlrframe" src="${ctx}/reg/bus/regBusHisHouseQlr/list?YWH=${LSH}&xg=${xg}" width="100%" height="200" frameborder="no" border="0" marginwidth="0"
							 marginheight="0" scrolling="yes" allowtransparency="yes"></iframe>&nbsp;
				</div>
			</table>
		</fieldset>
		</br>
		
<!-- 		<fieldset> -->
<!-- 			<legend>抵押人信息</legend> -->
<!-- 			<table class="table-form"> -->
<!-- 				<div> -->
<!-- 					<input id="btnOpen" class="btn btn-primary" style="float:right;" type="button" onclick="ywrwinOpen();" value="抵押人信息添加"/> -->
<%-- 					<iframe id="ywrframe" name="ywrframe" src="${ctx}/reg/bus/regBusHisHouseYwr/list?YWH=${LSH}&xg=${xg}&H=1" width="100%" height="200" frameborder="no" border="0" marginwidth="0" --%>
<!-- 						 marginheight="0" scrolling="yes" allowtransparency="yes"></iframe>&nbsp; -->
<!-- 				</div> -->
<!-- 			</table> -->
<!-- 		</fieldset> -->
<!-- 		</br> -->
		
		<fieldset>
			<legend>所有(使用)权属信息</legend>
				<table class="table-form">
				<tr>
					<td class="tit">使用权起始时间</td>
					<td>
						<input id="textsyqqssj" name="syqqssj"  type="text" maxlength="20" class="input-medium Wdate"
							value="<fmt:formatDate value="${regBusHisBdcqzsdjxx.syqqssj}" pattern="yyyy-MM-dd"/>"
							onclick="WdatePicker({dateFmt:'yyyy-MM-dd' });"/>
<!-- 							<span class="help-inline"><font color="red">*</font> </span> -->
					</td>
					<td class="tit">使用权结束时间</td>
					<td>
						<input id="textsyqjssj" name="syqjssj"   type="text" maxlength="20" class="input-medium Wdate"
							value="<fmt:formatDate value="${regBusHisBdcqzsdjxx.syqjssj}" pattern="yyyy-MM-dd"/>"
							onclick="WdatePicker({dateFmt:'yyyy-MM-dd' });"/>
					</td>
					<td class="tit">取得价格</td>
					<td>
						<form:input id="qdjgtext" path="qdjg"  htmlEscape="false"  class="input-large number"/>万元
					</td>
				</tr>
				<tr>
					<td class="tit">不动产权证书号:</td>
					<td colspan="3"><form:input path="bdcqzh" id="bdcqzhid"  htmlEscape="false"   class="input-xxlarge"/>
					<span class="help-inline"><font color="red">*</font> </span>
						(包含土地证号)
					</td>
					<td class="tit">证书编号:</td> 
					<td><form:input path="bdcqzbh" id="bdcqzbh" htmlEscape="false" maxlength="12" class="input-large"/>
					</td>
				</tr>
				<tr>
					<td class="tit">使用权面积</td>
					<td>
						<fmt:formatNumber value="${regBusHisBdcqzsdjxx.zdmj}"  pattern="#0.##"  var="formattedNumber"/>
						<form:input id="syqmjtext" path="syqmj" htmlEscape="false" value="${formattedNumber}" class="input-large number"/>
						<span class="help-inline"><font color="red">*</font> </span>
					</td>
					<td class="tit">登记小类</td>
					<td>
						<form:select path="djxl" class="input-large required">
							<form:option value="" label=""/>
<%-- 							<form:options items="${fns:getDictList('reg_bus_djxl')}"  itemLabel="label" itemValue="value" htmlEscape="false"/> --%>
								<form:option value="201"  label="国有建设用地使用权首次登记"/>
								<form:option value="204"  label="宅基地使用权首次登记"/>
								<form:option value="203"  label="集体建设用地使用权首次登记"/>
								<form:option value="202"  label="集体土地所有权首次登记"/>
<%-- 							<form:option value="209"  label="土地抵押权首次登记"/> --%>
						</form:select>
						<span class="help-inline"><font color="red">*</font> </span>
					</td>
				</tr>
				<tr>
				<td class="tit">原不动产单元号</td>
				<td  >
					<form:input path="bz" htmlEscape="false"  maxlength="300" class="input-xlarge "/>
				<td class="tit">附记</td>
					<td colspan="3" >
						<form:input path="fj" htmlEscape="false" maxlength="300" class="input-xxlarge "/>
					</td>
				</tr>
			</table>
		</fieldset>
		</br>
		
		
		<fieldset>
			<legend>已登记业务</legend>
			<table class="table-form">
				<tr>
					<td class="tit">业务号:</td>
					<td><form:input path="ywh" id="ywhtext" readOnly="true" htmlEscape="false" maxlength="20" value="${YWHIS}" class="input-large "/></td>
					<td class="tit">不动产单元号:</td>
					<td colspan="3"><form:input  id="bdcdyhid" path="bdcdyh"   readOnly="true"  htmlEscape="false" maxlength="28" class="input-xxlarge required"/>
<!-- 					<span class="help-inline"><font color="red">*</font> </span>(不动产单元号为宗地代码+W00000000共28位) -->
					</td>
				</tr>
				<tr>
					<td class="tit">登记大类</td>
					<td>
						<form:select path="djlx" class="input-medium required">
							<form:option value="" label=""/>
<%-- 							<form:options items="${fns:getDictList('reg_bus_djlx')}" itemLabel="label" itemValue="value" htmlEscape="false"/> --%>
								<form:option value="100"  label="首次登记"/>
						</form:select>
						<span class="help-inline"><font color="red">*</font> </span>
					</td>
					<td class="tit">项目名称:</td>
					<td>
						<form:input path="xmmc" id="xmmctext" htmlEscape="false" maxlength="20"  class="input-large "/>
					</td>
				</tr>
				<tr>
					<td class="tit">登记原因</td>
					<td colspan="3">
						<form:textarea path="djyy" htmlEscape="false" rows="2" maxlength="500" class="input-xxlarge required"/><span class="help-inline"><font color="red">*</font> </span>
					</td>
					<td class="tit">区县代码</td>
					<td>
						<form:select path="qxdm"  id="qxdmtext" class="input-large ">
							<form:option value="" label=""/>
							<form:options items="${fns:getDictList('reg_bus_xq')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
						</form:select>
					</td>
				</tr>
				<tr>
					<td class="tit">登记机构</td>
					<td>
						<form:input path="djjg" id="djjgtext" htmlEscape="false" maxlength="200" class="input-large required"/>
						<span class="help-inline"><font color="red">*</font> </span>
					</td>
					<td class="tit">登簿人</td>
					<td>
						<form:input path="dbr" htmlEscape="false"  maxlength="50" class="input-large required"/>
						<span class="help-inline"><font color="red">*</font> </span>
					</td>
					<td class="tit">登记时间</td>
					<td>
						<input name="djsj" type="text" maxlength="20" class="input-medium Wdate required"
							value="<fmt:formatDate value="${regBusHisBdcqzsdjxx.djsj}" pattern="yyyy-MM-dd"/>"
							onclick="WdatePicker({dateFmt:'yyyy-MM-dd' });"/>
							<span class="help-inline"><font color="red">*</font> </span>
					</td>
				</tr>
				<tr>
					<td class="tit">价款:</td>
					<td><form:input path="hbjk" id="qdjgtext" htmlEscape="false" class="input-large  number"/>
					<td class="tit">出让合同号(划拨决定书):</td>
					<td><form:input path="hbhth" htmlEscape="false" maxlength="12" class="input-large "/></td>
					<td class="tit">批文号:</td>
					<td><form:input path="pwh" htmlEscape="false" maxlength="60" class="input-large "/>
					</td>
				</tr>
				<tr>
					<td class="tit">发证时间:</td>
					<td><input id="textfzsj" path="fzsj" name="fzsj" type="text" maxlength="20" class="input-medium Wdate required"
							value="${regBusHisBdcqzsdjxx.fzsj}"
							onclick="WdatePicker({dateFmt:'yyyy-MM-dd' });"/>
							<span class="help-inline"><font color="red">*</font> </span>
					</td>
					<td class="tit">终止时间:</td>
					<td>
						<input name="zzsj" type="text" maxlength="20" class="input-medium Wdate"
							value="${regBusHisBdcqzsdjxx.zzsj}"
							onclick="WdatePicker({dateFmt:'yyyy-MM-dd' });"/>
					</td>
				</tr>
			</table>
		</fieldset>

		<div class="form-actions">
			<c:if test="${empty VIEWS}">
					<shiro:hasPermission name="reg.bus:regBusHisBdcqzsdjxx:edit"><input id="btnSubmit" class="btn btn-primary" type="button"  onclick="getUrl()" value="保 存"/>&nbsp;</shiro:hasPermission>
			</c:if>
			<input id="btnCancel" class="btn" type="button" value="返 回" onClick="window.close();"/>
		</div>
	</form:form>
</body>
</html>