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



<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl"
    TagPrefix="ScreenGroup" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl"
    TagPrefix="Date" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="FeeHeadMasterUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">
                <div class="dashBoardLeftCont">
                    <div class="himssuHeader3WireBox">
                        <table>
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="210"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="whiteboxpaddingleft row">
                    <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="SearchHeaderLabel" runat="server" Text="Search"></asp:Label>
                                        </header>
                                    </div>
                                    <div class="fRight mt-27 pagination display-flex ">
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                        <div class="himsBoxContent card-body">
                            <asp:Panel ID="DetailPanel" runat="Server">
                                <div class="contentHolder">
                                    <div class="cBoth">
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="SearchOrganizationLabel" Text="Organization" runat="server" CssClass="mandatory"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList ID="OrganizationDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList"
                                                class="form-control" OnSelectedIndexChanged="OrganizationDropDownList_SelectedIndexChanged" AutoPostBack="true">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="Label2" Text="Batch" runat="server" CssClass="mandatory"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList ID="BatchDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList"
                                                class="form-control" AutoPostBack="true" OnSelectedIndexChanged="BatchDropDownList_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </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:DropDownList ID="ClassDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" OnSelectedIndexChanged="ClassDropDownList_SelectedIndexChanged"
                                                AutoPostBack="true" class="form-control">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="Label4" Text="Division" runat="server"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList ID="DivisionDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList"
                                                class="form-control">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                  
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="SearchIdNoLabel" runat="server" Text="Id No"></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 col-md-12 pTop15 pb5">
                                        <asp:Button ID="SearchButton" runat="Server" OnClick="SearchButton_Click" Text="&#xf002; Search" SkinID="0" CssClass="btn-search btn fas" />
                                        <asp:Button ID="ResetButton" runat="server" OnClick="ResetButton_Click" Text="&#xf0e2; Reset" SkinID="0" CssClass="btn-reset btn fas" />
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="DepositHeadLabel" Text="Deposit Head" runat="server" CssClass="mandatory"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList ID="DepositHeadIdDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList"
                                                class="form-control">
                                            </asp:DropDownList>
                                        </div>
                                    </div>                                   
                                  
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="Label1" Text="Refund Date" runat="server" CssClass="mandatory">  </asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <Date:DatePickerControl ID="RefundDatePickerControl" runat="server" DisplayDatePicker="true"
                                                class="form-control"></Date:DatePickerControl>
                                        </div>
                                    </div>
                                    
                                    <div id="Div1" class="himssuHeader7WireBox" runat="server" visible="false">
                                        <div id="DepositAdjustmentListDetailDiv" runat="server">
                                            <div class="spacer">
                                                <asp:Image ID="Image3" runat="server" ImageUrl="~/Images/spacer.gif" />
                                            </div>
                                            <div class="himsBoxHeader">
                                                <div class="pull-right col-md-3 display-flex">
                                                    <asp:DropDownList ID="ApplyAmountDropDownlist" runat="server" HeaderStyle-HorizontalAlign="right" OnSelectedIndexChanged="ApplyAmountDropDownlist_SelectedIndexChanged" AutoPostBack="true" class="form-control">
                                                        <asp:ListItem Text="-Select-" Value="-1"></asp:ListItem>
                                                        <asp:ListItem Text="Amount" Value="0"></asp:ListItem>
                                                        <asp:ListItem Text="Remark" Value="1"></asp:ListItem>
                                                    </asp:DropDownList>
                                                    &nbsp;&nbsp;&nbsp;&nbsp;
                                                    <asp:TextBox ID="ApplyAmountTextBox" runat="server" Style="padding-top: 15px" HeaderStyle-HorizontalAlign="right" onkeypress="javascript:return MaskDecimal(event,10,2)" onblur="javascript:return MaskDecimal(event,10,2)"> </asp:TextBox>
                                                    &nbsp;&nbsp;&nbsp;&nbsp;
                                                    <asp:TextBox ID="ApplyRemarkTextBox" runat="server" Style="padding-top: 15px" HeaderStyle-HorizontalAlign="right" Visible="false"> </asp:TextBox>
                                                    &nbsp;&nbsp;&nbsp;&nbsp;
                                                    <asp:Button ID="ApplyButton" runat="server" Text="Apply All" OnClick="ApplyButton_Click" SkinID="0" CssClass="btn btn-apply fas" />
                                                </div>
                                            </div>
                                            <div class="himsBoxContent box-body box-solid gridviewfont">
                                                <div id="Div5" runat="server" class="table-responsive">
                                                    <asp:GridView ID="DepositRefundGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                        AllowPaging="false" PageSize="5" SkinID="" PagerSettings-Visible="false" EmptyDataText="No Records Found !!"
                                                        DataKeyNames="AcademicId" OnRowDataBound="DepositRefundGridView_RowDataBound"
                                                        OnPageIndexChanging="DepositRefundGridView_PageIndexChanging" CssClass="table table-striped table-bordered table-hover">
                                                        <Columns>
                                                            <asp:TemplateField ItemStyle-Width="2%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true"
                                                                HeaderText="">
                                                                <HeaderTemplate>
                                                                    <label class="rt-chkbox rt-chkbox-outline">
                                                                        <asp:CheckBox ID="HeaderSelectCheckBox" runat="server"  onclick="CheckAll(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:TemplateField ItemStyle-Width="4%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true" HeaderText="Id No">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="CodeLabel" runat="server" Text='<%#Eval("Code") %>' HeaderStyle-HorizontalAlign="Left"></asp:Label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:BoundField DataField="SUId" HeaderText="SUId" ItemStyle-Width="8%"
                                                                HeaderStyle-HorizontalAlign="Left" />
                                                            <asp:BoundField DataField="StudentName" HeaderText="Name" ItemStyle-Width="18%"
                                                                HeaderStyle-HorizontalAlign="Left" />
                                                            <asp:BoundField DataField="ClassDivisionName" HeaderText="Class" ItemStyle-Width="5%"
                                                                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 ShowHeader="true" HeaderText="Pay Type" HeaderStyle-HorizontalAlign="Center">
                                                                <ItemTemplate>
                                                                    <asp:DropDownList ID="PaytypeDropDownList" runat="server" AutoPostBack="true" OnSelectedIndexChanged="PaytypeDropDownList_SelectedIndexChanged" class="form-control"></asp:DropDownList>
                                                                </ItemTemplate>
                                                                <ItemStyle HorizontalAlign="Center" Width="10%" />
                                                            </asp:TemplateField>
                                                            <asp:TemplateField ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true"
                                                                HeaderText="ChequeNo">
                                                                <ItemTemplate>
                                                                    <asp:TextBox ID="ChequeNoTextBox" runat="server" HeaderStyle-HorizontalAlign="Left" MaxLength="20"></asp:TextBox>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true"
                                                                HeaderText="BankName">
                                                                <ItemTemplate>
                                                                    <asp:TextBox ID="BankNameTextBox" runat="server" HeaderStyle-HorizontalAlign="Left" MaxLength="200"></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>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
  <%--  <script data-main="../../JavaScript/rjs/encrypt/deposit-round-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
      <script data-main='<%=ResolveUrl("~/JavaScript/rjs/deposit-round")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
    <script type="text/javascript">
        function fnValidateDepositrefund() {
            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('<%= RefundDatePickerControl.ClientID %>' + '_DateTextbox', "Refund Date", "T", "", "", "", 10)

            ];
                                if (fnDoValidate(himsValidator))
                                    return true;
                                else
                                    return false;
                            }
    </script>
</asp:Content>
