<%@ Page Language="C#" MasterPageFile="~/MasterPages/Main.master" AutoEventWireup="true" CodeFile="Merchant_Bulk_Registration.aspx.cs" Inherits="POS_Merchant_Bulk_Registration"  %>
<%@ Register src="../UserControls/DatePicker.ascx" tagname="DatePicker" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table class="body_MainTB" border="0" cellpadding="0" cellspacing="0">
                    <tr align="center">
                        <td valign="top">
                            <!------------------------------------ Header Start --------------------------------------------->
                            <table border="0" cellpadding="0" cellspacing="0" class="body_formTitle">
                                <tr>
                                    <td> Merchant Registration Bulk </td>
                                </tr>
                            </table>
                            <!------------------------------------ Header Ends ----------------------------------------------->
                            <!------------------------------------ Panel 1 Transfer and Loading Starts ----------------------->
                                <table border="0" cellpadding="0" cellspacing="0" class="contTB">
                                    <tr>
                                        <td align="center">
                                            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="Frow">
                                                <tr>
                                                    <td>
                                                    </td>
                                                </tr>
                                            </table>
                                            <asp:Label ID="lblError" runat="server" Text="" class="fieldError"></asp:Label>
                                            <asp:Panel ID="pnlTransfer" runat="server" Width="100%" >
                                                <fieldset id="addItem">
                                                    <legend id="addItem" style="color: #0B11C2;"  > Transfer And Loading </legend>
                                                </fieldset>
                                                <table border="1" width="100%" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                                    <tr>
                                                        <td class="tdNormal" style="width: 15%">  Choose File </td>
                                                        <td class="tdNormal" style="width:30%">
                                                            <asp:FileUpload ID="FileTransfer" runat="server" class="fieldWithBtn" />
                                                        </td>
                                                         <td class="tdNormal" style="width:10%"> </td>
                                                         <td class="tdNormal" colspan=2 style="width:45%"> 
                                                            <asp:Button ID="btnTransfer" runat="server" 
                                                                        Text="Transfer File" class="Btn_L_Normal" 
                                                                        onclick="btnFileTransfer_Click" />
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="tdNormal" style="width:15%"> Select File </td>
                                                        <td class="tdNormal" style="width:30%">
                                                            <asp:DropDownList ID="ddlFiles"  runat="server" AutoPostBack="True"  
                                                                              DataTextField="filename" 
                                                                              DataValueField="filename" 
                                                                              class="fieldNormal" 
                                                                              >
                                                            </asp:DropDownList> 
                                                        </td>
                                                        <td class="tdNormal" style="width:10%"> </td>
                                                            <td class="tdNormal" colspan=2 style="width:45%"> 
                                                            <asp:Button ID="btnLoad" runat="server" Text="   Load File  "
                                                                    class="Btn_M_Normal" onclick="btnLoad_Click"/>
                                                      </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                        </td>
                                                    </tr>
                                            </table>
                                     </asp:Panel>
                                   </td>
                                </tr>
                             </table>
                            <!------------------------------------ Panel 1 Transfer and Loading Ends ------------------------->
                            <!------------------------------------ Panel 2 Generation and Download Starts -------------------->
                             <table border="0" cellpadding="0" cellspacing="0" class="contTB">
                                <tr>
                                    <td align="center">
                                        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="Frow">
                                            <tr>
                                                <td></td>
                                             </tr>
                                         </table>
                                           <asp:Panel ID="pnlDwnload" runat="server" >
                                                <fieldset id="addItem">
                                                    <legend id="addItem" style="color: #0B11C2;"  > Generation And Download </legend>
                                                </fieldset>
                                                <table border="1" width="100%" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                                        <tr>
                                                            <td class="tdNormal" style="width:15%"> Select File </td>
                                                            
                                                             <td class="tdNormal" style="width:30%">
                                                                <asp:DropDownList ID="ddlGeneratedFiles"     runat="server" AutoPostBack="True"
                                                                                    DataTextField="filename" 
                                                                                    DataValueField="filename" 
                                                                                    class="fieldNormal"  onselectedindexchanged="ddlGeneratedFiles_SelectedIndexChanged">
                                                                </asp:DropDownList> 
                                                            </td>
                                                             <td class="tdNormal" style="width:10%">  
                                                                <asp:Button ID="btnViewResult" runat="server" Text="View Load Result"
                                                                        class="Btn_L_Normal" onclick="btnViewResult_Click"/>
                                                            </td>
                                                            <td class="tdNormal"  > </td>
                                                            <td class="tdNormal" colspan=2 style="width:45%"> 
                                                                <asp:Button ID="btnDownload" runat="server" 
                                                                            Text="Download File"
                                                                            CssClass="Btn_L_Normal" 
                                                                            onclick="btnDownload_Click"/>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="tdNormal" style="width:10%">
                                                                <asp:DropDownList ID="ddlRespFiles"   runat="server" 
                                                                                    DataTextField="file_id" 
                                                                                    DataValueField="file_id" 
                                                                                    class="fieldNormal" >
                                                                </asp:DropDownList> 
                                                            </td>
                                                            
                                                        </tr>
                                                </table> 
                                            </asp:Panel>
                                    </td>
                                </tr>
                             </table> 
                            <!------------------------------------ Panel 2 Generation and Download Ends ---------------------->
                            <!-----------------------------------  Panel 3 Summary Result Start ------------------------------>
                            <table border="0" cellpadding="0" cellspacing="0" class="contTB">
                                <tr>
                                    <td align="center">
                                        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="Frow">
                                            <tr>
                                                <td>
                                                </td>
                                            </tr>
                                        </table>
                            <asp:Panel ID="pnlResult" runat="server" Width="100%" Visible="false">
                                <fieldset id="addItem">
                                    <legend id="addItem" style="color: #0B11C2;">Summary Results</legend>
                                </fieldset> 
                                        <table width=100% cellpadding="0" cellspacing="0" class="add_ItemTB1">
                                            <tr>
                                                <td class="tdNormal"> Process Start Time </td>
                                                <td class="tdNormal">  <asp:Label ID="lblstime" runat="server"></asp:Label> </td>
                                                <td class="tdNormal"> </td>
                                                <td class="tdNormal"> Process End Time </td>
                                                <td class="tdNormal">  <asp:Label ID="lblet" runat="server"></asp:Label> </td>
                                            </tr>
                                            <tr>
                                                <td class="tdNormal"> Processing Status</td>
                                                <td class="tdNormal"> <asp:Label ID="lblstatus" runat="server"></asp:Label> </td>
                                                <td class="tdNormal">  &nbsp;</td>
                                                <td class="tdNormal">  Record Date</td>
                                                <td class="tdNormal"> <asp:Label ID="lblRecDate" runat="server"></asp:Label> </td>
                                            </tr>
                                            <tr>
                                                <td class="tdNormal">  Records Loaded</td>
                                                <td class="tdNormal">  <asp:Label ID="lblloaded" runat="server"></asp:Label>  </td>
                                                <td class="tdNormal">  &nbsp;</td>
                                                <td class="tdNormal">  Records Rejected</td>
                                                <td class="tdNormal"> <asp:Label ID="lblrejected" runat="server"></asp:Label> </td>
                                            </tr>
                                            <tr>
                                                <td class="tdNormal"> Total Records</td>
                                                <td class="tdNormal"> <asp:Label ID="lbltotal" runat="server"></asp:Label> </td>
                                                <td class="tdNormal">  &nbsp;</td>
                                                <td class="tdNormal">   File Number</td>
                                                <td class="tdNormal"> <asp:Label ID="lblFileNumber" runat="server"></asp:Label> </td>
                                            </tr>
                                      </table> 
                              </asp:Panel>
                              </td>
                                </tr>
                            </table> 
                            <!----------------------------------  Panel 3 Summary Result Ends ------------------------------->     
                        </td>
                    </tr>
                </table>
</asp:Content>

