Bläddra i källkod

git-svn-id: https://192.168.57.71/svn/jsgkj@1782 931142cf-59ea-a443-aa0e-51397b428577

ld_xuhx 8 år sedan
förälder
incheckning
cb1bbc4841

+ 181 - 177
gkjsjy/trunk/WebContent/WEB-INF/pages/gkjygl/gkjyr/xkzxx/editxkz.jsp

@@ -4,192 +4,196 @@
 <!DOCTYPE html>
 <html lang="en">
 <head>
-    <meta charset="utf-8">
-    <title>江苏省港口建设与经营管理信息系统</title>
-    <meta name="viewport" content="width=device-width, initial-scale=1">
-	<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
-    <%@ include file="../../../common.jsp"%>
-	<script type="text/javascript" src="${app }/static/biz/js/gkjygl/gkjyr/xkzxx/xkzxxdetail.js"></script>
+<meta charset="utf-8">
+<title>江苏省港口建设与经营管理信息系统</title>
+<meta name="viewport" content="width=device-width, initial-scale=1">
+<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
+<%@ include file="../../../common.jsp"%>
+<script type="text/javascript"
+	src="${app }/static/biz/js/gkjygl/gkjyr/xkzxx/xkzxxdetail.js"></script>
 </head>
 <style type="text/css">
-	 .dvs {
-	 	display: none;
-	 	position:absolute;
-	    width: 90%;
-	    height: 90%;
-	 	z-index:100;
-	 }
-	 .dvs img{
-	 	display: block;
-	    width: 90%;
-	    height: 90%;
-	 }
-	 .dvs span img{
-	 	display: block;
-	 	margin-top: 15%;
-	    margin-left: 30%;
-	    width: 150px;
-	    height: 150px;
-	 }
-	 #overlay {
-	    background: #000;
-	    filter: alpha(opacity=70); /* IE的透明度 */
-	    opacity: 0.7;  /* 透明度 */
-	    position: fixed;
-	    top: 0px;
-	    left: 0px;
-	    width: 100%;
-	    height: 100%;
-	    z-index: 50; /* 此处的图层要大于页面 */
-	    display:none;
+.dvs {
+	display: none;
+	position: absolute;
+	width: 90%;
+	height: 90%;
+	z-index: 100;
+}
+
+.dvs img {
+	display: block;
+	width: 90%;
+	height: 90%;
+}
+
+.dvs span img {
+	display: block;
+	margin-top: 15%;
+	margin-left: 30%;
+	width: 150px;
+	height: 150px;
+}
+
+#overlay {
+	background: #000;
+	filter: alpha(opacity = 70); /* IE的透明度 */
+	opacity: 0.7; /* 透明度 */
+	position: fixed;
+	top: 0px;
+	left: 0px;
+	width: 100%;
+	height: 100%;
+	z-index: 50; /* 此处的图层要大于页面 */
+	display: none;
+}
+</style>
+<script type="text/javascript">
+	$(document).ready(function() {
+		xkzxx.detail.path = '${path}';
+		iFrameHeightIframe('${menuid}');//自适应高度
+	});
+	function show0() {
+		//alert(this.value);
+		$dp.$('yxqq1').value = this.value;
+	}
+	function show1() {
+		//alert(this.value);
+		$dp.$('yxqz1').value = this.value;
+		//alert($dp.$('yxqz1').value);		 	
 	}
-	</style>
-	<script type="text/javascript">
-		$(document).ready(function () {
-			xkzxx.detail.path='${path}';
-			iFrameHeightIframe('${menuid}');//自适应高度
-		});
-		function show0(){
-			//alert(this.value);
-			$dp.$('yxqq1').value = this.value;
-		}
-		function show1(){
-			//alert(this.value);
-			$dp.$('yxqz1').value = this.value;
-			//alert($dp.$('yxqz1').value);		 	
-		}
-		function show2(){
-			$dp.$('fzrq1').value = this.value;
-		}
-	</script>
+	function show2() {
+		$dp.$('fzrq1').value = this.value;
+	}
+</script>
 <body>
