<%@ Page Language="C#" AutoEventWireup="false" CodeBehind="OrderModify.aspx.cs" Inherits="web.Supply.OrderModify" %>

<!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>
		<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="css/css.css" rel="stylesheet" type="text/css" />
    <link href="css/css_list.css" rel="stylesheet" type="text/css" />
     <style type="text/css">
     body{text-align:left;}
    .head {background-image: url(img/labelbg.gif);background-repeat: repeat-x;}
    </style>


	</HEAD>
		<body >
	
	
	<body MS_POSITIONING="GridLayout" rightmargin="0" leftmargin="0" topmargin="0">
		<form id="Form1" method="post" runat="server">
  <div >
    <TABLE width="100%" height="37" border="0" cellPadding="0" cellSpacing="0" background="img/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;下载详细信息</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 width="98%" border="0" align="center" cellPadding="0" cellSpacing="0" bgColor="#ffffff" id="Table2">
      <TBODY>
        <TR> 
          <TD height="31"><strong><img src="images/top02.gif" width="29" height="26"> 
            下载信息</strong> </TD>
        </TR>
      </TBODY>
    </TABLE>
    <TABLE width="98%" border="0" align="center" cellPadding="1" cellSpacing="0" bgColor="#ffffff" id="Table3">
      <TBODY>
        <TR> 
          <TD>&nbsp;</TD>
        </TR>
      </TBODY>
    </TABLE>
    <TABLE width="98%" border="1" align="center" cellPadding="2" cellSpacing="2" bordercolor="#CCCCCC" id="Table4">
      <TBODY>
        <TR bgcolor="#EDF6FF"> 
          <TD width="284" height="26"
							align="left" style="BORDER-RIGHT: #DADADA 1px solid; BORDER-TOP: #DADADA 1px solid; BORDER-LEFT: #DADADA 1px solid; BORDER-BOTTOM: #DADADA 1px solid">优惠名称 
          </TD>
          <TD width="99" height="26"
							align="center" style="BORDER-RIGHT: #DADADA 1px solid; BORDER-TOP: #DADADA 1px solid; BORDER-LEFT: #DADADA 1px solid; BORDER-BOTTOM: #DADADA 1px solid">截止日期</TD>
          <td width="98" height="33" align="center" bgcolor="#EDF6FF" style="BORDER-RIGHT: #DADADA 1px solid; BORDER-TOP: #DADADA 1px solid; BORDER-LEFT: #DADADA 1px solid; BORDER-BOTTOM: #DADADA 1px solid"> 
            <%=GetResourceString("zjf")%>
          </td>
        </TR>
        <!-- BEGIN row -->
        <asp:repeater id="rptOrderItems" Runat="server"> 
          <ItemTemplate> 
            <TR> 
              <TD align="left" width="334" height="9"> 
                <%# DataBinder.Eval(Container.DataItem, "ProductName") %>
              </TD>
              <TD width="99" height="20" rowspan="2" align="center"> 
                <%# getrq(DataBinder.Eval(Container.DataItem, "ProductID").ToString())%></TD>
              <td width="98" height="20" rowspan="2" align="center" bgcolor="#FFFFFF"> 
                <%# Getsc(Convert.ToInt32(DataBinder.Eval(Container.DataItem, "ProductID").ToString()), int.Parse(DataBinder.Eval(Container.DataItem, "Quantity").ToString())) == "0" ? "0点" : "" + Getsc(Convert.ToInt32(DataBinder.Eval(Container.DataItem, "ProductID").ToString()), int.Parse(DataBinder.Eval(Container.DataItem, "Quantity").ToString())) + "点"%>
              </td>
            </TR>
            <TR>
              <TD align="left" height="9">短信内容： <%# getdx(DataBinder.Eval(Container.DataItem, "ProductID").ToString(), DataBinder.Eval(Container.DataItem, "OrderID").ToString())%> </TD>
            </TR>
          </ItemTemplate>
        </asp:repeater>
      </TBODY>
    </TABLE>
    <br>
    <TABLE width="98%" border="0" align="center" cellPadding="2" cellSpacing="0" bgColor="#ffffff" id="Table5">
      <tr> 
        <td vAlign="top" width="50%"> 
          <table id="Table9">
   
            <tr> 
              <td width="72" align="right">状态：</td>
              <td width="371">
                <%= GetStatus(orderID.ToString()).ToString()%>
              </td>
            </tr>
            
       
            <tr> 
              <td align="right">用户名：</td>
              <td> 
                <%=GetMemberName(order.MemberID).ToString() == "anonymous" ? "<font color='FF6600'>非会员直接购物</font>" : "" + GetMemberName(order.MemberID) + ""%>
              </td>
            </tr>
            <tr> 
              <td align="right">使用手机：</td>
              <td> 
                <%=order.BuyerPhone%>
             
              </td>
            </tr>
      
          </table></td>
       
      </tr>
    </TABLE>
    <table width="98%" align="center" bgColor="#ffffff" id="Table11">

      <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" width="29" height="26"> 修改下载状态</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="是否已付款" Visible="false"></asp:CheckBox> 
          <asp:CheckBox id="cb3" runat="server" Text="是否已送餐" Visible="False"></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>
         
          店主附言：
          <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: #DADADA 1px solid; BORDER-TOP: #DADADA 1px solid; BORDER-LEFT: #DADADA 1px solid; BORDER-BOTTOM: #DADADA 1px solid"
							Width="69" Height="22" ></asp:Button> <input type="button" onclick='printOrder(<%=Request.QueryString["OrderID"]%>)' value="打 印" style="BORDER-RIGHT: #DADADA 1px solid; BORDER-TOP: #DADADA 1px solid; BORDER-LEFT: #DADADA 1px solid; WIDTH: 69px; BORDER-BOTTOM: #DADADA 1px solid; HEIGHT: 22px"> 
          <script language="javascript">
						function printOrder(oid)
						{
							temp=window.open('../OrderPrint.aspx?OrderID='+oid,'shopcat','scrollbars=yes');
							temp.focus();
						}
						</script> </td>
      </tr>
    </table>
  </div>
</form>
	</body>
</HTML>
