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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>

<%@ Register Src="~/PCC/System/CC/UCLicenseTerms.ascx" TagName="LicenseTerms" TagPrefix="UC" %>

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

    <div class="col-xs-12">
        <div class="card">
            <div class="body">
                <EM:TabContainer ID="TC_Licenses" runat="server" OnClientActiveTabChanged="loadTabPanel">
                    <EM:TabPanel ID="Tab_Licenses" runat="server" HeaderText="<%$ Resources:Content,Licenses %>">
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab0" runat="server" CssClass="btn-dummy" />
                            <asp:Panel ID="Pnl_TabContent0" runat="server" DefaultButton="Btn_UpdateLicense">


                                <div class="row">
                                    <asp:Panel ID="Pnl_Update" runat="server" DefaultButton="Btn_UpdateLicense">
                                        <div class="col-xs-12 Div_OpsRow" id="Div_OpsRow" runat="server">
                                            <div class="card">
                                                <div class="header">
                                                    <h3><%= Resources.Content.GN00001320%></h3>
                                                </div>
                                                <div class="body">
                                                    <asp:Button class="btn btn-primary waves-effect btnAction" ID="Btn_UpdateLicense" runat="server" Text="<%$ Resources:Content,Update%>" />
                                                </div>
                                            </div>
                                        </div>
                                    </asp:Panel>
                                    <div class="col-xs-12 hide d-none btn-dummy" id="Tbl_InstallInfo" runat="server">
                                        <div class="card">
                                            <div class="body">
                                                <div class="row">
                                                    <div class="col-sm-3 col-xs-12 row-label">
                                                        <asp:Label ID="Label1" runat="server" Text="<%$ Resources:Content,InstalledProduct%>" />:
                                                    </div>
                                                    <div class="col-sm-9 col-xs-12" id="Div_Product" runat="server">
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-3 col-xs-12 row-label">
                                                        <asp:Label ID="Label4" runat="server" Text="<%$ Resources:Content,InstallationID%>" />:
                                                    </div>
                                                    <div class="col-sm-9 col-xs-12">
                                                        <asp:Label ID="lbl_InstallID" runat="server" />
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-xs-12">
                                       <table class="table table-bordered table-striped table-hover">
        <tbody>
            <asp:Repeater ID="Rep_Licenses" runat="server">
                <HeaderTemplate>
                    <tr>
                        <th class="row-label">
                            <asp:Label ID="Label3" runat="server" Text="<%$ Resources:Content,License%>" /></th>
                        <th id="Th_LicenseId" runat="server" class="row-label">
                            <asp:Label ID="Label9" runat="server" Text="<%$ Resources:Content,LicenseID%>" /></th>
                        <th id="Th_LicenseStatus" runat="server" class="row-label">
                            <asp:Label ID="Label7" runat="server" Text="<%$ Resources:Content,String385%>" /></th>
                        <th id="Th_LicenseExpiry" runat="server" class="row-label">
                            <asp:Label ID="Label16" runat="server" Text="<%$ Resources:Content,GN00001478%>" /></th>
                        <th class="row-label">
                            <asp:Label ID="Label30" runat="server" Text="<%$ Resources:Content,GN000114%>" /></th>
                        <th class="row-label" id="Th_Allocated" runat="server">
                            <asp:Label ID="Label2" runat="server" Text="<%$ Resources:Content,AllocatedToCustomers%>" /></th>
                        <th class="row-label">
                            <asp:Label ID="Label5" runat="server" Text="<%$ Resources:Content,SMI666%>" /></th>
                        <th class="row-label">
                            <asp:Label ID="Label6" runat="server" Text="<%$ Resources:Content,DEV1146%>" /></th>
                    </tr>

                </HeaderTemplate>
                <ItemTemplate>
                    
                    <tr>
                        <td class="row-label">
                            <asp:Label ID="Label55" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "Name") %>'></asp:Label>
                        </td>
                        <td class="row-label" id="Td_LicenseId" runat="server">
                            <asp:Label ID="Label56" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "Id") %>'></asp:Label>
                        </td>
                        <td class="row-label" id="Td_LicenseStatus" runat="server">
                            <asp:Label ID="Label57" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "Status") %>'></asp:Label>
                        </td>
                        <td class="row-label" id="Td_LicenseExpiry" runat="server">
                            <asp:Label ID="Label54" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "Expiry") %>'></asp:Label>
                        </td>
                        <td class="row-label">
                            <asp:Label ID="Label58" runat="server" Text='<%# IIf(String.IsNullOrEmpty(DataBinder.Eval(Container.DataItem, "Total").ToString().TrimStart("0")), "0", DataBinder.Eval(Container.DataItem, "Total").ToString().TrimStart("0")) %>'></asp:Label>
                        </td>
                        <td class="row-label" id="Td_Allocated" runat="server">
                            <asp:Label ID="Label59" runat="server" Text='<%# IIf(String.IsNullOrEmpty(DataBinder.Eval(Container.DataItem, "AllocatedToCustomers").ToString().TrimStart("0")), "0", DataBinder.Eval(Container.DataItem, "AllocatedToCustomers").ToString().TrimStart("0")) %>'></asp:Label>
                        </td>
                        <td class="row-label">
                            <asp:Label ID="Label60" runat="server" Text='<%# IIf(String.IsNullOrEmpty(DataBinder.Eval(Container.DataItem, "InUse").ToString().TrimStart("0")), "0", DataBinder.Eval(Container.DataItem, "InUse").ToString().TrimStart("0")) %>'></asp:Label>
                        </td>
                        <td class="row-label">
                            <asp:Label ID="Label61" runat="server" Text='<%# IIf(String.IsNullOrEmpty(DataBinder.Eval(Container.DataItem, "Available").ToString().TrimStart("0")), "0", DataBinder.Eval(Container.DataItem, "Available").ToString().TrimStart("0")) %>'></asp:Label>
                        </td>
                    </tr>

                </ItemTemplate>
                <AlternatingItemTemplate>
                    
                    <tr>
                        <td class="row-label">
                            <asp:Label ID="Label55" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "Name") %>'></asp:Label>
                        </td>
                        <td class="row-label" id="Td_LicenseId" runat="server">
                            <asp:Label ID="Label56" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "Id") %>'></asp:Label>
                        </td>
                        <td class="row-label" id="Td_LicenseStatus" runat="server">
                            <asp:Label ID="Label57" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "Status") %>'></asp:Label>
                        </td>
                        <td class="row-label" id="Td_LicenseExpiry" runat="server">
                            <asp:Label ID="Label54" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "Expiry") %>'></asp:Label>
                        </td>
                        <td class="row-label">
                            <asp:Label ID="Label58" runat="server" Text='<%# IIf(String.IsNullOrEmpty(DataBinder.Eval(Container.DataItem, "Total").ToString().TrimStart("0")), "0", DataBinder.Eval(Container.DataItem, "Total").ToString().TrimStart("0")) %>'></asp:Label>
                        </td>
                        <td class="row-label" id="Td_Allocated" runat="server">
                            <asp:Label ID="Label59" runat="server" Text='<%# IIf(String.IsNullOrEmpty(DataBinder.Eval(Container.DataItem, "AllocatedToCustomers").ToString().TrimStart("0")), "0", DataBinder.Eval(Container.DataItem, "AllocatedToCustomers").ToString().TrimStart("0")) %>'></asp:Label>
                        </td>
                        <td class="row-label">
                            <asp:Label ID="Label60" runat="server" Text='<%# IIf(String.IsNullOrEmpty(DataBinder.Eval(Container.DataItem, "InUse").ToString().TrimStart("0")), "0", DataBinder.Eval(Container.DataItem, "InUse").ToString().TrimStart("0")) %>'></asp:Label>
                        </td>
                        <td class="row-label">
                            <asp:Label ID="Label61" runat="server" Text='<%# IIf(String.IsNullOrEmpty(DataBinder.Eval(Container.DataItem, "Available").ToString().TrimStart("0")), "0", DataBinder.Eval(Container.DataItem, "Available").ToString().TrimStart("0")) %>'></asp:Label>
                        </td>
                    </tr>

                </AlternatingItemTemplate>
            </asp:Repeater>
        </tbody>
    </table>
                                    </div>
                                </div>

                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                    <EM:TabPanel ID="Tab_About" runat="server" HeaderText="<%$ Resources:Content,strAboutMachPanel %>">
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab1" runat="server" CssClass="btn-dummy" />
                            <asp:Panel ID="Pnl_TabContent1" runat="server" Visible="false">
                                
                                <div class="row" id="Tbl_AboutInstallInfo" runat="server">
                                    <div class="col-xs-12">
                                        <div class="card">
                                            <div class="header">
                                                <h3>
                                                    <asp:Literal ID="Ltrl_AboutMachPanelRegistered" runat="server" Text="<%$Resources:Content,AboutMachPanelRegistered %>"></asp:Literal>
                                                </h3>
                                            </div>
                                            <div class="body">
                                                <div class="row">
                                                   <%-- <div class="col-sm-3 col-xs-12 row-label">
                                                        <asp:Label ID="Lbl_AboutProduct" runat="server" Text="<%$ Resources:Content,InstalledProduct%>" />:
                                                    </div>--%>
                                                    <div class="col-sm-9 col-xs-12" id="Div_AboutProduct" runat="server">
                                                    </div>
                                                </div>
                                                <div class="row" id="Tr_AboutInstallID" runat="server">
                                                    <div class="col-xs-12 row-label">
                                                        <asp:Label ID="Label14" runat="server" Text="<%$ Resources:Content,LicenseID%>" />:
                                                        &nbsp;
                                                        <asp:Label ID="Lbl_AboutInstallID" runat="server" />
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>

                                <div class="row" id="Tbl_LicensedTo" runat="server">
                                    <div class="col-xs-12">
                                        <div class="card">
                                            <div class="header">
                                                <h3>
                                                    <asp:Literal ID="Ltrl_LicensedToOrg" runat="server" Text="<%$ Resources:Content,ProdLicensedToOrg %>"></asp:Literal>
                                                </h3>
                                            </div>
                                            <div class="body">
                                                <div class="row">
                                                    <div class="col-sm-9 col-xs-12" id="Div_LicensedTo" runat="server">
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                
                                <uc:LicenseTerms ID="LicenseTerms1" runat="server"></uc:LicenseTerms>

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

</asp:Content>
