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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>
<%@ Register Assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Namespace="System.Web.UI" TagPrefix="cc1" %>


<asp:Content ID="Content5" ContentPlaceHolderID="CPH_Content" runat="Server">


    <div class="col-xs-12">
        <div class="card">
            <%--<div class="header" id="hdrGroupAction" runat="server">
                <h3>
                    <%= Resources.Content.MD201%>
                </h3>
            </div>--%>
            <div class="body">
                <div class="clearfix">
                    <EM:TabContainer ID="TbCntr_ServerGroups" runat="server" OnClientActiveTabChanged="loadTabPanel">
                        <EM:TabPanel ID="Tab_ServerGroups" runat="server" HeaderText="<%$ Resources:Content,Exch601%>">
                            <%--"<%$ Resources:Content,GN0000835%>">--%>
                            <ContentTemplate>
                                <asp:Panel ID="Pnl_TabContent0" runat="server">
                                    <asp:Panel ID="Pnl_Filter" runat="server" DefaultButton="Btn_Filter">
                                        <div class="panel-group search-panel row" id="AS_CRMUsageReport" role="tablist" aria-multiselectable="true">
                                            <div class="col-xs-12" role="tab" id="SH_CRMUsageReport">
                                                <div class="card">
                                                    <div class="header" role="button" data-toggle="collapse" data-parent="#AS_ClientList" href="#<%= CSB_CRMUsageReport.ClientID%>" aria-expanded="true" aria-controls="SH_ClientList">
                                                        <h3>
                                                            <%= Resources.Content.GN0000395%>
                                                        </h3>
                                                    </div>
                                                    <div id="CSB_CRMUsageReport" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_CRMUsageReport" aria-expanded="false">
                                                        <div class="row">
                                                            <div class="col-md-3 col-sm-6 col-xs-12" id="tb_DDL_Owner" runat="server">
                                                                <div class="form-group form-float">
                                                                    <asp:DropDownList ID="DDL_Owner" runat="server" onchange="setOwnerCookie(this)">
                                                                    </asp:DropDownList>
                                                                </div>
                                                            </div>
                                                            <div class="col-md-3 col-sm-6 col-xs-12" id="Td_ClientIdTitle" runat="server">
                                                                <div class="form-group form-float">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_OrgName" MaxLength="200" runat="server"></asp:TextBox>
                                                                        <asp:Label ID="Label2" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DEV1034%>" class="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_Title" MaxLength="200" runat="server"></asp:TextBox>
                                                                        <asp:Label ID="Label4" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00001113%>" class="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_CustomerName" MaxLength="255" runat="server"></asp:TextBox>
                                                                        <asp:Label ID="Label6" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000268%>" class="form-label"></asp:Label>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="col-md-3 col-sm-6 col-xs-12" id="Div4" runat="server">
                                                                <div class="form-group form-float">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_CustCompanyName" MaxLength="255" runat="server"></asp:TextBox>
                                                                        <asp:Label ID="Label7" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00001077%>" class="form-label"></asp:Label>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="col-xs-12">
                                                                <div class="form-group form-float">
                                                                    <asp:Button ID="Btn_Filter" SkinID="filterButton" runat="server" Text='<%$ Resources:Content,GN0000395 %>' CssClass="btn btn-primary" />
                                                                    <asp:Button ID="Btn_Clear" Visible="false" SkinID="searchButton" runat="server" Text="<%$ Resources:Content,String289 %>" CssClass="btn btn-primary" />
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </asp:Panel>

                                    <div class="row">
                                        <%--end button--%>
                                        
                                        <div class="col-xs-12 clearfix">
                                            <div class="card">
                                                <div class="header">
                                                    <h3>
                                                        <%= Resources.Content.GN00001320%>
                                                    </h3>
                                                </div>
                                                <div class="body">
                                                    <asp:Button ID="Btn_ExportOrganizationExcel" SkinID="defaultButton" runat="server" Text='<%$ Resources:Content,Ex001 %>' CssClass="btn btn-primary" />
                                                    <asp:Button ID="BtnExportToPDF" SkinID="defaultButton" runat="server" Text='<%$ Resources:Content,strExportToPDF %>' CssClass="btn btn-primary" />
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-xs-12 clearfix">

                                            <div class="double-scroll-wrapper1">
                                                <div></div>
                                            </div>
                                            <div class="double-scroll-wrapper2">
                                                <asp:GridView ID="GV_CRMOrganizationReport" style="width:2000px;" CssClass="table table-hover table-striped table-bordered table-responsive" AllowSorting="true"
                                                    AllowPaging="true" EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server"
                                                    AutoGenerateColumns="False">
                                                    <Columns>
                                                        <asp:TemplateField SortExpression="CustomerId" HeaderText='<%$ Resources:Content,GN0000850%>'
                                                            HeaderStyle-Width="250px">
                                                            <ItemTemplate>
                                                                <%#DataBinder.Eval(Container, "DataItem.CustomerId")%> -  
                                                                                            <%#DataBinder.Eval(Container, "DataItem.Customer")%> <%# If(DataBinder.Eval(Container, "DataItem.CustCompanyName") = "", "", " [" & DataBinder.Eval(Container, "DataItem.CustCompanyName") & "]")%>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField SortExpression="OrganizationName" HeaderStyle-Width="250px"
                                                            HeaderText='<%$ Resources:Content, DGN1110608 %>'>
                                                            <ItemTemplate>
                                                                <asp:HyperLink ID="LB_Org" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.OrganizationName")%>'></asp:HyperLink>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText='<%$ Resources:Content,String345%>' HeaderStyle-Width="250px">
                                                            <ItemTemplate>
                                                                <%#DataBinder.Eval(Container, "DataItem.DomainNames")%>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField SortExpression="Owner" HeaderStyle-Width="150px" HeaderText='<%$ Resources:Content, SPT002811 %>'>
                                                            <ItemTemplate>
                                                                <%#DataBinder.Eval(Container, "DataItem.Owner")%>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-Width="250px" SortExpression="DisplayName" HeaderText='<%$ Resources:Content, GN00001113 %>'>
                                                            <ItemTemplate>
                                                                <asp:Literal ID="Ltl_Title" runat="server"></asp:Literal>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-Width="250px" SortExpression="OrganizationUrl" HeaderText='<%$ Resources:Content, String113 %>'>
                                                            <ItemTemplate>
                                                                <%# DataBinder.Eval(Container, "DataItem.OrganizationUrl")%>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-Width="175px" SortExpression="ActiveUsers" HeaderText='<%$ Resources:Content, USM0083 %>'>
                                                            <ItemTemplate>
                                                                <%# DataBinder.Eval(Container, "DataItem.ActiveUsers")%>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-Width="175px" SortExpression="InActiveUsers" HeaderText='<%$ Resources:Content, USM0084 %>'>
                                                            <ItemTemplate>
                                                                <%# DataBinder.Eval(Container, "DataItem.InActiveUsers")%>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-Width="150px" SortExpression="TotalUsers" HeaderText='<%$ Resources:Content, USM0085 %>'>
                                                            <ItemTemplate>
                                                                <%# DataBinder.Eval(Container, "DataItem.TotalUsers")%>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-Width="100px" SortExpression="Domains" HeaderText='<%$ Resources:Content, String288 %>'>
                                                            <ItemTemplate>
                                                                <asp:Literal ID="Ltl_Domains" runat="server"></asp:Literal>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                    </Columns>
                                                    <%--PagerTemplate Start--%>
                                                    <PagerTemplate>
                                                        <EM:Pager ID="Pager1" runat="server" />
                                                    </PagerTemplate>
                                                    <%--PagerTemplate End--%>
                                                </asp:GridView>
                                            </div>
                                        </div>
                                    </div>
                                    </div>
                                </asp:Panel>

                            </ContentTemplate>
                        </EM:TabPanel>
                    </EM:TabContainer>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
