<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Certificate_FirstTrialBulk, App_Web_elsd5j1d" 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/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl" TagPrefix="Date" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <style type="text/css">
        input:disabled + input[type=image], input:read-only + a {
            cursor: not-allowed !important;
            pointer-events: none;
        }
        input:enabled  + input[type=image], input:enabled + a {
            pointer-events: visible;
            cursor: pointer !important;
        }
    </style>
    <asp:UpdatePanel ID="IncidentLogUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">

                <div class="dashBoardLeftCont" valign="top">
                    <div class="himssuHeader3WireBox">
                        <table width="0px" cellpadding="0" cellspacing="0">
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="109"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="row whiteboxpaddingleft">
                    <div class="himssuHeader2WireBox ">
                        <div class="contentHolder" style="padding-top: 0px; padding-left: 0px; padding-right: 0px">
                            <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-edit"></i>
                                                <asp:Label ID="Label1" runat="server" Text="Apply"></asp:Label>
                                            </header>
                                        </div>
                                    </div>
                                </div>
                                <div class="himsBoxContent card-body">
                                    <asp:Panel ID="DetailPanel" runat="Server">
                                        <div class="contentHolder">
                                            <div class="cBoth">
                                            </div>
                                            <asp:Panel ID="SearchCriteriaPanel" runat="Server">
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="SearchClassLabel" runat="server" Text="Class" SkinID="MandatoryLabel"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList runat="server" ID="SearchClassDropDownList" SkinID="CustomWidthDropDownList"
                                                            CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                            AutoPostBack="true" OnSelectedIndexChanged="SearchClassDropDownList_OnSelectedIndexChanged">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="SearchDivisionLabel" runat="server" Text="Division"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList runat="server" ID="SearchDivisionDropDownList" SkinID="CustomWidthDropDownList"
                                                            CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>

                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="ExamYearLabel" runat="server" Text="Exam Year" SkinID="MandatoryLabel"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:TextBox ID="ExamYearTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                            runat="server" MaxLength="20" SkinID="CustomWidthTextbox"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="FirstTrialDateLabel" runat="server" Text="First Trial Date" SkinID="MandatoryLabel"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <Date:DatePickerControl DisplayDatePicker="true" ID="FirstTrialDatePickerControl"
                                                            runat="server" />
                                                    </div>
                                                </div>

                                                <div class="cBoth">
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="TrialLabel" runat="server" Text="Trial"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:TextBox ID="TrialTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                            runat="server" MaxLength="20" SkinID="CustomWidthTextbox"></asp:TextBox>
                                                    </div>
                                                </div>
