<%@ Page language="c#" Codebehind="OrderModify.aspx.cs" AutoEventWireup="false" Inherits="wqeshop.Admin.OrderModify" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>OrderModify</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<LINK href="inc/style.css" type="text/css" rel="stylesheet">
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<form id="Form1" method="post" runat="server">
			<TABLE id="Table1" cellSpacing="0" cellPadding="0" width="100%" bgColor="#ffffff" border="0">
				<TBODY>
					<TR>
						<TD vAlign="middle" width="3%"><STRONG><BR>
							</STRONG>
						</TD>
						<TD vAlign="middle" align="center" width="30%"></TD>
						<TD class="body-shoptitle" vAlign="middle" align="center" width="67%">订单号码：<%=order.OrderNo%><br>
							下单日期：<%=order.OrderTime%><%if(order.ShipTime!=""){%><BR>
							送货日期：<%=order.ShipTime%><%}%>
						</TD>
					</TR>
				</TBODY>
			</TABLE>
			<TABLE id="Table2" cellSpacing="0" cellPadding="0" width="100%" bgColor="#ffffff" border="0">
				<TBODY>
					<TR>
						<TD>&nbsp;</TD>
					</TR>
				</TBODY>
			</TABLE>
			<TABLE id="Table3" cellSpacing="0" cellPadding="1" width="100%" bgColor="#ffffff" border="0">
				<TBODY>
					<TR>
						<TD><STRONG>订单信息</STRONG>
							<HR noShade SIZE="1">
						</TD>
					</TR>
				</TBODY>
			</TABLE>
			<TABLE id="Table4" cellSpacing="3" cellPadding="3" width="100%" bgColor="#ffffff" border="0">
				<TBODY>
					<TR>
						<TD style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid"
							align="center" width="64" height="26">序号</TD>
						<TD style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid"
							align="left" width="284" height="26">商品名称<BR>
						</TD>
						<TD style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid"
							align="center" width="99" height="26">数量</TD>
						<TD style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid"
							align="center" width="98" height="26">单价<BR>
						</TD>
						<TD style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid"
							align="center" width="98" height="26">配件价<BR>
						</TD>
						<TD style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid"
							align="center" width="104" height="26">单项小计</TD>
						<td style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid"
							align="center" width="130">是否参与打折</td>
					</TR> <!-- BEGIN row --><asp:repeater id="rptOrderItems" Runat="server">
						<ItemTemplate>
							<TR>
								<TD noWrap align="center" width="64" height="20"><%# DataBinder.Eval(Container.DataItem, "ProductID") %></TD>
								<TD align="left" width="334" height="20"><%# DataBinder.Eval(Container.DataItem, "ProductName") %><br>
									<%# GetItemNames(DataBinder.Eval(Container.DataItem, "OrderProductID").ToString()) %>
								</TD>
								<TD align="center" width="99" height="20"><%# DataBinder.Eval(Container.DataItem, "Quantity") %></TD>
								<TD align="center" width="98" height="20"><%# DataBinder.Eval(Container.DataItem, "UnitPrice","{0:c2}") %></TD>
								<TD align="center" width="98" height="20"><%# DataBinder.Eval(Container.DataItem, "ItemsPrice","{0:c2}") %></TD>
								<TD align="center" width="104" height="20"><%# DataBinder.Eval(Container.DataItem, "SubPrice","{0:c2}") %></TD>
								<TD width="80" align="center"><%# DataBinder.Eval(Container.DataItem, "IsDiscount").ToString() == "1" ? "是" : "否" %></TD>
							</TR>
						</ItemTemplate>
					</asp:repeater>
					<TR>
						<TD align="center" width="64">&nbsp;</TD>
						<TD width="334">&nbsp;</TD>
						<TD width="98">&nbsp;</TD>
						<TD width="99">&nbsp;</TD>
						<TD width="104">&nbsp;</TD>
					</TR>
				</TBODY>
			</TABLE>
			<TABLE id="Table5" cellSpacing="0" cellPadding="2" width="100%" bgColor="#ffffff" border="0">
				<tr>
					<td vAlign="top" width="50%">
						<table id="Table6" width="100%">
							<tr>
								<td>定单状态：<%=orderStatus%></td>
							</tr>
							<tr>
								<td>配送方式：<%=GetShippingName(order.ShippingType)%></td>
							</tr>
							<tr>
								<td>支付方式：<%=GetPaymentName(order.PaymentType)%></td>
							</tr>
						</table>
					</td>
					<td width="50%">
						<table id="Table7" width="100%">
							<tr>
								<td style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid"
									align="right" width="50%">商品总金额：</td>
								<td width="10%"></td>
								<td><%=string.Format("{0:c}",order.ProductPrice)%>
									(
									<%=order.Discount%>
									% )</td>
							</tr>
							<tr>
								<td style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid"
									align="right" width="50%">配件价格：</td>
								<td width="10%"></td>
								<td><%=string.Format("{0:c}",order.CustomItemPrice)%></td>
							</tr>
							<tr>
								<td style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid"
									align="right" width="50%">商品运费：</td>
								<td width="10%"></td>
								<td><%=string.Format("{0:c}",order.ShipPrice)%></td>
							</tr>
							<tr>
								<td style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid"
									align="right" width="50%">订单总金额：</td>
								<td width="10%"></td>
								<td><%=string.Format("{0:c}",order.TotalPrice)%></td>
							</tr>
							<tr>
								<td style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid"
									align="right" width="50%">使用预付款金额：</td>
								<td width="10%"></td>
								<td><%=string.Format("{0:c}",order.AdvancePayment)%></td>
							</tr>
							<tr>
								<td style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid"
									align="right" width="50%">还需付款金额：</td>
								<td width="10%"></td>
								<td><font color="red"><%=GetPay()%></font></td>
							</tr>
						</table>
					</td>
				</tr>
			</TABLE>
			<TABLE id="Table8" cellSpacing="3" cellPadding="3" width="100%" bgColor="#ffffff" border="0">
				<tr>
					<td><STRONG>购货人信息</STRONG></td>
					<td><STRONG>收货人信息</STRONG></td>
				</tr>
				<tr>
					<td style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid"
						width="50%">
						<table id="Table9">
							<tr>
								<td align="right">购货人姓名：</td>
								<td><%=order.BuyerName%></td>
							</tr>
							<tr>
								<td align="right">用户名：</td>
								<td><%=GetMemberName(order.MemberID)%></td>
							</tr>
							<tr>
								<td align="right">联系电话：</td>
								<td><%=order.BuyerPhone%></td>
							</tr>
							<tr>
								<td align="right">Email地址：</td>
								<td><%=order.BuyerEmail%></td>
							</tr>
							<tr>
								<td align="right">购货人地址：</td>
								<td><%=order.BuyerAddress%></td>
							</tr>
							<tr>
								<td align="right">邮政编码：</td>
								<td><%=order.BuyerPostalcode%></td>
							</tr>
						</table>
					</td>
					<td style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid"
						width="50%">
						<table id="Table10">
							<tr>
								<td align="right">收货人姓名：</td>
								<td><%=order.ReceiverName%></td>
							</tr>
							<tr>
								<td align="right">联系电话：</td>
								<td><%=order.ReceiverPhone%></td>
							</tr>
							<tr>
								<td align="right">Email地址：</td>
								<td><%=order.ReceiverEmail%></td>
							</tr>
							<tr>
								<td align="right">收货人地址：</td>
								<td><%=order.ReceiverAddress%></td>
							</tr>
							<tr>
								<td align="right">邮政编码：</td>
								<td><%=order.ReceiverPostalcode%></td>
							</tr>
							<tr>
								<td align="right"></td>
								<td></td>
							</tr>
						</table>
					</td>
				</tr>
			</TABLE>
			<table id="Table11" width="100%" bgColor="#ffffff">
				<tr>
					<td><STRONG>订单附言</STRONG></td>
				</tr>
				<tr>
					<td><%=order.Remark%></td>
				</tr>
				<tr>
					<td><STRONG><font color="blue">订单管理历史</font></STRONG>
						<HR noShade SIZE="1">
					</td>
				</tr>
				<tr>
					<td><%=GetManageHistory()%><HR noShade SIZE="1">
					</td>
				</tr>
				<tr>
					<td><STRONG>修改订单状态</STRONG>
						<HR noShade SIZE="1">
					</td>
				</tr>
				<tr>
					<td>
						<asp:CheckBox id="cb1" runat="server" Text="是否已确认"></asp:CheckBox>
						<asp:CheckBox id="cb2" runat="server" Text="是否已付款"></asp:CheckBox>
						<asp:CheckBox id="cb3" runat="server" Text="是否已发货"></asp:CheckBox>
						<asp:CheckBox id="cb4" runat="server" Text="是否已归档"></asp:CheckBox>
						<asp:CheckBox id="cb5" runat="server" Text="是否取消该订单"></asp:CheckBox>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<font color="red">归档后赠送积分</font>
						<br>
						管理员附言：<asp:TextBox id="txtMessage" runat="server" Text="" width="250" TextMode="Multiline" height="40"></asp:TextBox>
					</td>
				</tr>
				<tr>
					<td height="20" align="center" valign="middle"><asp:Button ID="btnSave" Runat="server" Text="保 存" style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid"
							Width="69" Height="22"></asp:Button>
						<input type="button" onclick='printOrder(<%=Request.QueryString["OrderID"]%>)' value="打 印" style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; WIDTH: 69px; BORDER-BOTTOM: #000000 1px solid; HEIGHT: 22px">
						<script language="javascript">
						function printOrder(oid)
						{
							temp=window.open('../OrderPrint.aspx?OrderID='+oid,'shopcat','width=700,height=650,scrollbars=yes');
							temp.focus();
						}
						</script>
					</td>
				</tr>
			</table>
		</form>
	</body>
</HTML>
