<%@ control language="VB" autoeventwireup="false" inherits="PCC_System_CC_HealthLicenses, MachSol.MachPanel.Web" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>
<%@ Register Assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
    Namespace="System.Web.UI" TagPrefix="cc1" %>

<div class="row">
    <div class="col-xs-12">
        <asp:Panel ID="Pnl_FilterLicenses" runat="server" DefaultButton="Btn_FilterLicenses">
            <div class="row">
                <div class="panel-group search-panel" id="AS_ControlServer" role="tablist" aria-multiselectable="true">
                    <div class="col-xs-12" role="tab" id="SH_ControlServer">
                        <div class="card">
                            <div class="header" role="button" data-toggle="collapse" data-parent="#AS_ControlServer" href="#<%= CSB_ControlServer.ClientID%>" aria-expanded="true" aria-controls="SH_ControlServer">
                                <h3>
                                    <%= Resources.Content.GN0000395%>
                                </h3>
                            </div>
                            <div id="CSB_ControlServer" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_ControlServer" aria-expanded="false">
                                <div class="row">
                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                        <label class="row-label display-date-label">
                                            <asp:Literal ID="Literal6" runat="server" Text="<%$ Resources:Content,AtDate%>" EnableViewState="false" />:
                                        </label>
                                        <div class="form-group display-date-input">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_DateAfterCS" runat="server"></asp:TextBox>
                                            </div>
                                        </div>

                                        <i runat="server" id="A_DRangeAfterCS" class="material-icons icon-calendar col-calendar"></i>
                                        <ajax:CalendarExtender ID="CE_DRangeAfterCS" runat="server" TargetControlID="TxBx_DateAfterCS"
                                            Format="<%# System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern %>" PopupButtonID="A_DRangeAfterCS" CssClass="date__calendar">
                                        </ajax:CalendarExtender>
                                    </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_LicenseOrId" runat="server"></asp:TextBox>
                                                <asp:Label ID="Label3" runat="server" EnableViewState="false" Text="<%$ Resources:Content,strLicenseORId%>" class="form-label"></asp:Label>
                                            </div>
                                        </div>
                                    </div>



                                </div>

                                <div class="row">
                                    <div class="col-xs-12">
                                        <div class="form-group form-float">
                                            <asp:Button ID="Btn_FilterLicenses" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000391%>" />
                                            <asp:Button ID="Btn_ClearLicenses" 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>
</div>
<div class="row">
    <div class="col-xs-12">
        <div class="row" id="Pnl_Licenses" runat="server">
            <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_Licenses" CssClass="table table-bordered table-striped table-hover table-layout-fixed" AllowSorting="true"
                            AllowPaging="false" EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" Style="min-width: 1000px;"
                            AutoGenerateColumns="False">

                            <Columns>
                                <asp:TemplateField HeaderText='<%$ Resources:Content,License%>' HeaderStyle-Width="250px">
                                    <ItemTemplate>
                                        <asp:Label ID="Lbtl_LicenseName" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.License") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000678 %>' HeaderStyle-Width="250px">
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_LicenseID" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.LicenseId") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText='<%$ Resources:Content,Status%>' HeaderStyle-Width="100px">
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_Status" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.Status")%>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText='<%$ Resources:Content,Expiry%>' HeaderStyle-Width="100px">
                                    <ItemTemplate>
                                        <asp:Label ID="LB_Expiry" runat="server" Text='<%# Convert.ToDateTime(DataBinder.Eval(Container, "DataItem.Expiry")).ToShortDateString() %>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText='<%$ Resources:Content,GN000114%>' HeaderStyle-Width="100px">
                                    <ItemTemplate>
                                        <asp:Label ID="LB_Total" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.Total")%>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText='<%$ Resources:Content,SMI666%>' HeaderStyle-Width="100px">
                                    <ItemTemplate>
                                        <asp:Label ID="LB_InUse" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.InUse")%>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText='<%$ Resources:Content,DEV1146%>' HeaderStyle-Width="100px">
                                    <ItemTemplate>
                                        <asp:Label ID="LB_Available" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.Available")%>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
