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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Src="~/UserControls/AutoComplete/AutoCompleteControl.ascx" TagName="AutoCompleteControl" TagPrefix="acc" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl" TagPrefix="Date" %>
<%@ Register Src="~/UserControls/Common/CommonSearch/CommonSearch.ascx" TagName="CommonSearchUserControl" TagPrefix="Common" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>
<%@ Register Src="~/UserControls/Common/Recruitment/VacancyDetailBoxControl.ascx" TagName="VacancyControl" TagPrefix="Vacancy" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerAutoPostBackControl.ascx" TagName="DatePickerControl"
TagPrefix="DPC" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="CandidateFamilyUpdatePanel" runat="server">
        <ContentTemplate>
            <Common:CommonSearchUserControl ID="CommonSearchControl" runat="server" Visible="false" />
            <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="229"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                 <div class="whiteboxpaddingleft row">
                    <Vacancy:VacancyControl ID="VacancyUserControl" runat="server" Visible="true" />
                    <div class="himssuHeader1WireBox card card-box">
                        <div class="himsBoxHeader card-head" id="Div4" runat="server" visible="True">
                            <div class="leftdiv">
                            </div>
                            <div class="himsBoxTitle">
                                <div class="headerText fLeft">
                                    <header>
                                        <asp:Label ID="Label4" Text="Candidate Detail" runat="server" />
                                    </header>
                                </div>
                            </div>
                            <div class="fRight mt-27 pagination display-flex">
                               
                                            <div id="NumberOfRecordDiv" class="display-flex" runat="server" visible="true">
                                                <asp:LinkButton AlternateText="First page" ToolTip="First page" ID="FirstRecordImageButton"
                                                    runat="server" CommandName="Page" CommandArgument="First"
                                                    OnClick="FirstRecordImageButton_Click" CssClass="btn btn-default gridviewpagerbuttonpadding">
					                            <i class="fa fa-fast-backward"></i>
                                                </asp:LinkButton>
                                                <asp:LinkButton AlternateText="Previous page" ToolTip="Previous page" ID="PreviousImageButton"
                                                    runat="server" CommandName="Page" CommandArgument="Prev"
                                                    OnClick="PreviousImageButton_Click" CssClass="btn btn-default gridviewpagerbuttonpadding">
					                            <i class="fa fa-play fa-rotate-180"></i>
                                                </asp:LinkButton>
                                               
				                                <asp:Label ID="LabelPage" runat="server" Text="Record " AssociatedControlID="ReCordNumber" />
                                                &nbsp; <asp:Label ID="ReCordNumber" Font-Bold="true" SkinID="Dummy" runat="server"></asp:Label>
                                               &nbsp;  <asp:Label ID="ofLabel" Text="of" runat="server" />
                                               &nbsp;  <asp:Label ID="TotalRecord" runat="server" />
                                                &nbsp;
				                                <asp:LinkButton AlternateText="Next page" ToolTip="Next page" ID="NextImageButtom"
                                                    runat="server" CssClass="btn btn-default gridviewpagerbuttonpadding" CommandName="Page" CommandArgument="Next"
                                                    OnClick="NextImageButton_Click">
					                                 <i class="fa fa-play"></i>
                                                </asp:LinkButton>

                                                <asp:LinkButton AlternateText="Last page" ToolTip="Last page" ID="LastRecordImageButton"
                                                    runat="server" CssClass="btn btn-default gridviewpagerbuttonpadding" CommandName="Page" CommandArgument="Last"
                                                    OnClick="LastRecordImageButton_Click">
					                            <i class="fa fa-fast-forward"></i>
                                                </asp:LinkButton>
                                                &nbsp;  &nbsp; &nbsp;
                                            </div>
                                     
                            </div>
                        </div>
                        <div class="himsBoxContent card-body">
                            <asp:Panel ID="DetailPanel" runat="Server">
                                <div class="contentHolder">
                                    <div class="topdisplayContainer" style="width: 100%">
                                    
                                                    <div class="himsDisplayBox">
                                                        <div style="margin-top: 0px">
                                                        </div>
                                                        <div class="himsBoxContent messageMessage">
                                                            <div class="topdisplayContainer">
                                                                <table class="fLeft">
                                                                    <tr>
                                                                        <td>
                                                                            <asp:Label ID="CodeLabelL" runat="server" Text="Code :" Font-Bold="true"></asp:Label>
                                                                       <%-- </td>
                                                                        <td>--%>
                                                                            <asp:Label ID="CodeLabelT" runat="server" Text=""></asp:Label>
                                                                        </td>
                                                                        <td>&nbsp;
                                                                        </td>
                                                                        <td>&nbsp;
                                                                        </td>
                                                                        <td>&nbsp;
                                                                        </td>
                                                                        <td>&nbsp;
                                                                        </td>
                                                                        <td>
                                                                            <asp:Label ID="NameLabelL" runat="server" Text="Name :" Font-Bold="true"></asp:Label>
                                                                      <%--  </td>
                                                                        <td>--%>
                                                                            <asp:Label ID="NameLabelT" runat="server" Text=""></asp:Label>
                                                                        </td>
                                                                        <td>&nbsp;
                                                                        </td>
                                                                        <td>&nbsp;
                                                                        </td>
                                                                        <td>&nbsp;
                                                                        </td>
                                                                        <td>&nbsp;
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                                <div class="cBoth">
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="himsBoxFooter">
                                                            <div>
                                                            </div>
                                                        </div>
                                                    </div>
                                              
                                    </div>
                                    <div class="navgraybackground">
                                        <ul class="nav nav-tabs">
                                            <li>
                                                <a href="#tab_1">
                                                    <asp:Button Text="&#xf044; General" ID="EmployeeMendatoryButton" CssClass="transparenttab fas" OnClick="EmployeeMendatoryButton_Click"
                                                        SkinID="0" runat="server" />
                                                </a>
                                            </li>
                                            <li>
                                                <a href="#tab_1">
                                                    <asp:Button Text="&#xf095; Communication" ID="CommunicationButton" CssClass="transparenttab fas" OnClick="Communication_Click"
                                                        SkinID="0" runat="server" />
                                                </a>
                                            </li>
                                            <li>
                                                <a href="#tab_1">
                                                    <asp:Button Text="&#xf0c0; Employment" ID="EmploymentButton" CssClass="transparenttab fas" OnClick="Employment_Click"
                                                        SkinID="0" runat="server" />
                                                </a>
                                            </li>
                                            <li>
                                                <a href="#tab_1">
                                                    <asp:Button Text="&#xf19d; Qualification" ID="QualificationButton" CssClass="transparenttab fas" OnClick="Qualification_Click"
                                                        SkinID="0" runat="server" />
                                                </a>
                                            </li>
                                            <li class="active">
                                                <a href="#tab_1">
                                                    <asp:Button Text="&#xf0c0; Family" ID="FamilyButton" CssClass="transparenttab fas" 
                                                        SkinID="0" runat="server" />
                                                </a>
                                            </li>
                                            <li>
                                                <a href="#tab_1">
                                                    <asp:Button Text="&#xf0c0; Document" ID="DocumentButton" CssClass="transparenttab fas" OnClick="DocumentButton_Click"
                                                        SkinID="0" runat="server" />
                                                </a>
                                            </li>
                                        </ul>
                                    </div>
                                   <table width="100%" style="width: 100%;">
                                        <tr>
                                            <td style="vertical-align: top; border-top: 0px solid gray !important">
                                                <asp:Panel ID="PanEnable" runat="server" meta:resourcekey="PanEnableResource1">
                                                    <asp:PlaceHolder ID="UserControlContainer" runat="server"></asp:PlaceHolder>
                                                    <div class="himssuHeader1WireBox ">
                                                        <div class="himsBoxContent">
                                                            <div class="contentHolder">
                                                                <asp:Panel ID="pnlForGrid" runat="server" meta:resourcekey="pnlForGridResource1">
                                                                    <div class="himssuHeader6WireBox col-md-12">
                                                                        <div class="himsBoxContent">
                                                                              <div id="Div1" runat="server" class="table-responsive">
                                                                               <asp:GridView runat="server" ID="FamilyDetailsGridView" Width="100%" AutoGenerateColumns="False"
                                                                                EmptyDataText="No Family Details Found!" DataKeyNames="Id,CandidateId,RelationshipId,Relationship,Name,Age,DateOfBirth,BloodGroupId,BloodGroup,OperationState,IsDelete,Occupation"
                                                                                OnSelectedIndexChanged="FamilyDetailsGridView_SelectedIndexChanged" OnRowDataBound="FamilyDetailsGridView_OnRowDataBound"
                                                                                meta:resourcekey="FamilyDetailsGridViewResource1"
                                                                                CssClass="table table-striped table-bordered table-hover">
                                                                                <Columns>
                                                                                    <asp:CommandField ShowSelectButton="True" meta:resourcekey="CommandFieldResource1" />
                                                                                    <asp:BoundField DataField="Relationship" HeaderText="Relation" meta:resourcekey="BoundFieldResource1"></asp:BoundField>
                                                                                    <asp:BoundField DataField="Name" HeaderText="Name" meta:resourcekey="BoundFieldResource2"></asp:BoundField>
                                                                                    <asp:BoundField DataField="Age" HeaderText="Age" meta:resourcekey="BoundFieldResource4"></asp:BoundField>
                                                                                    <asp:TemplateField HeaderText="Date Of Birth" meta:resourcekey="TemplateFieldResource1">
                                                                                        <ItemTemplate>
                                                                                            <asp:Label ID="DateOfBirthGridLabel" runat="server" Text='<%# GetDateValue(((DateTime)DataBinder.Eval(Container.DataItem,"DateOfBirth"))) %>'
                                                                                                meta:resourcekey="DateOfBirthGridLabelResource1"></asp:Label>
                                                                                        </ItemTemplate>
                                                                                        <HeaderStyle HorizontalAlign="Center" Width="80px" />
                                                                                        <ItemStyle HorizontalAlign="Center" />
                                                                                    </asp:TemplateField>
                                                                                    <asp:BoundField DataField="BloodGroup" HeaderText="BloodGroup" meta:resourcekey="BoundFieldResource5"></asp:BoundField>
                                                                                    <asp:BoundField DataField="Occupation" HeaderText="Occupation" meta:resourcekey="BoundFieldResource5"></asp:BoundField>
                                                                                </Columns>
                                                                                <PagerSettings Visible="False" />
                                                                            </asp:GridView>
                                                                                  </div>
                                                                        </div>
                                                                    </div>
                                                                </asp:Panel>
                                                                <div class="spacer">
                                                                    <img src="../../../Images/spacer.gif" />
                                                                </div>
                                                                <div id="RelationDiv" runat="server" visible="false"><%-- mantis- 0032015 Add New row "--%>
                                                                    <div class="outerBox pTop5 col-md-3">
                                                                        <div class="controlLabelWidth">
                                                                            <asp:Label ID="RelationLabel" runat="server"  Text="Relation"
                                                                                meta:resourcekey="RelationLabelResource1" Visible="false"></asp:Label><%-- mantis- 0032015 Add Visible="false" & remove SkinID="MandatoryLabel"--%>
                                                                            <asp:Label ID="Relationlbl" runat="server" Text="Relation" class="mandatory" Visible="false"></asp:Label><%-- mantis- 0032015 Add New row "--%>
                                                                        </div>
                                                                        <div class="fLeft pRight5">
                                                                            <asp:DropDownList runat="server" ID="RelationDropDownList" AutoPostBack="False" onmouseleave="showHideTooltip()" CssClass="form-control"
                                                                                onmouseenter="showHideTooltip()" meta:resourcekey="RelationDropDownListResource1">
                                                                            </asp:DropDownList>
                                                                            <asp:HiddenField ID="EmployeeDateOfBirthHiddenField" runat="server" />
                                                                            <asp:HiddenField ID="EmployeeMaritalStatusHiddenField" runat="server" />
                                                                            <asp:HiddenField ID="EmployeeGenderHiddenField" runat="server" />
                                                                            <asp:HiddenField ID="EmployeeAgeHiddenField" runat="server" />
                                                                        </div>
                                                                        <asp:HiddenField runat="server" ID="HiddenFieldID" Value="0" />
                                                                    </div>
                                                                </div>
                                                                <div id="NameDiv" runat="server" visible="false"><%-- mantis- 0032015 Add New row "--%>
                                                                    <div class="outerBox pTop5 col-md-3">
                                                                        <div class="controlLabelWidth">
                                                                            <asp:Label ID="Label1" runat="server" Text="Name" meta:resourcekey="NameLabelResource1" Visible="false"></asp:Label><%-- mantis- 0032015 Add Visible="false" & remove SkinID="MandatoryLabel"--%>
                                                                            <asp:Label ID="Labellbl1" runat="server" Text="Name" class="mandatory" Visible="false"></asp:Label><%-- mantis- 0032015 Add New row "--%>
                                                                        </div>
                                                                        <div class="fLeft pRight5">
                                                                            <asp:TextBox ID="SposeNameTextBox" runat="server" SkinID="CustomWidthTextBox"
                                                                                MaxLength="100" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                                meta:resourcekey="NameTextBoxResource1"></asp:TextBox>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div id="BloodGroupDiv" runat="server" Visible="false" >
                                                                    <div class="outerBox pTop5 col-md-3">
                                                                        <div class="controlLabelWidth">
                                                                            <%--<asp:Label ID="BloodGroupLabel" runat="server" Text="Blood Group"></asp:Label>--%>
                                                                            <asp:Label ID="BloodGroupLabel" runat="server" Text="Blood Group" meta:resourcekey="MiddleNameLabelResource1" Visible="false" ></asp:Label>
                                                                            <asp:Label ID="BloodGrouplbl" runat="server" Text="Blood Group" class="mandatory" Visible="false"></asp:Label>
                                                                        </div>
                                                                        <div class="fLeft pRight5">
                                                                            <asp:DropDownList runat="server" ID="BloodGroupDropDownList" onmouseleave="showHideTooltip()" CssClass="form-control"
                                                                                onmouseenter="showHideTooltip()" meta:resourcekey="BloodGroupDropDownListResource1">
                                                                            </asp:DropDownList>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="cBoth">
                                                                </div>
                                                                <div class="cBoth">
                                                                </div>
                                                                <div id="DateOfBirthDiv" runat="server" visible="false">
                                                                    <div class="outerBox pTop5 col-md-3">
                                                                        <div class="controlLabelWidth">
                                                                            <%--<asp:Label ID="DateOfBirthLabel" runat="server" Text="Date of Birth" meta:resourcekey="DateOfBirthLabelResource1"></asp:Label>--%>
                                                                            <asp:Label ID="DateOfBirthLabel" runat="server" Text="Date of Birth" meta:resourcekey="MiddleNameLabelResource1" Visible="false"></asp:Label>
                                                                            <asp:Label ID="DateOfBirthlbl" runat="server" Text="Date of Birth" class="mandatory" Visible="false"></asp:Label>
                                                                        </div>
                                                                        <div class="fLeft pRight5">
                                                                            <DPC:DatePickerControl ID="DateOfBirthTextBox" runat="server" DisplayDatePicker="true"
                                                                                OnTextChanged="DateOfBirthTextBox_OnTextChanged" AutoPostBack="true"/>
                                                                        </div>
                                                                    </div>
                                                                    <div class="outerBox pTop5 col-md-3">
                                                                        <div class="controlLabelWidth">
                                                                            <asp:Label ID="Label2" runat="server" Text="Age" meta:resourcekey="Label1Resource1"></asp:Label>
                                                                        </div>
                                                                        <div class="fLeft pRight5">
                                                                            <asp:TextBox ID="AgeTextBox" runat="server" MaxLength="3" SkinID="CustomWidthTextBox"
                                                                               onblur="javascript:return fnValidateInteger(this,3)" onKeypress="javascript:return MaskInteger(event,3)"
                                                                                onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" meta:resourcekey="AgeTextBoxResource1"></asp:TextBox>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div id="OccupationDiv" runat="server" visible="false">
                                                                    <div class="outerBox pTop5 col-md-3">
                                                                        <div class="controlLabelWidth">
                                                                            <%--<asp:Label ID="Label3" runat="server" Text="Occupation" meta:resourcekey="Label1Resource1"></asp:Label>--%>
                                                                            <asp:Label ID="OccupationLabel" runat="server" Text="Occupation" meta:resourcekey="MiddleNameLabelResource1" Visible="false"></asp:Label>
                                                                            <asp:Label ID="Occupationlbl" runat="server" Text="Occupation" class="mandatory" Visible="false"></asp:Label>
                                                                        </div>
                                                                        <div class="fLeft pRight5">
                                                                            <asp:TextBox ID="OccupationTextBox" runat="server" SkinID="CustomWidthTextBox"
                                                                                onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" meta:resourcekey="AgeTextBoxResource1">
                                                                            </asp:TextBox>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="cBoth">
                                                                </div>
                                                                <div class="cBoth">
                                                                </div>
                                                                <div class="alignCenter pTop5">
                                                                    <asp:Button ID="AddButton" runat="server" CssClass="btn btn-add fas" Text="&#xf067; Add" SkinID="0" OnClick="AddButton_OnClick"
                                                                        meta:resourcekey="AddButtonResource1"/>
                                                                    <asp:Button ID="ResetButton" runat="server" Text="&#xf0e2; Reset" CssClass="btn-reset btn fas" SkinID="0" OnClick="ClearButton_OnClick"
                                                                        meta:resourcekey="ClearButtonResource1"/>
                                                                </div>
                                                                <div class="cBoth">
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </asp:Panel>
                                                <div class="spacer">
                                                    <img src="../../../Images/spacer.gif" />
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </asp:Panel>
                        </div>
                    </div>
                </div>
                
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/candidate-master")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>   
</asp:Content>
