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

<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager" TagPrefix="uc1" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl"
    TagPrefix="ScreenGroup" %>
<%@ 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>
            <Std:StudentSearch ID="StudentSearch" Visible="false" runat="server" />
            <div id="divContentPage" class="divcontentpagemargin">
                <!-- ContentPlaceHolder Box Starts -->
               
                            <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="Student Detail list "></asp:Label>
                                                        </header>
                                                    </div>
                                                    <div class="fRight mt-27">
                                                        <asp:Button ID="BackNewButtonID" runat="server" OnClick="BackNewButton_Click" SkinID="0" class="btn btn-back fas" Text="&#xf30a;  Back" />
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="himsBoxContent card-body">
                                                <asp:Panel ID="DetailPanel" runat="Server">
                                                    <div class="contentHolder">
                                                        <div class="outerBox pTop5 col-md-3" id="SUIDDiv" runat="server" visible="false">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="Label3" Text="SU ID" runat="server"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:TextBox ID="SuidTextBox" AutoPostBack="true" runat="server" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" SkinID="CustomWidthTextBox" OnTextChanged="SuidTextBox_TextChanged"></asp:TextBox>
                                                            </div>
                                                        </div>
                                                        
                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="OrganizationLabel" Text="Organization" runat="server"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:DropDownList ID="OrganizationDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthOrganizationDropDownList"
                                                                    CssClass="form-control">
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>
                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="CodeLabel" runat="server"  ></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:TextBox ID="CodeTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                    SkinID="CustomWidthTextBox" runat="server" AutoPostBack="true" OnTextChanged="CodeTextBox_TextChanged"> </asp:TextBox>
                                                                <asp:ImageButton SkinID="FindImage" ToolTip="Drug Search" ID="SourceCodeImageButton"
                                                                    runat="server" />
                                                            </div>
                                                        </div>
                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="StudentNameLabel" runat="server" Text="Name"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:TextBox ID="StudentNameTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                    SkinID="CustomWidthTextBox" runat="server" Enabled="false"> </asp:TextBox>
                                                            </div>
                                                        </div>
                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="ClassLabel" Text="Class" runat="server"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:TextBox ID="ClassTextBox" runat="server" onmouseleave="showHideTooltip()"
                                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthTextBox"
                                                                    Enabled="false">
                                                                </asp:TextBox>
                                                            </div>
                                                        </div>
                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="ContactLabel" Text="Contact" runat="server"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:TextBox ID="ContactTextBox" runat="server" onmouseleave="showHideTooltip()"
                                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthTextBox"
                                                                   Enabled="false">
                                                                </asp:TextBox>
                                                            </div>
                                                        </div>
                                                       
                                                        <div class="outerBox11 pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="AddressLabel" Text="Address" runat="server"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:TextBox ID="AdrressTextBox" runat="server" onmouseleave="showHideTooltip()"
                                                                    onmouseenter="showHideTooltip()"
                                                                    SkinID="MultiLineTextBox" Enabled="false" TextMode="MultiLine">
                                                                </asp:TextBox>
                                                            </div>
                                                        </div>
                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="RoomLabel" Text="Room" runat="server"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:TextBox ID="RoomTextBox" runat="server" onmouseleave="showHideTooltip()"
                                                                    onmouseenter="showHideTooltip()"
                                                                    SkinID="CustomWidthTextBox" Enabled="false">
                                                                </asp:TextBox>
                                                            </div>
                                                        </div>
                                                        <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:TextBox ID="RoomCategoryTextBox" runat="server" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" SkinID="CustomWidthTextBox" Enabled="false"></asp:TextBox>
                                                            </div>
                                                        </div>
                                                        
                                                        <div class="cBoth"></div>

                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="AssetTypeLabel" runat="server" Text="Asset Type" SkinID="MandatoryLabel"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:DropDownList runat="server" ID="AssetTypeDropDownList" SkinID="CustomWidthDropDownList"
                                                                    CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" AutoPostBack="true" OnSelectedIndexChanged="AssetTypeDropDownList_SelectedIndexChanged">
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>
                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="AssetNumberLabel" runat="server" Text="Asset Number" SkinID="MandatoryLabel"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:DropDownList ID="AssetNumberDropDownList" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                    CssClass="form-control" runat="server" MaxLength="100" SkinID="CustomWidthDropDownList">
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>

                                                        <div class=" alignCenter pTop5 col-md-12">
                                                            <asp:Button ID="AddButton" runat="server" Width="60px" Text="&#xf067; Add"
                                                                meta:resourcekey="AddButtonResource1" SkinID="0" class="btn btn-add fas" OnClick="AddButton_Click" />
                                                        </div>
                                                       
                                                        <div id="RoomassetDiv" class="himssuHeader6WireBox col-md-12" runat="server" visible="true" style="width: 100%; height: 100%">
                                                            <div class="himsBoxHeader card-head inner" id="GridViewPagerDiv" runat="server" visible="True">
                                                                <div class="leftdiv">
                                                                </div>
                                                                <div class="himsBoxTitle">
                                                                    <div class="gridHeaderText">
                                                                        <header>                                                                            
                                                                        <asp:Label ID="GridViewLabel" Text="Room Asset List "
                                                                            runat="server" />
                                                                        </header>
                                                                    </div>

                                                                    <div class="fRight">
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="himsBoxContent table-responsive">
                                                                <asp:GridView ID="AssignRoomAssetGridView" runat="server" AutoGenerateColumns="False"
                                                                    EmptyDataText="No Records Found !!"
                                                                    AllowPaging="false"
                                                                    ShowHeader="true"
                                                                    CssClass="table table-striped table-bordered table-hover"
                                                                    DataKeyNames="SourceId,RoomAssetId,SourceTypeId,RoomId" OnRowDataBound="AssignRoomAssetGridView_RowDataBound">
                                                                    <Columns>
                                                                        <asp:BoundField DataField="AssetType" HeaderText="Asset Type" ItemStyle-Width="15%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                        <asp:BoundField DataField="AssetNumber" HeaderText="Asset Number" ItemStyle-Width="15%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>

                                                                        <asp:TemplateField ShowHeader="true" HeaderText="Delete" HeaderStyle-HorizontalAlign="Center">
                                                                            <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>
                                                            <asp:HiddenField ID="SourceIDHiddenField" runat="server" />
                                                            <%-- <asp:HiddenField ID="SourceTypeHiddenField" runat="server" />--%>
                                                            <asp:HiddenField ID="RoomAssetIdHiddenField" runat="server" />
                                                            <asp:HiddenField ID="RoomIdHiddenField" runat="server" />

                                                            <div class="himsBoxContent table-responsive" id="DepositDiv" runat="server">
                                                                <div class="himsBoxTitle">
                                                                <div class="himsBoxHeader card-head inner" id="PatientRelationDiv" runat="server">
                                                                    <div class="gridHeaderText">
                                                                        <header>
                                                                        <asp:Label ID="Label2" Text="Deposit Add Detail "
                                                                            runat="server" />
                                                                        </header>
                                                                    </div>
                                                                    <div class="fRight">
                                                                    </div>
                                                                </div>
                                                                </div>
                                                                <asp:GridView ID="DepositGridView" runat="server"  AutoGenerateColumns="False"
                                                                    AllowPaging="false"
                                                                    ShowHeader="true"
                                                                    DataKeyNames=""
                                                                    CssClass="table table-striped table-bordered table-hover" EmptyDataText="No Records Found !!">
                                                                    <Columns>
                                                                        <asp:BoundField DataField="DepositHeadName" HeaderText="Deposit HeadName" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                        <asp:BoundField DataField="Amount" HeaderText="Deposit Amount" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                        <asp:BoundField DataField="DepositDate" HeaderText="Deposit Date" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left" DataFormatString="{0:dd/MM/yyy}"></asp:BoundField>
                                                                    </Columns>
                                                                    <PagerSettings Visible="False" />
                                                                </asp:GridView>
                                                            </div>
                                                            <div class="himsBoxContent table-responsive" id="AjustmentDiv" runat="server">
                                                                <div class="himsBoxTitle">
                                                                <div class="himsBoxHeader card-head inner" id="Div1" runat="server">
                                                                    <div class="gridHeaderText">
                                                                        <header>
                                                                        <asp:Label ID="Label4" Text="Deposit Adjustment Detail "
                                                                            runat="server" />
                                                                        </header>
                                                                    </div>
                                                                    <div class="fRight">
                                                                    </div>
                                                                </div>
                                                                </div>
                                                                <asp:GridView ID="DepositAdjustmentGridView" runat="server" AutoGenerateColumns="False"
                                                                    AllowPaging="false"
                                                                    ShowHeader="true"
                                                                    DataKeyNames=""
                                                                    CssClass="table table-striped table-bordered table-hover" EmptyDataText="No Records Found !!">
                                                                    <Columns>
                                                                        <asp:BoundField DataField="DepositHeadName" HeaderText="Deposit HeadName" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                        <asp:BoundField DataField="Amount" HeaderText="Adjustment Amount" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                        <asp:BoundField DataField="AdjustmentDate" HeaderText="Adjustment Date" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left" DataFormatString="{0:dd/MM/yyy}"></asp:BoundField>
                                                                    </Columns>
                                                                    <PagerSettings Visible="False" />
                                                                </asp:GridView>
                                                            </div>
                                                            <div class="himsBoxContent table-responsive" id="RefundDetailDiv" runat="server">
                                                                <div class="himsBoxTitle">
                                                                <div class="himsBoxHeader card-head inner" id="Div2" runat="server">
                                                                    <div class="gridHeaderText">
                                                                        <header>
                                                                        <asp:Label ID="Label5" Text="Deposit Refund Detail"
                                                                            runat="server" EmptyDataText="No Records Found !!" />
                                                                        </header>
                                                                    </div>
                                                                    <div class="fRight">
                                                                    </div>
                                                                </div>
                                                                </div>
                                                                <asp:GridView ID="DepositRefundGridView" runat="server" AutoGenerateColumns="False"
                                                                    AllowPaging="false"
                                                                    ShowHeader="true"
                                                                    DataKeyNames=""
                                                                    CssClass="table table-striped table-bordered table-hover">
                                                                    <Columns>
                                                                        <asp:BoundField DataField="DepositHeadName" HeaderText="Deposit HeadName" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                        <asp:BoundField DataField="RefundAmount" HeaderText="Refund Amount" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                        <asp:BoundField DataField="RefundDate" HeaderText="Refund Date" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left" DataFormatString="{0:dd/MM/yyy}"></asp:BoundField>
                                                                    </Columns>
                                                                    <PagerSettings Visible="False" />
                                                                </asp:GridView>
                                                            </div>
                                                        </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" 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" runat="server"
                                                                MaxLength="200"></asp:TextBox>
                                                        </div>
                                                    </div>
                                                    <div class="cBoth"></div><br />
                                                    <div class="alignCenter pTop5 col-md-12 pTop10">
                                                        <asp:Button ID="VacantButton" runat="server" Text="&#xf06a; Vacant" SkinID="0"
                                                            class="btn btn-vacant fas" OnClick="VacantButton_Click" Enabled="false" />
                                                        <asp:Button ID="VacantClearButton" runat="server"  SkinID="0" class="btn-reset btn fas" OnClick="VacantClearButton_Click" Text="&#xf0e2; Clear" />
                                                    </div>
                                                    
                                                </asp:Panel>
                                            </div>
                                        </div>

                                    </div>
                                </div>


                            </div>
                      
                    <%--HEDP History Ends Here--%>
                </div>
            </div>
            
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--    <PS:PatientSearchUserControl ID="PatientSearch" runat="server" />  --%>
      <%--<script data-main="../../JavaScript/rjs/builtjs/Student-Detail-built" src="../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/Student-Detail")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>

