<%@ page title="" language="VB" masterpagefile="~/Template/Master.master" autoeventwireup="false" inherits="RCC_Billing_CommissionDetail, MachSol.MachPanel.Web" %>

<%@ Register Src="~/RCC/Billing/CC/CommissionDetail.ascx" TagName="Detail" TagPrefix="UC" %>
<%@ Register Src="~/RCC/Billing/CC/CommissionTransactions.ascx" TagName="Transactions" TagPrefix="UC" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="Ajax" %>

<asp:Content ID="Content5" ContentPlaceHolderID="CPH_Content" runat="Server">
    <div class="col-xs-12">
        <div class="card">
            <div class="body">
                <div class="card" id="tbl_summary" runat="server">
                    <div class="header">
                        <h3><%= Resources.Content.USM0101%></h3>
                    </div>
                    <div class="body">
                        <div class="row">
                            <div class="col-sm-2 col-xs-12 row-label">
                                <asp:Literal ID="Ltrl_CustomerIdHeading" runat="server" Text="<%$ Resources:Content,GN0000678 %>"></asp:Literal>:
                            </div>
                            <div class="col-sm-10 col-xs-12">
                                <asp:LinkButton ID="Lbtn_CustomerId" runat="server"></asp:LinkButton>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-2 col-xs-12 row-label">
                                <asp:Literal ID="Ltrl_CustomerNameHeading" runat="server" Text="<%$ Resources:Content,GN000170 %>"></asp:Literal>:
                            </div>
                            <div class="col-sm-10 col-xs-12">
                                <asp:Literal ID="Ltrl_CustomerName" runat="server"></asp:Literal>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-2 col-xs-12 row-label">
                                <asp:Literal ID="Ltrl_CompanyNameHeading" runat="server" Text="<%$ Resources:Content,GN00001077 %>"></asp:Literal>:
                            </div>
                            <div class="col-sm-10 col-xs-12">
                                <asp:Literal ID="Ltrl_CompanyName" runat="server"></asp:Literal>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-2 col-xs-12 row-label">
                                <asp:Literal ID="Ltrl_PrimaryEmailHeading" runat="server" Text="<%$ Resources:Content,GN00001525 %>"></asp:Literal>:
                            </div>
                            <div class="col-sm-10 col-xs-12">
                                <asp:Literal ID="Ltrl_PrimaryEmail" runat="server"></asp:Literal>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-2 col-xs-12 row-label">
                                <asp:Literal ID="Ltrl_PhoneHeading" runat="server" Text="<%$ Resources:Content,GN00012 %>"></asp:Literal>:
                            </div>
                            <div class="col-sm-10 col-xs-12">
                                <asp:Literal ID="Ltrl_Phone" runat="server"></asp:Literal>
                            </div>
                        </div>
                        <div class="row">
                            <asp:Repeater ID="Rep_CommissionSummary" runat="server">
                                <HeaderTemplate>
                                    <div class="col-md-12 col-xs-12">
                                        <table class="table">
                                            <tr>
                                                <th class="col-md-2 col-xs-12 row-label">
                                                    <asp:Literal ID="Ltrl_PaymentGroup" runat="server" Text="<%$ Resources:Content,GN0000196%>" />
                                                </th>
                                                <th class="col-md-1 col-xs-12 row-label">
                                                    <asp:Literal ID="Ltrl_TotalIncome" runat="server" Text="<%$ Resources:Content,USM0098%>" />
                                                </th>
                                                <th class="col-md-1 col-xs-12 row-label">
                                                    <asp:Literal ID="Ltrl_Bonuses" runat="server" Text="<%$ Resources:Content,GN0000319%>" />
                                                </th>
                                                <th class="col-md-2 col-xs-12 row-label">
                                                    <asp:Literal ID="Ltrl_Deductions" runat="server" Text="<%$ Resources:Content,USM0105%>" />
                                                </th>
                                                <th class="col-md-2 col-xs-12 row-label">
                                                    <asp:Literal ID="Ltrl_NetIncome" runat="server" Text="<%$ Resources:Content,USM0100%>" />
                                                </th>
                                                <th class="col-md-2 col-xs-12 row-label">
                                                    <asp:Literal ID="Ltrl_Payments" runat="server" Text="<%$ Resources:Content,GN000120%>" />
                                                </th>
                                                <th class="col-md-2 col-xs-12 row-label">
                                                    <asp:Literal ID="Ltrl_Balance" runat="server" Text="<%$ Resources:Content,GN0000693%>" />
                                                </th>
                                            </tr>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <tr>
                                        <td class="col-md-2 col-xs-12">
                                            <asp:Label ID="Lbl_PGName" runat="server" />
                                        </td>
                                        <td class="col-md-1 col-xs-12">
                                            <asp:Label ID="Lbl_TotalIncome" runat="server" />
                                        </td>
                                        <td class="col-md-1 col-xs-12">
                                            <asp:Label ID="Lbl_Bonuses" runat="server" />
                                        </td>
                                        <td class="col-md-2 col-xs-12">
                                            <asp:Label ID="Lbl_Deductions" runat="server" />
                                        </td>
                                        <td class="col-md-2 col-xs-12">
                                            <asp:Label ID="Lbl_NetIncome" runat="server" />
                                        </td>
                                        <td class="col-md-2 col-xs-12">
                                            <asp:Label ID="Lbl_Payments" runat="server" />
                                        </td>
                                        <td class="col-md-2 col-xs-12">
                                            <asp:Label ID="Lbl_Balance" runat="server" />
                                        </td>
                                    </tr>
                                </ItemTemplate>
                                <FooterTemplate>
                                    </table>
                                    </div>
                                </FooterTemplate>
                            </asp:Repeater>
                        </div>
                    </div>
                </div>
                <br />
                <div class="card">
                    <div class="body">
                        <ajax:TabContainer ID="TC_Documents" runat="server" OnClientActiveTabChanged="loadTabPanel">
                            <%--Commission Tab--%>
                            <ajax:TabPanel ID="Tab_Commission" runat="server" HeaderText='<%$ Resources:Content,USM0104 %>'>
                                <contenttemplate>
                <asp:Button ID="Btn_Tab0" runat="server" Style="display: none;" />
                <asp:Panel ID="Pnl_TabContent0" runat="server">
                    <UC:Detail ID="detail1" runat="server" />
                </asp:Panel>
            </contenttemplate>
                            </ajax:TabPanel>
                            <%--Bonus--%>
                            <ajax:TabPanel ID="Tab_Bonus" runat="server" HeaderText='<%$ Resources:Content,GN0000319 %>'>
                                <contenttemplate>
                <asp:Button ID="Btn_Tab1" runat="server" Style="display: none;" />
                <asp:Panel ID="Pnl_TabContent1" runat="server" Visible="false">
                    <UC:Transactions ID="Trans_Bonus" runat="server" />
                </asp:Panel>
            </contenttemplate>
                            </ajax:TabPanel>
                            <ajax:TabPanel ID="Tab_Deductions" runat="server" HeaderText='<%$ Resources:Content,USM0105 %>'>
                                <contenttemplate>
                <asp:Button ID="Btn_Tab2" runat="server" Style="display: none;" />
                <asp:Panel ID="Pnl_TabContent2" runat="server" Visible="false">
                    <UC:Transactions ID="Trans_Deductions" runat="server" />
                </asp:Panel>
            </contenttemplate>
                            </ajax:TabPanel>
                            <%--Payments Tab--%>
                            <ajax:TabPanel ID="Tab_Payments" runat="server" HeaderText='<%$ Resources:Content, GN0000684 %>'>
                                <contenttemplate>
                <asp:Button ID="Btn_Tab3" runat="server" Style="display: none;" />
                <asp:Panel ID="Pnl_TabContent3" runat="server" Visible="false">
                    <UC:Transactions ID="Trans_Payments" runat="server" />
                </asp:Panel>
            </contenttemplate>
                            </ajax:TabPanel>
                        </ajax:TabContainer>
                    </div>
                </div>


            </div>
        </div>
    </div>
</asp:Content>

