<%@ control language="VB" autoeventwireup="false" inherits="PCC_VPS_CC_ServerHypervisor, 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_ServerHypervisorStats" runat="server" DefaultButton="Btn_ApplyFilter_ServerHypervisorStats">
    <asp:Panel ID="Pnl_Btn_ApplyFilter" runat="server" CssClass="row" DefaultButton="Btn_ApplyFilter_ServerHypervisorStats">
        <div class="panel-group search-panel" id="AS_ServerHypervisorStats" role="tablist" aria-multiselectable="true">
            <div class="col-xs-12" role="tab" id="SH_ServerHypervisorStats">
                <div class="card">
                    <div class="header" role="button" data-toggle="collapse" data-parent="#AS_ServerHypervisorStats" href="#<%= CSB_ServerHypervisorStats.ClientID%>" aria-expanded="true" aria-controls="SH_ServerHypervisorStats">
                        <h3>
                            <%= Resources.Content.GN0000395%>
                        </h3>
                    </div>
                    <div id="CSB_ServerHypervisorStats" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_ServerHypervisorStats" aria-expanded="false">
                        <div class="row">
                            <ajax:UpdatePanel ID="UP_ServerGroups" runat="server" UpdateMode="Always" ChildrenAsTriggers="true">
                                <ContentTemplate>
                                    <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 class="col-md-3 col-sm-6 col-xs-12">
                                        <div class="form-group form-float">
                                            <asp:DropDownList ID="DDL_Server" runat="server">
                                            </asp:DropDownList>
                                        </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_VMName" runat="server"></asp:TextBox>
                                        </div>
                                        </div>
                                    </div>
                                </ContentTemplate>
                            </ajax:UpdatePanel>
                            <div class="col-md-3 col-sm-6 col-xs-12">
                                <div class="form-group form-float">
                                    <asp:ValidationSummary ID="VS_SearchServerHypervisorStats" runat="server" ShowMessageBox="true"
                                        ShowSummary="false" ValidationGroup="SearchServerHypervisorStats" />
                                    <asp:Button ID="Btn_ApplyFilter_ServerHypervisorStats" ValidationGroup="SearchServerHypervisorStats" class="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,GN0000391%>" />
                                    <asp:Button ID="Btn_ClearFilter_ServerHypervisorStats" Visible="false" class="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,String289 %>" />
                                </div>
                            </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_ServerHypervisors" CssClass="table table-bordered table-striped table-hover" AllowSorting="true" AllowPaging="true"
                    EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" AutoGenerateColumns="False" Style="width: 2170px;">
                    <Columns>
                         <asp:TemplateField HeaderStyle-Width="200px" SortExpression="ServerGroupName"
                            HeaderText='<%$ Resources:Content, strServerGroup %>'>
                            <ItemTemplate>
                                <asp:Label ID="Lbl_ServerGroupName" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "ServerGroupName")%>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderStyle-Width="200px" SortExpression="ServerName"
                            HeaderText='<%$ Resources:Content, ServerName %>'>
                            <ItemTemplate>
                                <asp:Label ID="Lbl_ServerName" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"ServerName") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderStyle-Width="200px" SortExpression="VMName"
                            HeaderText='<%$ Resources:Content, VMName %>'>
                            <ItemTemplate>
                                <asp:Label ID="Lbl_VMName" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "VMName") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderStyle-Width="100px" SortExpression="State"
                            HeaderText='<%$ Resources:Content, DEV1130 %>'>
                            <ItemTemplate>
                                <asp:Label ID="Lbl_State" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "State") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderStyle-Width="200px" SortExpression="MemoryAssigned"
                            HeaderText='<%$ Resources:Content, AssignedMemory %>'>
                            <ItemTemplate>
                                <asp:Label ID="Lbl_AssignedMemory" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "MemoryAssigned")%>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderStyle-Width="220px" SortExpression="AssignedLogicalProcessors"
                            HeaderText='<%$ Resources:Content,AssignedVirtualProcessors %>'>
                            <ItemTemplate>
                                <asp:Label ID="Lbl_AssignedVirtualProcessors" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "AssignedLogicalProcessors") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderStyle-Width="200px" SortExpression="AssignedStorage"
                            HeaderText='<%$ Resources:Content,AssignedStorage %>'>
                            <ItemTemplate>
                                <asp:Label ID="Lbl_AssignedStorage" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "AssignedStorage") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderStyle-Width="200px" SortExpression="ConsumedStorage"
                            HeaderText='<%$ Resources:Content,ConsumedStorage %>'>
                            <ItemTemplate>
                                <asp:Label ID="Lbl_ConsumedStorage" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "ConsumedStorage") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderStyle-Width="150px" SortExpression="NoOfNICs"
                            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="200px" SortExpression="OS"
                            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="100px" SortExpression="IsClustered"
                            HeaderText='<%$ Resources:Content, Clustered %>'>
                            <ItemTemplate>
                                <asp:Label ID="Lbl_IsClustered" runat="server" Text='<%# IIf(DataBinder.Eval(Container.DataItem, "IsClustered"),Resources.Content.Yes, Resources.Content.No) %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderStyle-Width="200px" SortExpression="IPAddresses"
                            HeaderText='<%$ Resources:Content, GN0000186 %>'>
                            <ItemTemplate>
                                <asp:Label ID="Lbl_IPAddresses" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "IPAddresses") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                     <PagerTemplate>
                        <EM:Pager ID="Pager1" runat="server" />
                    </PagerTemplate>
                </asp:GridView>
            </div>
        </div>
    </div>
</asp:Panel>