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

<!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>
</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="HdnUserName" runat="server" Value="0" />
        <asp:HiddenField ID="HdnListType" runat="server" Value="" />
        <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="EgvRegister" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                CheckBoxFieldHeaderWidth="3%" DataSourceID="OdsSearch" IsHoldState="True" SerialText=""
                DataKeyNames="ID" ShowFooter="True" OnRowDataBound="EgvRegister_RowDataBound"
                OnDataBound="EgvRegister_DataBound">
                <Columns>
                    <asp:BoundField DataField="RegisterUserName" HeaderText="<%$ Res: User_Promotion_RegisterCommissionDetail_RegisterUserName,注册会员名%>"
                        SortExpression="RegisterUserName" />
                    <asp:BoundField DataField="RegisterIP" HeaderText="<%$ Res: User_Promotion_RegisterCommissionDetail_RegisterIP,注册IP%>"
                        SortExpression="RegisterIP" />
                    <pe:TemplateField HeaderText="<%$ Res: User_Promotion_RegisterCommissionDetail_RegisterTime,注册时间%>">
                        <ItemStyle HorizontalAlign="Center" />
                        <ItemTemplate>
                            <%# Eval("RegisterTime", "{0:yyyy-MM-dd HH:mm:ss}")%>
                        </ItemTemplate>
                    </pe:TemplateField>
                    <pe:TemplateField HeaderText="<%$ Res: User_Promotion_RegisterCommissionDetail_Commission,佣金%>">
                        <ItemStyle HorizontalAlign="Right" />
                        <HeaderStyle Width="10%" />
                        <ItemTemplate>
                            <%# Eval("Commission", "{0:N}")%>
                        </ItemTemplate>
                    </pe:TemplateField>
                    <asp:TemplateField HeaderText="<%$ Res: User_Promotion_RegisterCommissionDetail_State,状态%>">
                        <ItemTemplate>
                            <pe:ExtendedLabel ID="ELblState" HtmlEncode="false" runat="server" Text="<%$ Res: User_Promotion__CommissionDetail_ListItem11,未提现%>">
                    &nbsp;&nbsp;&nbsp;
                            </pe:ExtendedLabel>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <FooterStyle CssClass="tdbg" />
            </pe:MemberExtendedGridView>
            <asp:ObjectDataSource ID="OdsSearch" runat="server" SelectMethod="GetList" TypeName="PowerEasy.Module.Promotion.BusinessLogic.RegisterPromotionManage"
                SelectCountMethod="GetTotalOfRegisterPromotion" EnablePaging="True" StartRowIndexParameterName="startRowIndexId" MaximumRowsParameterName="maxNumberRows">
                <SelectParameters>
                    <asp:ControlParameter ControlID="HdnCommissionStatus" Name="commissionStatus" PropertyName="Value"
                        Type="Int32" />
                    <asp:ControlParameter ControlID="HdnUserName" Name="userName" PropertyName="Value"
                        Type="String" />
                    <asp:ControlParameter ControlID="HdnListType" Name="listType" PropertyName="Value"
                        Type="Int32" />
                    <asp:ControlParameter ControlID="DpkStartDate" Name="startTime" PropertyName="Text"
                        Type="DateTime" />
                    <asp:ControlParameter ControlID="DpkEndDate" Name="endTime" PropertyName="Text" Type="DateTime" />
                </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" CssClass="inputxt" DateImage="~/User/Images/Calendar.gif"></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" SetFocusOnError="true" ErrorMessage="<%$ Res: User_Promotion_RegisterCommissionDetail_ErrorDate,日期不正确！%>"
                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" CssClass="inputxt" DateImage="~/User/Images/Calendar.gif"></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" SetFocusOnError="true" ErrorMessage="<%$ Res: User_Promotion_RegisterCommissionDetail_ErrorDate,日期不正确！%>"
            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>
