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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ 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/EmployeeSearch/EmployeeSearch.ascx" TagName="EmployeeSearchControl" TagPrefix="hims" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl" TagPrefix="Date" %>
<%@ Register Assembly="TimePicker" Namespace="MKB.TimePicker" TagPrefix="timePicker" %>
<%@ Register Src="~/UserControls/EExam/DataBankDetail.ascx" TagName="DataBankDetailControl" TagPrefix="DB" %>
<%@ Register Src="~/UserControls/ConfirmationBox/ConfirmationBoxControl.ascx" TagName="ConformationControl" TagPrefix="Conformation" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="ResonMasterUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">
                <div class="dashBoardLeftCont">
                    <div class="himssuHeader3WireBox">
                        <div class="himssuHeader3WireBox">
                            <table>
                                <tr>
                                    <td>
                                        <div class="himsBoxContent">
                                            <div class="leftUlMenu">
                                                <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="209"
                                                    Visible="true" runat="server" />
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <div class="row whiteboxpaddingleft">
                            <div class="himssuHeader5WireBox card card-box">
                                <div class="himsBoxHeader card-head">
                                    <div class="leftdiv">
                                    </div>
                                    <div class="himsBoxTitle">
                                        <div class="headerText">
                                            <header>
                                                <i class="fas fa-graduation-cap"></i>
                                                <%--Changed for mantis : 33580 by Nilesh--%>
                                                <asp:Label ID="ScholarshipEligibleStudentDetailLabel" runat="server" Text="Scholarship Eligible StudentDetail"></asp:Label>
                                            </header>
                                        </div>
                                    </div>
                                </div>
                                <div class="himsBoxContent card-body">
                                    <asp:Panel ID="Panel2" runat="Server">
                                        <div class="contentHolder">
                                            <div class="himsDisplayBox">
                                                <div class="himsBoxContent messageMessage">
                                                    <div class="topdisplayContainer">
                                                        <table>
                                                            <tr>
                                                                <td>
                                                                    <asp:Label ID="ScholarshipTypeLabel" runat="server" Text="Scholarship Type : " Font-Bold="true"></asp:Label>
                                                                    <asp:Label ID="SelectedScholarshipTypeLabel" runat="server"></asp:Label>
                                                                </td>
                                                                <td>&nbsp;
                                                                </td>
                                                                <td>
                                                                    <asp:Label ID="ScholarshipLabel" runat="server" Text="Scholarship : " Font-Bold="true"></asp:Label>&nbsp;&nbsp;
                                                                        <asp:Label ID="SelectedScholarshipLabel" runat="server"></asp:Label>
                                                                </td>
                                                                <td>&nbsp;
                                                                </td>
                                                                <td>&nbsp;
                                                                </td>
                                                                <td>&nbsp;
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="navgraybackground">
                                                <ul class="nav nav-tabs">
                                                    <li>
                                                        <a href="#tab_1">
                                                            <asp:Button Text="&#xf19d; Scholarship" ID="ScholarshipMendatoryButton" CssClass="fas transparenttab" SkinID="0" runat="server" OnClick="ScholarshipMendatoryButton_Click" />
                                                        </a>
                                                    </li>
                                                    <li>
                                                        <a href="#tab_1">
                                                            <asp:Button Text="&#xf19d; Eligible Student" ID="EligibleStudentButton" CssClass="fas transparenttab" SkinID="0" Enabled="true" runat="server" OnClick="EligibleStudentButton_Click" />
                                                        </a>
                                                    </li>
                                                    <li>
                                                        <a href="#tab_1">
                                                            <asp:Button Text="&#xf19d; Scholarship Receive" ID="ScholarshipReceiveButton" CssClass="fas transparenttab" SkinID="0" Enabled="true" runat="server" OnClick="ScholarshipReceiveButton_Click" />
                                                        </a>
                                                    </li>
                                                    <li class="active">
                                                        <a href="#tab_1">
                                                            <asp:Button Text="&#xf19d; Scholarship Paid" ID="ScholarshipPaidButton" CssClass="fas transparenttab" SkinID="0" Enabled="true" runat="server" OnClick="ScholarshipPaidButton_Click" />
                                                        </a>
                                                    </li>
                                                </ul>
                                            </div>

                                            <div class="contentHolder">
                                                <asp:Panel ID="PanEnable" runat="server" meta:resourcekey="PanEnableResource1">
                                                    <div class="himsBoxContent">
                                                        <div class="contentHolder">
                                                            <asp:Panel ID="Panel1" runat="server" meta:resourcekey="PanEnableResource1">
                                                                <div class="outerBox pTop5 col-md-3">
                                                                    <div class="controlLabelWidth">
                                                                        <asp:Label ID="ScholarshipReceiveLabel" runat="server" Text="Scholarship Receive" SkinID="MandatoryLabel"></asp:Label>
                                                                    </div>
                                                                    <div class="fLeft pRight5">
                                                                        <asp:DropDownList runat="server" ID="ScholarshipReceiveDropDownList"
                                                                            onmouseleave="showHideTooltip()" CssClass="form-control" onmouseenter="showHideTooltip()"
                                                                            AutoPostBack="true" OnSelectedIndexChanged="ScholarshipReceiveDropDownList_SelectedIndexChanged">
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                                <div class="outerBox pTop5 col-md-3">
                                                                    <div class="controlLabelWidth">
                                                                        <asp:Label ID="TotalAmountLabel" runat="server" Font-Bold="true"></asp:Label>
                                                                        <asp:Label ID="SelectedTotalAmountLabel" runat="server"></asp:Label>
                                                                    </div>
                                                                </div>
                                                                <div id="Div1" class="himssuHeader6WireBox col-md-12 pTop5" runat="server" visible="true">
                                                                    <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="List of Scholarship Paid Student" runat="server" />
                                                                                </header>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                    <div class="pTop5 col-md-12">
                                                                        <div class="fRight display-flex ">
                                                                            <asp:Button ID="SavePaidButton" runat="server" OnClick="SavePaidButton_Click" Text="&#xf0c7; Save" SkinID="0" CssClass="btn btn-save fas " />&nbsp;&nbsp;
                                                                            <asp:Button ID="ResetButton" runat="server" SkinID="0" OnClick="ResetButton_Click" Text="&#xf0e2;  Reset" CssClass="btn btn-reset fas" />&nbsp;&nbsp;
                                                                            <asp:Button ID="PrintPaidButton" runat="server" SkinID="0" Text="&#xf15b; Print" OnClick="PrintPaidButton_Click" CssClass="btn btn-print fas" />&nbsp;&nbsp;
                                                                            <asp:DropDownList ID="ApplyDropDownList" runat="server" SkinID="0" CssClass="form-control" AutoPostBack="true" OnSelectedIndexChanged="ApplyDropDownList_SelectedIndexChanged"></asp:DropDownList>&nbsp;&nbsp;
                                                                            <asp:TextBox ID="ApplyTextBox" runat="server"></asp:TextBox>&nbsp;&nbsp;
                                                                            <asp:Button ID="ApplyButton" runat="server" Text="Apply All" CssClass="btn btn-apply" OnClick="ApplyButton_Click" SkinID="0" />
                                                                        </div>
                                                                    </div>
                                                                    <div class="pTop5 col-md-12"></div>
                                                                    <div id="divScholarshipStudentPaid" class="himsBoxContent table-responsive" runat="server" visible="false">
                                                                        <asp:GridView ID="ScholarshipStudentPaidGridView" runat="server" AutoGenerateColumns="False"
                                                                            EmptyDataText="No Records Found !!" CssClass="table table-striped table-bordered table-hover"
                                                                            DataKeyNames="ScholarshipReceiveId,AcademicId,PayTypeId" OnRowDataBound="ScholarshipStudentPaidGridView_RowDataBound">
                                                                            <Columns>
                                                                                <asp:TemplateField HeaderText="Student Name">
                                                                                    <ItemTemplate>
                                                                                        <asp:Label ID="StudentNameLabel" runat="server" Text='<%# Bind("StudentName") %>'> </asp:Label>
                                                                                    </ItemTemplate>
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                    <ItemStyle Width="15%" Wrap="True" />
                                                                                </asp:TemplateField>
                                                                                <asp:TemplateField HeaderText="Class">
                                                                                    <ItemTemplate>
                                                                                        <asp:Label ID="ClassLabel" runat="server" Text='<%# Bind("ClassDivisionName") %>'> </asp:Label>
                                                                                    </ItemTemplate>
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                    <ItemStyle Width="5%" Wrap="True" />
                                                                                </asp:TemplateField>
                                                                                <asp:TemplateField>
                                                                                    <ItemTemplate>
                                                                                        <asp:Label ID="CodeLabel" runat="server" Text='<%# Bind("Code") %>'> </asp:Label>
                                                                                    </ItemTemplate>
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                    <ItemStyle Width="10%" Wrap="True" />
                                                                                </asp:TemplateField>
                                                                                <asp:TemplateField HeaderText="Paid Date">
                                                                                    <ItemTemplate>
                                                                                        <Date:DatePickerControl DisplayDatePicker="true" ID="PaidDatePickerControl"
                                                                                            Visible="True" runat="Server" Text='<%# Bind("PaidDate") %>'></Date:DatePickerControl>
                                                                                    </ItemTemplate>
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                    <ItemStyle Width="15%" Wrap="True" />
                                                                                </asp:TemplateField>
                                                                                <asp:TemplateField HeaderText="Paid Amount">
                                                                                    <ItemTemplate>
                                                                                        <asp:TextBox ID="PaidAmountTextBox" runat="server"
                                                                                            MaxLength="10" onblur="javascript:return fnValidateDecimal(this,8,2)"
                                                                                            onKeypress="javascript:return MaskDecimal(event,8,2)" Text='<%# Bind("PaidAmount") %>' Width="100%"></asp:TextBox>
                                                                                    </ItemTemplate>
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                    <ItemStyle Width="10%" Wrap="True" />
                                                                                </asp:TemplateField>
                                                                                <asp:TemplateField HeaderText="Pay Type">
                                                                                    <ItemTemplate>
                                                                                        <asp:DropDownList runat="server" ID="PayTypeDropDownList" SkinID="CustomWidthDropDownList"
                                                                                            onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" Width="100%"
                                                                                            AutoPostBack="true" OnSelectedIndexChanged="PayTypeDropDownList_SelectedIndexChanged">
                                                                                        </asp:DropDownList>
                                                                                    </ItemTemplate>
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                    <ItemStyle Width="10%" Wrap="True" />
                                                                                </asp:TemplateField>
                                                                                <asp:TemplateField HeaderText="Cheque No / Reference">
                                                                                    <ItemTemplate>
                                                                                        <asp:TextBox ID="ChequeNumberTextBox" runat="server"
                                                                                            MaxLength="20" Text='<%# Bind("ChequeNumber") %>' Width="100%"></asp:TextBox>
                                                                                    </ItemTemplate>
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                    <ItemStyle Width="10%" Wrap="True" />
                                                                                </asp:TemplateField>
                                                                                <asp:TemplateField HeaderText="Bank Name">
                                                                                    <ItemTemplate>
                                                                                        <asp:TextBox ID="BankNameTextBox" runat="server"
                                                                                            MaxLength="20" Text='<%# Bind("BankName") %>' Width="100%"></asp:TextBox>
                                                                                    </ItemTemplate>
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                    <ItemStyle Width="10%" Wrap="True" />
                                                                                </asp:TemplateField>
                                                                                <asp:TemplateField HeaderText="Remark">
                                                                                    <ItemTemplate>
                                                                                        <asp:TextBox ID="RemarkTextBox" runat="server" SkinID="CustomWidthTextBox" Width="100%"
                                                                                            MaxLength="200" Text='<%# Bind("Remark") %>'></asp:TextBox>
                                                                                    </ItemTemplate>
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                    <ItemStyle Width="10%" Wrap="True" />
                                                                                </asp:TemplateField>
                                                                                <asp:TemplateField ShowHeader="true" HeaderText="Delete" HeaderStyle-HorizontalAlign="Center">
                                                                                    <ItemTemplate>
                                                                                        <asp:ImageButton SkinID="DeleteImage" ID="DeleteImageButton" runat="server" OnClick="DeleteImageButton_Click"
                                                                                            ImageUrl="~/Images/icons/icon_delete.gif" ToolTip="Delete" />
                                                                                    </ItemTemplate>
                                                                                    <ItemStyle HorizontalAlign="Center" Width="5%" />
                                                                                </asp:TemplateField>
                                                                            </Columns>
                                                                            <PagerSettings Visible="False" />
                                                                        </asp:GridView>
                                                                    </div>
                                                                    <div style="text-align: center">
                                                                        <asp:Label ID="PaidAmountLabel" runat="server" Font-Bold="true"></asp:Label>
                                                                        <asp:Label ID="TotalPaidAmountLabel" runat="server"></asp:Label>
                                                                    </div>
                                                                </div>
                                                            </asp:Panel>
                                                        </div>
                                                    </div>
                                                </asp:Panel>
                                                </td>
                                                    </tr>
                                            </div>
                                            </table>
                                        </div>
                                    </asp:Panel>
                                </div>
                            </div>
                        </div>
                    </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../JavaScript/rjs/encrypt/scholarship-studentpaid-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/scholarship-studentpaid")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>    
</asp:Content>
