<%@ Page CodeFileBaseClass="IlgharCMS.Lib.AdminPageBase" %>
<%@ Register TagPrefix="IlgharUC" TagName="Ime" Src="../../ime.dwt.ascx"%>
<%@ Register TagPrefix="IlgharUC" TagName="LanguageMenu" Src="../../language_menu.dwt.ascx"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- TemplateInfo codeOutsideHTMLIsLocked="true" -->
<ilghar:Get ID="Order" Object="Order" InnerID="Request.QueryString['ID']" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>查看</title>
<link rel="stylesheet" type="text/css" href="<%=CommonPath%>jquery/themes/lightness/all.css" />
<ilghar:Comment><link rel="stylesheet" type="text/css" href="../../S01/CHS/css/common.css" /></ilghar:Comment>
<link rel="stylesheet" href="<%=CssPath%>common.css" />
<ilgharUC:Ime Ime="true" Eot="true" runat="server" />
<style type="text/css">
TD TABLE{background:#FFF}
TD TABLE TH{width:100px}
#DetailTable TH{width:auto;text-align:center}
#DetailTable TD{text-align:center}
</style>
<script type="text/javascript">
var _page = "order_view";
var _lang = "<%=ContentLang%>";
var _webPath = "<%=WebPath%>";
var _imagePath = "<%=ImagePath%>";
var _deliveryFee = "<%=Order[DeliveryFee]%>";
var _weight = <%=Order[Weight]%>;
var _price = <%=Order[Price]%>;
var _lang_expression_has_illegal_char = "配送费用公式中含有非法字符";
var _lang_expression_incorrect = "配送费用公式格式不正确！";
</script>
</head>
<body>
<div class="WhiteHeader">
	<div class="Left"><img src="<%=ImagePath%>close_frame.gif" /></div>
	<div class="Title"><a href="list.aspx?Lang=<%=ContentLang%>">订单列表</a> → <span class="<%=ContentLang%>Font"><%=Order[Number]%></span></div>
	<div class="Right"></div>
</div>
<div class="Block">
	<ul class="TabMenu">
		<li class="Left Selected"></li>
		<li class="Middle Selected">查看</li>
		<li class="Right Selected"></li>
		<li class="Left"></li>
		<li class="Middle"><a href="payment.aspx?Lang=<%=ContentLang%>&amp;ID=<%=Request.QueryString["ID"]%>">收款单</a></li>
		<li class="Right"></li>
		<li class="Left"></li>
		<li class="Middle"><a href="refund.aspx?Lang=<%=ContentLang%>&amp;ID=<%=Request.QueryString["ID"]%>">退款单</a></li>
		<li class="Right"></li>
		<li class="Left"></li>
		<li class="Middle"><a href="delivery.aspx?Lang=<%=ContentLang%>&amp;ID=<%=Request.QueryString["ID"]%>">发货单</a></li>
		<li class="Right"></li>
		<li class="Left"></li>
		<li class="Middle"><a href="return.aspx?Lang=<%=ContentLang%>&amp;ID=<%=Request.QueryString["ID"]%>">退货单</a></li>
		<li class="Right"></li>
		<li class="Left"></li>
		<li class="Middle"><a href="feedback.aspx?Lang=<%=ContentLang%>&amp;ID=<%=Request.QueryString["ID"]%>">反馈</a></li>
		<li class="Right"></li>
	</ul>
	<ul class="Title">
		<li class="Left"></li>
		<li class="Middle"></li>
		<li class="Right"></li>
	</ul>
	<table border="0" cellpadding="4" cellspacing="1">
		<tbody>
			<tr>
				<th>订单号：</th>
				<td><%=Order[Number]%></td>
			</tr>
			<tr>
				<th>订单金额：</th>
				<td><%=Order[Sum]%></td>
			</tr>
			<tr>
				<th>已付金额：</th>
				<td><%=Order[HasPayed]%></td>
			</tr>
			<tr>
				<th>会员：</th>
				<td><%=Order[Member]%></td>
			</tr>
			<tr>
				<th>订单人：</th>
				<td>
					<table border="0" cellpadding="4" cellspacing="1">
						<tr>
							<th>姓名：</th>
							<td><%=Order[OrdererName]%></td>
						</tr>
						<tr>
							<th>电话：</th>
							<td><%=Order[OrdererPhone]%></td>
						</tr>
						<tr>
							<th>手机：</th>
							<td><%=Order[OrdererMobile]%></td>
						</tr>
						<tr>
							<th>Email：</th>
							<td><%=Order[OrdererEmail]%></td>
						</tr>
						<tr>
							<th>QQ：</th>
							<td><%=Order[OrdererQQ]%></td>
						</tr>
						<tr>
							<th>WW：</th>
							<td><%=Order[OrdererQQ]%></td>
						</tr>
						<tr>
							<th>MSN：</th>
							<td><%=Order[OrdererMSN]%></td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<th>收货人：</th>
				<td>
					<table border="0" cellpadding="4" cellspacing="1">
						<tr>
							<th>姓名：</th>
							<td><%=Order[ReceiverName]%></td>
						</tr>
						<tr>
							<th>电话：</th>
							<td><%=Order[ReceiverPhone]%></td>
						</tr>
						<tr>
							<th>手机：</th>
							<td><%=Order[ReceiverMobile]%></td>
						</tr>
						<tr>
							<th>地址：</th>
							<td><%=Order[ReceiverAddress]%></td>
						</tr>
						<tr>
							<th>邮编：</th>
							<td><%=Order[ReceiverZip]%></td>
						</tr>
						<tr>
							<th>Email：</th>
							<td><%=Order[ReceiverEmail]%></td>
						</tr>
						<tr>
							<th>QQ：</th>
							<td><%=Order[ReceiverQQ]%></td>
						</tr>
						<tr>
							<th>WW：</th>
							<td><%=Order[ReceiverWW]%></td>
						</tr>
						<tr>
							<th>MSN：</th>
							<td><%=Order[ReceiverMSN]%></td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<th>配送：</th>
				<td>
					<table border="0" cellpadding="4" cellspacing="1">
						<tr>
							<th>地区：</th>
							<td><%=Order[RegionName]%></td>
						</tr>
						<tr>
							<th>方式：</th>
							<td><%=Order[DeliveryName]%></td>
						</tr>
						<tr>
							<th>费用：</th>
							<td id="DeliveryFeeTD">0</td>
						</tr>
						<tr>
							<th>保价：</th>
							<td>
								<%If Convert.ToBoolean(Order[DeliveryProtect])%>
									是
								<%Else%>
									否
								<%EndIf%>
							</td>
						</tr>
						<tr>
							<th>保价百分率：</th>
							<td><%=Order[DeliveryProtectRate]%>%</td>
						</tr>
						<tr>
							<th>最低保价金额：</th>
							<td><%=Order[DeliveryProtectMin]%></td>
						</tr>
						<tr>
							<th>时间：</th>
							<td><%=Convert.ToDateTime(Order[DeliveryTime]).ToString("yyyy-MM-dd")%></td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<th>支付：</th>
				<td>
					<table border="0" cellpadding="4" cellspacing="1">
						<tr>
							<th>方式：</th>
							<td><%=Order[PaymentName]%></td>
						</tr>
						<tr>
							<th>货币：</th>
							<td><%=Order[Currency]%></td>
						</tr>
						<tr>
							<th>费率：</th>
							<td><%=Order[PaymentRate]%>%</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<th>发票：</th>
				<td>
					<table border="0" cellpadding="4" cellspacing="1">
						<tr>
							<th>是否需要：</th>
							<td>
								<%If Convert.ToBoolean(Order[NeedInvoice])%>
									是
								<%Else%>
									否
								<%EndIf%>
							</td>
						</tr>
						<tr>
							<th>税率：</th>
							<td><%=Order[TaxRate]%>%</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<th>折扣或涨价：</th>
				<td><%=Order[PriceAdjustment]%></td>
			</tr>
			<tr>
				<th>备注：</th>
				<td><%=Order[Memo]%></td>
			</tr>
			<tr>
				<td colspan="2">
					<table id="DetailTable" border="0" cellpadding="4" cellspacing="1">
						<thead>
							<tr>
								<th width="120">货号</th>
								<th>名称</th>
								<th width="50">类型</th>
								<th width="80">重量</th>
								<th width="60">价格</th>
								<th width="60">数量</th>
							</tr>
						</thead>
						<tbody>
							<ilghar:List Object="Order.Detail" Condition="OrderID=Order[ID] and PartID IS NULL">
								<ilghar:Record>
									<tr>
										<td><%=Number%></td>
										<td><%=Name%></td>
										<td>
											<%If String.Equals(Kind, "Physical")%>
												实体
											<%ElseIf String.Equals(Kind, "Card")%>
												虚拟卡
											<%ElseIf String.Equals(Kind, "File")%>
												数字文件
											<%EndIf%>
										</td>
										<td><%=Weight%></td>
										<td><%=Price%></td>
										<td><%=Amount%></td>
									</tr>
									<ilghar:List Object="Order.Detail" Condition="OrderID=Order[ID] and GoodsID=GoodsID and PartID IS NOT NULL">
										<ilghar:Record>
											<tr>
												<td><%=Number%></td>
												<td>&nbsp;&nbsp;&nbsp;&nbsp;+<%=Name%></td>
												<td>
													<%If String.Equals(Kind, "Physical")%>
														实体
													<%ElseIf String.Equals(Kind, "Card")%>
														虚拟卡
													<%ElseIf String.Equals(Kind, "File")%>
														数字文件
													<%EndIf%>
												</td>
												<td><%=Weight%></td>
												<td><%=Price%></td>
												<td><%=Amount%></td>
											</tr>
										</ilghar:Record>
									</ilghar:List>
								</ilghar:Record>
							</ilghar:List>
						</tbody>
					</table>
				</td>
			</tr>
		</tbody>
	</table>
	<div class="Footer"></div>
</div>
<script type="text/javascript" src="<%=CommonPath%>jquery/core.js"></script>
<script type="text/javascript" src="<%=CommonPath%>jquery/ui.js"></script>
<script type="text/javascript" src="<%=CommonPath%>utility.js"></script>
<script type="text/javascript" src="<%=JsPath%>global.js"></script>
<script type="text/javascript" src="<%=JsPath%>shop.js"></script>
</body>
</html>