<%@ page language="C#" masterpagefile="~/Member/MyShopMasterPage.master" autoeventwireup="true" inherits="Member_PromotionManage_SaleView, WebApp_deploy" title="积分商品销售明细" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div class="pageTitle">
        &nbsp;&nbsp;<asp:Literal ID="ltrProType" runat="server"></asp:Literal>销售明细管理</div>
    <asp:UpdatePanel ID="UpdatePanel4" runat="server">
        <ContentTemplate>
            <table class="SearchTableStyle">
                <tr>
                    <th colspan="4" style="text-align: left">
                        &nbsp;查询
                    </th>
                </tr>
                <tr>
                    <td class="tdbg5" align="right">
                        订单号：
                    </td>
                    <td class="tdbg5">
                        <asp:TextBox ID="TxtOrderFormNum" runat="server" Height="16px" />
                    </td>
                    <td class="tdbg5" align="right">
                        客户名称：
                    </td>
                    <td class="tdbg5">
                        <asp:TextBox ID="TxtUserName" runat="server" Height="16px" />
                    </td>
                </tr>
                <tr>
                    <td class="tdbg5" align="right">
                        起始日期：
                    </td>
                    <td class="tdbg5">
                        <asp:TextBox ID="TxtBeginDate" runat="server" Height="16px" />
                    </td>
                    <td class="tdbg5" align="right">
                        结束日期：
                    </td>
                    <td class="tdbg5">
                        <asp:TextBox ID="TxtEndDate" runat="server" Height="16px" />
                    </td>
                </tr>
                <tr>
                    <td class="tdbg5" colspan="4" style="text-align: center">
                        <asp:Button ID="QuickSearchBtn" runat="server" Text=" 查 询 " OnClick="QuickSearchBtn_Click" />
                    </td>
                </tr>
            </table>
            <div style="line-height: 2px;">
                &nbsp;</div>
            <table class="SearchTableStyle">
                <tr>
                    <td>
                        你现在查看的是：
                        <asp:DropDownList ID="DropMoment" runat="server" AutoPostBack="True" Width="120px">
                            <asp:ListItem Value="0" Text="所有"></asp:ListItem>
                            <asp:ListItem Value="7" Text="一个星期之内"></asp:ListItem>
                            <asp:ListItem Value="10" Text="十天之内"></asp:ListItem>
                            <asp:ListItem Value="30" Text="一个月之内" Selected="True"></asp:ListItem>
                            <asp:ListItem Value="month" Text="本月"></asp:ListItem>
                            <asp:ListItem Value="year" Text="本年"></asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
            </table>
            <div style="line-height: 2px;">
                &nbsp;</div>
            <asp:Repeater ID="rptList" runat="server">
                <HeaderTemplate>
                    <table class="rptrow" cellspacing="0" cellpadding="0">
                        <tr>
                            <th>
                                行号
                            </th>
                            <th>
                                订单号
                            </th>
                            <th>
                                类型
                            </th>
                            <th>
                                客户
                            </th>
                            <th>
                                下单时间
                            </th>
                            <th>
                                商品积分
                            </th>
                            <th>
                                订单总额
                            </th>
                        </tr>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr onmouseover="c=this.style.backgroundColor;this.style.backgroundColor='#E7EDFE'"
                        onmouseout="this.style.backgroundColor=c;">
                        <td align="center">
                            <asp:Label ID="lblRow" runat="server"></asp:Label>
                        </td>
                        <td align="left" style="padding-left: 6px; padding-right: 2px;">
                            <asp:HyperLink ID="HyperLink1" runat="server" Target="_blank" Text='<%#Eval("OrderFormNum") %>'
                                NavigateUrl='<%# "Shop_BuyOrder.aspx?OrderFormNum="+Eval("OrderFormNum") %>'></asp:HyperLink>
                        </td>
                        <td>
                            <%# HoWave.Web.Shop.TextFormat.GetProductType(Eval("TradeType").ToString()) %>
                        </td>
                        <td>
                            <%#Eval("BuyerName") %>
                        </td>
                        <td>
                            <%#Eval("inputtime")==DBNull.Value?"":Eval("inputtime")%>
                        </td>
                        <td align="right" style="padding-right: 6px;">
                            <%#Eval("PresentExpTotal")%>
                        </td>
                        <td align="right" style="padding-right: 6px;">
                            <asp:HiddenField ID="hfPresentExpTotal" runat="server" Value='<%# Eval("PresentExpTotal") %>' />
                            <asp:HiddenField ID="hfTotal" runat="server" Value='<%# Eval("MoneyTotal") %>' />
                            <%# Eval("MoneyTotal")%>
                        </td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                    <tr class="rptrowTrBg">
                        <td align="center">
                            合计
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td align="right" style="padding-right: 6px;">
                            <asp:Label ID="lblTotalPresentExpTotal" runat="server" ForeColor="Black"></asp:Label>
                        </td>
                        <td align="right" style="padding-right: 6px;">
                            <asp:Label ID="lblTotalMoney" runat="server" ForeColor="Black"></asp:Label>
                        </td>
                    </tr>
                    </table>
                </FooterTemplate>
            </asp:Repeater>
            <div style="text-align: center;">
                &nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Literal ID="ltrPagePanel" runat="server"></asp:Literal></div>
            <div style="line-height: 6px;">
                &nbsp;</div>
        </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="QuickSearchBtn"></asp:AsyncPostBackTrigger>
        </Triggers>
    </asp:UpdatePanel>
</asp:Content>
