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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <%--  <link href="../../../App_Themes/responsiv-popup.css" rel="stylesheet" />
    <div id="dvTestLoadingmsg" class="hls-wrap">
        <div class="hls-container">
            <div class="hls-content">
                <div class="dsh-syndicate white-popup" style="display: inline-block; width: 119%; height: 150px">
                    <div class="shippingcard" style="text-align: center; vertical-align: middle; width: 100%;">
                        <span id="spn1msg">Loading Details</span><br>
                        <span style="line-height: 2;" id="spn2msg"><b>Please Wait ...</b></span><br>
                        <span id="spnloadingimgOPD">
                            <img src="../../../Images/Loading1.gif" /></span>
                    </div>
                </div>
            </div>
        </div>
    </div>--%>
    <asp:UpdatePanel ID="HREmployeeMasterSearchUpdatePanel" runat="server">
        <ContentTemplate>
            <div>
                <asp:Panel ID="employeesearchdetailpanel" runat="server" meta:resourcekey="employeesearchdetailpanelresource1">
                    <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="164"
                                                        Visible="true" runat="server" />
                                                </div>
                                            </div>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </div>
                        <div class="row whiteboxpaddingleft">
                            <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>
                                                <i class="fas fa-info-circle"></i>
                                                <asp:Label ID="Label4" Text="Employee Detail" runat="server" />
                                            </header>
                                        </div>
                                    </div>
                                    <div class="fRight mt-27 pagination display-flex">
                                        <%--<asp:ImageButton AlternateText="First page" ToolTip="First page" ID="FirstRecordImageButton"
                                                        runat="server" ImageUrl="~/Images/arrowLlast.gif" OnClick="FirstRecordImageButton_Click" />
                                                    <asp:ImageButton AlternateText="Previous page" ToolTip="Previous page" ID="PreviousImageButton"
                                                        runat="server" ImageUrl="~/Images/arrowLeft.gif" OnClick="PreviousImageButton_Click" />
                                                    <asp:Label ID="LabelPage" runat="server" Text="Record " AssociatedControlID="ReCordNumber" />
                                                    <asp:Label ID="ReCordNumber" Font-Bold="true" SkinID="Dummy" runat="server"></asp:Label>
                                                    <asp:Label ID="ofLabel" Text="of" runat="server" />
                                                    <asp:Label ID="TotalRecord" runat="server" />
                                                    <asp:ImageButton AlternateText="Next page" ToolTip="Next page" ID="NextImageButtom"
                                                        runat="server" ImageUrl="~/Images/arrowRight.gif" OnClick="NextImageButton_Click" />
                                                    <asp:ImageButton AlternateText="Last page" ToolTip="Last page" ID="LastRecordImageButton"
                                                        runat="server" ImageUrl="~/Images/arrowRLast.gif" OnClick="LastRecordImageButton_Click" />--%>


                                        <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>
                                            &nbsp;
                                                <asp:Label ID="LabelPage" runat="server" Text="Record " AssociatedControlID="ReCordNumber" />
                                            <asp:Label ID="ReCordNumber" Font-Bold="true" SkinID="Dummy" runat="server"></asp:Label>
                                            <asp:Label ID="ofLabel" Text="of" runat="server" />
                                            <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>

                                        <td>
                                            <asp:Button ID="BackButton" runat="Server" OnClick="BackButton_Click" SkinID="0" CssClass="btn btn-back fas" Text="&#xf30a;  back" />
                                        </td>

                                    </div>
                                </div>
                                <div class="himsBoxContent card-body">
                                    <asp:Panel ID="DetailPanel" runat="Server">
                                        <div class="contentHolder">
                                            <div class="topdisplayContainer" style="width: 100%">
                                                <table>
                                                    <tr>
                                                        <td>
                                                            <div class="himsDisplayBox">
                                                                <div style="margin-top: 0px">
                                                                </div>
                                                                <div class="himsBoxContent messageMessage">
                                                                    <div class="topdisplayContainer p-l-10">
                                                                        <table class="fLeft">
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:Label ID="CodeLabelL" runat="server" Text="Code :" Font-Bold="true"></asp:Label>
                                                                                    &nbsp;&nbsp;
                                                                                    <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>
                                                                                    &nbsp;&nbsp;
                                                                                    <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>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </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="&#xf0f2; Job" ID="EmployeeJobDetailButton" CssClass="transparenttab fas" OnClick="EmployeeJobDetailButton_Click"
                                                                SkinID="0" runat="server" />
                                                        </a>
                                                    </li>
                                                    <li>
                                                        <a href="#tab_1">
                                                            <asp:Button Text="&#xf007; Personal" ID="EmployeePersonalDetailButton" CssClass="transparenttab fas"
                                                                OnClick="EmployeePersonalDetailButton_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="&#xf044; Statutory" ID="StatutoryButton" CssClass="transparenttab fas" OnClick="Statutory_Click"
                                                                SkinID="0" runat="server" />
                                                        </a>
                                                    </li>
                                                    <li>
                                                        <a href="#tab_1">
                                                            <asp:Button Text="&#xf007; 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>
                                                        <a href="#tab_1">
                                                            <asp:Button Text="&#xf0c0; Family" ID="FamilyButton" CssClass="transparenttab fas" OnClick="Family_Click"
                                                                SkinID="0" runat="server" />
                                                        </a>
                                                    </li>
                                                    <li class="active">
                                                        <a href="#tab_1">
                                                            <asp:Button Text="&#xf15b; Document" ID="DocumentButton" CssClass="transparenttab fas" OnClick="Document_Click"
                                                                SkinID="0" runat="server" />
                                                        </a>
                                                    </li>
                                                    <li>
                                                        <a href="#tab_1">
                                                            <asp:Button Text="Health" ID="HealthButton" CssClass="transparenttab fas" OnClick="Health_Click"
                                                                SkinID="0" runat="server" Visible="false" />
                                                        </a>
                                                    </li>
                                                </ul>
                                            </div>
                                            <table width="100%" style="width: 100%">
                                                <tr>
                                                    <td style="vertical-align: top; border-top: 0px solid #68C4C4 !important; margin-top: -5px">
                                                        <asp:HiddenField ID="UserSourceTypeHiddenField" runat="server" />
                                                        <asp:HiddenField ID="UserSourceIdHiddenField" runat="server" />
                                                        <asp:HiddenField ID="DocumentNameHiddenField" runat="server" />
                                                        <asp:HiddenField ID="UploadConfigurationHiddenField" runat="server" />
                                                        <asp:HiddenField ID="ScreenIdHiddenField" runat="server" />
                                                        <asp:HiddenField ID="AttachmentSizeHiddenField" runat="server" />
                                                        <asp:Panel ID="PanEnable" runat="server" meta:resourcekey="PanEnableResource1" Visible="false">
                                                            <div class="himssuHeader1WireBox">
                                                                <div class="himsBoxContent">
                                                                    <div class="contentHolder">
                                                                        <div class="outerBox pTop5">
                                                                            <div class="controlLabelWidth">
                                                                                <a href="javascript:;" onclick="OpenFileUpload();" class="btn btn-browser">
                                                                                    <i class="fa fa-arrow-down"></i>Browse</a>
                                                                                <asp:FileUpload ID="flUpload" runat="server" onChange="readURL(this);" ClientIDMode="Static" Style="display: none;" AllowMultiple="true" />
                                                                                <asp:Label ID="Label2" runat="server" Text="" Style="padding-left: 10px; font-size: medium;"></asp:Label>
                                                                            </div>
                                                                        </div>
                                                                        <div class="outerBox pTop5">
                                                                            <div class="controlLabelWidth">
                                                                                <asp:Button runat="server" ID="RefreshButton" OnClick="RefreshButton_OnClick" CssClass="btn-refresh btn fas" Text="&#xf2f9; Refresh"
                                                                                    SkinID="0" />
                                                                                <asp:Button runat="server" ID="UploadButton" OnClick="UploadButton_Click" CssClass="btn-upload btn fas" Text="&#xf093; Upload"
                                                                                    SkinID="0" />

                                                                            </div>
                                                                        </div>
                                                                        <div class="cBoth">
                                                                        </div>
                                                                        <div id="Div11" class="himssuHeader6WireBox col-md-12" runat="server">
                                                                            <div id="UploadDiv" visible="false" runat="server">
                                                                                <div class="spacer">
                                                                                    <asp:Image ID="Image6" runat="server" ImageUrl="~/Images/spacer.gif" />
                                                                                </div>
                                                                                <div class="himsBoxHeader card-head inner" id="HeaderDiv" visible="false" runat="server">
                                                                                    <div class="leftdiv">
                                                                                    </div>
                                                                                    <div class="himsBoxTitle" style="width: 99%">
                                                                                        <div class="headerText">
                                                                                            <div>
                                                                                                <header>
                                                                                                    <asp:Label ID="Label7" Text="File List" runat="server" Font-Bold="true" />
                                                                                                </header>
                                                                                            </div>
                                                                                        </div>
                                                                                    </div>
                                                                                </div>
                                                                                <div class="himsBoxContent">
                                                                                    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Always">
                                                                                        <ContentTemplate>
                                                                                            <div id="GridViewDiv" runat="server" visible="false">
                                                                                                <div id="Div1" runat="server" class="table-responsive">
                                                                                                    <asp:GridView ID="FileGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                                                        CssClass="table table-striped table-bordered table-hover" ShowHeader="true" PagerSettings-Visible="false" EmptyDataText="No Files Uploaded">
                                                                                                        <Columns>
                                                                                                            <asp:TemplateField HeaderText="File Name" ItemStyle-Width="90%" HeaderStyle-HorizontalAlign="Left"
                                                                                                                ItemStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                                                                                                                <ItemTemplate>
                                                                                                                    <asp:HyperLink ID="FileNameHyperLink" runat="server" Text='<%# Eval("FileName") %>'
                                                                                                                        NavigateUrl='<%# Eval("FilePath") %>' Target="_blank"></asp:HyperLink>
                                                                                                                </ItemTemplate>
                                                                                                            </asp:TemplateField>
                                                                                                            <asp:TemplateField HeaderText="Delete" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Center"
                                                                                                                ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                                                                <ItemTemplate>
                                                                                                                    <asp:ImageButton ID="DeleteImageButton" runat="server" OnClick="DeleteImageButton_OnClick"
                                                                                                                        ToolTip="Delete" ImageUrl="~/Images/Del.png" />
                                                                                                                </ItemTemplate>
                                                                                                            </asp:TemplateField>
                                                                                                        </Columns>
                                                                                                    </asp:GridView>
                                                                                                </div>
                                                                                            </div>
                                                                                        </ContentTemplate>
                                                                                    </asp:UpdatePanel>
                                                                                </div>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </asp:Panel>
                                                        <asp:Panel runat="server" meta:resourcekey="PanEnableResource1" ID="Documentsubmitpanel" Visible="false">
                                                            <div class="himssuHeader1WireBox">
                                                                <div class="himsBoxContent">
                                                                    <div class="contentHolder">
                                                                        <div class="himssuHeader6WireBox" runat="server" style="width: 100%; margin-right: 5px;">
                                                                            <div>
                                                                                <div class="himsBoxHeader card-head inner">
                                                                                    <div class="leftdiv">
                                                                                    </div>
                                                                                    <div class="himsBoxTitle" style="width: 99%">
                                                                                        <%-- <div class="headerText ">
                                                                                            <div>
                                                                                                <header>
                                                                                                <asp:Label ID="Label1" Text="Document List" runat="server" Font-Bold="true" Style="margin-left: 15px;" />
                                                                                                    </header>
                                                                                            </div>
                                                                                        </div>--%>
                                                                                    </div>
                                                                                    <div class="outerBox alignCenter" id="LocalStorageDiv" runat="server" visible="false">
                                                                                        <asp:Button runat="server" ID="DocumentUploadButton" OnClick="DocumentUploadButton_Click"
                                                                                            SkinID="0" CssClass="btn-upload btn fas" Text="&#xf093; Upload" />
                                                                                        <asp:Button runat="server" ID="SaveButton" OnClick="SaveButton_Click" SkinID="0" CssClass="btn-save btn fas" Text="&#xf0c7; Save" />

                                                                                    </div>
                                                                                    <div class="mt-10 alignCenter pb15 width-100" id="AzureUploadDiv" runat="server" visible="true">
                                                                                        <asp:Button runat="server" ID="EmployeeDocumentUploadButton" Text="&#xf093; Upload" OnClick="EmployeeDocumentUploadButton_Click"
                                                                                            SkinID="0" CssClass="btn btn-upload fas" />
                                                                                        <asp:Button runat="server" ID="EmployeeSaveButton" Text="&#xf0c7; Save" OnClick="EmployeeSaveButton_Click"
                                                                                            SkinID="0" CssClass="btn btn-save fas" />
                                                                                         <asp:Button runat="server" ID="DownloadDocument" Text="&#xf0c7; Save" OnClick="DownloadDocument_Click"
                                                                                            SkinID="0" CssClass="btn btn-save fas d-none" Style="display: none;"/>
                                                                                    </div>
                                                                                </div>
                                                                                <div class="himsBoxContent col-md-12 pTop10">
                                                                                    <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Always">
                                                                                        <ContentTemplate>
                                                                                            <div id="Div5" runat="server">
                                                                                                <div id="Div2" runat="server" class="table-responsive">
                                                                                                    <asp:GridView ID="DocumentGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                                                        ShowHeader="true" PagerSettings-Visible="false" EmptyDataText="No Files Uploaded" CssClass="table table-striped table-bordered table-hover"
                                                                                                        DataKeyNames="DocumentId,FileName" OnRowDataBound="DocumentGridView_RowDataBound">
                                                                                                        <Columns>
                                                                                                            <asp:TemplateField HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="5%">
                                                                                                                <HeaderTemplate>
                                                                                                                    <label class="rt-chkbox rt-chkbox-outline">
                                                                                                                        <asp:CheckBox ID="HeaderSelectCheckBox" runat="server" onclick="checkallDocumnet(this);" />
                                                                                                                        <span></span>
                                                                                                                    </label>
                                                                                                                </HeaderTemplate>
                                                                                                                <ItemStyle HorizontalAlign="Center" />
                                                                                                                <ItemTemplate>
                                                                                                                    <label class="rt-chkbox rt-chkbox-outline">
                                                                                                                        <asp:CheckBox ID="SelectCheckBox" runat="server" Checked='<%# Convert.ToBoolean(Eval("IsCheck")) %>' />
                                                                                                                        <span></span>
                                                                                                                    </label>
                                                                                                                </ItemTemplate>
                                                                                                            </asp:TemplateField>
                                                                                                            <asp:BoundField DataField="DocumentName" HeaderText="Document Name" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="30%" />
                                                                                                            <asp:TemplateField HeaderText="File Name" ItemStyle-Width="30%" HeaderStyle-HorizontalAlign="Left"
                                                                                                                ItemStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                                                                                                                <ItemTemplate>
                                                                                                                    <asp:HyperLink ID="UploadedFileHyperLink" runat="server" Text="" CssClass="UploadedgetHyperLink"
                                                                                                                        Target="_blank"></asp:HyperLink>
                                                                                                                </ItemTemplate>
                                                                                                            </asp:TemplateField>
                                                                                                            <asp:TemplateField HeaderText="Upload File" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Center"
                                                                                                                ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                                                                <ItemTemplate>
                                                                                                                    <a href="javascript:;" class="btn btn-browser" onclick='OpenFileUploadGrid2(<%#Eval("DocumentId")%>);'>
                                                                                                                        <i class="fa fa-arrow-down"></i>Browse</a>
                                                                                                                    <asp:FileUpload ID="NewUpload" runat="server" onChange="readURLGrid2(this);" ClientIDMode="Static" Style="display: none;" AllowMultiple="true" />
                                                                                                                    <asp:ImageButton ID="DocumentRefreshbutton" runat="server" OnClick="DocumentRefreshbutton_Click" Style="display: none;" />
                                                                                                                </ItemTemplate>
                                                                                                            </asp:TemplateField>
                                                                                                            <asp:TemplateField HeaderText="Delete" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Center"
                                                                                                                ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                                                                <ItemTemplate>
                                                                                                                    <asp:ImageButton ID="DeleteuploadedDocumnetImageButton" runat="server" OnClick="DeleteuploadedDocumnetImageButton_Click"
                                                                                                                        ToolTip="Delete" ImageUrl="~/Images/Del.png" />
                                                                                                                </ItemTemplate>
                                                                                                            </asp:TemplateField>
                                                                                                        </Columns>
                                                                                                    </asp:GridView>
                                                                                                    </div>
                                                                                                      <div id="Div3" runat="server" class="table-responsive">
                                                                                                      
                                                                                                    <asp:GridView ID="EmployeeDocumentMasterGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                                                        ShowHeader="true" PagerSettings-Visible="false" EmptyDataText="No Files Uploaded" CssClass="table table-striped table-bordered table-hover"
                                                                                                        DataKeyNames="DocumentId,FileName,OrgGroupBatchId,IsMigrate" >
                                                                                                        <Columns>
                                                                                                            <asp:TemplateField HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="5%">
                                                                                                                <HeaderTemplate>
                                                                                                                    <label class="rt-chkbox rt-chkbox-outline">
                                                                                                                        <asp:CheckBox ID="HeaderSelectCheckBox" runat="server" onclick="checkallDocumnet(this);" />
                                                                                                                        <span></span>
                                                                                                                    </label>
                                                                                                                </HeaderTemplate>
                                                                                                                <ItemStyle HorizontalAlign="Center" />
                                                                                                                <ItemTemplate>
                                                                                                                    <label class="rt-chkbox rt-chkbox-outline">
                                                                                                                        <asp:CheckBox ID="SelectCheckBox" runat="server" Checked='<%# Convert.ToBoolean(Eval("IsCheck")) %>' />
                                                                                                                        <span></span>
                                                                                                                    </label>
                                                                                                                </ItemTemplate>
                                                                                                            </asp:TemplateField>
                                                                                                            <asp:BoundField DataField="DocumentName" HeaderText="Document Name" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="10%" />
                                                                                                            <asp:BoundField DataField="FileName" HeaderText="File Name" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="10%" />
                                                                                                            <%--<asp:TemplateField HeaderText="File Name" ItemStyle-Width="30%" HeaderStyle-HorizontalAlign="Left"
                                                                                                                ItemStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                                                                                                                <ItemTemplate>
                                                                                                                    <asp:HyperLink ID="UploadedFileHyperLink" runat="server" Text="" CssClass="UploadedgetHyperLink"
                                                                                                                        Target="_blank"></asp:HyperLink>
                                                                                                                </ItemTemplate>
                                                                                                            </asp:TemplateField>--%>
                                                                                                             <asp:TemplateField HeaderText="" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left"
                                                                                                                ItemStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                                                                                                                <ItemTemplate>
                                                                                                                    <asp:LinkButton ID="DownloadLinkButton" runat="server" CommandName="Download" Text="Download" OnClick="DownloadLinkButton_Click"  Visible='<%# Convert.ToBoolean(!string.IsNullOrEmpty(Eval("FileName").ToString())) %>'
                                                                                                                        CausesValidation="false"></asp:LinkButton>
                                                                                                                </ItemTemplate>
                                                                                                            </asp:TemplateField>
                                                                                                            <asp:TemplateField HeaderText="Upload File" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Center"
                                                                                                                ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                                                                <ItemTemplate>
                                                                                                                    <a href="javascript:;" class="btn btn-browser" onclick='OpenFileUploadGrid6(<%#Eval("DocumentId")%>);'>
                                                                                                                        <i class="fa fa-arrow-down"></i>Browse</a>
                                                                                                                    <asp:FileUpload ID="NewUpload" runat="server" Visible='<%# Convert.ToBoolean(string.IsNullOrEmpty(Eval("FileName").ToString())) %>' onChange="readURLGrid6(this);" ClientIDMode="Static" Style="display: none;" AllowMultiple="true" />
                                                                                                                    <asp:ImageButton ID="EmployeeDocumentRefreshbutton" runat="server" OnClick="EmployeeDocumentRefreshbutton_Click" Style="display: none;" />
                                                                                                                </ItemTemplate>
                                                                                                            </asp:TemplateField>
                                                                                                            <asp:TemplateField HeaderText="Delete" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Center"
                                                                                                                ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                                                                <ItemTemplate>
                                                                                                                    <asp:ImageButton ID="DeleteuploadedDocumnetImageButton" runat="server" OnClick="DeleteEmployeeuploadedDocumnetImageButton_Click"
                                                                                                                        ToolTip="Delete" ImageUrl="~/Images/Del.png" />
                                                                                                                </ItemTemplate>
                                                                                                            </asp:TemplateField>
                                                                                                        </Columns>
                                                                                                    </asp:GridView>
                                                                                                </div>
                                                                                            </div>
                                                                                        </ContentTemplate>
                                                                                    </asp:UpdatePanel>
                                                                                </div>
                                                                            </div>
                                                                        </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>
                </asp:Panel>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../../JavaScript/rjs/document" src="../../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/document")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