-<div id="overlay"></div>
-	<div class="box" >
-		<div class="box-content" >
+	<div id="overlay"></div>
+	<div class="box">
+		<div class="box-content">
 			<div class="apply_fill">
-			<form  id="addform" method="post"  enctype="multipart/form-data">
-			<input type="hidden" id="zmpicid" name="zmpicid" value="${record.zmpicid }"/>
-			<input type="hidden" id="fmpicid" name="fmpicid" value="${record.fmpicid }"/>
-			<input type="hidden" id="opId" name="opId" value="${opId }">
-			 <input type="hidden" name="id" value="${record.id }">	
-				<table class="apply" cellpadding="0" cellspacing="0">
-					<tr>
-						<th><span class="needwrite">*</span>公司名称:&nbsp;</th>
-						<td colspan="3">
-                        	<input type="text" class="form-control"  value="${record.gkjyrzw}">
-                        	<input type="hidden" class="form-control" id="gkjyr" name="gkjyr"  value="${record.gkjyr}">
-                        </td>
-                        
-					</tr>
-					<tr>
-					<th><span class="needwrite">*</span>法定代表人:&nbsp;</th>
-						<td colspan="3">
-							<input type="text" class="form-control" id="fddbr"  name="fddbr"   value="${record.fddbr}">
-						</td>
-					</tr>
-					<tr>
-					<th><span class="needwrite">*</span>办公地址:&nbsp;</th>
-						<td colspan="3">
-							<input type="text" class="form-control" id="dz"  value="${record.dz}"   name="dz">
-						</td>
-					</tr>
-					<tr >
-						<th><span class="needwrite">*</span>经营地域:&nbsp;</th>
-						<td colspan="3">
-							<input type="text" class="form-control" id="cq" name="cq"   value="${record.cq}">
-						</td>
-					</tr>
-					<tr>
-						<th><span class="needwrite">*</span>经营范围:&nbsp;</th>
-						<td colspan="3">
-							<input type="text" class="form-control" id="zyqyfw" name="zyqyfw"   value="${record.zyqyfw}">
-						</td>
-					</tr>
-					<tr>
-					<th><span class="needwrite">*</span>许可证编号:&nbsp;</th>
-					<td >
-						<input type="text" class="form-control" id="gkjyxkzh" name="gkjyxkzh"  value="${record.gkjyxkzh}">
-					</td>
-					<th><span class="needwrite">*</span>发证机关:&nbsp;</th>
-					<td >
-						<input type="text" class="form-control" id="fzjg" name="fzjg" value="${record.fzjg}">
-					</td>
-					</tr>
-					<tr>
-						<th><span class="needwrite">*</span>有效期起:&nbsp;</th>
-						<td >
-							<input class="Wdate" type="text" onFocus="WdatePicker({lang:'zh-cn',skin:'default',dateFmt:'yyyy-MM-dd'})" name="yxqq"
-							value="${record.yxqqfmt}">
-						</td>
-						<th><span class="needwrite">*</span>有效期至:&nbsp;</th>
-						<td >
-							<input class="Wdate" type="text" onFocus="WdatePicker({lang:'zh-cn',skin:'default',dateFmt:'yyyy-MM-dd'})" name="yxqz"
-							value="${record.yxqzfmt}">
-						</td>
-				<tr>
-						<th><span class="needwrite">*</span>发证日期:&nbsp;</th>
-						<td>
-							<input class="Wdate" type="text" onFocus="WdatePicker({lang:'zh-cn',skin:'default',dateFmt:'yyyy-MM-dd'})" name="fzrq"
-							value="${record.fzrqfmt}">
-						</td>
-					</tr>
-					<tr>
-						<th><span class="needwrite">*</span>许可证电子扫描件(正面):&nbsp;</th>
-						<td>
-						 <c:if test="${record.zmpicid =='' }">
-						 	<div >
-							 <a href="#" id="fzzm"  class="file"><input type="file" name="zmpic" id="zmpic"   onchange="xkzxx.detail.saveFile1()">上传扫描件正面</a>
-							 </div>
-							  <div id="fjxq1">
-							  </div>
-						</c:if>
-						 <c:if test="${record.zmpicid !='' }">
-						 <div >
-							 <a href="#" id="fzzm" style="display: none" class="file"><input type="file" name="zmpic" id="zmpic"   onchange="xkzxx.detail.saveFile1()">上传扫描件正面</a>
-							 </div>
-							 <div id="fjxq1">
-						      
-	                <span id='fzmc1'><a class='main_title' href='${app }/accessory/download?id=${record.zmpicid}'>${record.zmpicname }</a></span>
-	                <a class="main_title" onclick="xkzxx.detail.delFj('${record.zmpicid}','1')" class='btn btn-default btn-xs'><i class='glyphicon glyphicon-trash'></i>删除</a>
-	                 </div>
-						</c:if>
-			            </td>
-						<th>许可证电子扫描件(反面):&nbsp;</th>
-						<td >
-						 <c:if test="${record.fmpicid !='' }">
-							<div>
-							 <a href="#" id="fzfm"  style="display: none"  class="file"><input type="file" name="fmpic" id="fmpic"   onchange="xkzxx.detail.saveFile2()">上传扫描件反面</a>
-							 </div>
-							  <div id="fjxq2">
-							    <span id='fzmc2'><a class='main_title' href='${app }/accessory/download?id=${record.fmpicid}'>${record.fmpicname }</a></span>
-	                			<a class="main_title" onclick="xkzxx.detail.delFj('${record.fmpicid}','2')" class='btn btn-default btn-xs'><i class='glyphicon glyphicon-trash'></i>删除</a>
-						     </div>
-						   </c:if>
-						    <c:if test="${record.fmpicid =='' }">
-						    
-						    <div>
-							 <a href="#" id="fzfm"  class="file"><input type="file" name="fmpic" id="fmpic"   onchange="xkzxx.detail.saveFile2()">上传扫描件反面</a>
-							 </div>
-							  <div id="fjxq2">
-							   </div>
-						     </c:if>
-						</td>
-					</tr>
-				</table>
+				<form id="addform" method="post" enctype="multipart/form-data">
+					<input type="hidden" id="zmpicid" name="zmpicid"
+						value="${record.zmpicid }" /> <input type="hidden" id="fmpicid"
+						name="fmpicid" value="${record.fmpicid }" /> <input type="hidden"
+						id="opId" name="opId" value="${opId }"> <input
+						type="hidden" name="id" value="${record.id }">
+					<table class="apply" cellpadding="0" cellspacing="0">
+						<tr>
+							<th><span class="needwrite">*</span>公司名称:&nbsp;</th>
+							<td colspan="3"><input type="text" class="form-control"
+								value="${record.gkjyrzw}"> <input type="hidden"
+								class="form-control" id="gkjyr" name="gkjyr"
+								value="${record.gkjyr}"></td>
+
+						</tr>
+						<tr>
+							<th><span class="needwrite">*</span>法定代表人:&nbsp;</th>
+							<td colspan="3"><input type="text" class="form-control"
+								id="fddbr" name="fddbr" value="${record.fddbr}"></td>
+						</tr>
+						<tr>
+							<th><span class="needwrite">*</span>办公地址:&nbsp;</th>
+							<td colspan="3"><input type="text" class="form-control"
+								id="dz" value="${record.dz}" name="dz"></td>
+						</tr>
+						<tr>
+							<th><span class="needwrite">*</span>经营地域:&nbsp;</th>
+							<td colspan="3"><input type="text" class="form-control"
+								id="cq" name="cq" value="${record.cq}"></td>
+						</tr>
+						<tr>
+							<th><span class="needwrite">*</span>经营范围:&nbsp;</th>
+							<td colspan="3"><input type="text" class="form-control"
+								id="zyqyfw" name="zyqyfw" value="${record.zyqyfw}"></td>
+						</tr>
+						<tr>
+							<th><span class="needwrite">*</span>许可证编号:&nbsp;</th>
+							<td><input type="text" class="form-control" id="gkjyxkzh"
+								name="gkjyxkzh" value="${record.gkjyxkzh}"></td>
+							<th><span class="needwrite">*</span>发证机关:&nbsp;</th>
+							<td><input type="text" class="form-control" id="fzjg"
+								name="fzjg" value="${record.fzjg}"></td>
+						</tr>
+						<tr>
+							<th><span class="needwrite">*</span>有效期起:&nbsp;</th>
+							<td><input class="Wdate" type="text"
+								onFocus="WdatePicker({lang:'zh-cn',skin:'default',dateFmt:'yyyy-MM-dd'})"
+								name="yxqq" value="${record.yxqqfmt}"></td>
+							<th><span class="needwrite">*</span>有效期至:&nbsp;</th>
+							<td><input class="Wdate" type="text"
+								onFocus="WdatePicker({lang:'zh-cn',skin:'default',dateFmt:'yyyy-MM-dd'})"
+								name="yxqz" value="${record.yxqzfmt}"></td>
+						<tr>
+							<th><span class="needwrite">*</span>发证日期:&nbsp;</th>
+							<td><input class="Wdate" type="text"
+								onFocus="WdatePicker({lang:'zh-cn',skin:'default',dateFmt:'yyyy-MM-dd'})"
+								name="fzrq" value="${record.fzrqfmt}"></td>
+						</tr>
+						<tr>
+							<th><span class="needwrite">*</span>许可证电子扫描件(正面):&nbsp;</th>
+							<td><c:if test="${record.zmpicid =='' }">
+									<div>
+										<a href="#" id="fzzm" class="file"><input type="file"
+											name="zmpic" id="zmpic" onchange="xkzxx.detail.saveFile1()">上传扫描件正面</a>
+									</div>
+									<div id="fjxq1"></div>
+								</c:if> <c:if test="${record.zmpicid !='' }">
+									<div>
+										<a href="#" id="fzzm" style="display: none" class="file"><input
+											type="file" name="zmpic" id="zmpic"
+											onchange="xkzxx.detail.saveFile1()">上传扫描件正面</a>
+									</div>
+									<div id="fjxq1">
+
+										<span id='fzmc1'><a class='main_title'
+											href='${app }/accessory/download?id=${record.zmpicid}'>${record.zmpicname }</a></span>
+										<a class="main_title"
+											onclick="xkzxx.detail.delFj('${record.zmpicid}','1')"
+											class='btn btn-default btn-xs'><i
+											class='glyphicon glyphicon-trash'></i>删除</a>
+									</div>
+								</c:if></td>
+							<th>许可证电子扫描件(反面):&nbsp;</th>
+							<td><c:if test="${record.fmpicid !='' }">
+									<div>
+										<a href="#" id="fzfm" style="display: none" class="file"><input
+											type="file" name="fmpic" id="fmpic"
+											onchange="xkzxx.detail.saveFile2()">上传扫描件反面</a>
+									</div>
+									<div id="fjxq2">
+										<span id='fzmc2'><a class='main_title'
+											href='${app }/accessory/download?id=${record.fmpicid}'>${record.fmpicname }</a></span>
+										<a class="main_title"
+											onclick="xkzxx.detail.delFj('${record.fmpicid}','2')"
+											class='btn btn-default btn-xs'><i
+											class='glyphicon glyphicon-trash'></i>删除</a>
+									</div>
+								</c:if> <c:if test="${record.fmpicid =='' }">
+
+									<div>
+										<a href="#" id="fzfm" class="file"><input type="file"
+											name="fmpic" id="fmpic" onchange="xkzxx.detail.saveFile2()">上传扫描件反面</a>
+									</div>
+									<div id="fjxq2"></div>
+								</c:if></td>
+						</tr>
+					</table>
 				</form>
