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

<%@ OutputCache Duration="1" VaryByParam="none" NoStore="true" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager"
    TagPrefix="uc1" %>
<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="TaxGroupMasterUpdatePanel" runat="server" UpdateMode="Conditional">
    <Triggers>
        <asp:PostBackTrigger ControlID="UploadButton" />
    </Triggers>
        <ContentTemplate>
        <table>
            <tr>
                <td style ="width:250px">
                    <a href="javascript:;" onclick="OpenFileUpload();">
                    <img src='<%= ResolveUrl("~/Images/browse.png") %>' /></a>
                    <asp:FileUpload ID="flUpload" runat="server" onChange="readURL(this);" ClientIDMode="Static" Style="display: none;" /></td>
                <td><asp:Button ID="UploadButton" runat="server" Text="Upload" 
                        onclick="UploadButton_Click" /></td>
            </tr>
        </table>
            <div id="Div1" class="himssuHeader1WireBox" runat="server" style="width: 100%; margin-right: 5px;">
                <div id="TaxGroupCodeMasterDetailDiv" runat="server">
                    <div class="spacer">
                        <asp:Image ID="Image3" runat="server" ImageUrl="~/Images/spacer.gif" 
                            meta:resourcekey="Image3Resource1" />
                    </div>
                    <div class="himsBoxHeader" id="PatientRelationDiv" runat="server">
                        <div class="leftdiv">
                        </div>
                        <div class="himsBoxTitle" style="width: 99%">
                            <div class="headerText">
                                <div class="fLeft">
                                    <asp:Label ID="GridViewLabel" Text="List" runat="server" Font-Bold="True" 
                                        meta:resourcekey="GridViewLabelResource1" />
                                </div>
                            </div>
                            <div align="right" class="fRight" style="margin-top: -3px;">
                                <uc1:GridViewPager ID="UploadFileGridView_GridViewPager" runat="server" OnFirstRecordClick="UploadFileGridView_GridViewPager_FirstRecordClick"
                                    OnLastRecordClick="UploadFileGridView_GridViewPager_LastRecordClick" OnNextRecordClick="UploadFileGridView_GridViewPager_NextRecordClick"
                                    OnPrevRecordClick="UploadFileGridView_GridViewPager_PrevRecordClick" OnTextBoxValueChange="UploadFileGridView_GridViewPager_TextBoxValueChange"
                                    ParentGridView="TaxRateGridView" />
                            </div>
                        </div>
                    </div>
                    <div class="himsBoxContent">
                        <div class="himsBoxContentMsg" id="GridMessageDiv" runat="server" 
                            visible="False">
                        </div>
                        <asp:GridView ID="UploadFileGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                            OnRowDataBound="UploadFileGridView_RowDataBound" OnPageIndexChanging="UploadFileGridView_PageIndexChanging"
                            AllowPaging="True" PageSize="20" ShowHeader="false"
                            OnDataBinding="UploadFileGridView_DataBinding" EmptyDataText="No Records Found" 
                            meta:resourcekey="TaxRateGridViewResource1">
                            <Columns>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:Label ID="FileNameLabel" runat="server" Text='<% #Eval("FileName") %>'></asp:Label>
                                    </ItemTemplate>
                                     <ItemStyle Width="300px" />
                                </asp:TemplateField> 
                               
                                <asp:TemplateField>
                                    <ItemTemplate>
                                      <asp:HyperLink ID="DownloadLinkButton" runat="server" NavigateUrl='<%#Eval("FilePath") %>'>Download</asp:HyperLink>
                                    </ItemTemplate>
                                     <ItemStyle Width="30px" />
                                </asp:TemplateField>
                                  
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:ImageButton SkinID="DeleteImage" ID="DeleteImageButton" runat="server" OnClick="DeleteImageButton_Click"
                                                    ToolTip="Delete" meta:resourcekey="DeleteImageButtonResource1" />
                                    </ItemTemplate>
                                    <ItemStyle Width="30px" />
                                </asp:TemplateField> 
                                <asp:TemplateField Visible="false">
                                    <ItemTemplate>
                                        <asp:Label ID="FileIdLabel" runat="server" Text='<% #Eval("Id") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField> 
                            </Columns>
                            <PagerSettings Visible="False" />
                        </asp:GridView>
                    </div>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <script data-main="../../../JavaScript/rjs/dialog-general" src="../../../JavaScript/rjs/require.js"></script>    
</asp:Content>