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

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

<asp:Content ID="Content5" ContentPlaceHolderID="CPH_Content" runat="Server">
    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <h3>
                    <asp:Literal ID="Literal111" runat="server" Text="<%$ Resources:Content, Lync049 %>"></asp:Literal>
                </h3>
            </div>
            <div class="body">
                <EM:TabContainer ID="TC_SPLA" runat="server" OnClientActiveTabChanged="loadTabPanel">
                    <EM:TabPanel ID="Tab_SPLAReport" runat="server" HeaderText="<%$ Resources:Content,MD200%>">
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab0" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent0" runat="server">
                                <%-- Operations --%>
                                <div class="row">
                                    <div class="col-xs-12">
                                        <div id="Tbl_Operations" runat="server">
                                            <div class="card">
                                                <div class="header">
                                                    <h3>
                                                        <%= Resources.Content.GN00001320%>                                                                                                                                 
                                                    </h3>
                                                </div>
                                                <div class="body">
                                                    <div class="row">
                                                        <div class="col-xs-12">
                                                            <asp:Button ID="Btn_ExportExcel" class="btn btn-primary waves-effect" runat="server" Text='<%$ Resources:Content,Ex001 %>' />
                                                            <asp:Button ID="BtnExportToPDF" class="btn btn-primary waves-effect" runat="server" Text='<%$ Resources:Content,strExportToPDF %>' />
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>

                                <table class="table">
                                    <tr>
                                        <th>
                                            <asp:Literal ID="Literal3" runat="server" Text="<%$ Resources:Content,SPLA08%>" />
                                        </th>
                                        <th>
                                            <asp:Literal ID="Literal4" runat="server" Text="<%$ Resources:Content,SPLA09%>" />
                                        </th>
                                        <th>
                                            <asp:Literal ID="Literal5" runat="server" Text="<%$ Resources:Content,SPLA10%>" />
                                        </th>
                                        <th>
                                            <asp:Literal ID="Literal6" runat="server" Text="<%$ Resources:Content,SPLA11%>" />
                                        </th>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="Lbl_StandardSAL" runat="server" Text="<%$ Resources:Content,GN0000665%>" />
                                        </td>
                                        <td>
                                            <asp:Label ID="Lbl_EnterpriseSAL" runat="server" Text="<%$ Resources:Content,GN0000665%>" />
                                        </td>
                                        <td>
                                            <asp:Label ID="Lbl_PlusSAL" runat="server" Text="<%$ Resources:Content,GN0000665%>" />
                                        </td>
                                        <td>
                                            <asp:Label ID="Lbl_EnterprisePlusSAL" runat="server" Text="<%$ Resources:Content,GN0000665%>" />
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                    <EM:TabPanel ID="Tab_SPLAByCustomer" runat="server" HeaderText="<%$ Resources:Content,Rpt002%>">
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab1" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent1" Visible="false" runat="server">

                                <%-- Operations --%>
                                <div class="row">
                                    <div class="col-xs-12">
                                        <div id="Div1" runat="server">
                                            <div class="card">
                                                <div class="header">
                                                    <h3>
                                                        <%= Resources.Content.GN00001320%>                                                                                                                                 
                                                    </h3>
                                                </div>
                                                <div class="body">
                                                    <div class="row">
                                                        <div class="col-xs-12">
                                                            <asp:Button ID="Btn_ExportSPLACustomer" class="btn btn-primary waves-effect" runat="server" Text='<%$ Resources:Content,Ex001 %>' />
                                                            <asp:Button ID="Btn_ExportSPLACustomerToPDF" class="btn btn-primary waves-effect" runat="server" Text='<%$ Resources:Content,strExportToPDF %>' />
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>

                                <%-- Search Filter --%>
                                <div class="row">
                                    <asp:Panel ID="Pnl_Filter" runat="server" DefaultButton="Btn_Filter">

                                        <div class="panel-group search-panel" id="AS_SPLA" role="tablist" aria-multiselectable="true">
                                            <div class="col-xs-12" role="tab" id="SH_SPLA">
                                                <div class="card">
                                                    <div class="header" role="button" data-toggle="collapse" data-parent="#AS_SPLA" href="#<%= CSB_SPLA.ClientID%>" aria-expanded="true" aria-controls="SH_SPLA">
                                                        <h3>
                                                            <%= Resources.Content.GN0000395%>
                                                        </h3>
                                                    </div>
                                                    <div id="CSB_SPLA" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_SPLA" aria-expanded="false">
                                                        <div class="row">
                                                            <div class="col-sm-4 col-xs-12" id="Td_OwnerDDL" runat="server">
                                                                <div class="form-group">
                                                                    <asp:DropDownList ID="DDL_Owner" runat="server" onchange="setOwnerCookie(this)">
                                                                    </asp:DropDownList>
                                                                </div>
                                                            </div>
                                                            <div class="col-sm-3 col-xs-12">
                                                                <div class="form-group form-float">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_Customer" MaxLength="200" runat="server"></asp:TextBox>
                                                                        <asp:Label CssClass="form-label" ID="Label3" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000268%>"></asp:Label>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="col-sm-3 col-xs-12">
                                                                <div class="form-group form-float">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_CustCompanyName" MaxLength="200" runat="server"></asp:TextBox>
                                                                        <asp:Label CssClass="form-label" ID="Literal22" runat="server" EnableViewState="false" Text='<%$ Resources:Content,GN00001077%>'></asp:Label>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-xs-12">
                                                                <asp:Button ID="Btn_Filter" CssClass="btn btn-primary waves-effect" runat="server" Text='<%$ Resources:Content,GN0000395 %>' />
                                                                <asp:Button ID="Btn_Clear" Visible="false" CssClass="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,String289 %>" />
                                                            </div>
                                                        </div>

                                                    </div>

                                                </div>
                                            </div>
                                        </div>

                                    </asp:Panel>
                                </div>

                                <div class="row">
                                    <div class="col-xs-12 row-label">
                                        <asp:Literal ID="Ltl_Note" runat="server"></asp:Literal>
                                    </div>
                                </div>

                                <div class="row">
                                    <div class="col-xs-12">

                                        <asp:GridView ID="GV_SPLACustomerReport" CssClass="table table-bordered table-striped table-hover" AllowSorting="true"
                                            AllowPaging="true" EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server"
                                            AutoGenerateColumns="False">
                                            <Columns>
                                                <asp:TemplateField SortExpression="Owner" HeaderText='<%$ Resources:Content, SPT002811 %>' HeaderStyle-CssClass="col-xs-2">
                                                    <ItemTemplate>
                                                        <%#DataBinder.Eval(Container, "DataItem.Owner")%>
                                                    </ItemTemplate>
                                                </asp:TemplateField>

                                                <asp:TemplateField SortExpression="Customer" HeaderText="<%$ Resources:Content,GN0000850%>"
                                                    HeaderStyle-CssClass="col-xs-2">
                                                    <ItemTemplate>
                                                        <asp:Label ID="LB_ClientID" runat="server"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>

                                                <%--<asp:TemplateField SortExpression="CustCompanyName" HeaderStyle-CssClass="col-xs-2" HeaderText='<%$ Resources:Content,GN00001077%>'>
                                                    <ItemTemplate>
                                                        <%#DataBinder.Eval(Container, "DataItem.CustCompanyName")%>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField SortExpression="Customer" HeaderText='<%$ Resources:Content,GN0000268%>' HeaderStyle-CssClass="col-xs-2">
                                                    <ItemTemplate>
                                                        <%#DataBinder.Eval(Container, "DataItem.Customer")%>
                                                    </ItemTemplate>
                                                </asp:TemplateField>--%>
                                                <%-- <asp:TemplateField SortExpression="CustomerNumber" HeaderText='<%$ Resources:Content,GN000924%>' HeaderStyle-CssClass="col-xs-2">
                                                    <ItemTemplate>
                                                        <%#DataBinder.Eval(Container, "DataItem.CustomerNumber")%>
                                                    </ItemTemplate>
                                                </asp:TemplateField>--%>

                                                <asp:TemplateField SortExpression="StandardSAL" HeaderText='<%$ Resources:Content, SPLA08 %>' HeaderStyle-CssClass="col-xs-2">
                                                    <ItemTemplate>
                                                        <%#DataBinder.Eval(Container, "DataItem.StandardSAL")%>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField SortExpression="EnterpriseSAL" HeaderText='<%$ Resources:Content, SPLA09 %>' HeaderStyle-CssClass="col-xs-2">
                                                    <ItemTemplate>
                                                        <%#DataBinder.Eval(Container, "DataItem.EnterpriseSAL")%>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField SortExpression="PlusSAL" HeaderText='<%$ Resources:Content, SPLA10 %>' HeaderStyle-CssClass="col-xs-2">
                                                    <ItemTemplate>
                                                        <%#DataBinder.Eval(Container, "DataItem.PlusSAL")%>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField SortExpression="EnterprisePlusSAL" HeaderText='<%$ Resources:Content, SPLA11 %>' HeaderStyle-CssClass="col-xs-2">
                                                    <ItemTemplate>
                                                        <%#DataBinder.Eval(Container, "DataItem.EnterprisePlusSAL")%>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                            </Columns>
                                            <%--PagerTemplate Start--%>
                                            <PagerTemplate>
                                                <EM:Pager ID="Pager1" runat="server" />
                                            </PagerTemplate>
                                            <%--PagerTemplate End--%>
                                        </asp:GridView>
                                    </div>
                                </div>
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                </EM:TabContainer>
            </div>
        </div>
    </div>
</asp:Content>

