<%@ page title="" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Hostel_QuickAssignRoom, App_Web_5m2qkb20" 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">
            
                            <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">
                                        <div class="himssuHeader1WireBox card  card-box">
                                            <div class="himsBoxHeader card-head">

                                                <div class="himsBoxTitle">
                                                    <div class="headerText">
                                                        <header>
                                                         <i class="fas fa-home"></i>   <asp:Label ID="Label1" runat="server" Text="Quick Assign Room"></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>
                                                            <asp:HiddenField ID="StudentIdHiddenField" runat="server" />
                                                        </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 class="outerBox pTop5 col-md-12 bg-lghtgrey  pTop5 radiobtn">
                                                            <div class="col-md-4">
                                                                <asp:RadioButton ID="CodeRadioButton" runat="server" AutoPostBack="true" OnCheckedChanged="CodeRadioButton_CheckedChanged" CssClass="pLeft10" GroupName="a" Checked="true" />
                                                                </div>
                                                             <div class="col-md-4">
                                                                <asp:RadioButton ID="SuidRadioButton1" runat="server" Text="SUID" AutoPostBack="true" OnCheckedChanged="SuidRadioButton1_CheckedChanged" CssClass="pLeft10" GroupName="a" />

                                                            </div>
                                                        </div>
                                                      
                                                        <div class="outerBox pTop15 pb5 col-md-12">
                                                            <div class="controlLabelWidth">
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:CheckBox runat="server" ID="AssetAssignCheckBox" Text="Auto Assign Assset" />
                                                            </div>
                                                        </div>
                                                       
                                                        <div id="Div1" class="himssuHeader1WireBox col-md-12" runat="server"  visible="false">
                                                            <div id="GridViewPagerDiv" runat="server" visible="True">
                                                                <div class="leftdiv">
                                                                </div>
                                                                <div class="himsBoxTitle">
                                                                 
                                                                </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="StudentsPerRoom,StudentsAllocated,RoomId"
                                                                        CssClass="table table-striped table-bordered table-hover ">
                                                                        <Columns>
                                                                            <asp:BoundField DataField="RoomCategory" HeaderText="Room Category"  HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                            <asp:BoundField DataField="BuildingName" HeaderText="Building"  HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                            <asp:TemplateField HeaderText="Room Name"  ItemStyle-HorizontalAlign="Left"
                                                                                ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="TitleLabel" runat="server" Text='<%# ((System.Data.DataRowView)Container.DataItem)["Title"] %>'></asp:Label>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                            <asp:BoundField DataField="RoomCharge" HeaderText="Room Charge"  HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                            <asp:TemplateField HeaderText="Students Per Room"  ItemStyle-HorizontalAlign="Left"
                                                                                ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="StudentsPerRoom" runat="server" Text='<%# ((System.Data.DataRowView)Container.DataItem)["StudentsPerRoom"] %>'></asp:Label>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                            <asp:BoundField DataField="StudentsAllocated" HeaderText="Students Allocated"
                                                                                HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                            <asp:TemplateField HeaderText="Status"  ItemStyle-HorizontalAlign="Left"
                                                                                ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="StatusLabel" runat="server"></asp:Label>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                            <asp:TemplateField HeaderText="Student" ItemStyle-HorizontalAlign="Left"
                                                                                ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                                <ItemTemplate>
                                                                                    <asp:TextBox ID="StudentIdTextbox" runat="server"></asp:TextBox>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                        </Columns>
                                                                        <PagerSettings Visible="False" />
                                                                    </asp:GridView>
                                                                </div>
                                                            </div>
                                                        </div>
                                                </asp:Panel>
                                            </div>
                                        </div>
                                    </div>
                                </div>

                            </div>
                        </tr>
                    </table>
                </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>