-				<div  id="buttons">
-			<!-- 	<a class="btn btn-default btn-sm" href="#" onclick="xkzxx.detail.save()">
+				<div id="buttons">
+					<!-- 	<a class="btn btn-default btn-sm" href="#" onclick="xkzxx.detail.save()">
 			   		<i class="glyphicon glyphicon-floppy-disk"></i>保存
 			   	</a> -->
-			   	<c:if test="${opId != null  }">
-			   	<a class="btn btn-default btn-sm" href="#" onclick="xkzxx.detail.saveFzxkz()">
-			   		<i class="glyphicon glyphicon-th-list"></i>发证
-			   	</a>
-			   	</c:if>
-					<a class="btn btn-default btn-sm" href="#"  onclick="xkzxx.detail.back()">
-						<i class="glyphicon glyphicon-arrow-left"></i>返回
+					<c:if test="${opId != null  }">
+						<a class="btn btn-default btn-sm" href="#"
+							onclick="xkzxx.detail.saveFzxkz()"> <i
+							class="glyphicon glyphicon-th-list"></i>发证
+						</a>
+					</c:if>
+					<a class="btn btn-default btn-sm" href="#"
+						onclick="xkzxx.detail.back()"> <i
+						class="glyphicon glyphicon-arrow-left"></i>返回
 					</a>
