📄 adminorder.aspx
字号:
<%@ Page language="c#" Codebehind="AdminOrder.aspx.cs" AutoEventWireup="false" Inherits="SimplexShop.Admin.AdminOrder" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>AdminOrder</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">
<script language="javascript" src="../js/CheckBox.js"></script>
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<table class="tableBorder" cellSpacing="0" cellPadding="0" width="95%" align="center" border="0">
<tr>
<th class="tableHeaderText" colSpan="2" height="25">
<FONT face="宋体">
<asp:label id="lbTitle" Runat="server">订单管理</asp:label></FONT></th></tr>
<asp:panel id="pnlList" Runat="server">
<TR>
<TD class="forumRowHighlight" align="right">
<asp:TextBox id="txtKey" Runat="server"></asp:TextBox>
<asp:DropDownList id="ddlSearch" runat="server">
<asp:ListItem Value="OrderID">订单号</asp:ListItem>
<asp:ListItem Value="4">用户名</asp:ListItem>
<asp:ListItem Value="1">< (总金额)</asp:ListItem>
<asp:ListItem Value="2">> (总金额)</asp:ListItem>
<asp:ListItem Value="3">= (总金额)</asp:ListItem>
</asp:DropDownList>
<asp:Button id="btnSearch" runat="server" Text="搜 索"></asp:Button></TD>
<TD class="forumRowHighlight" align="right">
<asp:TextBox id="txtHidden" runat="server" Visible="False">0</asp:TextBox>
<asp:Button id="btnDelete" Runat="server" Text="删除订单"></asp:Button></TD>
</TR>
<TR>
<TD class="forumRowHighlight" align="center" colSpan="2">
<asp:datagrid id="dgOrderList" runat="server" AllowPaging="True" PageSize="15" HorizontalAlign="Center"
Width="100%" DataKeyField="OrderID" AutoGenerateColumns="False" PagerStyle-Mode="NumericPages">
<HeaderStyle Font-Bold="True"></HeaderStyle>
<Columns>
<asp:TemplateColumn>
<HeaderTemplate>
<input type="checkbox" name="allbox" onclick="CA();">
</HeaderTemplate>
<ItemTemplate>
<asp:CheckBox ID="DeleteThis" onclick="javascript:CCA(this);" runat="server" />
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="订单号">
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem, "OrderDate","{0:yyyyMMdd}") %>-<%# DataBinder.Eval(Container.DataItem, "OrderID") %>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="下单日期">
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem, "OrderDate","{0:d}") %>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="订单总金额">
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem, "TotalPrice","{0:f0}") %>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="运费">
<ItemTemplate>
<%# GetDeliveryCost(DataBinder.Eval(Container.DataItem, "OrderID").ToString()) %>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="配送方式">
<ItemTemplate>
<%# GetDeliveryName(DataBinder.Eval(Container.DataItem, "OrderID").ToString()) %>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="支付方式">
<ItemTemplate>
<%# GetPayName(DataBinder.Eval(Container.DataItem, "OrderID").ToString()) %>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="购买人">
<ItemTemplate>
<%# GetBuyerName(DataBinder.Eval(Container.DataItem, "OrderID").ToString()) %>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="联系电话">
<ItemTemplate>
<%# GetBuyerPhone(DataBinder.Eval(Container.DataItem, "OrderID").ToString()) %>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="订单状态">
<ItemTemplate>
<%# GetStatus(DataBinder.Eval(Container.DataItem, "OrderID").ToString()) %>
</ItemTemplate>
</asp:TemplateColumn>
<asp:ButtonColumn Text="查看订单" HeaderText="查看订单" CommandName="View"></asp:ButtonColumn>
</Columns>
<PagerStyle Position="Top" Mode="NumericPages"></PagerStyle>
</asp:datagrid>
<TABLE id="tablePage" cellSpacing="0" cellPadding="0" width="100%" align="center">
<TR>
<TD vAlign="middle">
<asp:label id="lblPager" Runat="server"></asp:label></TD>
<TD vAlign="middle" align="right"><INPUT id="controlID" type="hidden" name="controlID" runat="server">
<asp:textbox id="txtPage" Runat="server" Width="30px" BorderWidth="1px" BackColor="White" BorderColor="Black"></asp:textbox>
<asp:button id="btnJump" Runat="server" Text=" Go "></asp:button></TD>
</TR>
</TABLE>
</TD>
</TR>
</asp:panel><asp:panel id="pnlDetail" Runat="server">
<TR>
<TD class="forumRowHighlight" align="right">
<asp:Button id="btnCancel" runat="server" Text="取 消"></asp:Button>
<asp:Button id="btnConfim" runat="server" Text="确 认"></asp:Button>
<asp:Button id="btnCost" runat="server" Text="款 到"></asp:Button>
<asp:Button id="btnSent" runat="server" Text="发 货"></asp:Button>
<asp:Button id="btnPigeonhole" runat="server" Text="归 档"></asp:Button></TD>
<TD class="forumRowHighlight" align="right">
<asp:Button id="btnBack" runat="server" Text="返 回"></asp:Button></TD>
</TR>
<TR>
<TD class="forumRowHighlight" align="right" colSpan="2">
<asp:DataGrid id="dlDetail" runat="server" HorizontalAlign="Center" Width="100%" DataKeyField="ProductID"
AutoGenerateColumns="False" PagerStyle-Mode="NumericPages">
<Columns>
<asp:TemplateColumn HeaderText="商品缩图">
<ItemTemplate>
<IMG height="90" width="72" src='../Upload/Products/<%# DataBinder.Eval(Container.DataItem, "ThumbnailImg") %>' border="0">
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="商品名称">
<ItemTemplate>
<a href='../ProductDetail.aspx?ProductID=<%# DataBinder.Eval(Container.DataItem, "ProductID") %>'>
<%# DataBinder.Eval(Container.DataItem, "ProductName") %>
</a>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="会员价">
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem, "MemberPrice","{0:f0}") %>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="批发价">
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem, "WholeSalePrice","{0:f0}") %>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="数量">
<ItemTemplate>
<asp:TextBox ID="txtQ" Runat="server" Width="50" Text='<%# DataBinder.Eval(Container.DataItem, "Quantity") %>'>
</asp:TextBox>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="小计">
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem, "ExtendedAmount","{0:f0}") %>
</ItemTemplate>
</asp:TemplateColumn>
<asp:ButtonColumn ButtonType="LinkButton" CommandName="Upload" HeaderText="更新" Text="更新"></asp:ButtonColumn>
<asp:ButtonColumn ButtonType="LinkButton" CommandName="Delete" HeaderText="删除" Text="删除"></asp:ButtonColumn>
</Columns>
</asp:DataGrid></TD>
</TR>
<TR>
<TD class="forumRowHighlight" align="left" width="100%" colSpan="2">订单信息
</TD>
</TR>
<TR>
<TD class="forumRowHighlight" align="left" width="100%" colSpan="2">
<TABLE cellSpacing="0" cellPadding="0" width="100%">
<TR>
<TD width="10%"></TD>
<TD align="right" width="10%">订单号:</TD>
<TD width="20%">
<asp:Label id="lbNumber" Runat="server"></asp:Label></TD>
<TD width="10%"></TD>
<TD align="right" width="10%">订单状态:</TD>
<TD width="20%">
<asp:Label id="lbStatus" Runat="server"></asp:Label></TD>
<TD width="20%"><FONT face="宋体"></FONT></TD>
</TR>
<TR>
<TD width="10%"></TD>
<TD align="right" width="10%">下单时间:</TD>
<TD width="20%">
<asp:Label id="lbOrderDate" Runat="server"></asp:Label></TD>
<TD width="10%"></TD>
<TD align="right" width="10%">商品总金额:</TD>
<TD width="20%">
<asp:Label id="Label2" Runat="server" Font-Bold="True"></asp:Label></TD>
<TD width="20%"></TD>
</TR>
<TR>
<TD width="10%"></TD>
<TD align="right" width="10%">配送方式:</TD>
<TD width="20%">
<asp:Label id="Label3" Runat="server"></asp:Label></TD>
<TD width="10%"></TD>
<TD align="right" width="10%">商品运费:</TD>
<TD width="20%">
<asp:Label id="Label4" Runat="server"></asp:Label></TD>
<TD width="20%"></TD>
</TR>
<TR>
<TD width="10%"></TD>
<TD align="right" width="10%">支付方式:</TD>
<TD width="20%">
<asp:Label id="Label5" Runat="server"></asp:Label></TD>
<TD width="10%"></TD>
<TD align="right" width="10%"><FONT face="宋体">使用预付款:</FONT></TD>
<TD width="20%">
<asp:Label id="Label14" Runat="server"></asp:Label></TD>
<TD width="20%"></TD>
</TR>
<TR>
<TD width="10%"></TD>
<TD align="right" width="10%"><FONT face="宋体"><FONT face="宋体">抵扣卷编号:</FONT></FONT></TD>
<TD width="20%">
<asp:Label id="Label19" Runat="server"></asp:Label></TD>
<TD width="10%"></TD>
<TD align="right" width="10%"><FONT face="宋体">抵扣卷金额:</FONT></TD>
<TD width="20%">
<asp:Label id="Label21" Runat="server"></asp:Label></TD>
<TD width="20%"></TD>
</TR>
<TR>
<TD width="10%"></TD>
<TD align="right" width="10%"><FONT face="宋体"></FONT></TD>
<TD width="20%"></TD>
<TD width="10%"></TD>
<TD align="right" width="10%"><FONT face="宋体">订单总金额:</FONT></TD>
<TD width="20%"><FONT face="宋体">
<asp:Label id="Label6" Runat="server" Font-Bold="True"></asp:Label></FONT></TD>
<TD width="20%"></TD>
</TR>
</TABLE>
</TD>
</TR>
<TR>
<TD class="forumRowHighlight" align="left" width="100%" colSpan="2">购买人信息
</TD>
</TR>
<TR>
<TD class="forumRowHighlight" align="left" width="100%" colSpan="2">
<TABLE cellSpacing="0" cellPadding="0" width="100%">
<TR>
<TD width="10%"></TD>
<TD align="right" width="10%">购买人姓名:</TD>
<TD width="20%">
<asp:Label id="Label1" Runat="server"></asp:Label></TD>
<TD width="10%"></TD>
<TD align="right" width="10%">用户名:</TD>
<TD width="20%">
<asp:Label id="Label7" Runat="server"></asp:Label></TD>
<TD width="20%"></TD>
</TR>
<TR>
<TD width="10%"></TD>
<TD align="right" width="10%">联系电话:</TD>
<TD width="20%">
<asp:Label id="Label8" Runat="server"></asp:Label></TD>
<TD width="10%"></TD>
<TD align="right" width="10%">Email地址:</TD>
<TD width="20%">
<asp:Label id="Label9" Runat="server"></asp:Label></TD>
<TD width="20%"></TD>
</TR>
<TR>
<TD width="10%"></TD>
<TD align="right" width="10%">购买人地址:</TD>
<TD width="20%">
<asp:Label id="Label10" Runat="server"></asp:Label></TD>
<TD width="10%"></TD>
<TD align="right" width="10%">邮政编码:</TD>
<TD width="20%">
<asp:Label id="Label11" Runat="server"></asp:Label></TD>
<TD width="20%"></TD>
</TR>
<TR>
<TD width="10%"></TD>
<TD align="right" width="10%">订单备注:</TD>
<TD width="20%" colSpan="5">
<asp:Label id="Label12" Runat="server"></asp:Label></TD>
</TR>
</TABLE>
</TD>
</TR>
<TR>
<TD class="forumRowHighlight" align="left" width="100%" colSpan="2">收货人信息
</TD>
</TR>
<TR>
<TD class="forumRowHighlight" align="left" width="100%" colSpan="2">
<TABLE cellSpacing="0" cellPadding="0" width="100%">
<TR>
<TD width="10%"></TD>
<TD align="right" width="10%">收货人姓名:</TD>
<TD width="20%">
<asp:Label id="Label13" Runat="server"></asp:Label></TD>
<TD width="10%"></TD>
<TD align="right" width="10%"></TD>
<TD width="20%"></TD>
<TD width="20%"></TD>
</TR>
<TR>
<TD width="10%"></TD>
<TD align="right" width="10%">联系电话:</TD>
<TD width="20%">
<asp:Label id="Label15" Runat="server"></asp:Label></TD>
<TD width="10%"></TD>
<TD align="right" width="10%">Email地址:</TD>
<TD width="20%">
<asp:Label id="Label16" Runat="server"></asp:Label></TD>
<TD width="20%"></TD>
</TR>
<TR>
<TD width="10%"></TD>
<TD align="right" width="10%">收货人地址:</TD>
<TD width="20%">
<asp:Label id="Label17" Runat="server"></asp:Label></TD>
<TD width="10%"></TD>
<TD align="right" width="10%">邮政编码:</TD>
<TD width="20%">
<asp:Label id="Label18" Runat="server"></asp:Label></TD>
<TD width="20%"></TD>
</TR>
</TABLE>
</TD>
</TR>
</asp:panel></table>
</form>
</body>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -