<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Hostel_DepositAdjustmentBulk, App_Web_g25tbc5i" 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/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl"
    TagPrefix="Date" %>
<%@ Register Src="~/UserControls/Common/Hostel/HostelDetailBoxControl.ascx" TagName="HostelControl"
    TagPrefix="Hostel" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="FeeHeadMasterUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <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="himssuHeader5WireBox card card-box">
                                    <div class="himsBoxHeader card-head">
                                        <asp:Panel ID="Panel1" runat="server">
                                            <div class="leftdiv">
                                            </div>
                                            <div class="himsBoxTitle">
                                                <div class="headerText">
                                                    <header>
                                                        <i class="fas fa-search"></i>
                                                    <asp:Label ID="Label3" runat="server" Text="Search"></asp:Label>
                                                    </header>
                                                </div>
                                                <div class="fRight">
                                                </div>
                                            </div>
                                        </asp:Panel>
                                    </div>
                                    <div class="himsBoxContent card-body">
                                        <asp:Panel ID="DetailPanel" runat="Server">
                                            <div class="contentHolder">
                                               
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="SearchOrganizationLabel" Text="Organization" runat="server"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList ID="SearchOrganizationDropDownList" 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="RoomCategoryLabel" Text="Room Category" runat="server"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList ID="RoomCategoryDropDownList" 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="BuildingLabel" runat="server" Text="Building"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList runat="server" ID="BuildingDropDownList" SkinID="CustomWidthDropDownList"
                                                            CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                               
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="RoomLabe" runat="server" Text="Room"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList runat="server" ID="RoomDropDownList" SkinID="CustomWidthDropDownList"
                                                            CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="SearchIdNoLabel" runat="server"  ></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:TextBox ID="SearchIdNoTextBox" 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="SuidLabel" runat="server" Text="SUID"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:TextBox ID="SuidTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                            SkinID="CustomWidthTextBox" runat="server">
                                                        </asp:TextBox>
                                                    </div>
                                                </div>
                                               
                                                <div class="alignCenter pTop5 col-md-12">
                                                    <asp:Button ID="SearchButton" Text="&#xf002; Search" runat="Server" OnClick="SearchButton_Click"
                                                        SkinID="0" class="btn-search btn fas" />
                                                    <asp:Button ID="ResetButton" runat="server" Text="&#xf0e2; Reset" OnClick="ResetButton_Click" 
                                                        SkinID="0" class="btn-reset btn fas" />
                                                </div>
                                              
                                                <div class="outerBox pTop10 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="SearchDepositHeadLabel" Text="Deposit Head" runat="server" CssClass="mandatory"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList ID="SearchDepositHeadIdDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                            onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList"
                                                           CssClass="form-control">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop10 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="SearchExpenseLabel" runat="server" Text="Expense Type" CssClass="mandatory"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList ID="SearchExpenseTypeDropDownList" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                            SkinID="CustomWidthDropDownList" CssClass="form-control" runat="server" AutoPostBack="true" OnSelectedIndexChanged="SearchExpenseTypeDropDownList_SelectedIndexChanged">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop10 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="Label2" runat="server" Text="Expense Sub Type" CssClass="mandatory"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList ID="ExpenseSubTypeDropDownList" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                            SkinID="CustomWidthDropDownList" CssClass="form-control" runat="server">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                               
                                                <div class="outerBox pTop10 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="Label1" Text="Adjustment Date" runat="server" CssClass="mandatory">  </asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <Date:DatePickerControl ID="AdjustmentDatePickerControl" runat="server" DisplayDatePicker="true"
                                                            ></Date:DatePickerControl>
                                                    </div>
                                                </div>
                                               
                                                <div id="Div1" class="himssuHeader7WireBox" runat="server" visible="false">
                                                    <div id="DepositAdjustmentListDetailDiv" runat="server">
                                                        
                                                        <div class="himsBoxHeader">
                                                            <div class="headerText fRight">
                                                                 <div class="col-md-3 fRight" style="padding-right:80px;margin-top:10px">
                                                                <asp:Button ID="ApplyButton" runat="server" SkinID="0" Text="Apply All" CssClass="btn btn-assign" OnClick="ApplyButton_Click" />
                                                                 </div>
                                                                <div class="col-md-3 fRight">
                                                                <asp:Label ID="LabelAm" runat="server" HeaderStyle-HorizontalAlign="right" Text="Amount"></asp:Label>
                                                                <asp:TextBox ID="ApplyAmountTextBox" runat="server" HeaderStyle-HorizontalAlign="right" Width="80px" onkeypress="javascript:return MaskDecimal(event,10,2)"
                                                                    onblur="javascript:return fnValidateDecimal(this,10,2)"> </asp:TextBox>
                                                                </div>
                                                                
                                                            </div>
                                                        </div>
                                                        <div class="himsBoxContent pTop10 col-md-12">
                                                            <div id="Div5" runat="server" class="table-responsive">
                                                                <asp:GridView ID="DepositAdjustmentGridView" runat="server" AutoGenerateColumns="False"
                                                                    AllowPaging="false" PageSize="5" SkinID="" PagerSettings-Visible="false" EmptyDataText="No Records Found !!"
                                                                    DataKeyNames="StudentId,AcademicId" OnRowDataBound="DepositAdjustmentGridView_RowDataBound"
                                                                    OnPageIndexChanging="DepositAdjustmentGridView_PageIndexChanging" CssClass="table table-striped table-bordered table-hover">
                                                                    <Columns>
                                                                        <asp:TemplateField ItemStyle-Width="3%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true"
                                                                            HeaderText="">
                                                                            <HeaderTemplate>
                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                <asp:CheckBox ID="HeaderSelectCheckBox" runat="server" onclick="checkAllRows(this);"></asp:CheckBox>
                                                                                    <span></span>
                                                                                </label>
                                                                            </HeaderTemplate>
                                                                            <ItemTemplate>
                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                <asp:CheckBox ID="SelectCheckBox" runat="server" onClick="checkUncheckHeaderCheckBox(this);"></asp:CheckBox>
                                                                                    <span></span>
                                                                                </label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:BoundField DataField="SUId" HeaderText="SUId" ItemStyle-Width="8%"
                                                                            HeaderStyle-HorizontalAlign="Left" />
                                                                          <asp:BoundField DataField="Code" HeaderText="Id No" ItemStyle-Width="8%"
                                                                            HeaderStyle-HorizontalAlign="Left" />
                                                                        <asp:BoundField DataField="StudentName" HeaderText="Name" ItemStyle-Width="20%"
                                                                            HeaderStyle-HorizontalAlign="Left" />
                                                                        <asp:BoundField DataField="ClassDivisionName" HeaderText="Class" ItemStyle-Width="5%"
                                                                            HeaderStyle-HorizontalAlign="Left" />
                                                                        <asp:BoundField DataField="RoomCategory" HeaderText="RoomCategory" ItemStyle-Width="10%"
                                                                            HeaderStyle-HorizontalAlign="Left" />
                                                                        <asp:BoundField DataField="Room" HeaderText="Room" ItemStyle-Width="8%"
                                                                            HeaderStyle-HorizontalAlign="Left" />
                                                                        <asp:TemplateField ItemStyle-Width="7%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true"
                                                                            HeaderText="Amount">
                                                                            <ItemTemplate>
                                                                                <asp:TextBox ID="AmountTextBox" runat="server" HeaderStyle-HorizontalAlign="Left" onkeypress="javascript:return MaskDecimal(event,10,2)"
                                                                                    onblur="javascript:return fnValidateDecimal(this,10,2)"> </asp:TextBox>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true"
                                                                            HeaderText="Remark">
                                                                            <ItemTemplate>
                                                                                <asp:TextBox ID="RemarkTextBox" runat="server" HeaderStyle-HorizontalAlign="Left" MaxLength="200"></asp:TextBox>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                    </Columns>
                                                                </asp:GridView>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </asp:Panel>
                                    </div>
                                </div>

                            </div>
                        
                    <%--HEDP History Ends Here--%>
                </div>
            </div>
           
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../JavaScript/rjs/encrypt/room-list-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/room-list")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
    <script type="text/javascript">
        function fnValidateDepositAdjustment() {
            //debugger;
            var himsValidator = [
                                new hims_ctl_val('ctl00_CP_SearchDepositHeadIdDropDownList', "Deposit Head", "T", "", "", "", 20),
                                new hims_ctl_val('ctl00_CP_SearchExpenseTypeDropDownList', "Expense Type", "T", "", "", "", 20),
                                new hims_ctl_val('<%= AdjustmentDatePickerControl.ClientID %>' + '_DateTextbox', "Adjustment Date", "T", "", "", "", 10),
                                 new hims_ctl_val('<%= ExpenseSubTypeDropDownList.ClientID %>', "ExpenseSubType", "T", "", "", "", 20)
            ];
            if (fnDoValidate(himsValidator))
                return true;
            else
                return false;
        }
    </script>
</asp:Content>
