<%@ page title="Employee Search" language="C#" masterpagefile="~/Pages/Common/MasterPages/DialogMasterPage_new.master" autoeventwireup="true" inherits="Pages_StudentManagement_AdmissionDetails, App_Web_fvbaoasr" uiculture="auto" meta:resourcekey="PageResource1" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager" TagPrefix="uc1" %>
<%@ Register Src="~/UserControls/AutoComplete/AutoCompleteControl.ascx" TagName="AutoCompleteControl" TagPrefix="acc" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl" TagPrefix="DPC" %>
<%@ Register Src="~/UserControls/Common/CommonSearch/CommonSearch.ascx" TagName="CommonSearchUserControl" TagPrefix="Common" %>
<%@ Register Src="~/UserControls/Common/StudentSearch/StudentSearch.ascx" TagName="StudentSearch" TagPrefix="Std" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <Common:CommonSearchUserControl ID="CommonSearchControl" runat="server" Visible="false" />
    <Std:StudentSearch ID="StudentSearch" Visible="false" runat="server" />
    <div class="whiteboxpaddingleft row">
        <div class="card card-box">
            <div class="himsBoxHeader card-head" id="Div4" runat="server" visible="True">
                <asp:Panel ID="SearchHeaderPanel" runat="server" meta:resourcekey="SearchHeaderPanelResource1">
                    <div class="leftdiv">
                    </div>
                    <div class="himsBoxTitle">
                        <div class="headerText">
                            <asp:Label ID="SearchHeaderLabel" runat="server" Text="Search"></asp:Label>
                        </div>
                    </div>
                </asp:Panel>
            </div>
            <asp:Panel ID="SearchDetailPanel" runat="server" meta:resourcekey="SearchDetailPanelResource1">
                <div class="himsBoxContent card-body">
                    <div class="contentHolder">
                        <div class="outerBox pTop5 col-md-3">
                            <div class="controlLabelWidth">
                                <asp:Label ID="FirstNameSearchLabel" runat="server" Text="First Name" meta:resourcekey="FirstNameSearchLabelResource1"></asp:Label>
                            </div>
                            <div class="fLeft pRight5">
                                <asp:TextBox ID="StudentFirstNameSearchTextBox" SkinID="CustomWidthTextBox"
                                    runat="server" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                    meta:resourcekey="FirstNameSearchTextBoxResource1" MaxLength="100"></asp:TextBox>
                            </div>
                        </div>
                        <div class="outerBox pTop5 col-md-3">
                            <div class="controlLabelWidth">
                                <asp:Label ID="LastNameLabel" runat="server" Text="Last Name"></asp:Label>
                            </div>
                            <div class="fLeft pRight5">
                                <asp:TextBox ID="StudentLastNameSearchTextBox" SkinID="CustomWidthTextBox"
                                    runat="server" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                    meta:resourcekey="LastNameTextBoxResource1" MaxLength="100"></asp:TextBox>
                            </div>
                        </div>
                        <div class="cBoth">
                        </div>
                        <div class="outerBox pTop5 col-md-3">
                            <div class="controlLabelWidth">
                                <asp:Label ID="ClassLabel" runat="server" Text="Class"></asp:Label>
                            </div>
                            <div class="fLeft pRight5">
                                <asp:DropDownList runat="server" ID="ClassDropDownList" 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="MeritMarksLabel" runat="server" Text="Merit Marks"></asp:Label>
                            </div>
                            <div class="fLeft pRight5">
                                <asp:TextBox ID="MeritMarksTextBox" runat="server" onmouseleave="showHideTooltip()"
                                    SkinID="CustomWidthTextBox" onmouseenter="showHideTooltip()" MaxLength="20"></asp:TextBox>
                            </div>
                        </div>

                        <div class="alignCenter pTop10">
                            <asp:Button ID="SearchButton" runat="server" Text="Search" OnClick="SearchButton_Click" SkinID="0" CssClass="PrimaryButton" />
                            <asp:Button ID="ClearButton" runat="server" Text="Clear" OnClick="ClearSearchControls_Click" />
                        </div>

                        <div id="AdmissionDetailsGridDiv" runat="server">
                            <div class="spacer">
                                <asp:Image ID="Image6" runat="server" ImageUrl="~/Images/spacer.gif" meta:resourcekey="Image6Resource1" />
                            </div>
                            <div class="himssuHeader7WireBoxcol-md-12 pTop5">
                                <div class="himsBoxHeader card-head inner" id="AdmissionDetailsGridViewPagerDiv" runat="server" visible="False">
                                    <div class="leftdiv">
                                    </div>
                                    <div class="himsBoxTitle">
                                        <div class="gridHeaderText">

                                            <asp:Label ID="GridViewLabel" Text="List" runat="server" Font-Bold="True" />
                                        </div>
                                        <div class="">
                                            <uc1:GridViewPager ID="AdmissionDetailsGridViewPager" ParentGridView="AdmissionDetailsGridView"
                                                runat="server" OnFirstRecordClick="AdmissionDetailsGridViewPager_FirstRecordClick"
                                                OnLastRecordClick="AdmissionDetailsGridViewPager_LastRecordClick" OnNextRecordClick="AdmissionDetailsGridViewPager_NextRecordClick"
                                                OnPrevRecordClick="AdmissionDetailsGridViewPager_PrevRecordClick" OnTextBoxValueChange="AdmissionDetailsGridViewPager_TextBoxValueChange" />
                                        </div>
                                    </div>
                                </div>
                                <div class="himsBoxContent table-responsive">
                                    <asp:GridView runat="server" ID="AdmissionDetailsGridView"  AutoGenerateColumns="False"
                                        EmptyDataText="No records available for the search criteria!" OnRowDataBound="AdmissionDetailsGridView_RowDataBound"
                                        DataKeyNames="AdmissionFormId" AllowPaging="True" PageSize="10" ShowHeader="True"
                                        meta:resourcekey="AdmissionDetailsGridViewResource1" CssClass="table table-striped table-bordered table-hover">
                                        <Columns>
                                            <asp:TemplateField ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                <ItemTemplate>
                                                    <asp:LinkButton ID="SelectLinkButton" runat="server" CommandName="Select" OnClick="LinkButton_Click"
                                                        Text="Select" CausesValidation="false"></asp:LinkButton>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Form No" meta:resourcekey="TemplateFieldResource6">
                                                <ItemTemplate>
                                                    <asp:Label ID="FormNoGridLabel" runat="server" Text='<%# Eval("FormNo") %>' CssClass="boxEllips"
                                                        ToolTip='<%# Bind("FormNo") %>'></asp:Label>
                                                </ItemTemplate>
                                                <HeaderStyle HorizontalAlign="Left" />
                                                <ItemStyle HorizontalAlign="Left" Width="10%" />
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Name" meta:resourcekey="TemplateFieldResource1">
                                                <ItemTemplate>
                                                    <asp:Label ID="NameGridLabel" runat="server" Text='<%# Eval("Name") %>' CssClass="boxEllips"
                                                        ToolTip='<%# Bind("Name") %>'></asp:Label>
                                                </ItemTemplate>
                                                <HeaderStyle HorizontalAlign="Left" />
                                                <ItemStyle HorizontalAlign="Left" Width="15%" />
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Gender" meta:resourcekey="TemplateFieldResource5">
                                                <ItemTemplate>
                                                    <asp:Label ID="GenderGridLabel" runat="server" Text='<%# Eval("Gender") %>' CssClass="boxEllips"
                                                        ToolTip='<%# Bind("Gender") %>'></asp:Label>
                                                </ItemTemplate>
                                                <HeaderStyle HorizontalAlign="Left" />
                                                <ItemStyle HorizontalAlign="Left" Width="10%" />
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Class" meta:resourcekey="TemplateFieldResource2">
                                                <ItemTemplate>
                                                    <asp:Label ID="ClassGridLabel" runat="server" Text='<%# Eval("ClassName") %>' CssClass="boxEllips"
                                                        ToolTip='<%# Bind("ClassName") %>'></asp:Label>
                                                </ItemTemplate>
                                                <HeaderStyle HorizontalAlign="Left" />
                                                <ItemStyle HorizontalAlign="Left" Width="10%" />
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Merit Marks">
                                                <ItemTemplate>
                                                    <asp:Label ID="MeritMarksGridLabel" runat="server" Text='<%# Eval("MeritMarks") %>'
                                                        CssClass="boxEllips" ToolTip='<%# Bind("MeritMarks") %>' Width="140px"></asp:Label>
                                                </ItemTemplate>
                                                <HeaderStyle HorizontalAlign="Left" />
                                                <ItemStyle HorizontalAlign="Left" Width="5%" />
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Status" meta:resourcekey="TemplateFieldResource5">
                                                <ItemTemplate>
                                                    <asp:Label ID="StatusGridLabel" runat="server" Text='<%# Eval("StatusName") %>' CssClass="boxEllips"
                                                        ToolTip='<%# Bind("StatusName") %>'></asp:Label>
                                                </ItemTemplate>
                                                <HeaderStyle HorizontalAlign="Left" />
                                                <ItemStyle HorizontalAlign="Left" Width="10%" />
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Previous School">
                                                <ItemTemplate>
                                                    <asp:Label ID="PreviousSchoolGridLabel" runat="server" Text='<%# Eval("PreviousSchool") %>'
                                                        CssClass="boxEllips" ToolTip='<%# Bind("PreviousSchool") %>'></asp:Label>
                                                </ItemTemplate>
                                                <HeaderStyle HorizontalAlign="Left" />
                                                <ItemStyle HorizontalAlign="Left" Width="15%" />
                                            </asp:TemplateField>
                                        </Columns>
                                        <PagerSettings Visible="False" />
                                    </asp:GridView>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </asp:Panel>
        </div>
        <%--<script data-main="../../JavaScript/rjs/encrypt/admission-details-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
        <script data-main='<%=ResolveUrl("~/JavaScript/rjs/admission-details")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>    
</asp:Content>
