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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager" TagPrefix="uc1" %>
<%@ Register Src="~/UserControls/AutoComplete/AutoCompleteControl.ascx" TagName="AutoCompleteControl" TagPrefix="acc" %>
<%@ 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/DatePickerAutoPostBackControl.ascx" TagName="DatePickerControl" TagPrefix="Date" %>
<%@ Register Src="~/UserControls/Common/StudentSearch/StudentSearch.ascx" TagName="StudentSearch" TagPrefix="Std" %>
<%@ Register Src="~/UserControls/MessageBox/MessageBoxControl.ascx" TagName="MessageControl" TagPrefix="uc1" %>



<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">


    <asp:UpdatePanel ID="HREmployeeMasterSearchUpdatePanel" runat="server">
        <ContentTemplate>
            <Std:StudentSearch ID="StudentSearch" Visible="false" runat="server" />
            <Std:StudentSearch ID="StudentSearch1" Visible="false" runat="server" />
            <div id="divContentPage" class="divcontentpagemargin">

                <div class="dashBoardLeftCont" runat="server" id="ScreenGroupTableId">
                    <div class="himssuHeader3WireBox">
                        <table>
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl1"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="whiteboxpaddingleft row">
                    <div class="himssuHeader5WireBox card card-box">
                        <div class="himsBoxHeader card-head">
                            <asp:Panel ID="SearchHeaderPanel" runat="server" meta:resourcekey="SearchHeaderPanelResource1">

                                <div class="himsBoxTitle">
                                    <div class="headerText">
                                        <header>
                                            <i class="fas fa-list-ul"></i>
                                            <asp:Label ID="SearchHeaderLabel" runat="server" Text="My Leave Request"></asp:Label>
                                        </header>
                                    </div>
                                    <div class="fRight mt-27">
                                        <asp:Button ID="AddNewButtonID" runat="server" OnClick="AddNewButton_Click" SkinID="0" class="btn btn-add fas" Text="&#xf067; Add" />
                                    </div>
                                    <div class="fRight mt-27">
                                        <asp:Button ID="BackButton" runat="server" OnClick="BackButton_Click" SkinID="0" class="btn btn-back fas" Text="&#xf30a; Back" Visible="false" />
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>

                        <div class="himsBoxContent card-body" style="padding-bottom: 7px">
                            <asp:Panel ID="SearchPanel" runat="Server">
                                <div class="contentHolder">

                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="SearchAcademicLabel" runat="server" Text="Id No."></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5 display-flex">
                                            <asp:TextBox ID="SearchAcademicTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                SkinID="CustomWidthTextBox" runat="server" MaxLength="200" AutoPostBack="true" OnTextChanged="SearchAcademicTextBox_TextChanged">
                                            </asp:TextBox>
                                            <asp:ImageButton SkinID="FindImage" ToolTip="Student Search" ID="SearchAcademicImageButton"
                                                runat="server" ImageUrl="../../../../Images/icons/icon_find.gif" />
                                            <asp:HiddenField ID="SearchSourceHiddenField" runat="server" />
                                        </div>
                                    </div>

                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="SearchNameLabel" runat="server" Text="Name"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="SearchNameTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                SkinID="CustomWidthTextBox" runat="server" MaxLength="200" Enabled="false">
                                            </asp:TextBox>

                                        </div>
                                    </div>

                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth display-flex">
                                            <asp:Label ID="SearchLeaveFromDateLabel" runat="server" Text="Leave From Date"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <Date:DatePickerControl DisplayDatePicker="true" ID="SearchLeaveFromDatePickerControl" runat="server" />
                                        </div>
                                    </div>

                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth display-flex">
                                            <asp:Label ID="SearchLeaveToDateLabel" runat="server" Text="Leave To Date"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <Date:DatePickerControl DisplayDatePicker="true" ID="SearchLeaveToDatePickerControl" runat="server" />
                                        </div>
                                    </div>


                                    <div class="alignCenter pTop15 col-md-12 center">
                                        <asp:Button ID="SearchButton" Text="&#xf002; Search" runat="Server" OnClick="SearchButton_Click" SkinID="0" class="btn-search btn fas" />
                                        <asp:Button ID="ResetButton" runat="server" Text="&#xf0e2; Reset" OnClick="ResetButton_Click" SkinID="0" class="btn-reset btn fas" />
                                    </div>

                                    <div id="Div2" class="himssuHeader7WireBox col-md-12" runat="server">
                                        <div id="LEaveRequestListDetailDiv" runat="server" visible="false">
                                            <div class="himsBoxContent">
                                                <div id="Div5" class="himssuHeader6WireBox col-md-12" runat="server" visible="false">

                                                    <div class="himsBoxHeader card-head inner" id="BlogDiv" visible="false" runat="server">
                                                        <div class="himsBoxTitle">
                                                            <div class="gridHeaderText">
                                                                <header>
                                                                    <asp:Label ID="GridViewLabel" Text="My Leave Request" runat="server" Font-Bold="true" />
                                                                </header>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="himsBoxContent">
                                                        <asp:GridView ID="LEaveRequestGridView" runat="server" AutoGenerateColumns="False" ShowHeader="true"
                                                            SkinID="" PagerSettings-Visible="false" EmptyDataText="No Records Found !!" CssClass="table table-striped table-bordered table-hover"
                                                            DataKeyNames="AcademicId,LeaveFromDate,LeaveToDate,StatusId" OnRowDataBound="LEaveRequestGridView_RowDataBound">
                                                            <Columns>


                                                                <asp:BoundField DataField="IdNo" HeaderText="IdNo" DataFormatString="{0:dd/MM/yyyy}" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left" />
                                                                <asp:BoundField DataField="Name" HeaderText="Name" ItemStyle-Width="20%" HeaderStyle-HorizontalAlign="Left" />
                                                                <asp:BoundField DataField="LeaveFromDate" HeaderText="LeaveFromDate" DataFormatString="{0:dd/MM/yyyy}" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left" />
                                                                <asp:BoundField DataField="LeaveToDate" HeaderText="LeaveToDate" DataFormatString="{0:dd/MM/yyyy}" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left" />
                                                                <asp:BoundField DataField="LeaveReason" HeaderText="LeaveReason" ItemStyle-Width="30%" HeaderStyle-HorizontalAlign="Left" />
                                                                <asp:BoundField DataField="StatusReason" HeaderText="StatusReason" ItemStyle-Width="30%" HeaderStyle-HorizontalAlign="Left" />
                                                                <asp:TemplateField HeaderText="Status" ItemStyle-Width="10%" ItemStyle-Wrap="true"
                                                                        HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="StatusLabel" runat="server" Text='<%#Eval("StatusName")%>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                <asp:TemplateField ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                        <asp:LinkButton ID="EditLinkButton" runat="server" CommandName="Select" OnClick="EditLinkButton_Click"
                                                                            Text="Details" CausesValidation="false"></asp:LinkButton>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                            </Columns>
                                                        </asp:GridView>
                                                    </div>
                                                    <%--                <div class="container">
                                                        <!-- Modal -->
                                                        <%--data-toggle="modal" data-target="#myModal1"
                                                        <div id="myModal1" class="modal fade" role="dialog">
                                                            <div class="modal-dialog">

                                                                <!-- Modal content-->
                                                                <div class="modal-content">
                                                                    <div class="modal-header">
                                                                        <button type="button" class="close" data-dismiss="modal">&times;</button>
                                                                        <h4 class="modal-title">Student Document's</h4>
                                                                    </div>
                                                                    <div class="modal-body">
                                                                        <asp:GridView ID="PopupGridView" runat="server" CssClass="table table-striped table-bordered"
                                                                            AutoGenerateColumns="False" ShowHeader="true" PagerSettings-Visible="false" EmptyDataText="No Records Found !!">
                                                                            <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>
                                                                            </Columns>
                                                                        </asp:GridView>
                                                                    </div>
                                                                    <div class="modal-footer">
                                                                        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                                                                    </div>
                                                                </div>

                                                            </div>
                                                        </div>
                                                    </div>--%>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>


                        <asp:Panel ID="SearchDetailPanel" runat="server" meta:resourcekey="SearchDetailPanelResource1" Visible="false">
                            <div class="himsBoxContent card-body">
                                <div class="contentHolder">
                                    <div id="EmployeeProfileGridViewDiv" runat="server">

                                        <div class="himssuHeader7WireBox col-md-12">
                                            <div class="himsBoxContent">

                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="AcademicLabel" runat="server" Text="Id No." SkinID="MandatoryLabel"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5 display-flex">
                                                        <asp:TextBox ID="AcademicIdNoTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                            SkinID="CustomWidthTextBox" runat="server" MaxLength="200" AutoPostBack="true" OnTextChanged="AcademicIdNoTextBox_TextChanged">
                                                        </asp:TextBox>
                                                        <asp:ImageButton SkinID="FindImage" ToolTip="Student Search" ID="AcademicIdNoImageButton"
                                                            runat="server" ImageUrl="../../../../Images/icons/icon_find.gif" />
                                                        <asp:HiddenField ID="SourceIdHiddenField" runat="server" />
                                                    </div>
                                                </div>

                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="NameLabel" runat="server" Text="Name" SkinID="MandatoryLabel"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:TextBox ID="NameTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                            SkinID="CustomWidthTextBox" runat="server" MaxLength="200" Enabled="false">
                                                        </asp:TextBox>
                                                    </div>
                                                </div>

                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="LeaveFromDateLabel" runat="server" Text="Leave From Date" SkinID="MandatoryLabel"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5 display-flex">
                                                        <Date:DatePickerControl DisplayDatePicker="true" ID="LeaveFromDatePicker" runat="server" />
                                                    </div>
                                                </div>

                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="LeaveToDateLabel" runat="server" Text="Leave To Date" SkinID="MandatoryLabel"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5 display-flex">
                                                        <Date:DatePickerControl DisplayDatePicker="true" ID="LeaveToDatePicker" runat="server" />
                                                    </div>
                                                </div>

                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="LeaveReasonLabel" runat="server" Text="Leave Reason"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:TextBox ID="LeaveReasonTextBox" runat="server" TextMode="MultiLine"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop15 col-md-3">
                                                    <div class="fLeft">
                                                        <asp:CheckBox ID="FileAttachmentCheckBox" runat="server" Text="File Attachment" AutoPostBack="True" OnCheckedChanged="FileAttachmentCheckBox_CheckedChanged" />

                                                    </div>
                                                </div>

                                                <div id="FileUploaddiv" visible="False" runat="server">
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <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;" />
                                                            <br />
                                                            <asp:Label ID="Label2" runat="server" Text="" Style="padding-left: 10px; font-size: medium;"></asp:Label>
                                                            <asp:HiddenField ID="LeaveHiddenField1" runat="server" />
                                                            <asp:HiddenField ID="UserSourceTypeHiddenField" runat="server" />
                                                            <asp:HiddenField ID="UserSourceIdHiddenField" runat="server" />
                                                            <asp:HiddenField ID="UploadConfigurationHiddenField" runat="server" />
                                                            <asp:HiddenField ID="AttachmentSizeHiddenField" runat="server" />
                                                        </div>
                                                    </div>
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Button runat="server" ID="RefreshButton" Text="&#xf021; Refresh" OnClick="RefreshButton_Click"
                                                                SkinID="0" CssClass="btn btn-refresh fas" />
                                                        </div>
                                                    </div>
                                                    <div class="col-md-12">
                                                        <div class="alert alert-info" style="top:18px">
                                                            <i class="material-icons">info</i>
                                                            <asp:Label ID="Label6" Text="Click on refresh button to view current uploaded Files"
                                                                runat="server" />
                                                        </div>
                                                    </div>                                                   
                                                    <div id="Div11" class="himssuHeader6WireBox col-md-12" runat="server"
                                                        style="width: 100%; margin-right: 5px; top:18px">
                                                        <div id="UploadDiv" visible="False" runat="server">

                                                            <div class="himsBoxHeader card-head inner" id="HeaderDiv" visible="False" runat="server">
                                                                <div class="leftdiv">
                                                                </div>
                                                                <div class="himsBoxTitle" style="width: 99%">
                                                                    <div class="gridHeaderText">
                                                                        <div class="">
                                                                            <header>
                                                                                <asp:Label ID="Label7" Text="File List" runat="server" />
                                                                            </header>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="himsBoxContent">
                                                                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                                                    <ContentTemplate>
                                                                        <div id="GridViewDiv" runat="server" visible="false" class="himssuHeader7WireBox col-md-12 table-responsive">
                                                                            <asp:GridView ID="FileGridView" runat="server" CssClass="table table-striped table-bordered"
                                                                                AutoGenerateColumns="False" 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_Click"
                                                                                                ImageUrl="~/Images/icons/icon_delete.gif" ToolTip="Delete" />
                                                                                        </ItemTemplate>
                                                                                    </asp:TemplateField>
                                                                                </Columns>
                                                                            </asp:GridView>
                                                                        </div>
                                                                    </ContentTemplate>
                                                                </asp:UpdatePanel>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>

                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </asp:Panel>
                    </div>

                </div>

            </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>

    <cc1:ModalPopupExtender ID="EmployeeSearchExtender" runat="server" TargetControlID="HidenButton" PopupControlID="ModalPopUpPanel" BackgroundCssClass="modalBackground"
        Drag="True" PopupDragHandleControlID="dragPanel" DynamicServicePath="" Enabled="True" />
    <asp:LinkButton runat="server" ID="HidenButton" meta:resourcekey="HidenButtonResource1" />

    <asp:Panel ID="ModalPopUpPanel" runat="server" CssClass="dragControl" Width="80%" DefaultButton="SearchButton" meta:resourcekey="ModalPopUpPanelResource1">
        <div class="card card-box">
            <asp:Panel ID="dragPanel" runat="server" CssClass="dragMePanel" Width="100%" meta:resourcekey="dragPanelResource1">
                <div id="dragMe1" class="dragMe" style="cursor: move">
                    <div class="himsPopupWireBox">
                        <div class="himsBoxHeadermain">
                            <div>
                            </div>
                        </div>
                        <div class="himsBoxTopper text-center headerFont card-head">
                            <div class="fLeft headerText">
                                <asp:UpdatePanel ID="UpdatePanel3" runat="server" RenderMode="Inline">
                                    <ContentTemplate>
                                        <asp:ImageButton ID="CloseImageButton" runat="server" Height="20PX" Width="20PX" ImageUrl="~/Images/closebox.png" Style="margin-left: 995PX" OnClick="CloseImageButton_Click" />
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                            </div>
                        </div>
                    </div>
                </div>
            </asp:Panel>

            <asp:UpdatePanel ID="StudentSearchUpdatePanel" runat="server"
                RenderMode="Inline">
                <ContentTemplate>

                    <div id="bodyContainer">
                        <div class="himsPopupWireBox">

                            <div class="himsBoxContentmain" style="overflow: hidden">
                                <div id="divContentPage1">
                                    <div>
                                        <div class="himssuHeader5WireBox">
                                            <%--      <div class="himsBoxHeader">
                                                <asp:Panel ID="TopPanel" runat="server" meta:resourcekey="TopPanelResource1">
                                                    <div class="leftdiv">
                                                    </div>
                                                    <div class="himsBoxTitle">
                                                        <div class="headerText">
                                                            <asp:Label ID="EmployeeSearchHeaderLabel" runat="server" Text="Search"
                                                                meta:resourcekey="EmployeeSearchHeaderLabelResource1" Visible="false"></asp:Label>
                                                        </div>
                                                        <div>
                                                        </div>
                                                    </div>
                                                </asp:Panel>
                                            </div>--%>
                                            <div class="himsBoxContent  card-body">
                                                <asp:Panel ID="Panel2" runat="server" meta:resourcekey="DetailPanelResource1">
                                                    <div class="contentHolder">
                                                        <div id="MainDiv" runat="server">
                                                            <div id="EmployeeSearchGridDiv" runat="server">
                                                                <div class="himssuHeader7WireBox col-md-12" id="Div4" runat="server">
                                                                    <%--   <div class="himsBoxHeader" id="GridHeaderDiv" runat="server" visible="False">
                                                                        <div class="leftdiv">
                                                                        </div>
                                                                    </div>--%>
                                                                    <div class="himsBoxContent width-100">
                                                                        <div class="himsBoxContent">
                                                                            <div class="contentHolder">
                                                                                <div class="himssuHeader7WireBox" runat="server">
                                                                                    <div class="himsBoxHeader card-head inner">
                                                                                        <div class="headerText">

                                                                                            <header>
                                                                                                <asp:Label ID="KPALabel2" runat="server" Text="Student Leave Document's"
                                                                                                    meta:resourcekey="EmployeeCodeLabelResource1"></asp:Label>

                                                                                            </header>
                                                                                        </div>

                                                                                    </div>

                                                                                    <div class="himsBoxContent">
                                                                                        <div id="Div3" class="himsBoxContentMsg table-responsive" runat="server">
                                                                                            <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Always">
                                                                                                <ContentTemplate>
                                                                                                    <asp:HiddenField ID="AcademicIdHiddenField" runat="server" />
                                                                                                    <asp:GridView ID="PopupGridView" runat="server" CssClass="table table-striped table-bordered"
                                                                                                        AutoGenerateColumns="False" 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_Click1"
                                                                                                                        ImageUrl="~/Images/delete.png" ToolTip="Delete" />
                                                                                                                </ItemTemplate>
                                                                                                            </asp:TemplateField>
                                                                                                        </Columns>
                                                                                                    </asp:GridView>
                                                                                                </ContentTemplate>
                                                                                            </asp:UpdatePanel>
                                                                                        </div>
                                                                                    </div>
                                                                                </div>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </asp:Panel>

                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="tableContainer alignCenter col-md-12 p-b-13">

                                    <%--<asp:Button runat="server" ID="OkButton" Text="&#xf164; Save" OnClick="OkButton_Click" SkinID="0" CssClass="fas btn btn-ok " meta:resourcekey="OkButtonResource1" />--%>

                                    <asp:Button ID="CancelButton" runat="server" CssClass="btn-cancel btn fas" meta:resourcekey="CancelButtonResource1"
                                        OnClick="CancelButton_Click" SkinID="0" Text="&#xf00d; Cancel" />

                                </div>
                            </div>
                        </div>
                </ContentTemplate>
            </asp:UpdatePanel>
        </div>
    </asp:Panel>
    <%--    <script data-main="../../JavaScript/rjs/encrypt/assign-organization-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
    <%--<script data-main='<%=ResolveUrl("~/JavaScript/rjs/assign-organization")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/leave")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
    <%-- <script type='text/javascript'>
        function openModal() {
            alert(1);
            $('[id*=myModal1]').modal('show');
        }
    </script>--%>
    <%-- <script>
        function setAttribute() {
            alert(1);
            $("#EditLinkButton").ClientID.attr("data-toggle", "modal");
            $("#EditLinkButton").ClientID.attr("data-target", "#myModal1");
        }
    </script>--%>
</asp:Content>
