<%@ page title="" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Hostel_Admission_ChangeRoom, App_Web_kux14qts" 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" %>
<%@ 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>
            <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" 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-chevron-right"></i>
                                                            <asp:Label ID="AdmissionChangeRoomLabel" runat="server" Text="Admission | Change Room"></asp:Label>
                                                        </header>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="himsBoxContent card-body padd-0">
                                                <asp:Panel ID="DetailPanel" runat="Server">
                                                    <div class="contentHolder">
                                                        <div class="tableContainer">
                                                            <cc1:TabContainer ID="Admission_ChangeRoomTabContainer" runat="server"
                                                                CssClass="ajax__myTab nav nav-tabs tabs-style-iconbox" meta:resourcekey="Admission_ChangeRoomTabContainerResource1"
                                                                ActiveTabIndex="0">
                                                                <cc1:TabPanel ID="AdmissionListDetails" runat="server" HeaderText="Admission List">
                                                                    <HeaderTemplate>
                                                                        <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                                            <li class="fancyTab"><a><i class="fas fa-list-ul"></i>Admission List </a></li>
                                                                        </ul>
                                                                    </HeaderTemplate>
                                                                    <ContentTemplate>
                                                                        <div class="contentHolder">
                                                                            <div class="outerBox pTop5 col-md-3">
                                                                                <div class="controlLabelWidth">
                                                                                    <asp:Label ID="AOrganizationLabel" Text="Organization" runat="server"></asp:Label>
                                                                                </div>
                                                                                <div class="fLeft pRight5">
                                                                                    <asp:DropDownList ID="AOrganizationDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                                                        onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" CssClass="form-control">
                                                                                    </asp:DropDownList>
                                                                                </div>
                                                                            </div>
                                                                            <div class="outerBox pTop5 col-md-3">
                                                                                <div class="controlLabelWidth">
                                                                                    <asp:Label ID="ASourceTypeLabel" runat="server" Text="Source Type"></asp:Label>
                                                                                </div>
                                                                                <div class="fLeft pRight5">
                                                                                    <asp:DropDownList runat="server" ID="ASourceTypeDropDownList" SkinID="CustomWidthDropDownList"
                                                                                        CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                                                        <asp:ListItem Text="- ALL -" Value="0"></asp:ListItem>
                                                                                        <asp:ListItem Text="Student" Value="2003" Selected="True"></asp:ListItem>
                                                                                        <asp:ListItem Text="Employee" Value="95"></asp:ListItem>
                                                                                    </asp:DropDownList>
                                                                                </div>
                                                                            </div>
                                                                            <div class="outerBox pTop5 col-md-3">
                                                                                <div class="controlLabelWidth">
                                                                                    <asp:Label ID="ACodeLabel" runat="server"></asp:Label>
                                                                                </div>
                                                                                <div class="fLeft pRight5">
                                                                                    <asp:TextBox ID="ACodeTextBox" runat="server" onmouseleave="showHideTooltip()" SkinID="CustomWidthTextBox"
                                                                                        onmouseenter="showHideTooltip()" MaxLength="20"></asp:TextBox>
                                                                                </div>
                                                                            </div>

                                                                            <div class="cBoth">
                                                                            </div>
                                                                            <div class="outerBox pTop5 col-md-3">
                                                                                <div class="controlLabelWidth">
                                                                                    <asp:Label ID="FromAllocateDateLabel" runat="server" Text="From Allocate Date"></asp:Label>
                                                                                </div>
                                                                                <div class="fLeft pRight5">
                                                                                    <Date:DatePickerControl DisplayDatePicker="true" ID="FromAllocateDateDatePickerControl"
                                                                                        runat="server" />
                                                                                </div>
                                                                            </div>
                                                                            <div class="outerBox pTop5 col-md-3">
                                                                                <div class="controlLabelWidth">
                                                                                    <asp:Label ID="ToAllocateDateLabel" runat="server" Text="To Allocate Date"></asp:Label>
                                                                                </div>
                                                                                <div class="fLeft pRight5">
                                                                                    <Date:DatePickerControl DisplayDatePicker="true" ID="ToAllocateDateDatePickerControl"
                                                                                        runat="server" />
                                                                                </div>
                                                                            </div>


                                                                            <div class="outerBox pTop5 col-md-3">
                                                                                <div class="controlLabelWidth">
                                                                                    <asp:Label ID="Label" runat="server" Text="Status"></asp:Label>
                                                                                </div>
                                                                                <div class="fLeft pRight5">
                                                                                    <asp:DropDownList ID="StatusDropDownList" runat="server" onmouseleave="showHideTooltip()" SkinID="CustomWidthDropDownList"
                                                                                        onmouseenter="showHideTooltip()" AutoPostBack="True" CssClass="form-control" OnSelectedIndexChanged="StatusDropDownList_SelectedIndexChanged">
                                                                                        <asp:ListItem Value="0">-ALL-</asp:ListItem>
                                                                                        <asp:ListItem Value="1">Active</asp:ListItem>
                                                                                        <asp:ListItem Value="2">Left</asp:ListItem>
                                                                                    </asp:DropDownList>

                                                                                </div>
                                                                            </div>
                                                                            <div class="cBoth">
                                                                            </div>
                                                                            <div class="outerBox pTop5 col-md-3">
                                                                                <div class="controlLabelWidth">
                                                                                    <asp:Label ID="FromVacantLabe" runat="server" Text="From Vacant Date"></asp:Label>
                                                                                </div>
                                                                                <div class="fLeft pRight5">
                                                                                    <Date:DatePickerControl DisplayDatePicker="true" ID="FromVacantDatePickerControl"
                                                                                        runat="server" />
                                                                                </div>
                                                                            </div>
                                                                            <div class="outerBox pTop5 col-md-3">
                                                                                <div class="controlLabelWidth">
                                                                                    <asp:Label ID="ToVacantLabel" runat="server" Text="To Vacant Date"></asp:Label>
                                                                                </div>
                                                                                <div class="fLeft pRight5">
                                                                                    <Date:DatePickerControl DisplayDatePicker="true" ID="ToVacantDatePickerControl"
                                                                                        runat="server" />
                                                                                </div>
                                                                            </div>
                                                                            <div class="outerBox pTop5 col-md-3" runat="server" id="suidDiv">
                                                                                <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" onmouseleave="showHideTooltip()" SkinID="CustomWidthTextBox"
                                                                                        onmouseenter="showHideTooltip()" MaxLength="50"></asp:TextBox>
                                                                                </div>
                                                                            </div>
                                                                         
                                                                            <div class="alignCenter col-md-12 pTop5 pb15">
                                                                                <asp:Button ID="ASearchButton" Text="&#xf002; Search" runat="server" OnClick="ASearchButton_Click"
                                                                                    SkinID="0" CssClass="btn btn-search fas" />
                                                                                <asp:Button ID="AExportToExcelButton" Text="&#xf093; Export To Excel" runat="server" SkinID="0" CssClass="fas btn btn-examcommon "
                                                                                    OnClick="AExportToExcelButton_OnClick" />
                                                                                <asp:Button ID="AResetButton" runat="server" Text="&#xf0e2; Reset" OnClick="AResetButton_Click" SkinID="0" CssClass="fas btn btn-reset" />
                                                                            </div>

                                                                            <div id="Div1" class="himssuHeader6WireBox col-md-12 pTOp15" runat="server"
                                                                                visible="False">
                                                                                <div class="himsBoxHeader card-head inner" id="GridViewPagerDiv1" runat="server">
                                                                                    <div class="leftdiv">
                                                                                    </div>
                                                                                    <div class="himsBoxTitle">
                                                                                        <%--<div class="gridHeaderText">
                                                                                            <header>
                                                                                                <asp:Label ID="AdmissionListGridViewLabel" Text="Admission List" runat="server" />
                                                                                            </header>
                                                                                        </div>--%>
                                                                                        <div class="fRight">
                                                                                        </div>
                                                                                    </div>
                                                                                </div>
                                                                                <div class="himsBoxContent pTop5 table-responsive">
                                                                                    <asp:GridView ID="HostelAdmissionGridView" runat="server" AutoGenerateColumns="False"
                                                                                        EmptyDataText="No Records Found !!" DataKeyNames="SourceTypeId,SourceId" CssClass="table table-striped table-bordered table-hover ">
                                                                                        <Columns>
                                                                                            <asp:BoundField DataField="OrganizationName" HeaderText="Organization">
                                                                                                <HeaderStyle HorizontalAlign="Left" />
                                                                                                <ItemStyle Width="14%" />
                                                                                            </asp:BoundField>
                                                                                            <asp:BoundField DataField="SourceType" HeaderText="Type">
                                                                                                <HeaderStyle HorizontalAlign="Left" />
                                                                                                <ItemStyle Width="5%" />
                                                                                            </asp:BoundField>
                                                                                            <asp:BoundField DataField="SUId" HeaderText="SUId">
                                                                                                <HeaderStyle HorizontalAlign="Left" />
                                                                                                <ItemStyle Width="10%" />
                                                                                            </asp:BoundField>
                                                                                            <asp:BoundField DataField="SourceCode">
                                                                                                <HeaderStyle HorizontalAlign="Left" />
                                                                                                <ItemStyle Width="10%" />
                                                                                            </asp:BoundField>
                                                                                            <asp:BoundField DataField="SourceName" HeaderText="Name">
                                                                                                <HeaderStyle HorizontalAlign="Left" />
                                                                                                <ItemStyle Width="20%" />
                                                                                            </asp:BoundField>
                                                                                            <asp:BoundField DataField="ClassDepartmentName" HeaderText="Class / Department">
                                                                                                <HeaderStyle HorizontalAlign="Left" />
                                                                                                <ItemStyle Width="10%" />
                                                                                            </asp:BoundField>
                                                                                            <asp:TemplateField HeaderText="Allocate Date">
                                                                                                <ItemTemplate>
                                                                                                    <asp:Label ID="AllocateDateLabel" runat="server" Text='<%# Bind("AllocateDate","{0:dd/MM/yyyy}") %>'></asp:Label>
                                                                                                </ItemTemplate>
                                                                                                <HeaderStyle HorizontalAlign="Left" />
                                                                                                <ItemStyle Width="7%" Wrap="True" />
                                                                                            </asp:TemplateField>
                                                                                            <asp:TemplateField HeaderText="Vacant Date">
                                                                                                <ItemTemplate>
                                                                                                    <asp:Label ID="VacantDateLabel" runat="server" Text='<%# Bind("VacantDate","{0:dd/MM/yyyy}") %>'></asp:Label>
                                                                                                </ItemTemplate>
                                                                                                <HeaderStyle HorizontalAlign="Left" />
                                                                                                <ItemStyle Width="7%" Wrap="True" />
                                                                                            </asp:TemplateField>
                                                                                            <asp:BoundField DataField="VacantReason" HeaderText="Vacant Reason">
                                                                                                <HeaderStyle HorizontalAlign="Left" />
                                                                                                <ItemStyle Width="10%" />
                                                                                            </asp:BoundField>
                                                                                            <asp:BoundField DataField="RoomName" HeaderText="Room Name">
                                                                                                <HeaderStyle HorizontalAlign="Left" />
                                                                                                <ItemStyle Width="7%" />
                                                                                            </asp:BoundField>
                                                                                        </Columns>
                                                                                        <PagerSettings Visible="False" />
                                                                                    </asp:GridView>
                                                                                </div>
                                                                            </div>
                                                                        </div>
                                                                    </ContentTemplate>
                                                                </cc1:TabPanel>
                                                                <cc1:TabPanel ID="ChangeRoomList" runat="server" HeaderText="Change Room List">
                                                                    <HeaderTemplate>
                                                                        <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                                            <li class="fancyTab"><a><i class="fas fa-list-ul"></i>Change Room List </a></li>
                                                                        </ul>
                                                                    </HeaderTemplate>
                                                                    <ContentTemplate>
                                                                        <div class="outerBox pTop5 col-md-3">
                                                                            <div class="controlLabelWidth">
                                                                                <asp:Label ID="CROrganizationLabel" Text="Organization" runat="server"></asp:Label>
                                                                            </div>
                                                                            <div class="fLeft pRight5">
                                                                                <asp:DropDownList ID="CROrganizationDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" CssClass="form-control">
                                                                                </asp:DropDownList>
                                                                            </div>
                                                                        </div>
                                                                        <div class="outerBox pTop5 col-md-3">
                                                                            <div class="controlLabelWidth">
                                                                                <asp:Label ID="CRSourceTypeLabel" runat="server" Text="Source Type"></asp:Label>
                                                                            </div>
                                                                            <div class="fLeft pRight5">
                                                                                <asp:DropDownList runat="server" ID="CRSourceTypeDropDownList" SkinID="CustomWidthDropDownList"
                                                                                    CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                                                    <asp:ListItem Text="- ALL -" Value="0"></asp:ListItem>
                                                                                    <asp:ListItem Text="Student" Value="2003" Selected="True"></asp:ListItem>
                                                                                    <asp:ListItem Text="Employee" Value="95"></asp:ListItem>
                                                                                </asp:DropDownList>
                                                                            </div>
                                                                        </div>
                                                                        <div class="outerBox pTop5 col-md-3">
                                                                            <div class="controlLabelWidth">
                                                                                <asp:Label ID="CRCodeLabel" runat="server"></asp:Label>
                                                                            </div>
                                                                            <div class="fLeft pRight5">
                                                                                <asp:TextBox ID="CRCodeTextBox" runat="server" onmouseleave="showHideTooltip()" SkinID="CustomWidthTextBox"
                                                                                    onmouseenter="showHideTooltip()" MaxLength="20"></asp:TextBox>
                                                                            </div>
                                                                        </div>
                                                                        <div class="cBoth">
                                                                        </div>
                                                                        <div class="outerBox pTop5 col-md-3">
                                                                            <div class="controlLabelWidth">
                                                                                <asp:Label ID="FromLogDateLabel" runat="server" Text="From Log Date"></asp:Label>
                                                                            </div>
                                                                            <div class="fLeft pRight5">
                                                                                <Date:DatePickerControl DisplayDatePicker="true" ID="FromLogDateDatePickerControl"
                                                                                    runat="server" />
                                                                            </div>
                                                                        </div>
                                                                        <div class="outerBox pTop5 col-md-3">
                                                                            <div class="controlLabelWidth">
                                                                                <asp:Label ID="ToLogDateLabel" runat="server" Text="To Log Date"></asp:Label>
                                                                            </div>
                                                                            <div class="fLeft pRight5">
                                                                                <Date:DatePickerControl DisplayDatePicker="true" ID="ToLogDateDatePickerControl"
                                                                                    runat="server" />
                                                                            </div>
                                                                        </div>
                                                                        <div class="outerBox pTop5 col-md-3" runat="server" id="Suiddivdetail">
                                                                            <div class="controlLabelWidth">
                                                                                <asp:Label ID="SuidLabel1" runat="server" Text="SUID"></asp:Label>
                                                                            </div>
                                                                            <div class="fLeft pRight5">
                                                                                <asp:TextBox ID="SUIDTextBox1" runat="server" onmouseleave="showHideTooltip()" SkinID="CustomWidthTextBox"
                                                                                    onmouseenter="showHideTooltip()" MaxLength="50"></asp:TextBox>
                                                                            </div>
                                                                        </div>
                                                                       
                                                                        <div class="alignCenter col-md-12 pTop5 pb15">
                                                                            <asp:Button ID="CRSearchButton" Text="&#xf002; Search" runat="server" OnClick="CRSearchButton_Click"
                                                                                SkinID="0" CssClass="btn btn-search fas" />
                                                                            <asp:Button ID="CRExportToExcelButton" Text="&#xf093; Export To Excel" runat="server" SkinID="0" CssClass="btn btn-examcommon fas"
                                                                                OnClick="CRExportToExcelButton_OnClick" />
                                                                            <asp:Button ID="CRResetButton" runat="server" Text="&#xf12d; Clear" OnClick="CRResetButton_Click"
                                                                                SkinID="0" CssClass="btn btn-clear fas" />
                                                                        </div>

                                                                        <div id="Div2" class="himssuHeader6WireBox col-md-12 pTop15" runat="server"
                                                                            visible="False">
                                                                            <div class="himsBoxHeader card-head inner" id="GridViewPagerDiv2" runat="server">
                                                                                <div class="leftdiv">
                                                                                </div>
                                                                                <div class="himsBoxTitle">
                                                                                   <%-- <div class="gridHeaderText">
                                                                                        <header>
                                                                                            <asp:Label ID="ChangeRoomListGridViewLabel" Text="Change Room List" runat="server" />
                                                                                        </header>
                                                                                    </div>--%>
                                                                                   
                                                                                </div>
                                                                            </div>
                                                                            <div class="himsBoxContent pTop5 table-responsive">
                                                                                <asp:GridView ID="ChangeRoomGridView" runat="server"  AutoGenerateColumns="False"
                                                                                    EmptyDataText="No Records Found !!" DataKeyNames="SourceTypeId,SourceId" CssClass="table table-striped table-hover  table-bordered">
                                                                                    <Columns>
                                                                                        <asp:BoundField DataField="OrganizationName" HeaderText="Organization">
                                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                                            <ItemStyle Width="15%" />
                                                                                        </asp:BoundField>
                                                                                        <asp:BoundField DataField="SourceType" HeaderText="Type">
                                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                                            <ItemStyle Width="5%" />
                                                                                        </asp:BoundField>
                                                                                        <asp:BoundField DataField="SUId" HeaderText="SUId">
                                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                                            <ItemStyle Width="10%" />
                                                                                        </asp:BoundField>
                                                                                        <asp:BoundField DataField="SourceCode">
                                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                                            <ItemStyle Width="10%" />
                                                                                        </asp:BoundField>
                                                                                        <asp:BoundField DataField="SourceName" HeaderText="Name">
                                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                                            <ItemStyle Width="20%" />
                                                                                        </asp:BoundField>
                                                                                        <asp:BoundField DataField="ClassDepartmentName" HeaderText="Class / Department">
                                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                                            <ItemStyle Width="10%" />
                                                                                        </asp:BoundField>
                                                                                        <asp:BoundField DataField="RoomName" HeaderText="Room">
                                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                                            <ItemStyle Width="10%" />
                                                                                        </asp:BoundField>
                                                                                        <asp:TemplateField HeaderText="Log Date">
                                                                                            <ItemTemplate>
                                                                                                <asp:Label ID="LogDateLabel" runat="server" Text='<%# Bind("LogDate","{0:dd/MM/yyyy}") %>'></asp:Label>
                                                                                            </ItemTemplate>
                                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                                            <ItemStyle Width="10%" Wrap="True" />
                                                                                        </asp:TemplateField>
                                                                                        <asp:BoundField DataField="ChangeReason" HeaderText="Change Reason">
                                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                                            <ItemStyle Width="20%" />
                                                                                        </asp:BoundField>
                                                                                    </Columns>
                                                                                    <PagerSettings Visible="False" />
                                                                                </asp:GridView>
                                                                            </div>
                                                                        </div>
                                                                    </ContentTemplate>
                                                                </cc1:TabPanel>
                                                            </cc1:TabContainer>
                                                        </div>
                                                    </div>
                                                </asp:Panel>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                              
                            </div>
                     
            </div>
           
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../JavaScript/rjs/encrypt/admission-changeroom-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/admission-changeroom")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
