<%@ page title="" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Hostel_AssignRoom, 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/EmployeeSearch/EmployeeSearch.ascx" TagName="EmployeeSearchControl" TagPrefix="hims" %>
<%@ Register Src="~/UserControls/Common/CommonSearch/CommonSearch.ascx" TagName="CommonSearchUserControl" TagPrefix="uc1" %>
<%@ Register Src="~/UserControls/Common/StudentSearch/StudentSearch.ascx" TagName="StudentSearch" TagPrefix="Std" %>
<%@ Register Src="~/UserControls/Common/Hostel/HostelDetailBoxControl.ascx" TagName="HostelControl" TagPrefix="Hostel" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl" TagPrefix="Date" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="OTQueueListingUpdatePanel" runat="server">
        <ContentTemplate>
            <uc1:CommonSearchUserControl ID="CommonSearchControl" Visible="false" runat="server" />
            <hims:EmployeeSearchControl ID="EmployeeSearch" Visible="false" runat="server" />
            <Std:StudentSearch ID="StudentSearch" Visible="false" runat="server" />
            <div id="divContentPage" class="divcontentpagemargin">
               
                            <div class="dashBoardLeftCont">
                                <div class="himssuHeader3WireBox">
                                    <table>
                                        <tr>
                                            <td>

                                                <div class="leftUlMenu">
                                                    <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="175"
                                                        Visible="true" runat="server" />
                                                </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-angle-right"></i>   <asp:Label ID="Label1" runat="server" Text="Assign Room "></asp:Label>
                                                        </header>
                                                    </div>
                                                    <div class="fRight mt-27">
                                                        <asp:Button ID="BackNewButtonID" runat="server" OnClick="BackNewButton_Click" SkinID="0" CssClass="btn btn-back fas" Text="&#xf30a; Back" />
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="himsBoxContent card-body max-h-405">
                                                <asp:Panel ID="DetailPanel" runat="Server">
                                                    <div class="contentHolder">
                                                        <div class="outerBox pTop5 col-md-3">
                                                            <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="RoomChargeLabel" Text="Room Charge" runat="server"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:TextBox ID="RoomChargeTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                    SkinID="CustomWidthTextBox" runat="Server"></asp:TextBox>
                                                            </div>
                                                        </div>

                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="RoomLabel" Text="Room" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:DropDownList ID="RoomDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                                    onmouseenter="showHideTooltip()" AutoPostBack="true" OnSelectedIndexChanged="RoomDropDownList_OnSelectedIndexChanged"
                                                                    SkinID="CustomWidthDropDownList" CssClass="form-control">
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>
                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="StudentsPerRoomLabel" Text="Students Per Room" runat="server"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:TextBox ID="StudentsPerRoomTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                    SkinID="CustomWidthTextBox" runat="Server"></asp:TextBox>
                                                            </div>
                                                        </div>
                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="AllocatedStudentsLabel" Text="Allocated Students" runat="server"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:TextBox ID="AllocatedStudentsTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                    SkinID="CustomWidthTextBox" runat="Server"></asp:TextBox>
                                                            </div>
                                                        </div>
                                                        <div class="cBoth">
                                                        </div>
                                                        <div id="SUIdDiv" class="outerBox pTop5 col-md-3" runat="server" visible="false">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="SUIdLabel" runat="server" Text="SU Id"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:TextBox ID="SUIdTextBox" runat="server" SkinID="CustomWidthTextBox"
                                                                    AutoPostBack="true" MaxLength="50" OnTextChanged="SUIdTextBox_TextChanged"></asp:TextBox>
                                                            </div>
                                                        </div>

                                                        <div class="outerBox col-md-12 bg-lghtgrey  radiobtn">
                                                            <div class="controlLabelWidth">
                                                                <asp:RadioButtonList ID="SourceTypeRadioButtonList" runat="server" RepeatDirection="Horizontal"
                                                                    OnSelectedIndexChanged="SourceTypeRadioButtonList_OnSelectedIndexChanged" AutoPostBack="true">
                                                                    <asp:ListItem Text="Student" Value="2003" Selected="True"></asp:ListItem>
                                                                    <asp:ListItem Text="Employee" Value="95"></asp:ListItem>
                                                                </asp:RadioButtonList>
                                                            </div>
                                                        </div>

                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="OrganizationLabel" Text="Organization" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:DropDownList ID="OrganizationDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                                    onmouseenter="showHideTooltip()" AutoPostBack="true" SkinID="CustomWidthDropDownList"
                                                                    CssClass="form-control" OnSelectedIndexChanged="OrganizationDropDownList_OnSelectedIndexChanged">
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>
                                                        <div id="Div2" class="outerBox pTop5 col-md-3" runat="server" visible="false">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="BatchLable" Text="Batch" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:DropDownList ID="BatchDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" CssClass="form-control"
                                                                    AutoPostBack="true" OnSelectedIndexChanged="BatchDropDownList_OnSelectedIndexChanged">
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>

                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="SourceCodeLabel" runat="server" Text="ID No" SkinID="MandatoryLabel"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5 display-flex">
                                                                <asp:TextBox ID="SourceCodeTextBox"
                                                                    SkinID="CustomWidthTextBox" runat="server" MaxLength="200"
                                                                    AutoPostBack="true"
                                                                    OnTextChanged="SourceCodeTextBox_TextChanged"> 
                                                                </asp:TextBox>
                                                                <asp:ImageButton SkinID="FindImage" ToolTip="Drug Search" ID="SourceCodeImageButton"
                                                                    runat="server" />
                                                                <asp:HiddenField ID="SourceIdHiddenField" runat="server" />
                                                            </div>
                                                        </div>
                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="SourceNameLabel" runat="server" Text="Name"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:TextBox ID="SourceNameTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                    SkinID="CustomWidthTextBox"  runat="server" MaxLength="200"> </asp:TextBox>
                                                            </div>
                                                        </div>
                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="BedNumberLabel3" runat="server" Text="Bed Number"></asp:Label>
                                                            </div>

                                                            <div class="fLeft pRight5">
                                                                <asp:TextBox ID="BedNumberTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                    SkinID="CustomWidthTextBox" runat="server" MaxLength="20"> </asp:TextBox>
                                                            </div>
                                                        </div>
                                                        <div class="cBoth">
                                                            <div class="himsBoxContent" id="AssignRoomAssetDiv" runat="server" visible="false">
                                                                <asp:GridView ID="AssignRoomAssetGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                    EmptyDataText="No Records Found !!"
                                                                    AllowPaging="false"
                                                                    ShowHeader="true"
                                                                    DataKeyNames="AssetTypeId"
                                                                    CssClass="table table-striped table-bordered" OnRowDataBound="AssignRoomAssetGridView_RowDataBound">
                                                                    <Columns>
                                                                        <asp:BoundField DataField="Title" HeaderText="AssetType" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                        <asp:TemplateField ShowHeader="true" HeaderText="AssetNumber" HeaderStyle-HorizontalAlign="Center">
                                                                            <ItemTemplate>
                                                                                <asp:DropDownList ID="AssetNumberDropDownList" runat="server"></asp:DropDownList>
                                                                            </ItemTemplate>
                                                                            <ItemStyle HorizontalAlign="Center" Width="5%" />
                                                                        </asp:TemplateField>

                                                                    </Columns>
                                                                    <PagerSettings Visible="False" />
                                                                </asp:GridView>
                                                            </div>
                                                        </div>

                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="AllocateDateLabel" runat="server" Text="Allocate Date" SkinID="MandatoryLabel"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <Date:DatePickerControl DisplayDatePicker="true" ID="AllocateDatePickerControl" Visible="true"
                                                                    runat="server" />
                                                            </div>
                                                        </div>
                                                        <div class="outerBox pTop5 col-md-3">

                                                            <div class="fLeft pRight5 pTop15">
                                                                <asp:CheckBox ID="IsSelfPermissionToGoOutChckbox" runat="server" Text="Self Permission ToGoOut"></asp:CheckBox>
                                                                <%--  <asp:Label ID="Label2"  runat="server" ></asp:Label>--%>
                                                            </div>
                                                        </div>

                                                        <div id="Div1" class="himssuHeader6WireBox width-100 pTop15" runat="server" visible="true">
                                                            <div class="himsBoxHeader card-head inner" id="GridViewPagerDiv" runat="server" visible="True">

                                                                <div class="himsBoxTitle">
                                                                    <%--<div class="gridHeaderText">
                                                                        <header>
                                                                            <asp:Label ID="GridViewLabel" Text="List of Student / Employee Assigned to Room "
                                                                                runat="server" />
                                                                        </header>
                                                                    </div>--%>
                                                                    <div class="pull-right mt-12">
                                                                        <asp:Button ID="AssignButton" runat="server" OnClick="AssignButton_Click"
                                                                            Text="&#xf0ae; Assign" Height="30px" SkinID="0" CssClass="btn btn-assign fas" /> &nbsp;
                                                                        <asp:Button ID="DeleteButton" Height="30px" runat="server" OnClick="DeleteButton_Click"
                                                                            Text="&#xf2ed; Delete" CssClass="btn btn-delete fas " SkinID="0" /> &nbsp;
                                                                        <asp:Button ID="ResetButton" Height="30px" runat="server" OnClick="ResetButton_Click"
                                                                            Text="&#xf12d; Clear" CssClass="btn btn-clear fas" SkinID="0" /> &nbsp;
                                                                    </div>
                                                                    <div class="cBoth"></div>
                                                                    <div class="fRight pTop5">
                                                                        <uc1:GridViewPager ID="AssignRoomGridViewPager" Visible="false" runat="server" ParentGridView="AssignRoomGridView"
                                                                            OnFirstRecordClick="AssignRoomGridViewPager_FirstRecordClick"
                                                                            OnLastRecordClick="AssignRoomGridViewPager_LastRecordClick" OnNextRecordClick="AssignRoomGridViewPager_NextRecordClick"
                                                                            OnPrevRecordClick="AssignRoomGridViewPager_PrevRecordClick" OnTextBoxValueChange="AssignRoomGridViewPager_TextBoxValueChange" />
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="himsBoxContent width-100 pTop5 table-responsive col-md-12">
                                                                <asp:GridView ID="AssignRoomGridView" runat="server" AutoGenerateColumns="False"
                                                                    EmptyDataText="No Records Found !!"
                                                                    AllowPaging="false" OnRowDataBound="AssignRoomGridView_RowDataBound"
                                                                    ShowHeader="true"
                                                                    DataKeyNames="SourceTypeId,SourceId"
                                                                    CssClass="table table-striped table-bordered">
                                                                    <Columns>
                                                                        <asp:TemplateField HeaderText="Select" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="5%"
                                                                            ItemStyle-Wrap="true">
                                                                            <HeaderTemplate>
                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                <asp:CheckBox ID="HeaderSelectCheckBox" runat="server" Enabled="true"
                                                                                    Visible="true" onclick="CheckAll(this);" />
                                                                                    <span></span>
                                                                                </label>
                                                                            </HeaderTemplate>
                                                                            <ItemStyle HorizontalAlign="Center" />
                                                                            <ItemTemplate>
                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                <asp:CheckBox ID="SelectCheckBox" runat="server" />
                                                                                    <span></span>
                                                                                </label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:BoundField DataField="OrgDisplayTitle" HeaderText="Organization" ItemStyle-Width="25%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                        <asp:BoundField DataField="SourceType" HeaderText="Type" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                        <asp:BoundField DataField="SUId" HeaderText="SUId" ItemStyle-Width="15%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                        <asp:BoundField DataField="SourceCode" ItemStyle-Width="15%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                        <asp:BoundField DataField="SourceName" HeaderText="Name" ItemStyle-Width="30%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                        <asp:BoundField DataField="ClassDivisionName" HeaderText="Class / Department" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                        <asp:BoundField DataField="City" HeaderText="City" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                        <asp:BoundField DataField="BedNumber" HeaderText="Bed Number" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                        <asp:BoundField DataField="AssetNumber" HeaderText="Asset Number" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                        <asp:TemplateField ShowHeader="true" HeaderText="Delete" HeaderStyle-HorizontalAlign="Center" Visible="false">
                                                                            <ItemTemplate>
                                                                                <asp:ImageButton SkinID="DeleteImage" ID="DeleteImageButton" runat="server" OnClick="DeleteImageButton_Click"
                                                                                    ToolTip="Delete" />
                                                                            </ItemTemplate>
                                                                            <ItemStyle HorizontalAlign="Center" Width="5%" />
                                                                        </asp:TemplateField>
                                                                    </Columns>
                                                                    <PagerSettings Visible="False" />
                                                                </asp:GridView>
                                                            </div>
                                                        </div>

                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="VacantDateLabel" runat="server" Text="Vacant Date" SkinID="MandatoryLabel"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <Date:DatePickerControl DisplayDatePicker="true" ID="VacantDateDatePickerControl" runat="server" />
                                                            </div>
                                                        </div>

                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="VacantReasonLabel" runat="server" Text="Vacant Reason"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:TextBox ID="VacantReasonTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                    SkinID="MultiLineTextBox" TextMode="MultiLine" Height="40px" runat="server"
                                                                    MaxLength="200"></asp:TextBox>
                                                            </div>
                                                        </div>

                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="RoomConditionLabel" runat="server" Text="Room Condition"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:TextBox ID="RoomConditionTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                    SkinID="MultiLineTextBox" TextMode="MultiLine" Height="40px" runat="server"
                                                                    MaxLength="200"></asp:TextBox>
                                                            </div>
                                                        </div>

                                                        <div class="alignCenter pTop15 col-md-12">
                                                            <asp:Button ID="VacantButton" runat="server" Text="&#xf06a; Vacant" SkinID="0"
                                                                CssClass="btn btn-vacant fas" OnClick="VacantButton_Click" />
                                                            <asp:Button ID="VacantClearButton" runat="server" class="btn btn-clear fas" OnClick="VacantClearButton_Click"
                                                                Text="&#xf12d; Clear" SkinID="0" />
                                                        </div>
                                                        <div class="cBoth">
                                                        </div>
                                                    </div>
                                                </asp:Panel>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                              
                          
                </div>
            </div>
           
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../JavaScript/rjs/encrypt/assign-room-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/assign-room")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
