<%@ page title="" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Hostel_RoomList, App_Web_g25tbc5i" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager" TagPrefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>
<%@ Register Src="~/UserControls/Common/Hostel/HostelDetailBoxControl.ascx" TagName="HostelControl" TagPrefix="Hostel" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="OTQueueListingUpdatePanel" runat="server">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">
                
                            <div class="dashBoardLeftCont">
                                <div class="himssuHeader3WireBox">
                                    <table>
                                        <tr>
                                            <td>
                                                <div class="himsBoxContent">
                                                    <div class="leftUlMenu">
                                                        <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="175"
                                                            Visible="true" runat="server" />
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </div>
                            <div class="whiteboxpaddingleft row">
                                <Hostel:HostelControl ID="HostelUserControl" runat="server" Visible="true" />
                                <div class="himssuHeader2WireBox">
                                    <div class="contentHolder" style="padding-top: 0px; padding-left: 0px; padding-right: 0px">
                                        <div class="himssuHeader1WireBox card card-box">
                                            <div class="himsBoxHeader card-head">
                                                <div class="leftdiv">
                                                </div>
                                                <div class="himsBoxTitle">
                                                    <div class="headerText">
                                                        <header>
                                                            <i class="fas fa-list-ul"></i>
                                                        <asp:Label ID="Label1" runat="server" Text="Room List For Hostel"></asp:Label>
                                                        </header>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="himsBoxContent card-body">
                                                <asp:Panel ID="DetailPanel" runat="Server">
                                                    <div class="contentHolder">
                                                        <div class="outerBox pTop5 col-md-3" style="margin-bottom: 15px">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="RoomCategoryLabel" Text="Room Category" runat="server"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:DropDownList ID="RoomCategoryDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                                    onmouseenter="showHideTooltip()" AutoPostBack="true" OnSelectedIndexChanged="RoomCategoryDropDownList_OnSelectedIndexChanged"
                                                                    SkinID="CustomWidthDropDownList" CssClass="form-control">
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>
                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="BuildingLabel" runat="server" Text="Building"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:DropDownList runat="server" ID="BuildingDropDownList" SkinID="CustomWidthDropDownList"
                                                                    CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                    OnSelectedIndexChanged="BuildingDropDownList_SelectedIndexChanged" AutoPostBack="true">
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>
                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="Label2" runat="server" Text="Status"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:DropDownList runat="server" ID="StatusDropDownList" SkinID="CustomWidthDropDownList"
                                                                    CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                    OnSelectedIndexChanged="StatusDropDownList_SelectedIndexChanged" AutoPostBack="true">
                                                                    <asp:ListItem Value="0">-ALL-</asp:ListItem>
                                                                    <asp:ListItem Value="1">Available</asp:ListItem>
                                                                    <asp:ListItem Value="2">Full</asp:ListItem>
                                                                    <asp:ListItem Value="3">Empty</asp:ListItem>
                                                                </asp:DropDownList>


                                                            </div>
                                                        </div>
                                                      
                                                        <div id="Div1" class="himssuHeader1WireBox col-md-12" runat="server" visible="false" style="width: 100%; height: 100%">
                                                            <div id="GridViewPagerDiv" runat="server" visible="True">
                                                                <div class="leftdiv">
                                                                </div>
                                                                <div class="himsBoxHeader card-head inner" id="PatientRelationDiv" runat="server">
                                                                    <div class="gridHeaderText">
                                                                    <header>
                                                                    <asp:Label ID="AssignRouteLabel" runat="server" Text="Room List"></asp:Label>
                                                                    </header>
                                                                    </div>
                                                                    </div>
                                                                <div class="himsBoxTitle">
                                                                    <div class="fRight">
                                                                        <uc1:GridViewPager ID="RoomListGridViewPager" Visible="false" runat="server" ParentGridView="RoomListGridView"
                                                                            OnFirstRecordClick="RoomListGridViewPager_FirstRecordClick" OnLastRecordClick="RoomListGridViewPager_LastRecordClick"
                                                                            OnNextRecordClick="RoomListGridViewPager_NextRecordClick" OnPrevRecordClick="RoomListGridViewPager_PrevRecordClick"
                                                                            OnTextBoxValueChange="RoomListGridViewPager_TextBoxValueChange" />
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="himsBoxContent table-responsive">
                                                                <asp:GridView ID="RoomListGridView" runat="server" AutoGenerateColumns="False"
                                                                    EmptyDataText="No Records Found !!" AllowPaging="false" OnRowDataBound="RoomListGridView_RowDataBound"
                                                                    ShowHeader="true" DataKeyNames="Id,RoomCategoryId,StudentsPerRoom,StudentsAllocated"
                                                                    CssClass="table table-striped table-bordered table-hover">
                                                                    <Columns>
                                                                        <asp:TemplateField HeaderText="Title" ItemStyle-Width="15%" ItemStyle-HorizontalAlign="Left"
                                                                            ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="TitleLabel" runat="server" Text='<%#((Sapphire.Vidyalaya.BusinessEntity.Business.HostelBE.RoomMaster)Container.DataItem).Title %>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:BoundField DataField="RoomCategory" HeaderText="Room Category" ItemStyle-Width="15%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                        <asp:BoundField DataField="BuildingName" HeaderText="Building" ItemStyle-Width="15%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                        <asp:BoundField DataField="RoomCharge" HeaderText="Room Charge" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                        <asp:BoundField DataField="StudentsPerRoom" HeaderText="Students Per Room" ItemStyle-Width="10%"
                                                                            HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                        <asp:BoundField DataField="StudentsAllocated" HeaderText="Students Allocated" ItemStyle-Width="10%"
                                                                            HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                        <asp:TemplateField HeaderText="Status" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Left"
                                                                            ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="StatusLabel" runat="server"></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <asp:LinkButton ID="AssignRoomLinkButton" runat="server" CommandArgument="Select"
                                                                                    OnClick="AssignRoomLinkButton_Click" Text="Assign Room"></asp:LinkButton>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <asp:LinkButton ID="EditLinkButton" runat="server" CommandName="Select" OnClick="EditLinkButton_Click"
                                                                                    Text="Edit" CausesValidation="false"></asp:LinkButton>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                    </Columns>
                                                                    <PagerSettings Visible="False" />
                                                                </asp:GridView>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </asp:Panel>
                                            </div>
                                        </div>
                                    </div>
                                </div>                                
                            </div>                        
                </div>
            </div>
            
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../JavaScript/rjs/encrypt/room-list-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/room-list")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
