<%@ Page Language="vb" AutoEventWireup="true" MasterPageFile="~/FiniqAppMasterPage.Master" CodeBehind="FinIQ_EQC_UploadDownload.aspx.vb" Inherits="FinIQWebApp.FinIQ_EQC_UploadDownload" EnableEventValidation="false" EnableViewState="true" ViewStateEncryptionMode="Always" %>

<asp:Content ID="UEContent" runat="server" ContentPlaceHolderID="MainContent">
    <asp:ScriptManagerProxy ID="ScriptManagerProxy2" runat="server"></asp:ScriptManagerProxy>


    <%--  <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="updateButtons"  DisplayAfter="0">
        <ProgressTemplate >
            <div>
                <img alt="Loading" src="../App_Resources/loading.gif" /><span class="lblbold">Loading...</span>
            </div>
        </ProgressTemplate>
    </asp:UpdateProgress>--%>
    <script type="text/javascript">
        var updateProgress = null;

        function postbackButtonClick() {

            updateProgress = $find("<%= UpdateProgress1.ClientID%>");
            window.setTimeout("updateProgress.set_visible(true)", updateProgress.get_displayAfter());


            return true;
        }
    </script>


    <asp:UpdatePanel runat="server" ID="updateButtons" ChildrenAsTriggers="true">
        <Triggers>
            <asp:PostBackTrigger ControlID="btnImportExcel" />
            <asp:PostBackTrigger ControlID="btnDownloadSample" />
            <%--    <asp:PostBackTrigger ControlID="btnSave" />
            <asp:PostBackTrigger ControlID="fileuploadExcel" />--%>
        </Triggers>
        <ContentTemplate>

            <table>


                <tr>
                    <td>
                        <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="updateButtons"
                            DisplayAfter="0">
                            <ProgressTemplate>
                                <%--<div class="modalProcessing">--%>
                                <div class="divLoading">
                                    <img alt="" src="../App_Resources/Ajax_loader_White/loading_1.gif" /><span class="lbl">Deals uploading in-progress. Please wait...&nbsp;&nbsp;
                                 <%--   <img alt="Loading" src="../App_Resources/loading.gif" /><span class="lbl">Loading...&nbsp;&nbsp;--%>
                                </div>
                                <%--/div>--%></span>
                            </ProgressTemplate>
                        </asp:UpdateProgress>

                        <div style="display:none"> <%--Added by SwatiP on 12-12-2021--%>
                            <asp:Label ID="Label2" runat="server" Text="Product Name" Visible="false" ></asp:Label>
                            <asp:DropDownList ID="cboTemplate" runat="server" AutoPostBack="true" CssClass="ddl" Width="180px" Visible="false">
                            </asp:DropDownList>

                        </div>
                    </td>


                </tr>



                <tr>
                    <td colspan="3">

                        <asp:Label ID="lblError" Text="" runat="server" CssClass="lbl"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblMigrationMech" Text="Mapping Type" runat="server" CssClass="lbl" style="padding-right:10px"></asp:Label>
                        <asp:DropDownList ID="ddlMigrationMode" runat="server" Width="100px" CssClass="ddl" AutoPostBack="true">
                                <asp:ListItem Value="DOCGEN">DOCGEN</asp:ListItem>		
                                <asp:ListItem Value="UDFMET">UDFMET</asp:ListItem>
                                
                            </asp:DropDownList>
                    </td>
                    <td>
                        <asp:FileUpload ID="fileuploadExcel" type="file" size="52" name="clientfile" runat="server" Width="476px" Height="29px" style="padding:5px" ViewStateMode="Enabled" />
                    </td>
                    <td>
                        <asp:Button ID="btnImportExcel" runat="server" Text="Upload" CssClass="btn" OnClientClick="return postbackButtonClick();" />
                    </td>
                    <td>
                        <asp:Button ID="btnSave" runat="server" Text="Save" CssClass="btn" Visible="false" />
                    </td>
                          <td>
                        <asp:Button ID="btnDownloadSample" style ="margin: 10px;"  runat="server" Text="Download Sample File" CssClass="btn" OnClick="btnDownloadSample_Click" />
                    </td>
                    <td>
                        <asp:Label ID="lblmessage" Text="" runat="server" CssClass="lbl"></asp:Label>
                    </td>
                </tr>
            </table>

            <table>
                <tr>
                    <td>
                        <asp:GridView ID="dgvExcel" runat="server" EnableViewState="false" BorderColor="#fff"
                            ShowFooter="false" AutoGenerateColumns="true"
                            CellPadding="4" ForeColor="Black" Font-Bold="false"
                            GridLines="None" HeaderStyle-BackColor="White" ShowHeaderWhenEmpty="true">
                            <HeaderStyle CssClass="GridHeader" />
                            <RowStyle CssClass="GridItem" />
                            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="false" ForeColor="#333333" />
                            <Columns></Columns>
                        </asp:GridView>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:GridView ID="dgvDisplay" runat="server" EnableViewState="false" BorderColor="#fff"
                            ShowFooter="false" AutoGenerateColumns="true"
                            CellPadding="4" ForeColor="Black" Font-Bold="false"
                            GridLines="None" HeaderStyle-BackColor="White" ShowHeaderWhenEmpty="true">
                            <HeaderStyle CssClass="GridHeader" />
                            <RowStyle CssClass="GridItem" />
                            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="false" ForeColor="#333333" />
                            <Columns></Columns>
                        </asp:GridView>
                    </td>

                </tr>
            </table>

        </ContentTemplate>
    </asp:UpdatePanel>
    <table>

        <tr>
            <td>
                <asp:UpdatePanel ID="updateGridUE" runat="server" ChildrenAsTriggers="true">
                    <ContentTemplate>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Panel ID="pnlDisplay" runat="server">
                </asp:Panel>
            </td>

        </tr>
    </table>
       <asp:HiddenField ID="hdnUCPSessionID" runat="server" Value="" />
</asp:Content>

