<%@ control language="VB" autoeventwireup="false" inherits="PCC_VPS_CC_Inventory, 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" %>

<script type="text/javascript">
    $(document).ready(function () {
        $(".span_refresh_baremetal_inventory").on("click", function () {
            $("#<%= Btn_Update_BareMetalInventory_Now.ClientID%>").trigger("click");
        });
        $(".span_refresh_hypervisor_inventory").on("click", function () {
            $("#<%= Btn_Update_HypervisorInventory_Now.ClientID%>").trigger("click");
        });
    });
</script>
<asp:Panel ID="Pnl_Listing_Inventory" runat="server">

    <asp:Panel ID="Pnl_Btn_ApplyFilter" runat="server" CssClass="row">
        <div class="panel-group search-panel" id="AS_Inventory" role="tablist" aria-multiselectable="true">
            <div class="col-xs-12" role="tab" id="SH_Inventory">
                <div class="card">
                    <div class="header" role="button" data-toggle="collapse" data-parent="#AS_Inventory" href="#<%= CSB_Inventory.ClientID%>" aria-expanded="true" aria-controls="SH_Inventory">
                        <h3>
                            <%= Resources.Content.GN0000395%>
                        </h3>
                    </div>
                    <div id="CSB_Inventory" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_Inventory" aria-expanded="false">
                        <div class="row">
                            <div class="col-md-3 col-sm-6 col-xs-12">
                                <div class="form-group form-float">
                                    <asp:DropDownList ID="DDL_ServerGroups" runat="server" AutoPostBack="true">
                                    </asp:DropDownList>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </asp:Panel>
    <asp:Button ID="Btn_Update_BareMetalInventory_Now" runat="server" Text="<%$ Resources:Content,UpdateNow %>"
        CssClass="hide" />
    <asp:Button ID="Btn_Update_HypervisorInventory_Now" runat="server" Text="<%$ Resources:Content,UpdateNow %>"
        CssClass="hide" />
    <div class="row">

        <div class="col-xs-12">
            <div class="card">
                <div class="header container-fluid">
                    <h3 class="pull-left">
                        <%= Resources.Content.BareMetalInventory%>
                    </h3>
                    <span class="close span_refresh span_refresh_baremetal_inventory glyphicon glyphicon-refresh"></span>
                </div>
                <div class="body">
                    <div class="double-scroll-wrapper1">
                        <div>
                        </div>
                    </div>
                    <div class="double-scroll-wrapper2">

                        <asp:GridView ID="GV_BareMetalInventory" CssClass="table table-bordered table-hover table-striped table-responsive"
                            AllowSorting="false" AllowPaging="false" Style="width: 2150px;"
                            EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" AutoGenerateColumns="False">
                            <Columns>
                                <asp:TemplateField HeaderStyle-Width="150px"
                                    HeaderText='<%$ Resources:Content, NetBIOS %>'>
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_NetBIOS" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.NetBIOS")%>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-Width="300px"
                                    HeaderText='<%$ Resources:Content, FQDN %>'>
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_FQDN" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.FQDN")%>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-Width="150px"
                                    HeaderText='<%$ Resources:Content, Type %>'>
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_Type" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Type")%>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-Width="150px"
                                    HeaderText='<%$ Resources:Content, Clustered %>'>
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_Clustered" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.IsClustered")%>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-Width="300px"
                                    HeaderText='<%$ Resources:Content, OS %>'>
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_OS" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.OS")%>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-Width="300px"
                                    HeaderText='<%$ Resources:Content, CPUModel %>'>
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_CPUModel" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.CPUModel")%>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-Width="150px"
                                    HeaderText='<%$ Resources:Content, CPUCores %>'>
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_CPUCores" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.CPUCores")%>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-Width="150px"
                                    HeaderText='<%$ Resources:Content, LogicalProcessors %>'>
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_LogicalProcessors" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.LogicalProcessors")%>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-Width="150px"
                                    HeaderText='<%$ Resources:Content, MemoryGB %>'>
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_MemoryGB" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.MemoryGB")%>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-Width="150px"
                                    HeaderText='<%$ Resources:Content, NoOfNIcs %>'>
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_NoOfNIcs" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.NoOfNIcs")%>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-Width="150px"
                                    HeaderText='<%$ Resources:Content, NoOfTeams %>'>
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_NoOfTeams" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.NoOfTeams")%>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-Width="200px"
                                    HeaderText='<%$ Resources:Content, GN0000779 %>'>
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_TimeUpdated" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.TimeUpdated")%>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-xs-12">
            <div class="card">
                <div class="header container-fluid">
                    <h3 class="pull-left">
                        <%= Resources.Content.HypervisorInventory%>
                    </h3>
                    <span class="close span_refresh span_refresh_hypervisor_inventory glyphicon glyphicon-refresh"></span>
                </div>
                <div class="body">
                    <div class="double-scroll-wrapper3">
                        <div>
                        </div>
                    </div>
                    <div class="double-scroll-wrapper4">
                        <asp:GridView ID="GV_HypervisorInventory" CssClass="table table-bordered table-hover table-striped table-responsive"
                            AllowSorting="false" AllowPaging="false" Style="width: 2250px"
                            EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" AutoGenerateColumns="False">
                            <Columns>
                                <asp:TemplateField HeaderStyle-Width="150px"
                                    HeaderText='<%$ Resources:Content, NetBIOS %>'>
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_NetBIOS" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.NetBIOS") %>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-Width="150px"
                                    HeaderText='<%$ Resources:Content, NoOfVMsResiding %>'>
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_NoOfVMsResiding" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.NoOfVMsResiding") %>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-Width="150px"
                                    HeaderText='<%$ Resources:Content, NoOfVMsRunning %>'>
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_NoOfVMsRunning" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.NoOfVMsRunning") %>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-Width="150px"
                                    HeaderText='<%$ Resources:Content, NoOfVMsOff %>'>
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_NoOfVMsOff" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.NoOfVMsOff") %>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-Width="200px"
                                    HeaderText='<%$ Resources:Content, MemoryAllocated %>'>
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_MemoryAllocated" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.MemoryAllocated") %>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-Width="200px"
                                    HeaderText='<%$ Resources:Content, MemoryConsumed %>'>
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_MemoryConsumed" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.MemoryConsumed") %>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-Width="250px"
                                    HeaderText='<%$ Resources:Content, VirtualProcessorsAllocated %>'>
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_NoOfLogicalProcessorsAllocated" runat="server"
                                            Text='<%# DataBinder.Eval(Container, "DataItem.NumberOfLogicalProcessorAllocated") %>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-Width="250px"
                                    HeaderText='<%$ Resources:Content, VirtualProcessorsConsumed %>'>
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_VirtualProcessorsConsumed" runat="server"
                                            Text='<%# DataBinder.Eval(Container, "DataItem.NumberOfLogicalProcessorConsumed") %>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-Width="200px"
                                    HeaderText='<%$ Resources:Content, DiskSpaceAllocated %>'>
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_DeskSpaceAllocated" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.DiskSpaceAllocated")%>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-Width="200px"
                                    HeaderText='<%$ Resources:Content, DiskSpaceConsumed %>'>
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_DiskSpaceConsumed" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.DiskSpaceConsumed") %>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-Width="150px"
                                    HeaderText='<%$ Resources:Content, NoOfVSwitches %>'>
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_NoOfVSwitches" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.NoOfVSwitches") %>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-Width="200px"
                                    HeaderText='<%$ Resources:Content, GN0000779 %>'>
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_TimeUpdated" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.TimeUpdated")%>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Panel>

