<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CommissionDetail.aspx.cs"
    Inherits="PowerEasy.Module.Promotion.WebSite.User.Promotion.CommissionDetail" %>

<!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>
        <asp:Literal ID="LitTitle" runat="server" Text="<%$ Res:User_Promotion_CommissionDetail_Title,查看佣金明细 %>" />
    </title>
</head>
<body>
    <pe:ExtendedSiteMapPath ID="YourPosition" SiteMapProvider="UserMapProvider" runat="server" />
    <form id="MainForm" runat="server">
    <div class="model_info_list">
    <div class="model_info_sate mtop10">
        <ul>
            <li id="TabTitle0" onclick="ShowTabs(0)"><span><a href="javascript:void(0)">
                <asp:Literal ID="Literal1" runat="server" Text="<%$ Res: User_Promotion__CommissionDetail_ListItem9,所有状态%>" /></a></span></li>
            <li id="TabTitle2" onclick="ShowTabs(2)"><span><a href="javascript:void(0)">
                <asp:Literal ID="Literal3" runat="server" Text="<%$ Res: User_Promotion__CommissionDetail_ListItem10,已提现%>" /></a></span></li>
            <li id="TabTitle1" onclick="ShowTabs(1)"><span><a href="javascript:void(0)">
                <asp:Literal ID="Literal2" runat="server" Text="<%$ Res: User_Promotion__CommissionDetail_ListItem11,未提现%>" /></a></span></li>
        </ul>
    </div>
    <asp:HiddenField ID="HdnCommissionStatus" runat="server" Value="0" />
    <asp:HiddenField ID="HdnListType" runat="server" Value="0" />
    <script language="javascript" type="text/javascript">
        var hdnTabId = document.getElementById('HdnCommissionStatus');
        function ShowTabs(ID) {
            var tID = parseInt(hdnTabId.value);
            if (ID != tID) {
                hdnTabId.value = ID.toString();
                __doPostBack("ClientDoPostBack", ID.toString());
            }
        }
        document.getElementById("TabTitle" + hdnTabId.value).className = "hover";
    </script>
    <div class="model_info_content">
        <pe:MemberExtendedGridView ID="GdvCommissionDetail" runat="server" AutoGenerateColumns="False"
            DataSourceID="OdsCommission" DataKeyNames="OrderId" OnRowDataBound="GdvCommissionDetail_RowDataBound"
            AllowPaging="True" OnDataBound="GdvCommissionDetail_DataBound" ItemName="<%$ Res: User_Promotion__CommissionDetail_ListItem18,佣金明细%>"
            ItemUnit="<%$ Res: User_Promotion__CommissionDetail_ListItem19,条%>" EmptyDataText="<%$ Res: User_Promotion__CommissionDetail_ListItem20,没有任何符合条件的佣金明细！%>"
            AutoGenerateCheckBoxColumn="False" ShowFooter="True" CheckBoxFieldHeaderWidth="3%"
            SerialText="" RowDblclickBoundField="OrderId">
            <Columns>
                <pe:TemplateField HeaderText="<%$ Res: User_Promotion__CommissionDetail_ListItem1,商品名称%>"
                    SortExpression="OrderNum">
                    <ItemStyle HorizontalAlign="Left" />
                    <HeaderStyle Width="20%" />
                    <ItemTemplate>
                        <pe:ExtendedLabel HtmlEncode="false" ID="LblProductName" runat="server" />
                    </ItemTemplate>
                </pe:TemplateField>
                <pe:TemplateField HeaderText="<%$ Res: User_Promotion__CommissionDetail_ListItem2,商品单价%>"
                    SortExpression="MoneyTotal">
                    <ItemStyle HorizontalAlign="Center" />
                    <HeaderStyle Width="10%" />
                    <ItemTemplate>
                        <pe:ExtendedLabel HtmlEncode="false" ID="LblPrice" runat="server" />
                    </ItemTemplate>
                </pe:TemplateField>
                <pe:TemplateField HeaderText="<%$ Res: User_Promotion__CommissionDetail_ListItem3,商品名称%>"
                    SortExpression="Amount">
                    <ItemStyle HorizontalAlign="Center" />
                    <HeaderStyle Width="10%" />
                    <ItemTemplate>
                        <pe:ExtendedLabel HtmlEncode="false" ID="LblAmount" runat="server" />
                    </ItemTemplate>
                </pe:TemplateField>
                <pe:TemplateField HeaderText="<%$ Res: User_Promotion__CommissionDetail_ListItem4,佣金类型%>"
                    SortExpression="CommissionType">
                    <ItemStyle HorizontalAlign="center" />
                    <HeaderStyle Width="10%" />
                    <ItemTemplate>
                        <asp:Label ID="LblCommissionType" runat="server" Text="Label"></asp:Label>
                    </ItemTemplate>
                </pe:TemplateField>
                <pe:TemplateField HeaderText="<%$ Res: User_Promotion__CommissionDetail_ListItem5,佣金设置%>"
                    SortExpression="Commission">
                    <ItemStyle HorizontalAlign="center" />
                    <HeaderStyle Width="10%" />
                    <ItemTemplate>
                        <asp:Label ID="LblRate" runat="server" Text="Label"></asp:Label>
                    </ItemTemplate>
                </pe:TemplateField>
                <pe:TemplateField HeaderText="<%$ Res: User_Promotion__CommissionDetail_ListItem6,获得佣金%>">
                    <ItemStyle HorizontalAlign="Right" />
                    <HeaderStyle Width="10%" />
                    <ItemTemplate>
                        <pe:ExtendedLabel HtmlEncode="false" ID="LblCommission" runat="server" />
                    </ItemTemplate>
                </pe:TemplateField>
                <pe:TemplateField HeaderText="<%$ Res: User_Promotion__CommissionDetail_ListItem7,交易时间%>">
                    <ItemStyle HorizontalAlign="Center" />
                    <HeaderStyle Width="20%" />
                    <ItemTemplate>
                        <%# Eval("CreateTime", "{0:yyyy-MM-dd HH:mm:ss}")%>
                    </ItemTemplate>
                </pe:TemplateField>
                <pe:TemplateField HeaderText="<%$ Res: User_Promotion__CommissionDetail_ListItem8,佣金状态%>">
                    <ItemStyle HorizontalAlign="Center" />
                    <HeaderStyle Width="10%" />
                    <ItemTemplate>
                        <pe:ExtendedLabel HtmlEncode="false" ID="LblStatus" runat="server" />
                    </ItemTemplate>
                </pe:TemplateField>
            </Columns>
            <FooterStyle CssClass="tdbg" />
        </pe:MemberExtendedGridView>
        <asp:ObjectDataSource ID="OdsCommission" runat="server" SelectCountMethod="GetTotalOfCommission"
            SelectMethod="GetUserCommissionInfoList" TypeName="PowerEasy.Module.Promotion.BusinessLogic.CommissionDetailManage"
            EnablePaging="True" StartRowIndexParameterName="startRowIndexId" MaximumRowsParameterName="maxNumberRows">
            <SelectParameters>
                <asp:ControlParameter ControlID="HdnCommissionStatus" Type="Int32" Name="commissionStatus"
                    PropertyName="Value" />
                <asp:ControlParameter ControlID="HdnListType" Type="Int32" Name="listType" PropertyName="Value" />
                <asp:ControlParameter ControlID="DpkStartDate" Type="DateTime" Name="startDate" PropertyName="Text" />
                <asp:ControlParameter ControlID="DpkEndDate" Type="DateTime" Name="endDate" PropertyName="Text" />
            </SelectParameters>
        </asp:ObjectDataSource>
    </div>
    </div>
    <div class="clear"></div>
    <div class="model_list_manage">
        <asp:Localize ID="Localize2" Text="<%$ Res: User_Promotion__CommissionDetail_ListItem13,开始日期%>"
            runat="server" />：
        <pe:DatePicker ID="DpkStartDate" runat="server" Width="80" DateImage="~/User/Images/Calendar.gif"
            CssClass="inputxt"></pe:DatePicker>
        <pe:RequiredFieldValidator ID="ValrDpkStartDate" ControlToValidate="DpkStartDate"
            runat="server" ErrorMessage="<%$ Res: User_Promotion__CommissionDetail_ListItem16,开始日期不能为空%>"
            Display="Dynamic" RequiredText="" ValidationGroup="Search"></pe:RequiredFieldValidator>
        <pe:RegexValidator ValidateType="Date" ID="VdateStartDate" runat="server" ControlToValidate="DpkStartDate"
            Display="Dynamic" ErrorMessage="日期不正确！" SetFocusOnError="true" ValidationGroup="Search"></pe:RegexValidator>
        &nbsp;
        <asp:Localize ID="Localize3" Text="<%$ Res: User_Promotion__CommissionDetail_ListItem14,结束日期%>"
            runat="server" />：
        <pe:DatePicker ID="DpkEndDate" runat="server" Width="80" DateImage="~/User/Images/Calendar.gif"
            CssClass="inputxt"></pe:DatePicker><pe:RequiredFieldValidator ID="ValrDpkEndDate"
                ControlToValidate="DpkEndDate" runat="server" ErrorMessage="<%$ Res: User_Promotion__CommissionDetail_ListItem17,结束日期不能为空%>"
                Display="Dynamic" RequiredText="" ValidationGroup="Search"></pe:RequiredFieldValidator><pe:RegexValidator
                    ValidateType="Date" ID="VdateEndDate" runat="server" ControlToValidate="DpkEndDate"
                    Display="Dynamic" ErrorMessage="日期不正确！" SetFocusOnError="true" ValidationGroup="Search"></pe:RegexValidator>
        &nbsp;
        <asp:Button ID="BtnSearch" runat="server" Text=" <%$ Res: User_Promotion__CommissionDetail_ListItem15,查询%> "
            OnClick="BtnSearch_Click" ValidationGroup="Search" CssClass="submit_button" />
    </div>
    </form>
</body>
</html>
