<%@ page language="C#" autoeventwireup="true" inherits="Admin_Statistics_SaleOrderTotal, ShopWe" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!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 runat="server">
    <title>成交订单统计</title>
    <link href="../css/my.css" rel="stylesheet" type="text/css" />
    <link href="../JS/TableSort/tablesort.css" rel="stylesheet" type="text/css" />
    <link href="../css/volti.css" rel="stylesheet" type="text/css" />
    <link href="../Themes/Default/Plugin/ThickBox/thickbox.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" src="../css/jquery.js"></script>

    <script type="text/javascript" src="../css/admin.js"></script>

    <script type="text/javascript" src="../JS/calendar.js"></script>

</head>
<body>
    <form id="form1" runat="server">
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="name">
            <tr>
                <td style="width: 375px">
                    <div class="name_noe">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td align="center" style="height: 22px">
                                    按日期查看</td>
                            </tr>
                            <tr>
                                <td align="left">
                                    <input id="StartDate" type="text" runat="server" onclick="new Calendar('2000', '2100', 1,'yyyy-MM-dd').show(this);"  CssClass="input_tle"  style="width:140px; height:18px"/>
                                    至
                                    <input id="EndDate" type="text" runat="server" onclick="new Calendar('2000', '2100', 1,'yyyy-MM-dd').show(this);"  CssClass="input_tle" style="width:140px; height:18px"/>
                                    <asp:Button ID="SearchButton" runat="server" Text="搜索" OnClick="SearchButton_Click"
                                        Height="22px" Width="45px" CssClass="butt_tle1"/>
                              </td>
                            </tr>
                      </table>
                    </div>
                </td>
                <td style="width: 80px">
                    <div class="name_noe">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td align="center" style="height: 22px">
                                    下载报表</td>
                            </tr>
                            <tr>
                                <td align="center">
                                    <asp:Button ID="SaveToCsv" runat="server" Text="下载报表"  OnClick="SaveToCsv_Click" CssClass="butt_tle" Height="22px" Width="65px"/>
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
                <td>&nbsp;
                    
                </td>
            </tr>
        </table>
        <div id="all">
            <table width="100%" cellpadding="0" cellspacing="0" id="bk">
                <thead>
                    <tr>
                        <th style="width: 160px">
                            下单日期
                        </th>
                        <th style="width: 120px">
                            订单号
                        </th>
                        <th>
                            订单金额
                        </th>
                    </tr>
                </thead>
                <tbody>
                    <asp:Repeater ID="RepeaterTable" runat="server">
                        <ItemTemplate>
                            <tr>
                                <td>
                                    <%# Eval("CreateDate")%>
                                </td>
                                <td>
                                    <%# Eval("OrderNumber")%>
                                </td>
                                <td class="ys_1">
                                    <%# StringHelper.RemoveLastStringIndex(Eval("OrderPrice").ToString(),2)%>
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </tbody>
            </table>
            <div class="k_all3">
                <div id="bk_line">
                    <div class="txte">
                        <img src="../Themes/Default/Images/bj.png" alt=" " /> 成交总数：<asp:Literal ID="CountItem" runat="server" Text="0"></asp:Literal>&nbsp;&nbsp;成交总金额：<asp:Literal
                            ID="CountPrice" runat="server" Text="0"></asp:Literal>
                    </div>
                    <webdiyer:AspNetPager ID="AspNetPagerItem" runat="server" CssClass="yahoo2" PageSize="15"
                        OnPageChanged="AspNetPagerItem_PageChanged" AlwaysShow="True">
                    </webdiyer:AspNetPager>
                </div>
            </div>
        </div>
    </form>
</body>
</html>
