<%@page import="com.sino.rrs.entity.RcRescueVehiclePO"%>
<%@ page contentType="text/html" pageEncoding="utf-8"%>
<%@ page import="java.util.*"%>
<html>
<head>
<title>订单任务详情</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">    
<link rel="stylesheet" type="text/css" href="http://hb.qq.com/chenz/m_join/css/wx.css">
<link rel="stylesheet" type="text/css" href="http://jiaojing.qq.com/css/mobiscroll.multiple.min1.css">
<link rel="stylesheet" href="/SinoGYS/css/currentOrder.css" type="text/css"/>
<link rel="stylesheet" href="/SinoGYS/weixincss/weui.min.css">
<link rel="stylesheet" href="/SinoGYS/weixincss/jquery-weui.css">
<link rel="stylesheet" href="/SinoGYS/weixincss/demos.css">
<script src="/SinoGYS/js/jquery-1.7.2.js" type="text/javascript"></script>
<script src="/SinoGYS/js/jquery-2.1.4.js"></script>
<script src="/SinoGYS/js/jquery-weui.js"></script>
<script type="text/javascript" src="/SinoGYS/layer/skin/layer.css"></script>
<script type="text/javascript" src="/SinoGYS/layer/layer.js"></script>
</head>
<script type="text/javascript">
function confirm(){
	window.history.go(-1);
}
</script>
<%
	String orderCode=request.getParameter("orderCode");
	String serviceName=request.getParameter("serviceName");
	Map<String,Object> data = (Map<String,Object>) request.getAttribute("detailPO");
%>

<body leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0" background="#f2f3f5">
		<div class = "content3" style="margin-top:10px;height: 100%;margin-bottom: 20%;">
			 <header class='demos-header' style="padding: 20px 0;">
      			<h1 class="demos-title" style="font-size: 36px;margin-top: -15px;">历史订单详情</h1>
    		</header>
    		<div class="weui_cell">
				<div class="weui_cell_bd weui_cell_primary" style="flex:none;">订单编号:</div>
				<div class="weui_cell_ft">
					<p style="margin-left: 20px;"><%=orderCode%></p>
				</div>
			</div>
			<div class="weui_cell">
				<div class="weui_cell_bd weui_cell_primary" style="flex:none;">服务类型:</div>
				<div class="weui_cell_ft">
					<p style="margin-left: 20px;"><%=serviceName%></p>
				</div>
			</div>
			<div class="weui_cell">
				<div class="weui_cell_bd weui_cell_primary" style="flex:none;">车牌号码:</div>
				<div class="weui_cell_ft">
					<p style="margin-left: 20px;"><%=data.get("license")%></p>
				</div>
			</div>
			
			<div class="weui_cell">
				<div class="weui_cell_bd weui_cell_primary" style="flex:none;">车主姓名:</div>
				<div class="weui_cell_ft">
					<p style="margin-left: 20px;"><%=data.get("USER_NAME")%></p>
				</div>
			</div>
			
			<div class="weui_cell">
			   <div class="weui_cell_bd weui_cell_primary" style="flex:none;">车主电话:</div>
				<div class="weui_cell_ft">
					<p style="margin-left: 20px;"><%=data.get("USER_PHONE")%></p>
				</div>
			</div>
			<div class="weui_cell">
				<div class="weui_cell_bd weui_cell_primary" style="flex:none;">救援地点:</div>
				<div class="weui_cell_ft">
					<table style="margin-left: 20px;color: #888;"><tr><td><%=data.get("address")%></td></tr></table>
				</div>
			</div>
			<%if(data.get("dest_address")==null||data.get("dest_address").toString().equals("")){ %>
			<% } else {%>
				<div class="weui_cell" id="a">
				<div class="weui_cell_bd weui_cell_primary" style="flex:none;">目的地点:</div>
				<div class="weui_cell_ft">
					<table style="margin-left: 20px;color: #888;"><tr><td><%=data.get("dest_address")%></td></tr></table>
				</div>
			</div>
				<%} %>
			<div class="weui_cell">
				<div class="weui_cell_bd weui_cell_primary" style="flex:none;">救援状态:</div>
				<div class="weui_cell_ft">
				  <%if(Integer.parseInt(data.get("flag").toString())==1){ %>
	          		<p style="margin-left: 20px;"><%="救援公司放弃救援"%></p>
	          	  <%}else{ %>
	          	  	<p style="margin-left: 20px;"><%="完成救援服务"%></p>
	          	  <%} %>
				</div>
			</div>
		</div>
		<div class="weui_btn_area" style="position: fixed;bottom: 0px;width: 90%;margin: 0 5% 18px 5%;">
    		<a href="javascript:;" class="weui_btn weui_btn_primary"  onclick="confirm()">返回</a>
    	</div>
		
</body>
</html>
