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


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

<asp:Content ID="Content5" ContentPlaceHolderID="CPH_Content" runat="Server">
    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <div class="displayInlineBlock">
                    <h3>
                        <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Content,Lync296%>" EnableViewState="false" /></h3>
                </div>
                <%--<span class="label label-warning font-14 pull-right m-t--4px"><%= Resources.Content.BetaVersion%></span>--%>
            </div>
            <div class="body">
                <div class="row">
                    <div class="col-xs-12 col-sm-3 col-md-2 padding-top-10px" id="td_OwnerLabel" runat="server">
                        <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:Content,L00108%>"
                            EnableViewState="false" />:
                    </div>
                    <div class="col-xs-12 col-sm-3 col-md-2" id="td_OwnerDdl" runat="server">
                        <div class="form-group">
                            <asp:DropDownList ID="DDL_Owner" runat="server" AutoPostBack="true" onchange="setOwnerCookie(this)">
                            </asp:DropDownList>
                        </div>
                    </div>
                     <div class="clearfix hidden-lg hidden-md"></div>
                    <div class="col-xs-12 col-sm-5 col-md-3">
                        <label>
                            <asp:Literal ID="Literal11" runat="server" Text="<%$ Resources:Content,GN0000685%>" EnableViewState="false" />:
                        </label>
                        <div class="form-group display-date-input">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_FromDateGlobal" runat="server"></asp:TextBox>
                            </div>
                        </div>
                        <i runat="server" id="A_FromDate" class="material-icons icon-calendar col-calendar"></i>
                        <EM:CalendarExtender ID="CE_FromDate" runat="server" TargetControlID="TxBx_FromDateGlobal"
                            Format="<%# System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern %>"
                            PopupButtonID="A_FromDate" CssClass="date__calendar">
                        </EM:CalendarExtender>
                    </div>
                    <div class="col-xs-12 col-sm-5 col-md-3">
                        <label>
                            <asp:Literal ID="Literal3" runat="server" Text="<%$ Resources:Content,GN0000690%>" EnableViewState="false" />:
                        </label>
                        <div class="form-group display-date-input">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_ToDateGlobal" runat="server"></asp:TextBox>
                            </div>
                        </div>
                        <i runat="server" id="A_ToDate" class="material-icons icon-calendar col-calendar"></i>
                        <EM:CalendarExtender ID="CE_ToDate" runat="server" TargetControlID="TxBx_ToDateGlobal"
                            Format="<%# System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern %>"
                            PopupButtonID="A_ToDate" CssClass="date__calendar">
                        </EM:CalendarExtender>
                    </div>
                    <div class="col-xs-12 col-sm-2">
                        <asp:Button ID="Btn_SearchGlobal" CssClass="btn btn-primary waves-effect" runat="server" Text='<%$ Resources:Content,GN0000391 %>' />
                    </div>
                </div>

                <EM:TabContainer ID="TbCntr_CDR" runat="server" OnClientActiveTabChanged="loadTabPanel">
                    <EM:TabPanel ID="Tab_CallDataRecord" runat="server" HeaderText="<%$ Resources:Content, Lync296 %>">
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab0" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent0" runat="server">

                                <div class="card">
                                    <div class="header">
                                        <h3><%= Resources.Content.GN00001320%></h3>
                                    </div>
                                    <div class="body">
                                        <asp:Button ID="Btn_ExportCallDataRecordToExcel" Enabled="false" CssClass="btn btn-primary waves-effect" runat="server" Text='<%$ Resources:Content,Ex001 %>' />
                                        &nbsp;&nbsp;
                                 <asp:Button ID="Btn_ExportCallDataRecordToPDF" CssClass="btn btn-primary waves-effect" runat="server" Text='<%$ Resources:Content,strExportToPDF %>' />
                                        &nbsp;&nbsp;
                                    <asp:Button ID="Btn_ExportCallDetailedReportToExcel" runat='server' CssClass="btn btn-primary waves-effect"
                                        Text="<%$ Resources:Content,btnExportDetailReportToExcel %>" />
                                        &nbsp;&nbsp;
                                 <asp:Button ID="Btn_ExportCallDetailedReportToPDF" CssClass="btn btn-primary waves-effect" runat="server" Text='<%$ Resources:Content,btnExportDetailReportToPDF %>' />
                                    </div>
                                </div>
                                <div class="row">&nbsp;</div>

                                <asp:Panel ID="Pnl_Btn_Filter" runat="server" CssClass="row" DefaultButton="Btn_Filter">
                                    <div class="panel-group search-panel" id="AS_CallReport" role="tablist" aria-multiselectable="true">
                                        <div class="col-xs-12" role="tab" id="SH_CallReport">
                                            <div class="card">
                                                <div class="header" role="button" data-toggle="collapse" data-parent="#AS_CallReport" href="#<%= CSB_CallReport.ClientID%>" aria-expanded="true" aria-controls="SH_CallReport">
                                                    <h3>
                                                        <%= Resources.Content.GN0000395%>
                                                    </h3>
                                                </div>
                                                <div id="CSB_CallReport" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_CallReport" aria-expanded="false">
                                                    <div class="row">
                                                        <div class="col-sm-3 col-xs-12">
                                                            <div class="form-group form-float">
                                                                <div class="form-line">
                                                                    <asp:TextBox ID="TxBx_OrgName" MaxLength="75" runat="server"></asp:TextBox>
                                                                    <asp:Label CssClass="form-label" ID="Ltrl_OrgName" runat="server" Text="<%$ Resources:Content,DGN1110608%>"></asp:Label>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="col-sm-3 col-xs-12" id="Div_Customer" runat="server">
                                                            <div class="form-group form-float">
                                                                <div class="form-line">
                                                                    <asp:TextBox ID="TxBx_CustomerName" MaxLength="75" runat="server"></asp:TextBox>
                                                                    <asp:Label CssClass="form-label" ID="Ltrl_CustomerName" runat="server" Text='<%$ Resources:Content,GN0000268 %>' />
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="col-sm-3 col-xs-12" id="Div_CustCompany" runat="server">
                                                            <div class="form-group form-float">
                                                                <div class="form-line">
                                                                    <asp:TextBox ID="TxBx_CustCompanyName" MaxLength="75" runat="server"></asp:TextBox>
                                                                    <asp:Label CssClass="form-label" ID="Ltrl_CompanyName" runat="server" 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 class="row">
                                    <div class="col-xs-12">
                                        <asp:Literal ID="Ltl_TimeStamp" runat="server"></asp:Literal>
                                    </div>
                                </div>

                                <div class="row">
                                    <div class="col-xs-12">
                                        <asp:GridView ID="GV_CallDataRecord" CssClass="table table-bordered table-striped table-hover table-layout-fixed" AllowSorting="true"
                                            AllowPaging="true" EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server"
                                            AutoGenerateColumns="False">
                                            <Columns>
                                               
                                                <asp:TemplateField HeaderStyle-CssClass="col-xs-3"
                                                    HeaderText='<%$ Resources:Content, DGN1110608 %>'>
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="LB_Org" runat="server" CommandName="OrgDetail"></asp:LinkButton>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                
                                                <asp:TemplateField SortExpression="CustomerID" HeaderText="<%$ Resources:Content,GN0000850%>"
                                                    HeaderStyle-CssClass="col-xs-2">
                                                    <ItemTemplate>
                                                        <asp:Label ID="LB_ClientID" runat="server"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderStyle-CssClass="col-xs-2" HeaderText='<%$ Resources:Content, SPT002811 %>'>
                                                    <ItemTemplate>
                                                        <asp:Literal ID="Ltrl_Owner" runat="server"></asp:Literal>
                                                    </ItemTemplate>
                                                </asp:TemplateField>

                                                <asp:TemplateField HeaderStyle-CssClass="col-xs-2" HeaderText='<%$ Resources:Content, OCS018 %>'>
                                                    <ItemTemplate>
                                                        <asp:Literal ID="Ltr_TotalConferences" runat="server"></asp:Literal>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderStyle-CssClass="col-xs-2" HeaderText='<%$ Resources:Content, OCS019 %>'>
                                                    <ItemTemplate>
                                                        <asp:Literal ID="Ltr_DurationConferences" runat="server"></asp:Literal>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:BoundField DataField="TotalCost" HeaderStyle-CssClass="col-xs-1" HeaderText='<%$ Resources:Content,Lync319%>' />
                                            </Columns>
                                            <%--PagerTemplate Start--%>
                                            <PagerTemplate>
                                                <EM:Pager ID="Pager1" runat="server" />
                                            </PagerTemplate>
                                            <%--PagerTemplate End--%>
                                        </asp:GridView>
                                    </div>
                                </div>
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                    <EM:TabPanel ID="Tab_CallDataRecordOrganization" runat="server" HeaderText="<%$ Resources:Content,OCS020 %>">
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab1" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent1" Visible="false" runat="server">

                                <div class="card">
                                    <div class="header">
                                        <h3><%= Resources.Content.GN00001320%></h3>
                                    </div>
                                    <div class="body">
                                        <asp:Button ID="Btn_ExportCallDataRecordOrganizationToExcel" Enabled="false" CssClass="btn btn-primary waves-effect" runat="server" Text='<%$ Resources:Content,Ex001 %>' />
                                        &nbsp;&nbsp;
                                 <asp:Button ID="Btn_ExportCallDataRecordOrganizationToPDF" CssClass="btn btn-primary waves-effect" runat="server" Text='<%$ Resources:Content,strExportToPDF %>' />
                                    </div>
                                </div>

                                <div class="row">&nbsp;</div>

                                <asp:Panel ID="Pnl_Btn_Filter1" runat="server" CssClass="row" DefaultButton="Btn_Filter1">
                                    <div class="panel-group search-panel" id="AS_OrgCallReport" role="tablist" aria-multiselectable="true">
                                        <div class="col-xs-12" role="tab" id="SH_OrgCallReport">
                                            <div class="card">
                                                <div class="header" role="button" data-toggle="collapse" data-parent="#AS_OrgCallReport" href="#<%= CSB_OrgCallReport.ClientID%>" aria-expanded="true" aria-controls="SH_OrgCallReport">
                                                    <h3>
                                                        <%= Resources.Content.GN0000395%>
                                                    </h3>
                                                </div>
                                                <div id="CSB_OrgCallReport" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_OrgCallReport" aria-expanded="false">
                                                    <div class="row">
                                                        <div class="col-sm-3 col-xs-12">
                                                            <div class="form-group">
                                                                <asp:DropDownList ID="Ddl_Organizations" runat="server" AutoPostBack="true"></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_SIPDomain1" MaxLength="75" runat="server"></asp:TextBox>
                                                                    <asp:Label CssClass="form-label" ID="Ltrl_SipDomain" runat="server" Text='<%$ Resources:Content,OCS011%>'></asp:Label>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="col-sm-3 col-xs-12">
                                                            <asp:Button ID="Btn_Filter1" CssClass="btn btn-primary waves-effect" runat="server" Text='<%$ Resources:Content,GN0000395 %>' />
                                                            <asp:Button ID="Btn_Clear1" Visible="false" CssClass="btn btn-primary waves-effect" runat="server"
                                                                Text="<%$ Resources:Content,String289 %>" />
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </asp:Panel>

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

                                        <asp:GridView ID="GV_CallDataRecordOrganization" CssClass="table table-bordered table-striped table-hover table-layout-fixed" AllowSorting="true" AllowPaging="true"
                                            EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" AutoGenerateColumns="False" Width="100%">
                                            <Columns>
                                                <asp:TemplateField HeaderStyle-CssClass="col-xs-2" HeaderText="<%$ Resources:Content,OCS021 %>">
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="LB_LyncUser" runat="server"></asp:LinkButton>
                                                    </ItemTemplate>
                                                </asp:TemplateField>

                                                <asp:TemplateField HeaderStyle-CssClass="col-xs-2" HeaderText='<%$ Resources:Content,OCS022 %>'>
                                                    <ItemTemplate>
                                                        <asp:Literal ID="Ltr_ConferenceId" runat="server"></asp:Literal>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderStyle-CssClass="col-xs-2" HeaderText='<%$ Resources:Content,ExchOO03 %>'>
                                                    <ItemTemplate>
                                                        <asp:Literal ID="Ltr_Date" runat="server"></asp:Literal>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderStyle-CssClass="col-xs-2" HeaderText='<%$ Resources:Content,OCS023 %>'>
                                                    <ItemTemplate>
                                                        <asp:Literal ID="Ltr_UserCount" runat="server"></asp:Literal>
                                                    </ItemTemplate>
                                                </asp:TemplateField>

                                                <asp:TemplateField HeaderStyle-CssClass="col-xs-2" HeaderText='<%$ Resources:Content,OCS019 %>'>
                                                    <ItemTemplate>
                                                        <asp:Literal ID="Ltr_Duration" runat="server"></asp:Literal>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:BoundField HeaderStyle-CssClass="col-xs-2" DataField="TotalCost" HeaderText='<%$ Resources:Content,Lync319%>' />
                                            </Columns>
                                            <%--PagerTemplate Start--%>
                                            <PagerTemplate>
                                                <EM:Pager ID="Pager1" runat="server" />
                                            </PagerTemplate>
                                            <%--PagerTemplate End--%>
                                        </asp:GridView>
                                    </div>
                                </div>
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                    <EM:TabPanel ID="Tab_CallDataRecordUser" runat="server" HeaderText="<%$ Resources:Content,OCS024 %>">
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab2" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent2" Visible="false" runat="server">
                                <div class="card">
                                    <div class="header">
                                        <h3><%= Resources.Content.GN00001320%></h3>
                                    </div>
                                    <div class="body">
                                        <asp:Button ID="Btn_ExportCallDataRecordUserToExcel" CssClass="btn btn-primary waves-effect" Enabled="false" runat="server" Text='<%$ Resources:Content,Ex001 %>' />
                                        &nbsp;&nbsp;
                                 <asp:Button ID="Btn_ExportCallDataRecordUserToPDF" CssClass="btn btn-primary waves-effect" runat="server" Text='<%$ Resources:Content,strExportToPDF %>' />
                                    </div>
                                </div>

                                <div class="row">&nbsp;</div>

                                <asp:Panel ID="Pnl_Btn_Filter2" runat="server" CssClass="row" DefaultButton="Btn_Filter2">
                                    <div class="panel-group search-panel" id="AS_UserCallReport" role="tablist" aria-multiselectable="true">
                                        <div class="col-xs-12" role="tab" id="SH_UserCallReport">
                                            <div class="card">
                                                <div class="header" role="button" data-toggle="collapse" data-parent="#AS_UserCallReport" href="#<%= CSB_UserCallReport.ClientID%>" aria-expanded="true" aria-controls="SH_UserCallReport">
                                                    <h3>
                                                        <%= Resources.Content.GN0000395%>
                                                    </h3>
                                                </div>
                                                <div id="CSB_UserCallReport" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_UserCallReport" aria-expanded="false">

                                                    <div class="row">
                                                        <div class="col-sm-4 col-xs-12">
                                                            <div class="input-group">
                                                                <span class="input-group-addon"><%= Resources.Content.DGN1110357%>:</span>
                                                                <div class="form-group">
                                                                    <asp:DropDownList ID="Ddl_Organizations2" runat="server" AutoPostBack="true"></asp:DropDownList>
                                                                </div>

                                                            </div>
                                                        </div>
                                                        <div class="col-sm-4 col-xs-12">
                                                            <div class="input-group">
                                                                <span class="input-group-addon"><%= Resources.Content.USM0025%>:</span>
                                                                <div class="form-group">
                                                                    <EM:VirtualDropDownList ID="Ddl_Users" AutoPostBack="true" runat="server" />
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="col-sm-4 col-xs-12">
                                                            <div class="input-group">
                                                                <span class="input-group-addon"><%= Resources.Content.OCS022%>:</span>
                                                                <div class="form-group">
                                                                    <asp:DropDownList ID="Ddl_Conferences" runat="server"></asp:DropDownList>
                                                                </div>
                                                            </div>
                                                        </div>

                                                    </div>

                                                    <div class="row">
                                                        <div class="col-xs-12">
                                                            <asp:Button ID="Btn_Filter2" CssClass="btn btn-primary waves-effect" runat="server" Text='<%$ Resources:Content,GN0000395 %>' />
                                                            <asp:Button ID="Btn_Clear2" Visible="false" CssClass="btn btn-primary waves-effect" runat="server"
                                                                Text="<%$ Resources:Content,String289 %>" />
                                                        </div>
                                                    </div>


                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </asp:Panel>

                                <div class="row">
                                    <div class="col-xs-12">
                                        <div class="double-scroll-wrapper1">
                                            <div>
                                            </div>
                                        </div>
                                        <div class="double-scroll-wrapper2">
                                            <asp:GridView ID="GV_CallDataRecordUser" CssClass="table table-bordered table-striped table-hover table-layout-fixed" AllowSorting="true" AllowPaging="true"
                                                EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" AutoGenerateColumns="False" Width="1820px">
                                                <Columns>
                                                    <asp:TemplateField HeaderStyle-Width="200px" HeaderText='<%$ Resources:Content,OCS022 %>'>
                                                        <ItemTemplate>
                                                            <asp:Literal ID="Ltr_ConferenceId" runat="server"></asp:Literal>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderStyle-Width="200px" HeaderText='<%$ Resources:Content,OCS025 %>'>
                                                        <ItemTemplate>
                                                            <asp:Literal ID="Ltr_UserUri" runat="server"></asp:Literal>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderStyle-Width="200px" HeaderText="<%$ Resources:Content,Lync311%>">
                                                        <ItemTemplate>
                                                            <asp:Literal ID="Ltr_Destination" runat="server"></asp:Literal>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderStyle-Width="200px" HeaderText='<%$ Resources:Content,GN0000673%>'>
                                                        <ItemTemplate>
                                                            <asp:Literal ID="Ltr_Type" runat="server"></asp:Literal>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderStyle-Width="200px" HeaderText='<%$ Resources:Content,StartTimeUTC%>'>
                                                        <ItemTemplate>
                                                            <asp:Literal ID="Ltr_STUTC" runat="server"></asp:Literal>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderStyle-Width="200px" HeaderText='<%$ Resources:Content,StartTimeCustZone%>'>
                                                        <ItemTemplate>
                                                            <asp:Literal ID="Ltr_STCustTZ" runat="server"></asp:Literal>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderStyle-Width="200px" HeaderText='<%$ Resources:Content,OCS007 %>'>
                                                        <ItemTemplate>
                                                            <asp:Literal ID="Ltr_Duration" runat="server"></asp:Literal>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:BoundField HeaderStyle-Width="200px" HeaderText='<%$ Resources:Content,GN0000952%>' DataField="Currency" />
                                                    <asp:TemplateField HeaderStyle-Width="200px" HeaderText='<%$ Resources:Content,Lync307%>'>
                                                        <ItemTemplate>
                                                            <asp:Literal ID="Ltr_CallCost" 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>
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                </EM:TabContainer>

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


