<%@ page title="" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Hostel_HostelYearProcess, App_Web_lakyuscc" 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="Hostel Year Process"></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="FromBatchLabel" Text="From Batch" runat="server" CssClass="mandatory"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:DropDownList ID="FromBatchDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                                    onmouseenter="showHideTooltip()"
                                                                    SkinID="CustomWidthDropDownList" CssClass="form-control" AutoPostBack="true" OnSelectedIndexChanged="FromBatchDropDownList_SelectedIndexChanged">
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>
                                                        <div class="outerBox pTop5 col-md-3" style="margin-bottom: 15px">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="ToBatchLabel" Text="To Batch" runat="server" CssClass="mandatory"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:DropDownList ID="ToBatchDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                                    onmouseenter="showHideTooltip()" CssClass="form-control"
                                                                    SkinID="CustomWidthDropDownList">
                                                                </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()" OnTextChanged="BuildingDropDownList_TextChanged" AutoPostBack="true">
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>
                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="RoomLabel4" runat="server" Text="Room"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:DropDownList runat="server" ID="RoomDropDownList" SkinID="CustomWidthDropDownList"
                                                                    onmouseleave="showHideTooltip()" CssClass="form-control" onmouseenter="showHideTooltip()" OnTextChanged="RoomDropDownList_TextChanged" AutoPostBack="true">
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>
                                                      
                                                        <div class="alignCenter pTop5 col-md-12">
                                                            <asp:Button ID="ImportButton" runat="server" OnClick="ImportButton_Click" class="btn-examcommon btn fas" Text="&#xf019; Import" SkinID="0" />
                                                            <asp:Button ID="ResetButton" runat="server" OnClick="ResetButton_Click" Text="&#xf0e2; Reset" SkinID="0" class="btn-reset btn fas"/>
                                                        </div>
                                                    </div>
                                                   
                                                    <div id="Div1" class="himssuHeader1WireBox col-md-12" runat="server" style="width: 100%; height: 100%" visible="false">
                                                        <div id="GridViewPagerDiv" runat="server" visible="True">
                                                           <div class="himsBoxHeader card-head inner" id="PatientRelationDiv" runat="server">
                                                            <div class="gridHeaderText">
                                                            <header>
                                                            <asp:Label ID="AssignRouteLabel" runat="server" Text="Hostel Year Process"></asp:Label>
                                                            </header>
                                                            </div>
                                                             
                                                            <div class="leftdiv">
                                                            </div>
                                                            <div class="himsBoxTitle">
                                                                <div class="fRight">
                                                                </div>
                                                            </div>
                                                            </div>
                                                            <div class="himsBoxContent table-responsive">
                                                                <asp:GridView ID="AssignListGridView" runat="server" AutoGenerateColumns="False"
                                                                    EmptyDataText="No Records Found !!" AllowPaging="false"
                                                                    ShowHeader="true" DataKeyNames="SourceId,RoomId,BedNumber,StudentId,AcademicId"
                                                                    CssClass="table table-striped table-bordered table-hover" OnRowDataBound="AssignListGridView_RowDataBound">
                                                                    <Columns>
                                                                        <asp:TemplateField ItemStyle-Width="3%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                            <HeaderStyle VerticalAlign="NotSet" HorizontalAlign="Left" />
                                                                            <HeaderTemplate>
                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                <asp:CheckBox ID="HeaderSelectCheckBox" runat="server" onclick="CheckAll(this)"></asp:CheckBox>
                                                                                    <span></span>
                                                                                </label>
                                                                            </HeaderTemplate>
                                                                            <ItemStyle HorizontalAlign="Center" />
                                                                            <ItemTemplate>
                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                <asp:CheckBox ID="SelectCheckBox" runat="server"></asp:CheckBox>
                                                                                    <span></span>
                                                                                </label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:BoundField DataField="RoomCategory" HeaderText="Room Category" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                        <asp:BoundField DataField="Room" HeaderText="Room Name" ItemStyle-Width="6%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                        <asp:BoundField DataField="SUID" HeaderText="SUID" ItemStyle-Width="8%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                        <asp:TemplateField ItemStyle-Width="5%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left"  >
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="CodeLabel" runat="server" Text='<%# ((System.Data.DataRowView)Container.DataItem)["Code"] %>'> </asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:BoundField DataField="Name" HeaderText="Name" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                        <asp:BoundField DataField="ClassName" HeaderText="Class" ItemStyle-Width="6%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                        <asp:TemplateField ItemStyle-Width="5%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Center" HeaderText="Status">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="StatusLabel" runat="server" Text='<%# ((System.Data.DataRowView)Container.DataItem)["Status"] %>' Font-Bold="true"> </asp:Label>
                                                                            </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>