<%--                                                Mantis Start - 33375--%>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="StatusLabel" runat="server" Text="Status"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList runat="server" ID="StatusDropDownList" SkinID="CustomWidthDropDownList"
                                                            CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
 <%--                                                Mantis End - 33375--%>
                                                <div class="cBoth">
                                                </div>

                                                <div class="alignCenter pTop5">
                                                    <asp:Button ID="ApplyButton" Text="Apply" runat="Server" OnClick="ApplyButton_Click"
                                                        SkinID="0" CssClass="btn-apply btn fas" />
                                                    <asp:Button ID="ExportButton" runat="server" Text="&#xf093; Export" OnClick="ExportButton_Click" CssClass="fas btn btn-examcommon" SkinID="0" />
                                                    <a href="javascript:;" onclick="OpenFileUpload();" class="btn btn-browser">
                                                        <i class="fas fa-upload"></i>Browse</a>
                                                    <asp:FileUpload ID="flUpload" runat="server" onChange="readURL(this);" ClientIDMode="Static" Style="display: none;" />

                                                    <asp:Button ID="ImportFromExcelButton" runat="server" Text="&#xf019; Import From Excel"
                                                        SkinID="0" CssClass="fas btn btn-examcommon" OnClick="ImportFromExcelButton_Click" />
                                                </div>
                                                <br />
                                                <div class="col-md-12">
                                                    <div class="alert   alert-info">
                                                       
                                                        <div style="color: #FF7F7F">
                                                            </b>&nbsp; Note: This screen is only for creating new certificates. If you wish to edit certificates, use the first trial certificate screen.
                                                            <br />
                                                           
                                                        </div>
                                                    </div>
                                                </div>

                                                <asp:Label ID="Label2" runat="server" Text="" Style="padding-left: 10px; font-size: medium;"></asp:Label>
                                                <div class="cBoth">
                                                </div>
                                            </asp:Panel>
                                            <div class="spacer">
                                                <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/spacer.gif" />
                                            </div>
                                            <div id="Div1" class="himssuHeader1WireBox col-md-12" runat="server" visible="false">
                                                <div id="GridViewPagerDiv" runat="server" visible="True">
                                                    <div class="leftdiv">
                                                    </div>
                                                    <div class="himsBoxTitle">
                                                    </div>
                                                    <div class="fRight display-flex">
                                                        <asp:DropDownList ID="ApplyDropDownList" runat="server" CssClass="form-control"
                                                            SkinID="CustomWidthButton">
                                                        </asp:DropDownList>
                                                        &nbsp;&nbsp;
                                                        <asp:TextBox ID="ApplyAllTextBox" runat="server" ClientIDMode="Static" Style="padding-top: 10px;"
                                                            SkinID="CustomWidthTextBox"></asp:TextBox>
                                                        <asp:Button ID="ApplyAllButton" runat="server" CssClass="btn-apply btn fas" SkinID="0" OnClick="ApplyAllButton_Click"
                                                            Text="Apply All" />

                                                    </div>
                                                </div>
                                                <div class="col-md-12 pTop15">
                                                    <div class="himsBoxContent">
                                                        <div id="GridViewMessageDiv" class="himsBoxContentMsg" runat="server" visible="False">
                                                        </div>
                                                        <div id="Div4" runat="server" class="table-responsive">
                                                            <asp:GridView ID="FirstTrialGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                EmptyDataText="No Records Found !!" AllowPaging="false" ShowHeader="true" DataKeyNames="AcademicId,Id,RollNo,Name"
                                                                CssClass="table table-striped table-bordered table-hover" OnRowDataBound="FirstTrialGridView_OnRowDataBound">
                                                                <Columns>
                                                                    <asp:TemplateField HeaderStyle-HorizontalAlign="Center">
                                                                        <HeaderTemplate>
                                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                                <asp:CheckBox ID="chkboxSelectAll" runat="server" AutoPostBack="true" OnCheckedChanged="chkboxSelectAll_CheckedChanged" />
                                                                                <span></span>
                                                                            </label>
                                                                        </HeaderTemplate>
                                                                        <ItemStyle HorizontalAlign="Center" Width="3%" />
                                                                        <ItemTemplate>
                                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                                <asp:CheckBox ID="SelectCheckBox" runat="server" />
                                                                                <span></span>
                                                                            </label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Id No" ItemStyle-Width="4%" SortExpression="Title"
                                                                        HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="CodeLabel" runat="server" Text='<%# Bind("Code") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:BoundField DataField="RollNo" HeaderText="Roll No" ItemStyle-Width="4%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                    <asp:BoundField DataField="Name" HeaderText="Name" ItemStyle-Width="15%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                    <asp:TemplateField HeaderText="First Trial Date" ItemStyle-Width="7%" SortExpression="Title"
                                                                        HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="FTDateLabel" runat="server" Text='<%# Bind("FirstTrialDate", "{0:dd-MM-yyyy}") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Exam Center" ItemStyle-Width="11%" ItemStyle-Wrap="true"
                                                                        HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemTemplate>
                                                                            <asp:TextBox ID="ExamCentreTextBox" runat="server" ClientIDMode="Static" Text='<%# Bind("ExamCentre") %>'
                                                                                SkinID="CustomWidthTextBox" MaxLength="200"></asp:TextBox>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Seat No" ItemStyle-Width="8%" ItemStyle-Wrap="true"
                                                                        HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemTemplate>
                                                                            <asp:TextBox ID="SeatNoTextBox" runat="server" Text='<%# Bind("SeatNo") %>' SkinID="CustomWidthTextBox"
                                                                                Width="150px" MaxLength="50"></asp:TextBox>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Trial" ItemStyle-Width="5%" ItemStyle-Wrap="true"
                                                                        HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemTemplate>
                                                                            <asp:TextBox ID="TrialTextBox" runat="server" ClientIDMode="Static" Text='<%# Bind("Trial") %>'
                                                                                SkinID="CustomWidthTextBox" Width="100px" MaxLength="20"></asp:TextBox>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Remark" ItemStyle-Width="10%" ItemStyle-Wrap="true"
                                                                        HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemTemplate>
                                                                            <asp:TextBox ID="RemarkTextBox" runat="server" ClientIDMode="Static" Text='<%# Bind("Remark") %>'
                                                                                SkinID="CustomWidthTextBox" TextMode="MultiLine" MaxLength="200"></asp:TextBox>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Charge Receipt Number(For Verification)" ItemStyle-Width="10%" ItemStyle-Wrap="true"
                                                                        HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemTemplate>
                                                                            <asp:TextBox ID="ReceiptNumberTextBox" runat="server" ClientIDMode="Static" onkeypress="return isNumberKeys(event)"
                                                                                SkinID="CustomWidthTextBox" MaxLength="200"></asp:TextBox>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Last Exam Name" ItemStyle-Width="10%" ItemStyle-Wrap="true"
                                                                        HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemTemplate>
                                                                            <asp:TextBox ID="LastExamNameTextBox" runat="server" ClientIDMode="Static" Text='<%# Bind("LastExamName") %>'
                                                                                SkinID="CustomWidthTextBox" TextMode="MultiLine" MaxLength="150"></asp:TextBox>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Obtained Mark In Last Exam" ItemStyle-Width="10%" ItemStyle-Wrap="true"
                                                                        HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemTemplate>
                                                                            <asp:TextBox ID="ObtainedMarkInLastExamTextBox" runat="server" ClientIDMode="Static" Text='<%# Bind("ObtainedMarkInLastExam") %>'
                                                                                SkinID="CustomWidthTextBox"  MaxLength="100"></asp:TextBox>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Additional Remark" ItemStyle-Width="15%" ItemStyle-Wrap="true"
                                                                        HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemTemplate>
                                                                            <asp:TextBox ID="AdditionalRemarkTextBox" runat="server" ClientIDMode="Static" Text='<%# Bind("AdditionalRemark") %>'
                                                                                SkinID="CustomWidthTextBox" TextMode="MultiLine" ></asp:TextBox>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                </Columns>
                                                                <PagerSettings Visible="False" />
                                                            </asp:GridView>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </asp:Panel>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="spacer">
                        <asp:Image ID="Image4" runat="server" ImageUrl="~/Images/spacer.gif" />
                    </div>
                </div>

            </div>
            <div class="spacer">
                <img src="../../Images/spacer.gif" />
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--  <script data-main="../../JavaScript/rjs/encrypt/firsttrial-bulk-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/firsttrial-bulk")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
    <script>
        function isNumberKeys(evt) {
            var charcode = (evt.which) ? evt.which : event.keycode;
            if ((charcode >= 48 && charcode <= 57))
                return true;
            return false;
        }
    </script>
</asp:Content>
