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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ 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/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl" TagPrefix="DPC" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <style type="text/css">
        body {
            margin: 0;
            padding: 0;
            height: 100%;
        }

        .modal {
            display: none;
            position: absolute;
            top: 0px;
            left: 0px;
            background-color: black;
            z-index: 100;
            opacity: 0.8;
            filter: alpha(opacity=60);
            -moz-opacity: 0.8;
            min-height: 100%;
        }

        #divImage {
            display: none;
            z-index: 9999999;
            position: fixed;
            top: 0 !important;
            left: 0 !important;
            background-color: White;
            height: 100%;
            width: 600px;
            padding: 3px;
            border: solid 1px black;
            background: #33333375;
            width: 100%;
        }
    </style>

    <link href="../../../App_Themes/responsiv-popup.css" rel="stylesheet" />
    <asp:UpdatePanel ID="UploadStudenDocumentUpdatePanel" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">
                <!-- ContentPlaceHolder Box Starts -->

                <div class="dashBoardLeftCont">
                    <div class="himssuHeader3WireBox">
                        <table>
                            <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="himssuHeader5WireBox card card-box">
                        <div id="abc" runat="server" class="himsBoxHeader card-head">
                            <div class="leftdiv">
                            </div>
                            <div class="himsBoxTitle">
                                <div id="codeHeader" class="headerText">
                                    <header>
                                        <i class="fas fa-images"></i>
                                        Upload Employee Document
                                    </header>
                                </div>
                            </div>
                        </div>
                        <asp:HiddenField ID="AttachmentSizeHiddenField" runat="server" />
                        <cc1:TabContainer ID="UploadEmployeeDocumentTabContainer" runat="server"
                            CssClass="ajax__myTab nav nav-tabs tabs-style-iconbox ajax__tab_container ajax__tab_default"
                            ActiveTabIndex="0">
                            <cc1:TabPanel ID="UploadEmployeeDocument1" runat="server" HeaderText="Upload Employee Document">
                                <HeaderTemplate>
                                    <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                        <li class="fancyTab"><a><i class="fas fa-images"></i>&nbsp;Upload Employee Document</a></li>
                                    </ul>
                                </HeaderTemplate>
                                <ContentTemplate>
                                    <div class="himsBoxContent card-body">
                                        <asp:Panel ID="DetailPanel" runat="Server">
                                            <div class="col-md-12">
                                                <div class="alert alert-warning">
                                                    <asp:Label ID="Note2" runat="server" Text="* Give Employee Code as file Name for Employee Document"></asp:Label>
                                                    <br />
                                                    <asp:Label ID="Note4" runat="server" Text="* Validate Document Extension : .jpeg, .jpg, .pdf, .docx"></asp:Label>
                                                    <br />
                                                    <asp:Label ID="Note5" runat="server" Text="* Add Code with . Dot seperation (Eg. 2.5.10) OR , Comma seperation (Eg. 2,5,10)"></asp:Label>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="DocumentLabel" runat="server" Text="Document" SkinID="MandatoryLabel"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList runat="server" ID="DocumentDropDownList" SkinID="CustomWidthDropDownList"
                                                        CssClass="form-control" onmouseleave="showHideTooltip()" AutoPostBack="true" onmouseenter="showHideTooltip()">
                                                    </asp:DropDownList>
                                                </div>
                                                <br />
                                                <asp:Label ID="Label2" runat="server" Text="" Style="padding-left: 10px; font-size: medium;"></asp:Label>
                                            </div>
                                            <div class="col-md-12 alignCenter pTop15 pb15">
                                                <a href="javascript:;" onclick="OpenFileUploadDocument1();" class="btn btn-browser" id="BrowseButton" runat="server">
                                                    <i class="fa fa-arrow-down"></i>Browse</a>
                                                <asp:FileUpload ID="NewUpload" runat="server" onChange="readURLGrid4(this);" ClientIDMode="Static" Style="display: none;" AllowMultiple="true" />
                                                <asp:Button ID="RefreshButton" runat="server" OnClick="RefreshButton_Click" Text="&#xf2f9; Refresh" CssClass="btn-refresh btn fas" SkinID="0" />
                                                <asp:Button ID="UploadButton" runat="server" OnClick="UploadButton_Click" SkinID="0" CssClass="btn btn-upload fas" Text="&#xf093; Upload" />
                                                <asp:Button ID="ClearButton" runat="server" OnClick="ClearButton_Click1" SkinID="0" Text="&#xf2f9; Clear" CssClass="btn-refresh btn fas" />
                                                <asp:HiddenField ID="UserSourceTypeHiddenField" runat="server" />
                                                <asp:HiddenField ID="UserSourceIdHiddenField" runat="server" />
                                                <asp:HiddenField ID="DocumentNameHiddenField" runat="server" />
                                                <asp:HiddenField ID="UploadConfigurationHiddenField" runat="server" />
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <asp:Label ID="RemoveDocumentLabel" runat="server" Font-Size="Small" Text="Enter Code for Remove"></asp:Label>
                                                <asp:TextBox ID="RemoveDocumentTextBox" runat="server" meta:resourcekey="FirstNameTextBoxResource1"
                                                    onmouseenter="showHideTooltip()" onmouseleave="showHideTooltip()" SkinID="CustomWidthTextBox">
                                                </asp:TextBox>
                                            </div>
                                            <div class="outerBox pTop15 col-md-3">
                                                <asp:Button ID="RemoveButton" runat="server" OnClick="RemoveButton_Click" SkinID="0" CssClass="btn btn-delete fas" Text="&#xf00d; Remove Document" />
                                                <br />
                                            </div>
                                            <div class="outerBox pTop15 col-md-3">
                                                <asp:Button ID="AddPhotoButton" runat="Server" OnClick="AddPhotoButton_Click" SkinID="0" Text="Add Photo" Visible="false" />
                                                <asp:Label ID="Label1" runat="server" Text="" Style="padding-left: 10px; font-size: medium;"></asp:Label>
                                            </div>
                                            <div id="UploadEmployeePhotoGridDiv" runat="server" visible="false">
                                                <div class="himssuHeader6WireBox col-md-12 pTop5">
                                                    <div id="EmployeeDiv" runat="server" class="himsBoxHeader" visible="false">
                                                        <div class="leftdiv">
                                                        </div>
                                                        <div class="himsBoxTitle">
                                                            <div class="gridHeaderText">
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="himsBoxContent width-100">
                                                        <div id="Div5" runat="server">
                                                            <asp:GridView ID="DocumentGridView" runat="server" AutoGenerateColumns="False"
                                                                ShowHeader="true" EmptyDataText="No Files Uploaded" DataKeyNames="FileName"
                                                                CssClass="table table-striped table-bordered" OnRowDataBound="DocumentGridView_RowDataBound">
                                                                <Columns>
                                                                    <asp:BoundField DataField="FileName" HeaderText="Document Name" ItemStyle-HorizontalAlign="Left"
                                                                        HeaderStyle-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>
                                                                </Columns>
                                                            </asp:GridView>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </asp:Panel>
                                    </div>
                                </ContentTemplate>
                            </cc1:TabPanel>
                            <cc1:TabPanel ID="UploadEmployeeDocument2" runat="server" HeaderText="Download Employee Document">
                                <HeaderTemplate>
                                    <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                        <li class="fancyTab"><a><i class="fas fa-images"></i>&nbsp; Download Employee Document</a></li>
                                    </ul>
                                </HeaderTemplate>
                                <ContentTemplate>
                                    <div class="himsBoxContent card-body">
                                        <asp:Panel ID="Panel1" runat="Server">
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="DocumentLabel1" runat="server" Text="Document"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList runat="server" ID="SearchDocumentDropDownList" SkinID="CustomWidthDropDownList"
                                                        CssClass="form-control" onmouseleave="showHideTooltip()" AutoPostBack="true" onmouseenter="showHideTooltip()">
                                                    </asp:DropDownList>
                                                </div>
                                                <br />
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="EmployeeCodeLabel" runat="server" Text="Employee Code" meta:resourcekey="EmployeeCodeLabelResource1"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="EmployeeCodeTextBox" runat="server" onmouseleave="showHideTooltip()" SkinID="CustomWidthTextBox"
                                                        onmouseenter="showHideTooltip()" meta:resourcekey="EmployeeCodeSearchTextBoxResource1"
                                                        MaxLength="20"></asp:TextBox>
                                                </div>
                                            </div>
                                            <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="FirstNameTextBox" 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="LastNameTextBox" SkinID="CustomWidthTextBox" runat="server"
                                                        onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" meta:resourcekey="LastNameTextBoxResource1"
                                                        MaxLength="100"></asp:TextBox>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="DepartmentLabel" runat="server" Text="Department" SkinID="MandatoryLabel"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList runat="server" ID="DepartmentDropDownList" SkinID="CustomWidthDropDownList"
                                                        CssClass="form-control" onmouseleave="showHideTooltip()" AutoPostBack="true" onmouseenter="showHideTooltip()">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="StatusLabel" runat="server" Text="Status"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList runat="server" ID="StatusDropDownList" SkinID="CustomWidthDropDownList"
                                                        CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-6">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="SearchCodeLabel" runat="server" Text="Code <b>[Add ID No with . Dot seperation (Eg. 2. 5. 10)]</b>"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="SearchCodeTextBox" runat="server" onmouseleave="showHideTooltip()"
                                                        SkinID="CustomWidthTextBox" Width="440px" onmouseenter="showHideTooltip()"></asp:TextBox>
                                                </div>
                                            </div>
                                            <div class="alignCenter col-md-12 pTop5 pb5">
                                                <asp:Button ID="SearchButton" runat="server" Text="&#xf002; Search" OnClick="SearchButton_Click"
                                                    SkinID="0" CssClass="btn-search btn fas" />
                                                <asp:Button ID="ClearButton1" runat="server" Text="&#xf0e2; Reset" OnClick="ResetButton_Click"
                                                    meta:resourcekey="ClearButtonResource1" SkinID="0" CssClass="btn-reset btn fas" />
                                                <div class="d-inline-block">
                                                    <asp:UpdatePanel runat="server">
                                                        <ContentTemplate>
                                                            <asp:Button ID="DownLoadButton" runat="server" SkinID="0" CssClass="btn btn-download fas"
                                                                Text="&#xf019; Download" OnClick="DownLoadButton_Click" />
                                                           
                                                        </ContentTemplate>
                                                        <Triggers>
                                                            <asp:PostBackTrigger ControlID="DownLoadButton" />
                                                        </Triggers>
                                                    </asp:UpdatePanel>
                                                    <asp:UpdatePanel runat="server">
                                                        <ContentTemplate>
                                                             <asp:Button ID="DownLoadAllBatchButton" runat="server" SkinID="0" CssClass="btn btn-download fas"
                                                                Text="&#xf019; Download" OnClick="DownLoadAllBatchButton_Click" />
                                                        </ContentTemplate>
                                                        <Triggers>
                                                            <asp:PostBackTrigger ControlID="DownLoadAllBatchButton" />
                                                        </Triggers>
                                                    </asp:UpdatePanel>
                                                </div>
                                                <div id="EmployeeMasterGridDiv" runat="server" visible="false">
                                                    <div class="himssuHeader7WireBox col-md-12 pTop5">
                                                        <div class="himsBoxHeader" id="Div1" visible="false" runat="server">
                                                            <div class="leftdiv">
                                                            </div>
                                                            <div class="himsBoxTitle">
                                                                <div class="headerText">
                                                                    <div>
                                                                        <asp:Label ID="GridViewLabel" Text="" runat="server" Font-Bold="true" />
                                                                    </div>
                                                                </div>
                                                                <div class="col-md-12 padd-0">
                                                                </div>
                                                            </div>
                                                        </div>

                                                        <div class="himsBoxContent  pTop5">
                                                            <div class="col-md-12">
                                                                <div class="alert alert-warning" style="margin-bottom: auto;">
                                                                    <asp:Label ID="Label3" runat="server" Text="* Please select at list one checkbox  for download images"></asp:Label>
                                                                </div>
                                                            </div>
                                                            <div id="Div2" runat="server" class="table-responsive ">
                                                                <asp:GridView ID="EmployeeDocumentSearchGridView" runat="server" AutoGenerateColumns="False"
                                                                    DataKeyNames="EmployeeId,Code"
                                                                    SkinID="" ShowHeader="True" CssClass="table table-striped table-bordered table-hover">
                                                                    <Columns>
                                                                        <asp:TemplateField ItemStyle-Width="3%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true"
                                                                            HeaderStyle-HorizontalAlign="Center">
                                                                            <HeaderTemplate>
                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="HeaderCheckBox" Enabled="true" onclick="CheckAll(this);" runat="server" />
                                                                                    <span></span>
                                                                                </label>
                                                                            </HeaderTemplate>
                                                                            <ItemTemplate>
                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="SelectCheckBox" runat="server" />
                                                                                    <span></span>
                                                                                </label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>

                                                                        <asp:BoundField DataField="Code" HeaderText="Employee Code" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left"
                                                                            ItemStyle-Width="10%" />
                                                                        <asp:BoundField DataField="Name" HeaderText="Employee Name" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left"
                                                                            ItemStyle-Width="40%" />
                                                                        <asp:BoundField DataField="DepartmentName" HeaderText="Department Name" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left"
                                                                            ItemStyle-Width="10%" />
                                                                        <asp:BoundField DataField="DocumentName" HeaderText="Document Name" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left"
                                                                            ItemStyle-Width="20%" />
                                                                    </Columns>
                                                                </asp:GridView>
                                                            </div>
                                                            <div id="Div3" runat="server" class="table-responsive ">
                                                                <asp:GridView ID="EmployeeAllBatchDocumentSearchGridView" runat="server" AutoGenerateColumns="False"
                                                                    DataKeyNames="Id,Code,OrgGroupBatchId"
                                                                    SkinID="" ShowHeader="True" CssClass="table table-striped table-bordered table-hover">
                                                                    <Columns>
                                                                        <asp:TemplateField ItemStyle-Width="3%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true"
                                                                            HeaderStyle-HorizontalAlign="Center">
                                                                            <HeaderTemplate>
                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="HeaderCheckBox" Enabled="true" onclick="CheckAll(this);" runat="server" />
                                                                                    <span></span>
                                                                                </label>
                                                                            </HeaderTemplate>
                                                                            <ItemTemplate>
                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="SelectCheckBox" runat="server" />
                                                                                    <span></span>
                                                                                </label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>

                                                                        <asp:BoundField DataField="Code" HeaderText="Employee Code" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left"
                                                                            ItemStyle-Width="10%" />
                                                                        <asp:BoundField DataField="Name" HeaderText="Employee Name" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left"
                                                                            ItemStyle-Width="40%" />
                                                                        <asp:BoundField DataField="DepartmentName" HeaderText="Department Name" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left"
                                                                            ItemStyle-Width="10%" />
                                                                        <asp:BoundField DataField="DocumentName" HeaderText="Document Name" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left"
                                                                            ItemStyle-Width="20%" />
                                                                    </Columns>
                                                                </asp:GridView>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </asp:Panel>
                                    </div>
                                </ContentTemplate>
                            </cc1:TabPanel>
                        </cc1:TabContainer>
                    </div>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <script type="text/javascript">
        function OpenFileUploadDocument1() {
            var a = $('#ctl00_CP_UploadEmployeeDocumentTabContainer_UploadEmployeeDocument1_DocumentDropDownList').val();
            if (a > 0) {
                OpenFileUploadGrid4(a);
            }
            else {
                alert('Please Select Document..!!');
            }
        }
    </script>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/document")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
