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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl"
    TagPrefix="ScreenGroup" %>
<%--<%@ Register Src="~/UserControls/Common/StudentSearch/StudentSearch.ascx" TagName="StudentSearch" TagPrefix="Std" %>--%>
<%@ Register Src="~/UserControls/AutoComplete/AutoCompleteControl.ascx" TagName="AutoCompleteControl" TagPrefix="acc" %>
<%--  <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl"
    TagPrefix="Date" %> --%>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="OTQueueListingUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <%--<Std:StudentSearch ID="StudentSearch" Visible="false" runat="server" />--%>
            <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="104"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="whiteboxpaddingleft row">

                    <div class="himssuHeader1WireBox card card-box">
                        <div class="himsBoxHeader card-head">
                            <div class="leftdiv">
                            </div>
                            <div class="himsBoxTitle">
                                <div class="headerText">
                                    <header>
                                        <i class="fas fa-retweet"></i>
                                        <asp:Label ID="GenerateFeeLabel" runat="server" Text="Fee Process Generate"></asp:Label>
                                    </header>
                                </div>
                            </div>
                        </div>

                        <div class="himsBoxContent card-body">
                            <asp:Panel ID="DetailPanel" runat="Server">
                                <div class="contentHolder">
                                    <div class="tableContainer">
                                        <%--<cc1:tabcontainer id="GenerateMarksTabContainer" runat="server" cssclass="ajax__myTab nav nav-tabs tabs-style-iconbox"
                                            meta:resourcekey="GenerateMarksTabContainerResource1" activetabindex="0">
                                            <cc1:TabPanel ID="GenerateMarksDetails" runat="server" HeaderText="Generate Marks">
                                                <HeaderTemplate>
                                                    <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                        <li class="fancyTab"><a><i class="fas fa-calendar"></i>Generate Result</a></li>
                                                    </ul>
                                                </HeaderTemplate>
                                                <ContentTemplate>--%>
                                        <div class="contentHolder">
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="OrgLabel" Text="Organization" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="OrgDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                        onmouseenter="showHideTooltip()" AutoPostBack="True"
                                                        SkinID="CustomWidthDropDownList" CssClass="form-control"
                                                        OnSelectedIndexChanged="OrgDropDownList_SelectedIndexChanged">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="BatchLabel" Text="Batch" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="BatchDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                        onmouseenter="showHideTooltip()" AutoPostBack="True"
                                                        SkinID="CustomWidthDropDownList" CssClass="form-control"
                                                        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 runat="server" ID="ClassDropDownList" SkinID="CustomWidthDropDownList"
                                                        CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        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="fLeft pRight5">
                                                    <asp:DropDownList runat="server" ID="DivisionDropDownList" SkinID="CustomWidthDropDownList"
                                                        CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        AutoPostBack="True" OnSelectedIndexChanged="DivisionDropDownList_SelectedIndexChanged">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>

                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="StudentNameLabel" Text="StudentName" runat="server"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList runat="server" ID="StudentNameDropDownList" SkinID="CustomWidthDropDownList"
                                                        CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        AutoPostBack="false">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>

                                            <%-- <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="" Text="Class" runat="server" ></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="" runat="server" onmouseleave="showHideTooltip()"
                                                        onmouseenter="showHideTooltip()" AutoPostBack="True"
                                                        SkinID="CustomWidthDropDownList" CssClass="form-control">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="DivLabel" Text="Division" runat="server"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="DivDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                        onmouseenter="showHideTooltip()" AutoPostBack="True"
                                                        SkinID="CustomWidthDropDownList" CssClass="form-control">
                                                    </asp:DropDownList>
                                                </div>
                                            </div> --%>

                                            <%--<asp:Panel ID="StudentSearchPanel" runat="server">
                                                <div class="outerBox pTop5 col-md-3 col-sm-4 col-xs-12">
                                                    <div class="controlLab  elWidth">
                                                        <asp:Label ID="StudentIdNoLabel" runat="server" Text="SR No"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5  display-flex">
                                                        <asp:TextBox ID="StudentIdNoTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                            SkinID="" 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="ClassIdHiddenField" runat="server" />
                                                        <asp:HiddenField ID="AdmissionCategoryIdHiddenField" runat="server" />
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3 col-sm-4 col-xs-12">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="StudentNameLabel" runat="server" Text="Name"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:TextBox ID="StudentNameTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                            SkinID="CustomWidthTextBox" runat="server" MaxLength="200"> </asp:TextBox>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3 col-sm-4 col-xs-12">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="Label1" runat="server" Text="Class"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:TextBox ID="ClassTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                            SkinID="CustomWidthTextBox" runat="server" MaxLength="200"> </asp:TextBox>
                                                    </div>
                                                </div>
                                            </asp:Panel>--%>

                                            <div class="col-md-12 pTop5">
                                                <div class="alignCenter">
                                                    <asp:Button ID="SearchButton" Text="Search" runat="server"
                                                        SkinID="0" class="btn-search btn fas" OnClick="SearchButton_Click" />
                                                    <asp:HiddenField ID="RowIndexField" runat="server" />
                                                    <asp:Button ID="ResetButton" Text="&#xf12d; Clear" runat="server"
                                                        OnClick="ResetButton_Click" SkinID="0" CssClass="fas btn btn-clear" />
                                                </div>
                                                <div class="fRight">
                                                    <asp:Button ID="GenerateAllButton" Text="Fee Process Generate All" runat="server" SkinID="0" class="btn btn-generate fas" OnClick="GenerateAllButton_Click" Visible="false" />
                                                </div>
                                            </div>
                                            <%--<div class="outerBox ">
                                                            <div class="fLeft pRight5">
                                                                <asp:HiddenField ID="ExamSettingsHiddenField" runat="server" />
                                                                <asp:HiddenField ID="ExamDetailSettingsHiddenField" runat="server" />                                                                
                                                            </div>
                                                        </div>--%>
                                            <div id="Div1" class="himssuHeader6WireBox col-md-12" 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="headerText">
                                                            <header>
                                                                <asp:Label ID="GridViewLabel" Text="Fee Process Generation List" runat="server" />
                                                            </header>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="himsBoxContent">
                                                    <div id="EmpGridViewMessageDiv" runat="server" visible="true">
                                                    </div>
                                                    <div id="Div5" runat="server" visible="true" class="table-responsive">
                                                        <%-- DataKeyNames="ClassId,Title,DisplayTitle,ClassFeeStatus"--%>
                                                        <asp:GridView ID="FeeProcessGenerateGridview"
                                                            runat="server" AutoGenerateColumns="False" EmptyDataText="No Records Found !!"
                                                            AllowPaging="False" ViewStateMode="Enabled"
                                                            OnRowDataBound="FeeProcessGenerateGridview_RowDataBound" CssClass="table table-striped table-bordered table-hover">
                                                            <Columns>
                                                                <asp:TemplateField HeaderText="Select">
                                                                    <HeaderTemplate>
                                                                        <label class="rt-chkbox rt-chkbox-outline">
                                                                            <asp:CheckBox ID="HeaderSelectCheckBox" runat="server" Onclick="checkAllRows(this);" />
                                                                            <span></span>
                                                                        </label>
                                                                    </HeaderTemplate>
                                                                    <HeaderStyle HorizontalAlign="Center" />
                                                                    <ItemStyle HorizontalAlign="Center" Width="5%" Wrap="True" />
                                                                    <ItemTemplate>
                                                                        <label class="rt-chkbox rt-chkbox-outline">
                                                                            <asp:CheckBox ID="SelectCheckBox" runat="server" />
                                                                            <span></span>
                                                                        </label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:BoundField DataField="ClassId" HeaderText="ClassId" ItemStyle-CssClass="hidden" HeaderStyle-CssClass="hidden" />
                                                                <asp:BoundField DataField="Title" HeaderText="ClassName" Visible="false" />
                                                                <asp:BoundField DataField="DisplayTitle" HeaderText="Class" Visible="true" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                <asp:TemplateField HeaderText="Status" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="ClassFeeStatusLabel" runat="server" Text='<%# Bind("ClassFeeStatus") %>'>' </asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderStyle-HorizontalAlign="Left">
                                                                    <HeaderTemplate>
                                                                        <itemstyle horizontalalign="Left" />
                                                                        <itemtemplate>
                                                                            <asp:Label ID="HeaderLable" Text="Fee Process Generate" runat="server"/>
                                                                        </itemtemplate>
                                                                    </HeaderTemplate>
                                                                    <ItemTemplate>
                                                                        <asp:Button ID="FeeProcessGenerateButton" runat="server" SkinID="0" CssClass="btn btn-generate fas"
                                                                            AutoPostBack="true" OnClick="FeeProcessGenerateButton_Click"
                                                                            Text="Fee Process Generate" />
                                                                    </ItemTemplate>
                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                </asp:TemplateField>
                                                            </Columns>
                                                        </asp:GridView>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <%--</ContentTemplate>
                                            </cc1:TabPanel>
                                            <cc1:TabPanel ID="GenerateMarksLog" ClientIDMode="Static" runat="server"
                                            HeaderText="Generate Marks Log">
                                            <HeaderTemplate>
                                                <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                    <li class="fancyTab"><a><i class="fas fa-calendar"></i>&nbsp;Generate Result Log</a></li>
                                                </ul>
                                            </HeaderTemplate>
                                            <ContentTemplate>
                                                <div class="contentHolder">
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="ClassDivisionLabel" runat="server" Text="Class Division" SkinID="MandatoryLabel"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList ID="ClassDivisionDropDownList" runat="server" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                                            onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" AutoPostBack="true" />
                                                    </div>
                                                </div>

                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="FromDateLabel" runat="server" Text="From Date" SkinID="MandatoryLabel"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <Date:DatePickerControl DisplayDatePicker="true" ID="FromDatePickerControl" Width="154Px"
                                                            runat="server" Visible="true" />
                                                    </div>
                                                </div>

                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="ToDateLabel" runat="server" Text="To Date" SkinID="MandatoryLabel"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <Date:DatePickerControl DisplayDatePicker="true" ID="ToDatePickerControl" Width="154Px"
                                                            runat="server" Visible="true" />
                                                    </div>
                                                </div>

                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="OperationLabel" Text="Operation" runat="server"></asp:Label>
                                                    </div>
                                                    <div class="fLeft  pRight5">
                                                        <asp:DropDownList ID="OperationDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                            onmouseenter="showHideTooltip()" AutoPostBack="True"
                                                            SkinID="CustomWidthDropDownList" class="form-control">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>

                                                <div class="alignCenter pTop5 col-md-12 center">
                                                    <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" />
                                                    <asp:HiddenField ID="MaxRowHiddenField" runat="server" />
                                                </div>

                                                <div class="himsBoxContent col-md-12 pTop10">
                                                    <div class="table-responsive">
                                                        <asp:GridView ID="GenerateMarkLogGridview"
                                                            runat="server" AutoGenerateColumns="False" EmptyDataText="No Records Found !!"
                                                            AllowPaging="False" ViewStateMode="Enabled" DataKeyNames=""
                                                            CssClass="table table-striped table-bordered table-hover">
                                                            <Columns>
                                                                <asp:BoundField DataField="ClassDivision" HeaderText="Class Division" />
                                                                <asp:BoundField DataField="Operation" HeaderText="Activity" />
                                                                <asp:BoundField DataField="OperationRemark" HeaderText="Activity Remark" />
                                                                <asp:BoundField DataField="UserName" HeaderText="User Name" />
                                                                <asp:BoundField DataField="CreatedDateTime" HeaderText="Activity Time" />
                                                            </Columns>
                                                        </asp:GridView>
                                                    </div>
                                                </div>
                                                </div>
                                            </ContentTemplate>
                                        </cc1:TabPanel>
                                       </cc1:tabcontainer>--%>
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                    </div>

                </div>

            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--   <script data-main="../../../JavaScript/rjs/encrypt/assign-organization-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/assign-organization")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
    <script type="text/javascript">
        function checkAllRows(obj) {
            var objGridview = obj.closest('table');
            var list = objGridview.getElementsByTagName("input");
            for (var i = 0; i < list.length; i++) {
                var objRow = list[i].parentNode.parentNode;
                if (list[i].type == "checkbox" && obj != list[i]) {
                    if (obj.checked) {
                        list[i].checked = true;
                    }
                    else {
                        list[i].checked = false;
                    }
                }
            }
        }
    </script>
</asp:Content>
