<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Scholarship_ScholarshipEligibleStudent, App_Web_43s4xhg4" title="Scholarship Eligible Student" 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" %>
<%@ Register Src="~/UserControls/Common/StudentSearch/StudentSearch.ascx" TagName="StudentSearch" TagPrefix="Std" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="ResonMasterUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <Std:StudentSearch ID="StudentSearch" Visible="false" runat="server" />
            <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" id="SearchDiv" runat="server">
                                <div class="himsBoxHeader card-head">
                                    <div class="leftdiv">
                                    </div>
                                    <div class="himsBoxTitle">
                                        <div class="headerText">
                                            <header>
                                                <i class="fas fa-graduation-cap"></i>
                                                <asp:Label ID="ScholarshipEligibleStudentDetailLabel" runat="server" Text="Scholarship Eligible Student"></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 p-l-10">
                                                        <table>
                                                            <tr>
                                                                <td>
                                                                    <asp:Label ID="ScholarshipTypeLabel" runat="server" Text="Scholarship Type : " Font-Bold="true"></asp:Label>&nbsp;&nbsp;
                                                                    <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 class="active">
                                                        <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>
                                                        <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">
                                                            <div class="col-md-12 bg-lghtgrey radiobtn">
                                                                <asp:RadioButtonList ID="SourceTypeRadioButtonList" runat="server" RepeatDirection="Horizontal"
                                                                    AutoPostBack="true" OnSelectedIndexChanged="SourceTypeRadioButtonList_SelectedIndexChanged">
                                                                    <asp:ListItem Text="Single Student" Value="1" Selected="True"></asp:ListItem>
                                                                    <asp:ListItem Text="Multiple Student" Value="2"></asp:ListItem>
                                                                </asp:RadioButtonList>
                                                            </div>

                                                            <asp:Panel ID="Panel1" runat="server" meta:resourcekey="PanEnableResource1">
                                                                <div runat="server" id="SingleStudentDiv">
                                                                    <div class="outerBox pTop5 col-md-12" runat="server" visible="false">
                                                                        <div class="alert alert-info">
                                                                            <i class="material-icons">info</i>
                                                                            <asp:Label ID="RamarkLabel" runat="server" Text="Add ID No with . Dot seperation (Eg. 2. 5. 10)"></asp:Label>
                                                                        </div>
                                                                    </div>
                                                                    <div class="outerBox pTop5 col-md-3" runat="server" visible="false">
                                                                        <div class="controlLabelWidth">
                                                                            <asp:Label ID="CodeLabel" runat="server" Text="Ids No" SkinID="MandatoryLabel"></asp:Label>
                                                                        </div>
                                                                        <div class="fLeft pRight5">
                                                                            <asp:TextBox ID="CodeTextBox" runat="server" onmouseleave="showHideTooltip()"
                                                                                SkinID="CustomWidthTextBox" onmouseenter="showHideTooltip()"></asp:TextBox>
                                                                        </div>
                                                                    </div>
                                                                    <div class="outerBox pTop5 col-md-3">
                                                                        <div class="controlLabelWidth">
                                                                            <asp:Label ID="StudentIdNoLabel" runat="server" Text="Id No" SkinID="MandatoryLabel"></asp:Label>
                                                                        </div>
                                                                        <div class="fLeft pRight5 display-flex">
                                                                            <asp:TextBox ID="StudentIdNoTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                                SkinID="CustomWidthTextBox" runat="server" MaxLength="200" AutoPostBack="true"
                                                                                OnTextChanged="StudentIdNoTextBox_TextChanged">
                                                                            </asp:TextBox>
                                                                            <asp:ImageButton SkinID="FindImage" ToolTip="Student Search" ID="StudentIdNoImageButton"
                                                                                ImageUrl="~/Images/icons/icon_find.gif" runat="server" />
                                                                            <asp:HiddenField ID="SourceIdHiddenField" runat="server" />
                                                                            <asp:HiddenField ID="AcademicIdHiddenField" runat="server" />
                                                                            <asp:HiddenField ID="UpdateHiddenField" runat="server" />
                                                                        </div>
                                                                    </div>
                                                                    <div class="outerBox pTop5 col-md-3">
                                                                        <div class="controlLabelWidth">
                                                                            <asp:Label ID="SourceNameLabel" runat="server" Text="Name"></asp:Label>
                                                                        </div>
                                                                        <div class="fLeft pRight5">
                                                                            <asp:TextBox ID="SourceNameTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                                SkinID="CustomWidthTextBox" runat="server" MaxLength="200"> </asp:TextBox>
                                                                        </div>
                                                                    </div>
                                                                    <div class="outerBox pTop5 col-md-3">
                                                                        <div class="controlLabelWidth">
                                                                            <asp:Label ID="EligibleAmountLabel" runat="server" Text="Eligible Amount" SkinID="MandatoryLabel"></asp:Label>
                                                                        </div>
                                                                        <div class="fLeft pRight5">
                                                                            <asp:TextBox ID="EligibleAmountTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                                SkinID="CustomWidthTextBox" runat="server" onblur="javascript:return fnValidateDecimal(this,8,2)"
                                                                                onkeypress="javascript:return MaskDecimal(event,8,2)"> </asp:TextBox>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div runat="server" id="MultipleStudentDiv" visible="false">
                                                                    <div class="outerBox pTop5 col-md-3">
                                                                        <div class="controlLabelWidth">
                                                                            <asp:Label ID="ClassLabel" Text="Class" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                                                        </div>
                                                                        <div class="">
                                                                            <asp:DropDownList ID="ClassDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                                                onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" CssClass="form-control"
                                                                                AutoPostBack="True" OnSelectedIndexChanged="ClassDropDownList_SelectedIndexChanged">
                                                                            </asp:DropDownList>
                                                                        </div>
                                                                    </div>
                                                                    <div class="outerBox pTop5 col-md-3">
                                                                        <div class="controlLabelWidth">
                                                                            <asp:Label ID="DivisionLabel" Text="Division" runat="server"></asp:Label>
                                                                        </div>
                                                                        <div class="">
                                                                            <asp:DropDownList ID="DivisionDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                                                onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" CssClass="form-control"
                                                                                AutoPostBack="true" OnSelectedIndexChanged="DivisionDropDownList_SelectedIndexChanged">
                                                                            </asp:DropDownList>
                                                                        </div>
                                                                    </div>
                                                                </div>

                                                                <div id="SourceInitDiv" class="himssuHeader6WireBox col-md-12" runat="server" visible="False">
                                                                    <div class="himsBoxHeader" id="Div8" runat="server">
                                                                        <div class="leftdiv">
                                                                        </div>
                                                                        <div class="himsBoxTitle">
                                                                            <div class="headerText ">
                                                                                <asp:Label ID="SourceInitGridViewLabel" Text="&nbsp;" runat="server" />
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                    <div class="himsBoxContent table-reponsive">
                                                                        <div id="Div10" class="himsBoxContentMsg" runat="server" visible="False">
                                                                        </div>
                                                                        <asp:GridView ID="SourceInitGridView" runat="server" AutoGenerateColumns="False"
                                                                            Width="100%" CssClass="table table-striped table-bordered table-hover" EmptyDataText="No Records Found !!"
                                                                            DataKeyNames="AcademicId,StudentId,Code">
                                                                            <Columns>
                                                                                <asp:TemplateField HeaderStyle-HorizontalAlign="Center" HeaderText="" ItemStyle-Width="6%">
                                                                                    <HeaderTemplate>
                                                                                        <label class="rt-chkbox rt-chkbox-outline">
                                                                                            <asp:CheckBox ID="HeaderIsSelectCheckBox" runat="server" AutoPostBack="true" OnCheckedChanged="HeaderIsSelectCheckBox_CheckedChanged" />
                                                                                            <span></span>
                                                                                        </label>
                                                                                    </HeaderTemplate>
                                                                                    <HeaderStyle HorizontalAlign="Center" />
                                                                                    <ItemStyle HorizontalAlign="Center" />
                                                                                    <ItemTemplate>
                                                                                        <label class="rt-chkbox rt-chkbox-outline">
                                                                                            <asp:CheckBox ID="IsSelectCheckBox" runat="server" />
                                                                                            <span></span>
                                                                                        </label>
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>
                                                                                <asp:BoundField DataField="Name">
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                    <ItemStyle Width="70%" />
                                                                                </asp:BoundField>
                                                                                <asp:TemplateField HeaderText="Eligible Amount" ItemStyle-Width="20%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                                    <ItemTemplate>
                                                                                        <asp:TextBox ID="AmountTextBox" runat="server" ClientIDMode="Static" Text='0'
                                                                                            Width="100px"></asp:TextBox>
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>
                                                                            </Columns>
                                                                            <PagerSettings Visible="False" />
                                                                        </asp:GridView>
                                                                    </div>
                                                                </div>
                                                                <div id="Div1" class="himssuHeader6WireBox col-md-12 pto5" 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 Eligible Student Scholarship" runat="server" />
                                                                                </header>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                    <div class="outerBox pTop5 col-md-12">
                                                                        <div class="fRight">
                                                                            <asp:Button ID="AssignButton" runat="server" CssClass="btn btn-examcommon fas" OnClick="AssignButton_Click" Text="&#xf0ae; Assign" SkinID="0" />
                                                                            <asp:Button ID="UpdateButton" runat="server" SkinID="0" CssClass="btn btn-update fas" OnClick="UpdateButton_Click" Text="&#xf044; Edit" />
                                                                            <asp:Button ID="ResetButton" runat="server" SkinID="0" CssClass="btn btn-reset fas" OnClick="ResetButton_Click" Text="&#xf12d; Clear" />
                                                                            <asp:Button ID="PrintEligibleButton" runat="server" SkinID="0" CssClass="btn btn-print fas" Text="&#xf15b; Print" OnClick=" PrintEligibleButton_Click" />
                                                                        </div>
                                                                    </div>
                                                                    <div class="himsBoxContent table-responsive">
                                                                        <asp:GridView ID="EligibleStudentScholarshipGridView" runat="server"
                                                                            AutoGenerateColumns="False" CssClass="table table-striped table-bordered table-hover" EmptyDataText="No Records Found !!" AllowPaging="false"
                                                                            ShowHeader="true" DataKeyNames="ScholarshipId,AcademicId">
                                                                            <Columns>
                                                                                <asp:BoundField DataField="Scholarship" HeaderText="Scholarship" ItemStyle-Width="25%"
                                                                                    HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                                <asp:TemplateField ShowHeader="true" HeaderText="Eligible Amount" HeaderStyle-HorizontalAlign="Center">
                                                                                    <ItemTemplate>
                                                                                        <asp:TextBox ID="GEligibleAmountTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                                            SkinID="CustomWidthTextBox" runat="server" onblur="javascript:return fnValidateDecimal(this,8,2)"
                                                                                            onkeypress="javascript:return MaskDecimal(event,8,2)" Text='<%# Bind("EligibleAmount") %>' Enabled="false"> </asp:TextBox>
                                                                                    </ItemTemplate>
                                                                                    <ItemStyle HorizontalAlign="Center" Width="10%" />
                                                                                </asp:TemplateField>
                                                                                <asp:BoundField DataField="Code" HeaderText="ID No / Code" ItemStyle-Width="15%"
                                                                                    HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                                <asp:BoundField DataField="StudentName" HeaderText="Name" ItemStyle-Width="30%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                                <asp:BoundField DataField="ClassDivisionName" HeaderText="Class - Division" ItemStyle-Width="10%"
                                                                                    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"
                                                                                            ImageUrl="~/Images/icons/icon_delete.gif" ToolTip="Delete" />
                                                                                    </ItemTemplate>
                                                                                    <ItemStyle HorizontalAlign="Center" Width="10%" />
                                                                                </asp:TemplateField>
                                                                            </Columns>
                                                                            <PagerSettings Visible="False" />
                                                                        </asp:GridView>
                                                                    </div>
                                                                </div>
                                                            </asp:Panel>
                                                        </div>
                                                    </div>
                                                </asp:Panel>
                                            </div>
                                        </div>
                                    </asp:Panel>
                                </div>
                            </div>
                        </div>
                    </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../JavaScript/rjs/encrypt/scholership-eliglble-student-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/scholership-eliglble-student")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
