<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix ="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  	<script type="text/javascript" src="<%=path%>/gpsonline/js/calendar/My97DatePicker/WdatePicker.js"></script>
  	<style>
  		#vehicleDetailedInfoForm input,select{width:100px;}
  		#vehicleDetailedInfoForm textarea{width: 365px;height: 50px;}
  		#vehicleDetailedInfoForm td span,label{padding-left: 10px;height: 25px;}
  		#vehicleDetailedInfoForm tr{line-height:30px;}
  	</style> 	
  </head>
  <body>	
			<div class="top"></div>
			<div class="center"  style="width: 550px;">
		  		<h3 id="dragvehicleDetailedInfoPanel">
		        	<a href="javascript:;" title="关闭" class="message_close" id="closevehicleDetailedInfoWin"></a>
		        	<span>车辆详细信息</span>
		        </h3>
		        <div class="popWinContainerPanel">
		        	<ul><li style="text-align:center;"><span id="vehicleDetailedInfotMsg" style="color:red;">&nbsp;</span></li></ul>
		        	<form id="vehicleDetailedInfoForm" action="<%=path %>/manager/vechileAction_vehicleDetailedInfoUpdate.action" method="POST" enctype="multipart/form-data">
			        	<table width="100%" border="0" style="line-height:35px;">
			        		<tr>
			        			<td>
			        				<span>车牌号码：</span>
			        			</td>
			        			<td>	
			        				<input name="vehicleDetailedInfo.vehcode" value="${vehicleName}" disabled="disabled"></input>				        			        				
			        			</td>
			        			<td rowspan="4" colspan="2">
			        				<div style="width: 100%;display: inline-block;text-align: center;">	
			        					<img src="http://vip4.exlive.cn/Jhfz/imageUpload/${ empty vehicle.image ? 'vhc.jpg' : vehicle.image}?<%=new Date().getTime() %>" style="width: 120px;height: 140px;"></img>		        			        				
			        				</div>
			        			</td>
			        				        			
			        		</tr>
			        		<tr>
			        			<td>
			        				<span>生产厂家：</span>
			        			</td>
			        			<td>
			        				<input name="vehicleDetailedInfo.producer" value="${vehicle.producer}"></input>				        			        				
			        			</td>
			        						        			
			        		</tr>
			        		<tr>
			        			<td>
			        				<span>营运证号：</span>
			        			</td>
			        			<td>	
			        				<input name="vehicleDetailedInfo.opLicense" value="${vehicle.opLicense}"></input>
			        			</td>
			        						        			
			        		</tr>
			        		
			        		<tr>
			        			<td>
			        				<span>厂牌号码：</span>
			        			</td>
			        			<td>	
			        				<input name="vehicleDetailedInfo.vehBrand" value="${vehicle.vehBrand}"></input>				        			        				
			        			</td>			        			        			
			        		</tr>
			        		<tr>
			        			<td>
			        				<span>车辆类型：</span>
			        			</td>
			        			<td>
			        				<select name="vehicleDetailedInfo.vehtype" disabled="disabled">
			        					<s:iterator id="vehicleType" value="#request.dictionary.zidian.vehicleType.topics">
			        						<s:if test="%{#vehicleType.id==#request.vehicle.vehtype}">			        						
			        							<option value="<s:property value="#vehicleType.id"/>" selected="selected"><s:property value="#vehicleType.use"/></option>
			        						</s:if>
			        						<s:else>
			        							<option value="<s:property value="#vehicleType.id"/>"><s:property value="#vehicleType.use"/></option>
			        						</s:else>
			        						
			        					</s:iterator>
			        				</select>				        			        				
			        			</td>
			        			<td>
			        				<span>车辆图标：</span>
			        			</td>
			        			<td>
			        				<input name="fileForm.uploadFile" type="file" accept="image/*" title="选择车辆图标" />
			        			</td>						        			
			        		</tr>
			        		<tr>			        			
			        			<td>
			        				<span>油箱容积：</span>
			        			</td>
			        			<td>	
			        				<input name="vehicleDetailedInfo.capacity" value="${vehicle.capacity}" onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}" onafterpaste="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}" onfocus="this.value='';"></input>升				        			        				
			        			</td>	
			        			<td>
			        				<span>百公里油耗：</span>
			        			</td>
			        			<td>	
			        				<input name="vehicleDetailedInfo.hkOil" value="${vehicle.hkOil}" onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}" onafterpaste="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}" onfocus="this.value='';"></input>升				        			        				
			        			</td>			        			
			        		</tr>	
			        		
			        		<tr>
			        			<td>
			        				<span>车辆颜色：</span>
			        			</td>
			        			<td>	
			        				<select name="vehicleDetailedInfo.vehiColor"  disabled="disabled">
			        					<s:iterator id="color" value="#request.dictionary.zidian.color.topics">
			        						<s:if test="%{#color.id==#request.vehicle.vehiColor}">			        						
			        							<option value="<s:property value="#color.id"/>" selected="selected"><s:property value="#color.value"/></option>
			        						</s:if>
			        						<s:else>
			        							<option value="<s:property value="#color.id"/>"><s:property value="#color.value"/></option>
			        						</s:else>
			        						
			        					</s:iterator>
			        				</select>						        			        				
			        			</td>
			        			<td>
			        				<span>发动机号：</span>
			        			</td>
			        			<td>	
			        				<input name="vehicleDetailedInfo.engineCode" value="${vehicle.engineCode}"></input>				        			        				
			        			</td>			        			
			        		</tr>
			        		
			        		<tr>
			        			<td>
			        				<span>单程运距：</span>
			        			</td>
			        			<td>	
			        				<input name="vehicleDetailedInfo.singleDistace" value="${vehicle.singleDistace}" onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}" onafterpaste="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}" onfocus="this.value='';"></input>
			        			</td>	
			        			<td>
			        				<span>货品种类：</span>
			        			</td>
			        			<td>	
			        				<select name="vehicleDetailedInfo.cargoType">
			        					<s:iterator id="hpzl" value="#request.dictionary.zidian.hpzl.topics">
			        						<s:if test="%{#hpzl.id==#request.vehicle.cargoType}">			        						
			        							<option value="<s:property value="#hpzl.id"/>" selected="selected"><s:property value="#hpzl.name"/></option>
			        						</s:if>
			        						<s:else>
			        							<option value="<s:property value="#hpzl.id"/>"><s:property value="#hpzl.name"/></option>
			        						</s:else>
			        						
			        					</s:iterator>
			        				</select>		
			        			</td>	        			
			        		</tr>	
			        		<tr>			        			
			        			<td>	
			        				<span>所属企业名称:</span>			        			        				
			        			</td>
			        			<td >	
			        				<input name="vehicleDetailedInfo.companyname" value="${vehicle.companyname}"></input>
			        			</td>
			        			<td>
			        				<span>车辆技术登记有效期：</span>
			        			</td>
			        			<td>	
			        				<input type="text" name="vehicleDetailedInfo.techLevelvalid" value="${vehicle.techLevelvalid}" onkeydown="return false" onkeyup="return false" oncontextmenu="return false"
																	class="Wdate" onclick="WdatePicker({skin:'simple',dateFmt:'yyyy-MM-dd'})" />			        			        				
			        			</td>			        			
			        		</tr>	
			        		<tr>			        			
			        			<td>
			        				<span>道路运输证有效期：</span>
			        			</td>
			        			<td>	
			        				<input type="text" name="vehicleDetailedInfo.roadValid" value="${vehicle.roadValid}" onkeydown="return false" onkeyup="return false" oncontextmenu="return false"
																	class="Wdate" onclick="WdatePicker({skin:'simple',dateFmt:'yyyy-MM-dd'})" />			        			        				
			        			</td>
			        			<td>
			        				<span>车身长度：</span>
			        			</td>
			        			<td>	
			        				<input name="vehicleDetailedInfo.vehLength" value="${vehicle.vehLength}" onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}" onafterpaste="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}" onfocus="this.value='';"></input>米				        			        				
			        			</td>			        						        			
			        		</tr>
			        		<tr>			        			
			        			<td>
			        				<span>车辆容积：</span>
			        			</td>
			        			<td>	
			        				<input name="vehicleDetailedInfo.vehCapacity" value="${vehicle.vehCapacity}" onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}" onafterpaste="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}" onfocus="this.value='';"></input>立方米				        			        				
			        			</td>
			        			<td>
			        				<span>技术等级：</span>
			        			</td>
			        			<td>	
			        				<input name="vehicleDetailedInfo.techLevel" value="${vehicle.techLevel}"></input>				        			        				
			        			</td>			        			
			        		</tr>	
			        		<tr>			        			
			        			<td>
			        				<span>燃油类别：</span>
			        			</td>
			        			<td>	
			        				<select name="vehicleDetailedInfo.fuelType">
			        					<s:iterator id="rylb" value="#request.dictionary.zidian.rylb.topics">
			        						<s:if test="%{#rylb.id==#request.vehicle.fuelType}">			        						
			        							<option value="<s:property value="#rylb.id"/>" selected="selected"><s:property value="#rylb.name"/></option>
			        						</s:if>
			        						<s:else>
			        							<option value="<s:property value="#rylb.id"/>"><s:property value="#rylb.name"/></option>
			        						</s:else>
			        						
			        					</s:iterator>
			        				</select>					        			        				
			        			</td>
			        			<td>
			        				<span>底盘驾号：</span>
			        			</td>
			        			<td>	
			        				<input name="vehicleDetailedInfo.chassisCode" value="${vehicle.chassisCode}"></input>				        			        				
			        			</td>			        			
			        		</tr>	
			        		<tr>			        			
			        			<td>
			        				<span>标定吨/座：</span>
			        			</td>
			        			<td>	
			        				<input name="vehicleDetailedInfo.appointTon" value="${vehicle.appointTon}" onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}" onafterpaste="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}" onfocus="this.value='';"></input>				        			        				
			        			</td>
			        			<td>
			        				<span>日发班次：</span>
			        			</td>
			        			<td>	
			        				<input name="vehicleDetailedInfo.dayN" value="${vehicle.dayN}"></input>				        			        				
			        			</td>			        			
			        		</tr>	
			        		<tr>			        			
			        			<td>
			        				<span>道路运输证号：</span>
			        			</td>
			        			<td>	
			        				<input name="vehicleDetailedInfo.roadLicN" value="${vehicle.roadLicN}"></input>				        			        				
			        			</td>
			        			<td>
			        				<span>车辆保险信息：</span>
			        			</td>
			        			<td>	
			        				<input name="vehicleDetailedInfo.vehInsure" value="${vehicle.vehInsure}"></input>				        			        				
			        			</td>			        			
			        		</tr>						        				        		
			        		<tr>
			        			<td>
			        				<span>途径站点：</span>
			        			</td>
			        			<td colspan="3">	
			        				<textarea name="vehicleDetailedInfo.passspace">${vehicle.passspace}</textarea>				        			        				
			        			</td>			        			
			        		</tr>
			        		<tr>
			        			<td colspan="4" style="text-align: center;">
			        				<input type="hidden" name="vehicleDetailedInfo.id" value="${vehicleId}"/>
			        				<input id="updatevehicleDetailedInfoBtn" type="button" value="提交" onclick="managerIframe.VechileMananger.updateVehicleDetailedInfoWin();" style="width:80px; height:30px;  margin-top:20px;" />					
			        			</td>		        					        			
			        		</tr>						        		
			        	</table>			        							
        			</form>
		        </div>
			 </div>
			<div class="bot"></div>
  </body>
</html>
