<%
    //-----------------------------------------------------------
    // 文件名称: Order_Order_Manage.aspx
    // 页面名称: 订单管理
    //
    // 描    述:
    //
    // 创建标识: Add By 吴建春 2008-07-15
    //-----------------------------------------------------------
%>

<%@ page language="C#" autoeventwireup="true" inherits="V5Shop.Admin.Order_Order_Manage, V5Shop.Shop.Order" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Src="control/HiddenField.ascx" TagName="HiddenField" TagPrefix="uc1" %>
<%@ Register Src="control/PageBottom.ascx" TagName="PageBottom" TagPrefix="uc2" %>
<%@ Register Src="control/ManageHeader.ascx" TagName="ManageHeader" TagPrefix="uc3" %>
<%@ Register Assembly="V5Shop.Control" Namespace="V5Shop.Control" TagPrefix="V5" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="css/css.css" rel="stylesheet" type="text/css" />
    <link href="css/control.css" rel="stylesheet" type="text/css" />
    <link href="js/calendar-system.css" rel="stylesheet" type="text/css" />
    <link href="css/css_list.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" language="javascript" src="js/Common.js"></script>
    <script type="text/javascript" language="javascript" src="Js/Calendar.js"></script>
    <script type="text/javascript" language="javascript" src="Js/Calendar-zh.js"></script>
    <script type="text/javascript" language="javascript" src="Js/Calendar-Setup.js"></script>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <uc3:ManageHeader ID="PageHead" runat="server" />
            <div id="search">
                <!-- 查询部 -->
                <div style="width: 760px; padding-right: 20px; padding-left: 20px; padding-bottom: 20px; padding-top: 20px; border-bottom: #f7f7f7 4px solid;">
                    <asp:Label ID="Label1" runat="server" Width="60px" Text="订单单号：" CssClass="label" />
                    <asp:TextBox ID="txtNumber" runat="server" Width="110px" />
                    <asp:Label ID="Label14" runat="server" Width="60px" Text="用户名：" CssClass="label" />
                    <asp:TextBox ID="txtUserName" runat="server" Width="110px" />
                    <asp:Label ID="Label2" runat="server" Width="60px" Text="购物人：" CssClass="label" />
                    <asp:TextBox ID="txtSendName" runat="server" Width="110px" />
                    <asp:Label ID="Label3" runat="server" Width="60px" Text="收货人：" CssClass="label" />
                    <asp:TextBox ID="txtReceiveName" runat="server" Width="110px" /><br>
                    <asp:Label ID="Label4" runat="server" Width="60px" Text="邮编：" CssClass="label" />
                    <asp:TextBox ID="txtReceivePostCode" runat="server" Width="110px" />
                    <asp:Label ID="Label6" runat="server" Width="60px" Text="手机号码：" CssClass="label" />
                    <asp:TextBox ID="txtSendMobile" runat="server" Width="110px" />
                    <asp:Label ID="Label7" runat="server" Width="60px" Text="联系电话：" CssClass="label" />
                    <asp:TextBox ID="txtReceiveTel" runat="server" Width="110px" />
                    <asp:Label ID="Label8" runat="server" Width="60px" Text="电子邮件：" CssClass="label" />
                    <asp:TextBox ID="txtSendEmail" runat="server" Width="110px" />
                    <br>
                    <asp:Label ID="Label9" runat="server" Width="60px" Text="订单金额：" CssClass="label" />
                    <asp:TextBox ID="txtPriceMin" runat="server" Width="46px" />
                    -
                    <asp:TextBox ID="txtPriceMax" runat="server" Width="47px" />
                    <asp:Label ID="Label10" runat="server" Text="配送方式：" CssClass="label" />
                    <asp:DropDownList ID="ddlDelivery" runat="server" Width="114px" />
                    <asp:Label ID="Label11" runat="server" Text="支付方式：" CssClass="label" />
                    <asp:DropDownList ID="ddlPayment" runat="server" Width="114px" />
                    <asp:Label ID="Label12" runat="server" Text="订单状态：" CssClass="label" />
                    <asp:DropDownList ID="ddlStatusID" runat="server" Width="114px" /><br>
                    <asp:Label ID="Label13" runat="server" Text="订单日期：" CssClass="label" />
                    <asp:TextBox ID="txtStart" runat="server" Width="110px" onblur="return CheckDate(this, true, false);" /><img id="ImgDateStart" alt="打开日历" src="images/calendar1.gif" title="打开日历" />
                    -
                    <asp:TextBox ID="txtEnd" runat="server" Width="110px" onblur="return CheckDate(this, true, false);" /><img id="ImgDateEnd" alt="打开日历" src="images/calendar1.gif" title="打开日历" />
                    <asp:Label ID="Label5" runat="server" Width="85px" Text="收货地址：" CssClass="label" />
                    <asp:TextBox ID="txtReceiveAddress" runat="server" Width="250px" />
                    <asp:Button ID="btnSearch" OnClick="btnSearch_Click" runat="server" Text="查询" CssClass="button" Width="35px" />
                </div>
            </div>
            <div id="content">
                <div style="padding-right: 25px; padding-left: 25px; padding-bottom: 3px; color: #4b6888; padding-top: 3px; border-bottom: #cccccc 1px solid">
                    <input id="CheckAllBox" class="checkbox" onclick="CheckAll()" type="checkbox" /><asp:Label ID="lblSelectAll" runat="server" Text="全选" />
                    <asp:LinkButton ID="btnAdd" runat="server" ForeColor="#4B6888" OnClick="btnAdd_Click" Width="60px"><img src="images/icon/key_add.gif" alt="" /> 添加</asp:LinkButton>
                    <asp:LinkButton ID="btnEdit" runat="server" ForeColor="#4B6888" OnClick="btnEdit_Click" OnClientClick="return CheckEdit()" Width="60px"><img src="images/icon/key_edit.gif" alt="" /> 编辑</asp:LinkButton>
                    <asp:LinkButton ID="btnDel" runat="server" ForeColor="#4B6888" OnClick="btnDel_Click" OnClientClick="return CheckDelOne()" Width="60px"><img src="images/icon/key_delete.gif" alt="" /> 删除</asp:LinkButton>
                    <asp:LinkButton ID="btnOutput" runat="server" ForeColor="#4B6888" OnClientClick="return CheckSelect()" OnClick="btnOutput_Click"><img src="images/icon/key_output.gif" alt="" /> 导出订单</asp:LinkButton>
                </div>
                <!-- 明细数据 -->
                <div class="listborder">
                    <V5:V5ShopGridView ID="GridViewShow" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" CssClass="datalist" PageSize="12" HeaderStyle-ForeColor="#000000" EmptyDataText="没有任何可用信息！">
                        <PagerSettings Mode="NumericFirstLast" />
                        <Columns>
                            <asp:TemplateField meta:resourcekey="DetilData">
                                <itemtemplate>
                            <input runat="server" value='<%# Eval("ID") %>' id="CheckBoxID" type="checkbox" class="checkbox"
                                onmouseover="this.mouse='over'" onmouseout="this.mouse='out'" />
                            </itemtemplate>
                                <itemstyle horizontalalign="Center" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="UserName" HeaderText="会员帐号" SortExpression="UserName" />
                            <asp:BoundField DataField="SendName" HeaderText="购物人" SortExpression="SendName" />
                            <asp:BoundField DataField="Number" HeaderText="订单单号" SortExpression="Number" />
                            <asp:BoundField DataField="ReceiveName" HeaderText="收货人" SortExpression="ReceiveName" />
                            <asp:BoundField DataField="DelivertyName" HeaderText="配送方式" SortExpression="DelivertyName" />
                            <asp:BoundField DataField="Price" HeaderText="金额总计" SortExpression="Price" />
                            <asp:BoundField DataField="StateName" HeaderText="交易状态" SortExpression="StateName" />
                            <asp:BoundField DataField="Date" HeaderText="下单日期" SortExpression="Date" />
                        </Columns>
                        <HeaderStyle CssClass="category" ForeColor="Black" />
                    </V5:V5ShopGridView>
                </div>
            </div>
            <uc2:PageBottom ID="PageBottom" runat="server" />
            <div id="hiddenfield">
                <asp:HiddenField ID="CheckedIDS" runat="server" Value="0" />
                <asp:HiddenField ID="PageIndex" runat="server" Value="0" />
                <asp:HiddenField ID="MaxPageIndex" runat="server" Value="0" />
                <uc1:HiddenField ID="Alert" runat="server" />
                <V5:ActiveControl ID="ActiveControl" runat="server" />
            </div>
            <script language="javascript" type="text/javascript">
        Calendar.setup({
            inputField     :    "txtStart",
            ifFormat       :    "%Y-%m-%d", 
            button         :    "ImgDateStart",
            align          :    "Br",
            singleClick    :    true
        });
        Calendar.setup({
            inputField     :    "txtEnd",
            ifFormat       :    "%Y-%m-%d", 
            button         :    "ImgDateEnd",
            align          :    "Br",
            singleClick    :    true
        });
            </script>
        </div>
    </form>
</body>
</html>
