<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TgOrderModify.aspx.cs" Inherits="web.admin.TgOrderModify" %>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>OrderModify</title><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
		<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">
				<script language="JavaScript">
<!--
//By Dicky 2005-2-17 11:16:49
function Window_Load(Flag)
{

if (Flag == 0)
{

  parent.document.all['Loading'].style.display = 'block';
  parent.document.all['Loading'].style.width = '500';
   parent.document.all['Loading'].style.height = '60';
  //show the window
}
else
{
  parent.document.all['Loading'].style.display = 'none';
  
  //hide the window
}
}
//-->
</script>
	</HEAD>
		<body >
	
	
	<body MS_POSITIONING="GridLayout" rightmargin="0" leftmargin="0" topmargin="0" onload="Window_Load(1);">
		<form id="Form1" method="post" runat="server">
  <TABLE width="100%" height="37" border="0" cellPadding="0" cellSpacing="0" background="../Supply/images/labelbg.gif" bgColor="#EDF6FF" id="Table1">
    <TBODY>
					<TR>
						
        <TD width="3%" height="37" vAlign="middle"><STRONG><BR>
							</STRONG>
						</TD>
						
        <TD vAlign="middle" align="center" width="30%"><div align="left">
            团购商品与订单管理
            &gt;&gt;订单详细信息</div></TD>
        <TD class="body-shoptitle" vAlign="middle" align="center" width="67%"><strong>订单号码： 
          <%=order.OrderNo%>
          下单日期： 
          <%=order.OrderTime%>
          <%if(order.ShipTime!=""){%>
          送货日期： 
          <%=order.ShipTime%>
          <%}%>
          </strong> </TD>
					</TR>
				</TBODY>
			</TABLE>
			<TABLE id="Table2" cellSpacing="0" cellPadding="0" width="100%" bgColor="#ffffff" border="0">
				<TBODY>
					<TR>
						
        <TD height="31"><strong><img src="images/top02.gif"> 订单信息</strong> </TD>
					</TR>
				</TBODY>
			</TABLE>
			<TABLE id="Table3" cellSpacing="0" cellPadding="1" width="100%" bgColor="#ffffff" border="0">
				<TBODY>
					<TR>
						
        <TD>&nbsp; </TD>
					</TR>
				</TBODY>
			</TABLE>
			
  <TABLE width="98%" border="1" align="center" cellPadding="3" cellSpacing="3" bordercolor="#CCCCCC" id="Table4">
    <TBODY>
      <TR bgcolor="#EDF6FF"> 
        <TD width="392" height="33"
							align="left" style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid">套餐名称<BR> 
        </TD>
        <TD width="117" height="33"
							align="center" style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid">数量</TD>
        <TD width="116" height="33"
							align="center" style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid">单价 
        </TD>
 
        <td width="116" height="33" align="center" bgcolor="#F4F4F4"> 
          <%=GetResourceString("zdjq")%>
        </td>
        <td width="116" height="33" align="center" bgcolor="#F4F4F4"> 
          <%=GetResourceString("zjf")%>
        </td>
        <TD width="125" height="33"
							align="center" style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid">单项小计</TD>
      </TR>
      <!-- BEGIN row -->
      <asp:repeater id="rptOrderItems" Runat="server"> 
        <ItemTemplate> 
          <TR> 
            <TD align="left" width="392" height="20"> <a href=<%# DataBinder.Eval(Container.DataItem, "prol").ToString()!="1"?"../showProduct.aspx?productID=":"../Proinfo/proinfo_" %><%# DataBinder.Eval(Container.DataItem, "ProductID") %><%# DataBinder.Eval(Container.DataItem, "prol").ToString()!="1"?"":".html" %> target=_blank> 
              <%# DataBinder.Eval(Container.DataItem, "ProductName") %>
              </a><br> <font color=blue> 
              <%# Getzs(Convert.ToInt32(DataBinder.Eval(Container.DataItem, "ProductID").ToString())) == null ? "" : "赠送品:购买该商品有<font color=FF99cc>" + Getzs(Convert.ToInt32(DataBinder.Eval(Container.DataItem, "ProductID").ToString())) + "</font>附加赠品"%>
              </font> </TD>
            <TD align="center" width="117" height="20"> 
              <%# DataBinder.Eval(Container.DataItem, "Quantity") %>
            </TD>
            <TD align="center" width="116" height="20"> 
              <%=GetCurrency() %>
              <%# DataBinder.Eval(Container.DataItem, "UnitPrice","{0:f2}") %>
            </TD>

            <td width="116" height="20" align="center" bgcolor="#FFFFFF"> 
              <%# Getsc(Convert.ToInt32(DataBinder.Eval(Container.DataItem, "ProductID").ToString())) == "0" ? "0点" : "" + Getsc(Convert.ToInt32(DataBinder.Eval(Container.DataItem, "ProductID").ToString())) + "点"%>
            </td>
            <td width="116" height="20" align="center" bgcolor="#FFFFFF"> 
              <%# Getyxsl(Convert.ToInt32(DataBinder.Eval(Container.DataItem, "ProductID").ToString()))%>
              元 </td>
            <TD width="125" align="center"> 
              <%=GetCurrency() %>
                <%# DataBinder.Eval(Container.DataItem, "SubPrice","{0:f2}") %>
            </TD>
          </TR>
        </ItemTemplate>
      </asp:repeater>
    </TBODY>
  </TABLE>
			
  <TABLE width="98%" border="0" align="center" cellPadding="2" cellSpacing="0" bgColor="#ffffff" id="Table5">
    <tr>
					<td vAlign="top" width="50%">
						<table id="Table6" width="100%">
          <tr> 
            <td>定单状态： 
              <%= GetStatus(orderID.ToString()).ToString()%>
            </td>
          </tr>
          <tr> 
            <td>支付方式： 
              <%=GetPaymentName(order.PaymentType)%>
            </td>
          </tr>
        </table>
					</td>
					<td width="50%">
						<table id="Table7" width="100%">
          <tr> 
            <td width="33%"
									align="right" bgcolor="#EDF6FF" style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid">套餐总金额：</td>
            <td width="4%"></td>
            <td width="63%"> 
              <%=GetCurrency() %>
              <%=string.Format("{0:f}",order.ProductPrice)%>
              ( 
              <%=order.Discount%>
              % )</td>
          </tr>
          <tr> 
            <td width="33%"
									align="right" bgcolor="#EDF6FF" style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid">订单总金额：</td>
            <td width="4%"></td>
            <td> 
              <%=GetCurrency() %>
              <%=string.Format("{0:f}",order.TotalPrice)%>
              <asp:TextBox ID="jg" runat="server" Width="86px"></asp:TextBox> 
              <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="修改订单总金额" /> 
            </td>
          </tr>
          <tr> 
            <td width="33%"
									align="right" bgcolor="#EDF6FF" style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid">使用预付款金额：</td>
            <td width="4%" rowspan="2"></td>
            <td> 
              <%=GetCurrency() %>
              <%=string.Format("{0:f}",order.AdvancePayment)%>
            </td>
          </tr>
          <tr> 
            <td
									align="right" bgcolor="#EDF6FF" style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid">使用代金券：</td>
            <td> 
              <%=GetCurrency()%>
              <%=string.Format("{0:f}",order.Dxdjq)%>
            </td>
          </tr>
          <tr> 
            <td width="33%"
									align="right" bgcolor="#EDF6FF" style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid">还需付款金额：</td>
            <td width="4%"></td>
            <td><font color="red"> 
              <%=GetCurrency() %>
              <%=GetPay()%>
              </font></td>
          </tr>
        </table>
					</td>
				</tr>
			</TABLE>
			
  <TABLE width="98%" border="0" align="center" cellPadding="3" cellSpacing="3" bgColor="#EDF6FF" id="Table8">
    <tr bgcolor="#FFFFFF"> 
      <td><STRONG><img src="images/top02.gif"> 团购人信息</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> 
              <%=GetMemberName(order.MemberID).ToString() == "anonymous" ? "<font color='FF6600'>非会员直接购物</font>" : "<a href='member.aspx?name=" + GetMemberName(order.MemberID) + "'> " + GetMemberName(order.MemberID) + "(查看会员)</a>"%>
            </td>
          </tr>
          <tr> 
            <td align="right">联系手机：</td>
            <td> 
              <%=order.BuyerPhone%>
            </td>
          </tr>
        </table></td>
    </tr>
  </TABLE>
			
  <table width="98%" bgColor="#ffffff" id="Table11">
    <tr>
					
      <td><STRONG><img src="images/top02.gif"> 订单附言</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><img src="images/top02.gif"> 修改订单状态</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"><strong><br>
        <br>
        说明：<br>
        1、</strong>归档后赠送积分和代金券（归档就是交易成功的订单进行归档备案处理），如果是特卖订单同时派送返利！<br>
        <strong>2</strong>、归档后的定单如果选择了不归档和取消订单，如果购买该商品赠送了代金券或者积分，代金券或积分将从客户的记录中扣除！</font>&nbsp;<font color="#FF0000"><strong><br>
        3</strong>、如果客户购物使用了预付款或者代金券，定单取消后，将返还使用的预付款或代金券 </font><br>
        <br />
        <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('../TOrderPrint.aspx?OrderID='+oid,'shopcat','scrollbars=yes');
							temp.focus();
						}
						</script>
					</td>
				</tr>
			</table>
		</form>
	</body>
</HTML>
