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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="Ajax" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="UC" %>

<asp:Content ID="Content5" ContentPlaceHolderID="CPH_Content" runat="Server">
    <style type="text/css">
    </style>
    <div class="container-fluid">
        <div class="card">
            <div class="header">
                <h3>
                    <%= Resources.Content.String243%>
                </h3>
            </div>
            <div class="body">

                <asp:Panel ID="Pnl_Search" runat="server" DefaultButton="Btn_Search" CssClass="row">

                    <div class="panel-group search-panel" id="AS_RComissionList" role="tablist" aria-multiselectable="true">
                        <div class="card" role="tab" id="SH_RComissionList">
                            <div class="header" role="button" data-toggle="collapse" data-parent="#AS_RComissionList" href="#<%= CSB_RComissionList.ClientID%>" aria-expanded="true" aria-controls="SH_RComissionList">
                                <h3 class="panel-title">
                                    <asp:Literal ID="Ltrl_FilterHeading" runat="server" Text="<%$ Resources:Content,GN0000395 %>"></asp:Literal>
                                </h3>
                            </div>
                            <div id="CSB_RComissionList" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_RComissionList" aria-expanded="false">
                                <div class="row">
                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                        <div class="form-group form-float">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_Id" runat="server" CssClass="form-control"></asp:TextBox>
                                                <asp:Label ID="Ltrl_Id" runat="server" Text="<%$ Resources:Content,GN0000678%>" CssClass="form-label"></asp:Label>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                        <div class="form-group form-float">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_Name" runat="server" CssClass="form-control"></asp:TextBox>
                                                <asp:Label ID="Ltrl_Name" runat="server" Text="<%$ Resources:Content,GN000170%>" CssClass="form-label"></asp:Label>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-xs-12">
                                        <div class="form-group">
                                            <asp:UpdatePanel ID="UP_Ops" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="true">
                                                <ContentTemplate>
                                                    <asp:Button ID="Btn_Search" CssClass="btn btn-primary" runat="server" Text="<%$ Resources:Content,GN0000391%>" />
                                                    &nbsp;
                                                        <asp:Button ID="Btn_Clear" Visible="false" CssClass="btn btn-primary" runat="server"
                                                            Text="<%$ Resources:Content,String289%>" />
                                                </ContentTemplate>
                                            </asp:UpdatePanel>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </asp:Panel>

                <div class="clearfix"></div>
                <asp:UpdatePanel ID="UP_List" runat="server" UpdateMode="Conditional">
                    <ContentTemplate>
                        <asp:GridView CssClass="table table-bordered table-striped table-hover" EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                            ID="GV_List" AllowPaging="True" AllowSorting="true" runat="server" AutoGenerateColumns="False">
                            <AlternatingRowStyle CssClass="altRow" />
                            <Columns>
                                <asp:TemplateField SortExpression="CustomerId" HeaderText="<%$ Resources:Content, GN0000678 %>">
                                    <ItemTemplate>
                                        <asp:HyperLink ID="LB_Reseller" Text='<%#DataBinder.Eval(Container, "DataItem.CustomerId")%>' runat="server"
                                            NavigateUrl='<%# ResolveClientUrl("~/RCC/Billing/CommissionDetail.aspx?CID=" & Eval("CompanyId"))%>'></asp:HyperLink>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField SortExpression="Name" HeaderText="<%$ Resources:Content, GN000170 %>">
                                    <ItemTemplate>
                                        <asp:HyperLink ID="LB_Name" Text='<%#DataBinder.Eval(Container, "DataItem.Name")%>'
                                            runat="server"
                                            NavigateUrl='<%# ResolveClientUrl("~/RCC/Billing/CommissionDetail.aspx?CID=" & Eval("CompanyId"))%>' data-toggle="tooltip" data-placement="top" title="" data-original-title="" data-html="true"></asp:HyperLink>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField SortExpression="Name" HeaderText="<%$ Resources:Content, GN00001077 %>">
                                    <ItemTemplate>
                                        <asp:Label ID="LB_CompanyName" Text='<%#Eval("CompanyName")%>'
                                            runat="server"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="<%$ Resources:Content, GN0000882 %>">
                                    <ItemTemplate>
                                        <asp:Image ID="Img_CountryFlag" runat="server" ImageUrl='<%# ResolveClientUrl("~/App_Themes/Default/Images/flags/" & Eval("Country_ISO_2") & ".png")%>' />
                                        <asp:Label ID="Lbl_Country" runat="server" Text='<%#Eval("CountryName")%>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="<%$ Resources:Content, USM0113 %>">
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_TotalSales" runat="server" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="<%$ Resources:Content, USM0100 %>">
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_TotalIncome" runat="server" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="<%$ Resources:Content, GN000120 %>">
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_AmountPaid" runat="server" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="<%$ Resources:Content, GN0000693 %>">
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_Balance" runat="server" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="<%$ Resources:Content, GN0000360 %>" HeaderStyle-Width="20%">
                                    <ItemTemplate>
                                        <asp:HyperLink ID="Lbtn_NewComTrans" Text="<%$ Resources:Content,USM0110%>" SkinID="linkButtoncommission"
                                            runat="server" CssClass="btnAction" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <%--PagerTemplate Start--%>
                            <PagerTemplate>
                                <UC:Pager ID="Pager1" runat="server" />
                            </PagerTemplate>
                            <%--PagerTemplate End--%>
                        </asp:GridView>
                    </ContentTemplate>
                    <Triggers>
                        <asp:AsyncPostBackTrigger ControlID="Btn_Search" EventName="Click" />
                        <asp:AsyncPostBackTrigger ControlID="Btn_Clear" EventName="Click" />
                    </Triggers>
                </asp:UpdatePanel>
            </div>
        </div>
    </div>

</asp:Content>

