<%@ page title="" language="VB" masterpagefile="~/Template/Master.master" autoeventwireup="false" inherits="RCC_Workfolders_UsageReport, 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="Content1" ContentPlaceHolderID="CPH_Content" runat="Server">
    <div class="col-xs-12">
        <div class="card">
            <div class="body">
                <EM:TabContainer ID="TbCntr_UsageReport" runat="server" OnClientActiveTabChanged="loadTabPanel">
                    <EM:TabPanel ID="Tab_OrgUsageReport" runat="server" HeaderText="<%$ Resources:Content,Lync276%>">
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab0" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent0" runat="server">
                                <asp:Panel ID="Pnl_Filter" runat="server" DefaultButton="Btn_Filter_Org">
                                    <div class="row">
                                        <div class="panel-group search-panel" id="AS_OrgsFilter" role="tablist" aria-multiselectable="true">
                                            <div class="col-xs-12" role="tab" id="SH_OrgsFilter">
                                                <div class="card">
                                                    <div class="header" role="button" data-toggle="collapse" data-parent="#AS_OrgsFilter" href="#<%= CSB_OrgsFilter.ClientID%>" aria-expanded="true" aria-controls="SH_OrgsFilter">
                                                        <h3>
                                                            <%= Resources.Content.GN0000395%>
                                                        </h3>
                                                    </div>
                                                    <div id="CSB_OrgsFilter" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_OrgsFilter" aria-expanded="false">
                                                        <div class="row">
                                                            <div class="col-md-3 col-sm-6 col-xs-12" runat="server" id="Td_OwnerDDL">
                                                                <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">
                                                                <div class="form-group form-float">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_Customer" runat="server" MaxLength="200"></asp:TextBox>
                                                                        <asp:Label ID="Label7" 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">
                                                                <div class="form-group form-float">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_OrgName" runat="server" MaxLength="255"></asp:TextBox>
                                                                        <asp:Label ID="Label8" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DGN1110608%>" 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_CustCompanyName" runat="server" MaxLength="255"></asp:TextBox>
                                                                        <asp:Label ID="Label9" runat="server" EnableViewState="false" Text="<%$ Resources:Content,CompanyName%>" class="form-label"></asp:Label>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="col-xs-12">
                                                                <div class="form-group form-float">
                                                                    <asp:Button ID="Btn_Filter_Org" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000395%>" />
                                                                    <asp:Button ID="Btn_Clear_Org" Visible="false" class="btn btn-primary waves-effect" runat="server"
                                                                        Text="<%$ Resources:Content,String289 %>" />
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </asp:Panel>

                                <div class="row">
                                    <div class="col-xs-12">
                                        <div class="card">
                                            <div class="header">
                                                <h3>
                                                    <%= Resources.Content.GN00001320%> 
                                                </h3>
                                            </div>
                                            <div class="body">
                                                <asp:Button ID="Btn_ExportOrganizationExcel" 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 class="row">
                                    <div class="col-xs-12">
                                        <div class="clearfix">
                                            <div class="double-scroll-wrapper1">
                                                <div>
                                                </div>
                                            </div>
                                            <div class="double-scroll-wrapper2">
                                                <asp:GridView ID="GV_OrganizationReport" CssClass="table table-bordered table-striped table-hover table-layout-fixed" AllowSorting="true"
                                                    AllowPaging="true" EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" AutoGenerateColumns="False" Style="width: 1950px;">

                                                    <Columns>
                                                        <asp:TemplateField SortExpression="CustCompanyName" HeaderText='<%$ Resources:Content,CompanyName%>' HeaderStyle-Width="200px">
                                                            <ItemTemplate>
                                                                <%#DataBinder.Eval(Container, "DataItem.CustCompanyName")%>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField SortExpression="OrganizationName" HeaderText='<%$ Resources:Content, DGN1110608 %>' HeaderStyle-Width="200px">
                                                            <ItemTemplate>
                                                                <asp:HyperLink ID="LB_Org" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.OrganizationName")%>'></asp:HyperLink>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField SortExpression="DomainName" HeaderText='<%$ Resources:Content,GN000125%>' HeaderStyle-Width="200px">
                                                            <ItemTemplate>
                                                                <%#DataBinder.Eval(Container, "DataItem.DomainName")%>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField SortExpression="Customer" HeaderText='<%$ Resources:Content,GN0000268%>' HeaderStyle-Width="200px">
                                                            <ItemTemplate>
                                                                <%#DataBinder.Eval(Container, "DataItem.Customer")%>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField SortExpression="PackageName" HeaderText='<%$ Resources:Content,ProductName%>' HeaderStyle-Width="200px">
                                                            <ItemTemplate>
                                                                <%#DataBinder.Eval(Container, "DataItem.PackageName")%>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText='<%$ Resources:Content,GN000924%>' HeaderStyle-Width="100px">
                                                            <ItemTemplate>
                                                                <%#DataBinder.Eval(Container, "DataItem.CustomerNumber")%>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField SortExpression="Owner" HeaderText='<%$ Resources:Content, SPT002811 %>' HeaderStyle-Width="200px">
                                                            <ItemTemplate>
                                                                <%#DataBinder.Eval(Container, "DataItem.Owner")%>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField SortExpression="EduDiscount" HeaderText='<%$ Resources:Content, EDUDiscount %>' HeaderStyle-Width="200px">
                                                            <ItemTemplate>
                                                                <%#DataBinder.Eval(Container, "DataItem.EDUDiscount")%>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText='<%$ Resources:Content, Workfolders %>' HeaderStyle-Width="150px">
                                                            <ItemTemplate>
                                                                <%#DataBinder.Eval(Container, "DataItem.WorkfoldersCount")%>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText='<%$ Resources:Content, MIR1112 %>' HeaderStyle-Width="150px">
                                                            <ItemTemplate>
                                                                <asp:Literal ID="Ltl_AllocatedStorageInMB" runat="server"></asp:Literal>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText='<%$ Resources:Content, MIR1122 %>' HeaderStyle-Width="150px">
                                                            <ItemTemplate>
                                                                <asp:Literal ID="Ltl_UsedStorageInMB" runat="server"></asp:Literal>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                    </Columns>
                                                    <PagerTemplate>
                                                        <EM:Pager ID="Pager1" runat="server" />
                                                    </PagerTemplate>
                                                </asp:GridView>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                    <EM:TabPanel ID="Tab_WorkFoldersUsageReport" runat="server" HeaderText="<%$ Resources:Content,strWFUsageReport%>">
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab1" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent1" Visible="false" runat="server">
                                <asp:Panel ID="Pnl_FilterWF" runat="server" DefaultButton="Btn_Filter_WF">
                                    <div class="row">
                                        <div class="panel-group search-panel" id="AS_WFFilter" role="tablist" aria-multiselectable="true">
                                            <div class="col-xs-12" role="tab" id="SH_WFFilter">
                                                <div class="card">
                                                    <div class="header" role="button" data-toggle="collapse" data-parent="#AS_WFFilter" href="#<%= CSB_WFFilter.ClientID%>" aria-expanded="true" aria-controls="SH_WFFilter">
                                                        <h3>
                                                            <%= Resources.Content.GN0000395%>
                                                        </h3>
                                                    </div>
                                                    <div id="CSB_WFFilter" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_WFFilter" aria-expanded="false">
                                                        <div class="row">
                                                            <div class="col-md-3 col-sm-6 col-xs-12" runat="server" id="Td_Owner2">
                                                                <div class="form-group form-float">
                                                                    <asp:DropDownList ID="DDL_OwnerWF" runat="server" onchange="setOwnerCookie(this)"></asp:DropDownList>
                                                                </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_OrganizationName" runat="server" MaxLength="255"></asp:TextBox>
                                                                        <asp:Label ID="Label3" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DGN1110608%>" 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" runat="server" MaxLength="200"></asp:TextBox>
                                                                        <asp:Label ID="Label1" 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">
                                                                <div class="form-group form-float">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_CustCompanyName_WF" runat="server" MaxLength="255"></asp:TextBox>
                                                                        <asp:Label ID="Label10" runat="server" EnableViewState="false" Text="<%$ Resources:Content,CompanyName%>" 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_DisplayName" runat="server"></asp:TextBox>
                                                                        <asp:Label ID="Label13" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DisplayName%>" 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_WorkfolderPath" runat="server" MaxLength="200"></asp:TextBox>
                                                                        <asp:Label ID="Label14" runat="server" EnableViewState="false" Text="<%$ Resources:Content,WorkFolderPath%>" 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">
                                                                    <asp:DropDownList ID="DDL_QuotaTemplate" runat="server"></asp:DropDownList>
                                                                </div>
                                                            </div>
                                                            <div class="col-md-3 col-sm-6 col-xs-12" id="Td_Server" runat="server">
                                                                <div class="form-group form-float">
                                                                    <asp:DropDownList ID="DDl_Server" runat="server"></asp:DropDownList>
                                                                </div>
                                                            </div>

                                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                                <div class="form-group form-float">
                                                                    <asp:DropDownList ID="DDL_WFStatus" runat="server">
                                                                        <asp:ListItem Text="<%$ Resources:Content, SelectStatus %>" Value="-1" Selected="True"></asp:ListItem>
                                                                        <asp:ListItem Text="<%$ Resources:Content, GN000195 %>" Value="1"></asp:ListItem>
                                                                        <asp:ListItem Text="<%$ Resources:Content, Disabled %>" Value="0"></asp:ListItem>
                                                                    </asp:DropDownList>
                                                                </div>
                                                            </div>
                                                            <div class="col-xs-12">
                                                                <div class="form-group form-float">
                                                                    <asp:Button ID="Btn_Filter_WF" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000395%>" />
                                                                    <asp:Button ID="Btn_Clear_WF" Visible="false" class="btn btn-primary waves-effect" runat="server"
                                                                        Text="<%$ Resources:Content,String289 %>" />
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </asp:Panel>

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

                                <div class="row">
                                    <div class="col-xs-12">
                                        <div class="clearfix">
                                            <div class="double-scroll-wrapper1">
                                                <div>
                                                </div>
                                            </div>
                                            <div class="double-scroll-wrapper2">
                                                <asp:GridView ID="GV_WorkfoldersReport" CssClass="table table-bordered table-striped table-hover table-layout-fixed" AllowSorting="true" AllowPaging="true"
                                                    EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" AutoGenerateColumns="False"
                                                    Style="width: 3800px;">
                                                    <Columns>
                                                        <asp:TemplateField SortExpression="CustCompanyName" HeaderText='<%$ Resources:Content,CompanyName%>' HeaderStyle-Width="200px">
                                                            <ItemTemplate>
                                                                <%#DataBinder.Eval(Container, "DataItem.CustCompanyName")%>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField SortExpression="OrganizationName" HeaderText='<%$ Resources:Content, DGN1110608 %>' HeaderStyle-Width="200px">
                                                            <ItemTemplate>
                                                                <asp:HyperLink ID="LB_Org" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.OrganizationName")%>'></asp:HyperLink>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField SortExpression="Customer" HeaderText='<%$ Resources:Content,GN0000268%>' HeaderStyle-Width="200px">
                                                            <ItemTemplate>
                                                                <%#DataBinder.Eval(Container, "DataItem.Customer")%>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText='<%$ Resources:Content,GN000924%>' HeaderStyle-Width="200px">
                                                            <ItemTemplate>
                                                                <%#DataBinder.Eval(Container, "DataItem.CustomerNumber")%>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField SortExpression="Owner" HeaderText='<%$ Resources:Content, SPT002811 %>' HeaderStyle-Width="200px">
                                                            <ItemTemplate>
                                                                <%#DataBinder.Eval(Container, "DataItem.Owner")%>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField SortExpression="Name" HeaderText='<%$ Resources:Content, SyncShareName %>' HeaderStyle-Width="250px">
                                                            <ItemTemplate>
                                                                <%#DataBinder.Eval(Container, "DataItem.Name")%>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField SortExpression="PackageName" HeaderText='<%$ Resources:Content, PackageName %>' HeaderStyle-Width="250px">
                                                            <ItemTemplate>
                                                                <%#DataBinder.Eval(Container, "DataItem.PackageName")%>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField SortExpression="EduDiscount" HeaderText='<%$ Resources:Content, EDUDiscount %>' HeaderStyle-Width="200px">
                                                            <ItemTemplate>
                                                                <%#DataBinder.Eval(Container, "DataItem.EDUDiscount")%>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText='<%$ Resources:Content, WorkFolderPath%>' HeaderStyle-Width="400px" Visible="false">
                                                            <ItemTemplate>
                                                                <%#DataBinder.Eval(Container, "DataItem.Path")%>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText='<%$ Resources:Content, MIR1112 %>' HeaderStyle-Width="200px">
                                                            <ItemTemplate>
                                                                <asp:Literal ID="Ltl_AllocatedStorage" runat="server"></asp:Literal>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText='<%$ Resources:Content, MIR1122 %>' HeaderStyle-Width="150px">
                                                            <ItemTemplate>
                                                                <asp:Literal ID="Ltl_UsedStorage" runat="server"></asp:Literal>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText='<%$ Resources:Content, QuotaTemplateName %>' HeaderStyle-Width="250px">
                                                            <ItemTemplate>
                                                                <asp:Literal ID="Ltl_QuotaTemplateName" runat="server"></asp:Literal>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText='<%$ Resources:Content, Status %>' HeaderStyle-Width="100px">
                                                            <ItemTemplate>
                                                                <asp:Literal ID="Ltl_Status" runat="server"></asp:Literal>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText='<%$ Resources:Content, LastUpdated %>' HeaderStyle-Width="200px">
                                                            <ItemTemplate>
                                                                <asp:Literal ID="Ltl_LastUpdated" runat="server"></asp:Literal>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText='<%$ Resources:Content, DateCreated %>' HeaderStyle-Width="200px">
                                                            <ItemTemplate>
                                                                <%#DataBinder.Eval(Container, "DataItem.DateCreated")%>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText='<%$ Resources:Content, maxFileUploadSize %>' HeaderStyle-Width="200px">
                                                            <ItemTemplate>
                                                                <asp:Label ID="Lbl_MaxFileSizeMBs" runat="server" />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText='<%$ Resources:Content, strUsers %>' HeaderStyle-Width="200px">
                                                            <ItemTemplate>
                                                                <%#DataBinder.Eval(Container, "DataItem.Users")%>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                           <asp:TemplateField HeaderText='<%$ Resources:Content, strGroups %>' HeaderStyle-Width="200px">
                                                            <ItemTemplate>
                                                                <%#DataBinder.Eval(Container, "DataItem.Groups")%>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                    </Columns>
                                                    <PagerTemplate>
                                                        <EM:Pager ID="Pager1" runat="server" />
                                                    </PagerTemplate>
                                                </asp:GridView>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                </EM:TabContainer>
            </div>
        </div>
    </div>
</asp:Content>
