<%@ page language="C#" masterpagefile="~/MasterPage/UserMasterPage.master" autoeventwireup="true" inherits="Rest_statistics_SalesMonth, DoodiiShop" title="Untitled Page" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <style type="text/css">@import url(/js/jquery-calendar/jquery-calendar.css);</style>

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

    <script type="text/javascript">

        function init()
        {
        }
        $(document).ready(function()
            {init();
        });
    </script>

    <div id="divDemo" runat="server" style="color: red; font-size: 24px; margin: 0px;
        padding: 0px;">
        <strong>如果您需要申请试用或购买本模块请<a href='http://www.doulaiding.com/buy/' target="_blank">联系我们</a>！</strong><br />
    </div>
    <div id="divContent" runat="server">
        <div style="float:left; width:630px; padding:10px; border:1px #cccccc solid;">
            <table class="tablebaobiao" border="0" cellspacing="0" cellpadding="0">
           <tr><td  valign="middle">
            查询地区：
            <asp:DropDownList ID="ddlProvince" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlProvince_SelectedIndexChanged">
                <asp:ListItem Text="省" Value="0"></asp:ListItem>
            </asp:DropDownList>
            <asp:DropDownList ID="ddlCity" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlCity_SelectedIndexChanged">
                <asp:ListItem Text="城市" Value="0"></asp:ListItem>
            </asp:DropDownList>
            <asp:DropDownList ID="ddlRegion" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlRegion_SelectedIndexChanged">
                <asp:ListItem Text="地区" Value="0"></asp:ListItem>
            </asp:DropDownList>
            <asp:DropDownList ID="ddlZone" runat="server">
                <asp:ListItem Text="片区" Value="0"></asp:ListItem>
            </asp:DropDownList>
            </td></tr>
            <tr><td  valign="middle">
            查询时间：从<asp:DropDownList ID="ddlStartYear" runat="server">
            </asp:DropDownList>年
            <asp:DropDownList ID="ddlStartMonth" runat="server">
            </asp:DropDownList>月 至<asp:DropDownList ID="ddlEndYear" runat="server">
            </asp:DropDownList>年
            <asp:DropDownList ID="ddlEndMonth" runat="server">
            </asp:DropDownList>月
            </td></tr>
            <tr><td  valign="middle">
            <span>订单状态：</span>
            <select id="ddlState" runat="server">
                <option value="-3">全部</option>
                <option value="1" selected="selected">已完成</option>
                <option value="0">待处理</option>
                <option value="-1">作废</option>
                <option value="-2">虚假</option>
            </select>
            <asp:Button ID="Button1" runat="server" Text="查询" OnClick="Button1_Click" />
            </td></tr></table>
        </div>
        <div class="tablezongji">
            <div style="float:left;">订单总笔数：<span id="lblTotalCount" runat="server" style="color:#FF0000;">112笔</span> 订单总金额：<span id="lblTotal"
                runat="server" style="color:#FF0000;">5436元</span></div><div style="float:right;"><asp:Button ID="Button2" runat="server" Text="导出到EXCEL"
                    OnClick="Button2_Click" /></div>
        </div>
        <div style="margin-top:10px; float:left;">
            <asp:Repeater ID="Repeater1" runat="server">
                <HeaderTemplate>
                    <table class="NewTable NewTable1">
                        <tr>
                            <th>
                                编号
                            </th>
                            <th>
                                月份</th>
                            <th>
                                订单笔数（笔）</th>
                            <th>
                                订单金额（元）</th>
                            <th>
                                订单均额（元）</th>
                        </tr>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr>
                        <td>
                            <%#Eval("row") %>
                        </td>
                        <td>
                            <%#Eval("date").ToString().Replace("-","") %>
                        </td>
                        <td>
                            <%#Eval("totalcount") %>
                        </td>
                        <td>
                            <%#Convert.ToSingle(Eval("total")).ToString("0.00") %>
                        </td>
                        <td>
                            <%#Eval("ave") %>
                        </td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                    </table></FooterTemplate>
            </asp:Repeater>
        </div>
        <div style="width: 243px; float: left; margin-top:8px;">
            <PageControl:myPageControl ID="MyPageControl1" runat="server" PageSize="50" TotalRecord="20"
                OnChangePageClick="PageControl_Click" IsDoPostBack="true" ItemSize="5" PageInfoShow="False" />
        </div>
    </div>
</asp:Content>
