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

<%@ Register Assembly="obout_Editor" Namespace="OboutInc.Editor" TagPrefix="obout" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Assembly="AjaxControls" Namespace="AjaxControls" TagPrefix="EM" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="UC" %>
<%@ Register Assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Namespace="System.Web.UI" TagPrefix="cc1" %>

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

    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <h3>
                    <%= Resources.Content.RDSAccounts%>
                </h3>
            </div>
            <div class="body">
                <asp:Panel ID="Pnl_Listing" runat="server" DefaultButton="Btn_ApplyFilter">
                    <asp:Panel ID="Pnl_Btn_ApplyFilter" runat="server" CssClass="row" DefaultButton="Btn_ApplyFilter">
                        <div class="panel-group search-panel" id="AS_O365Accounts" role="tablist" aria-multiselectable="true">
                            <div class="col-xs-12" role="tab" id="SH_RDSAccounts">
                                <div class="card">
                                    <div class="header" role="button" data-toggle="collapse" data-parent="#AS_O365Accounts" href="#<%= CSB_RDSAccounts.ClientID%>" aria-expanded="true" aria-controls="SH_RDSAccounts">
                                        <h3>
                                            <%= Resources.Content.GN0000395%>
                                        </h3>
                                    </div>
                                    <div id="CSB_RDSAccounts" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_RDSAccounts" aria-expanded="false">
                                        <div class="row">

                                            <div class="col-md-3 col-sm-6 col-xs-12" id="Div_DDL_Owner" runat="server">
                                                <div class="form-group form-float">
                                                    <asp:DropDownList ID="DDL_Owner" runat="server" onchange="setOwnerCookie(this)">
                                                    </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_SrchId" runat="server"></asp:TextBox>
                                                        <asp:Label ID="Label1" runat="server" class="form-label" EnableViewState="false" Text="<%$ Resources:Content,SPT002807%>"></asp:Label>
                                                    </div>

                                                </div>
                                            </div>


                                            <div class="col-md-3 col-sm-6 col-xs-12" id="Div_CustomerId" runat="server">
                                                <div class="form-group form-float">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_CustomerID" runat="server" />
                                                        <asp:Label ID="Label3" runat="server" class="form-label" EnableViewState="false" Text="<%$ Resources:Content,GN0000715%>"></asp:Label>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="col-md-3 col-sm-6 col-xs-12" id="Div_CustomerName" runat="server">
                                                <div class="form-group form-float">

                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_CustomerName" runat="server" />
                                                        <asp:Label ID="Label5" runat="server" class="form-label" EnableViewState="false" Text="<%$ Resources:Content,GN0000268%>"></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_OrganizationName" runat="server" MaxLength="200"></asp:TextBox>
                                                        <asp:Label ID="Ltrl_OrganizationName" class="form-label" runat="server" Text="<%$ Resources:Content,OrganizationName %>"></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_AccountStatus" 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_LabelSrch" runat="server"></asp:TextBox>
                                                        <asp:Label ID="Label19" runat="server" EnableViewState="false" Text="<%$ Resources:Content,strLabel%>" class="form-label"></asp:Label>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                <div class="form-group form-float">
                                                    <asp:Button ID="Btn_ApplyFilter" class="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,GN0000391%>" />
                                                    <asp:Button ID="Btn_ClearFilter" 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">
                            <asp:GridView ID="GV_RDSAccountsListing" CssClass="table table-bordered table-striped table-hover" AllowSorting="true" AllowPaging="true"
                                EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" AutoGenerateColumns="False">
                                <Columns>
                                    <asp:TemplateField HeaderStyle-CssClass="col-xs-1" HeaderText='<%$ Resources:Content, String385 %>'>
                                        <ItemTemplate>
                                            <asp:Label ID="lbl_Status" runat="server" />
                                        </ItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField SortExpression="ServiceHostingId" HeaderText="<%$ Resources:Content,SPT002807%>" HeaderStyle-CssClass="col-xs-1">
                                        <ItemTemplate>
                                            <asp:HyperLink ID="LB_SubID" runat="server" />
                                            <%-- Text='<%# Eval("ServiceHostingId")%>'--%>
                                        </ItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText='<%$ Resources:Content, String490 %>' HeaderStyle-CssClass="col-xs-2 hidden-xs" ItemStyle-CssClass="col-xs-2 hidden-xs">
                                        <ItemTemplate>
                                            <asp:Literal ID="Ltrl_PackageName" runat="server" Text='<%# Eval("PackageName")%>' />
                                        </ItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000850 %>' SortExpression="CustomerId" HeaderStyle-CssClass="col-xs-3">
                                        <ItemTemplate>
                                            <asp:HyperLink ID="HL_CustomerId" runat="server" />
                                        </ItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText='<%$ Resources:Content, OrganizationName %>' SortExpression="OrgName" HeaderStyle-CssClass="col-xs-2">
                                        <ItemTemplate>
                                            <asp:Literal ID="Ltrl_OrganizationName" runat="server" Text='<%# Eval("OrgName")%>' />
                                            <%-- <br />
                                                            <asp:Literal ID="Ltrl_Domain" runat="server" Text='<%# Eval("DomainName")%>' />--%>
                                        </ItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText='<%$ Resources:Content, SPT002811 %>' SortExpression="Owner" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-1">
                                        <ItemTemplate>
                                            <asp:HyperLink ID="Ltrl_CustomerOwner" runat="server" Text="" />
                                        </ItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000360 %>' HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                        <ItemTemplate>
                                            <asp:HyperLink ID="hpl_Manage" runat="server" Text="<%$ Resources:Content,L0086 %>"
                                                CssClass="btn btn-primary waves-effect"
                                                NavigateUrl='<%# ResolveUrl("~/RCC/RDS/Manage.aspx?SubId=") & Eval("ServiceHostingId").ToString()%>'></asp:HyperLink>
                                        </ItemTemplate>


                                    </asp:TemplateField>
                                </Columns>
                                <PagerTemplate>
                                    <UC:Pager ID="Pager1" runat="server" />
                                </PagerTemplate>
                            </asp:GridView>
                        </div>
                    </div>
                </asp:Panel>
            </div>
        </div>
    </div>

</asp:Content>