-         		</div>
+				</div>
 			</div>
 		</div>
 	</div>

+ 9 - 2
gkjsjy/trunk/WebContent/static/biz/js/gkjygl/gkjyr/xkzxx/xkzxxdetail.js

@@ -301,7 +301,7 @@ xkzxx.detail.saveFile1 = function(){
 //	 var i=$("#flag").val();
 	var picFormat = $('#zmpic').val();
 	picFormat = picFormat.substring(picFormat.lastIndexOf(".")+1,picFormat.length);
-	if(picFormat == "png" || picFormat == "jpg" || picFormat == "jpeg"){
+	if(picFormat == "png" || picFormat == "jpg" || picFormat == "jpeg" || picFormat == "PNG" || picFormat == "JPG" || picFormat == "JPEG"){
 		 $('#addform').form('submit', {
 		        url : $.app + '/xkzxx/saveFz',
 		        success : function(data, status) {
@@ -336,6 +336,9 @@ xkzxx.detail.saveFile1 = function(){
 		        }
 		    });
 	}else{
+		var file = $('#zmpic');
+        file.after(file.clone().val(""));
+        file.remove();
 		ts("请上传格式为'png'或者'jpg'或者'jpeg'格式的图片",$('#zmpic'));
 	}
 	
@@ -347,7 +350,7 @@ xkzxx.detail.saveFile2 = function(){
 //	 var i=$("#flag").val();
 	var picFormat = $('#fmpic').val();
 	picFormat = picFormat.substring(picFormat.lastIndexOf(".")+1,picFormat.length);
-	if(picFormat == "png" || picFormat == "jpg" || picFormat == "jpeg"){
+	if(picFormat == "png" || picFormat == "jpg" || picFormat == "jpeg" || picFormat == "PNG" || picFormat == "JPG" || picFormat == "JPEG"){
 		$('#addform').form('submit', {
 	        url : $.app + '/xkzxx/saveFz',
 	        success : function(data, status) {
@@ -384,6 +387,10 @@ xkzxx.detail.saveFile2 = function(){
 	        }
 	    });
 	}else{
+		 var file = $('#fmpic');
+         
+         file.after(file.clone().val(""));
+         file.remove();
 		ts("请上传格式为'png'或者'jpg'或者'jpeg'格式的图片",$('#fmpic'));
 	}