<%@ control language="VB" autoeventwireup="false" inherits="RCC_Voice_CC_Calls, MachSol.MachPanel.Web" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Assembly="MachSol.MachPanel.Utility" Namespace="MachSol.MachPanel.Utility" TagPrefix="EM" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>

<asp:Panel ID="Pnl_Listing_Calls" runat="server" DefaultButton="Btn_ApplyFilter_Calls">

    <asp:Panel ID="Pnl_Btn_Calls" runat="server" CssClass="row" DefaultButton="Btn_ApplyFilter_Calls">
        <div class="panel-group search-panel" id="AS_Calls" role="tablist" aria-multiselectable="true">
            <div class="col-xs-12" role="tab" id="SH_Calls">

                <div class="card">
                    <div class="header" role="button" data-toggle="collapse" data-parent="#AS_Calls" href="#<%= CSB_Calls.ClientID%>" aria-expanded="true" aria-controls="SH_Calls">
                        <h3>
                            <%= Resources.Content.GN0000395%>
                        </h3>
                    </div>

                    <div id="CSB_Calls" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_Calls" aria-expanded="false">

                        <div class="row">
                            <asp:UpdatePanel ID="UP_DDLs" runat="server">
                                <ContentTemplate>
                                    <div class="col-md-3 col-sm-6 col-xs-12" id="tb_Owner" runat="server">
                                        <div class="form-group form-float">
                                            <asp:DropDownList ID="DDL_Owner" runat="server" AutoPostBack="true" onchange="setOwnerCookie(this)"></asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="col-md-3 col-sm-6 col-xs-12" id="tb_Customer" runat="server">
                                        <div class="form-group form-float">
                                            <asp:DropDownList ID="DDL_Customers" runat="server" AutoPostBack="true"></asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="col-md-3 col-sm-6 col-xs-12" id="tb_Subscription" runat="server">
                                        <div class="form-group form-float">
                                            <asp:DropDownList ID="DDL_Subscriptions" runat="server"></asp:DropDownList>
                                        </div>
                                    </div>
                                </ContentTemplate>
                            </asp:UpdatePanel>

                            <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_SrchPhoneNumber" runat="server" CssClass="allowonlyintegervalues" MaxLength="19"></asp:TextBox>
                                        <asp:Label ID="Label1" runat="server" class="form-label" EnableViewState="false" Text="<%$ Resources:Content,PhoneNumber%>"></asp:Label>
                                    </div>

                                </div>
                                <asp:RangeValidator ID="RV_TxBx_SrchPhoneNumber" runat="server" ControlToValidate="TxBx_SrchPhoneNumber"
                                    Display="None" SetFocusOnError="true" ValidationGroup="SearchPhoneNumbers"
                                    ErrorMessage="<%$ Resources:Content,DGN1110070 %>" Type="Double"
                                    MinimumValue="0" MaximumValue="9223372036854775807"></asp:RangeValidator>
                            </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_SrchSubscriber" runat="server" MaxLength="20" />
                                        <asp:Label ID="Label3" runat="server" class="form-label" EnableViewState="false"
                                            Text="<%$ Resources:Content,strSubscriber%>"></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_SrchToUser" runat="server" MaxLength="20" />
                                        <asp:Label ID="Label5" runat="server" class="form-label" EnableViewState="false"
                                            Text="<%$ Resources:Content,StrToUser%>"></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_SrchDestinationtype" 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_SrchDestinationDescryption" runat="server">
                                    </asp:DropDownList>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-3 col-sm-6 col-xs-12">
                                <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-md-1 col-sm-6 col-xs-12">
                                <asp:DropDownList ID="ddl_FromTime" runat="server">
                                    <asp:ListItem Text="12" Value="12:00:00"></asp:ListItem>
                                    <asp:ListItem Text="1" Value="1:00:00"></asp:ListItem>
                                    <asp:ListItem Text="2" Value="2:00:00"></asp:ListItem>
                                    <asp:ListItem Text="3" Value="3:00:00"></asp:ListItem>
                                    <asp:ListItem Text="4" Value="4:00:00"></asp:ListItem>
                                    <asp:ListItem Text="5" Value="5:00:00"></asp:ListItem>
                                    <asp:ListItem Text="6" Value="6:00:00"></asp:ListItem>
                                    <asp:ListItem Text="7" Value="7:00:00"></asp:ListItem>
                                    <asp:ListItem Text="8" Value="8:00:00"></asp:ListItem>
                                    <asp:ListItem Text="9" Value="9:00:00"></asp:ListItem>
                                    <asp:ListItem Text="10" Value="10:00:00"></asp:ListItem>
                                    <asp:ListItem Text="11" Value="11:00:00"></asp:ListItem>
                                </asp:DropDownList>
                            </div>
                            <div class="col-md-1 col-sm-6 col-xs-12">
                                <asp:DropDownList ID="DDL_FromAMPM" runat="server">
                                    <asp:ListItem Text="AM" Value="AM"></asp:ListItem>
                                    <asp:ListItem Text="PM" Value="PM"></asp:ListItem>
                                </asp:DropDownList>
                            </div>
                            <div class="col-md-3 col-sm-6 col-xs-12">
                                <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-md-1 col-sm-6 col-xs-12">
                                <asp:DropDownList ID="ddl_ToTime" runat="server">
                                    <asp:ListItem Text="12" Value="12:00:00"></asp:ListItem>
                                    <asp:ListItem Text="1" Value="1:00:00"></asp:ListItem>
                                    <asp:ListItem Text="2" Value="2:00:00"></asp:ListItem>
                                    <asp:ListItem Text="3" Value="3:00:00"></asp:ListItem>
                                    <asp:ListItem Text="4" Value="4:00:00"></asp:ListItem>
                                    <asp:ListItem Text="5" Value="5:00:00"></asp:ListItem>
                                    <asp:ListItem Text="6" Value="6:00:00"></asp:ListItem>
                                    <asp:ListItem Text="7" Value="7:00:00"></asp:ListItem>
                                    <asp:ListItem Text="8" Value="8:00:00"></asp:ListItem>
                                    <asp:ListItem Text="9" Value="9:00:00"></asp:ListItem>
                                    <asp:ListItem Text="10" Value="10:00:00"></asp:ListItem>
                                    <asp:ListItem Text="11" Value="11:00:00"></asp:ListItem>
                                </asp:DropDownList>
                            </div>
                            <div class="col-md-1 col-sm-6 col-xs-12">
                                <asp:DropDownList ID="ddl_ToTimeAMPM" runat="server">
                                    <asp:ListItem Text="AM" Value="AM"></asp:ListItem>
                                    <asp:ListItem Text="PM" Value="PM"></asp:ListItem>
                                </asp:DropDownList>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-2 col-sm-6 col-xs-12">
                                <div class="form-group form-float">
                                    <asp:ValidationSummary ID="VS_SearchCalls" runat="server" ShowMessageBox="true"
                                        ShowSummary="false" ValidationGroup="SearchCalls" />
                                    <asp:Button ID="Btn_ApplyFilter_Calls" ValidationGroup="SearchCalls" class="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,GN0000391%>" />
                                    <asp:Button ID="Btn_ClearFilter_Calls" Visible="false" class="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,String289 %>" />

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

        </div>

    </asp:Panel>
    <br />

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

    <br />

    <div class="row">
        <div class="col-xs-12">
            <div class="clearfix">
                <div class="double-scroll-wrapper1">
                    <div>
                    </div>
                </div>
                <div class="double-scroll-wrapper2">

                    <EM:MPGridView ID="GV_CallsListing" Style="width: 2000px" 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 HeaderText='<%$ Resources:Content, strSubscriber %>'  HeaderStyle-Width="250px">
                                <ItemTemplate>
                                    <asp:Label ID="LB_SourceVoiceSubscriberUser" runat="server" />
                                </ItemTemplate>
                            </asp:TemplateField>

                            <asp:TemplateField SortExpression="PhoneNumber" HeaderStyle-Width="150px" HeaderText='<%$ Resources:Content, PhoneNumber %>'>
                                <ItemTemplate>
                                    <asp:Label ID="LB_PhoneNumber" runat="server" />
                                </ItemTemplate>
                            </asp:TemplateField>

                            <asp:TemplateField SortExpression="ToUser" HeaderText="<%$ Resources:Content,StrToUser%>" HeaderStyle-Width="150px">
                                <ItemTemplate>
                                    <asp:Label ID="LB_ToUser" runat="server" />
                                </ItemTemplate>
                            </asp:TemplateField>

                            <asp:TemplateField SortExpression="StartTime" HeaderText='<%$ Resources:Content, ExchOO03 %>' HeaderStyle-Width="200px">
                                <ItemTemplate>
                                    <asp:Label ID="LB_StartTime" runat="server" />
                                </ItemTemplate>
                            </asp:TemplateField>

                            <asp:TemplateField HeaderText='<%$ Resources:Content,  StrDUrationSec %>' HeaderStyle-Width="150px">
                                <ItemTemplate>
                                    <asp:Label ID="LB_Duration" runat="server" />
                                </ItemTemplate>
                            </asp:TemplateField>

                            <asp:TemplateField HeaderText='<%$ Resources:Content,  StrPrice %>' HeaderStyle-Width="200px">
                                <ItemTemplate>
                                    <table class="table small">
                                        <tbody>
                                            <tr>
                                                <td class="col-xs-6 row-label">
                                                    <asp:Label ID="LB_CostPriceH" runat="server"
                                                        EnableViewState="false" Text='<%$ Resources:Content,CostPrice%>'></asp:Label> 
                                                </td>
                                                <td class="col-xs-12">
                                                    <asp:Label ID="LB_CostPrice" runat="server" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="col-xs-6 row-label">
                                                    <asp:Label ID="LB_SalePriceH" runat="server"
                                                        EnableViewState="false" Text='<%$ Resources:Content,SalePrice%>'></asp:Label>
                                                </td>
                                                <td class="col-xs-12">
                                                    <asp:Label ID="LB_SalePrice" runat="server" />
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </ItemTemplate>
                            </asp:TemplateField>

                            <asp:TemplateField HeaderText='<%$ Resources:Content, StrDirection %>' HeaderStyle-Width="150px">
                                <ItemTemplate>
                                    <asp:Label ID="LB_Direction" runat="server" />
                                </ItemTemplate>
                            </asp:TemplateField>

                            <asp:TemplateField HeaderText='<%$ Resources:Content,  strDestinationDescryption %>' HeaderStyle-Width="200px">
                                <ItemTemplate>
                                    <asp:Label ID="LB_DestinationDescryption" runat="server" />
                                </ItemTemplate>
                            </asp:TemplateField>

                            <asp:TemplateField HeaderText='<%$ Resources:Content, StrDestinationType  %>' HeaderStyle-Width="150px">
                                <ItemTemplate>
                                    <asp:Label ID="LB_DestinationType" runat="server" />
                                </ItemTemplate>
                            </asp:TemplateField>

                            <asp:TemplateField HeaderText='<%$ Resources:Content, strSubscriberRef  %>' HeaderStyle-Width="150px">
                                <ItemTemplate>
                                    <asp:Label ID="LB_SourceVoiceSubscriberRef" runat="server" />
                                </ItemTemplate>
                            </asp:TemplateField>

                        </Columns>
                        <PagerTemplate>
                            <EM:Pager ID="Pager" runat="server" />
                        </PagerTemplate>
                    </EM:MPGridView>

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

