<%@ Page Title="SPAN Extractor" Language="C#" MasterPageFile="~/MasterPages/Main.master" AutoEventWireup="true" CodeFile="SpanExtractor.aspx.cs" Inherits="POS_SpanExtractor" %>

<%@ Register src="../UserControls/DatePicker.ascx" tagname="DatePicker" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .Btn_L_Normal
        {}
    </style>
</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">
                <!------------------------------------body St  ---------------------------------------------->
                <table border="0" cellpadding="0" cellspacing="0" class="body_formTitle">
                    <tr>
                        <td>
                           SPAN Transactions Extractor
                        </td>
                    </tr>
                </table>
                <br>
                <!------------------------------------body End1 ----------------------------------------------->
                <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>
                            <br />
                            <table border="0" width="100%" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                                                
                                <tr>
                                    <td class="tdNormal">
                                        Financial Flag</td>
                                    <td>
                                        
                                        <asp:DropDownList ID="ddlFin" runat="server" 
                                        Width="250px" DataValueField="CL_CODE" class="fieldNormal">
                                           <asp:ListItem Value="2" Text="All"></asp:ListItem>                                            
                                            <asp:ListItem Value="1" Text="Financial"></asp:ListItem>
                                            <asp:ListItem Value="0" Text="Non Financial"></asp:ListItem>
                                        </asp:DropDownList>
                                        
                                    </td>
                                    <td class="tdNormal">
                                        &nbsp;</td>
                                    <td class="tdNormal">
                                        
                                        &nbsp;</td>
                                    <td class="tdNormal">
                                       
                                        &nbsp;</td>
                                </tr>

                                <tr>
                                    <td class="tdNormal">
                                        Transaction Date 
                                    </td>
                                    <td>
                                        <uc1:datepicker id="dtDate" runat="server" width="250" />
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                    <td class="tdNormal">
                                        
                                        &nbsp;</td>
                                    <td class="tdNormal">
                                       
                                        &nbsp;</td>
                                </tr>

                                <tr>
                                    <td class="tdNormal">
                                        SAMA From Date</td>
                                    <td>
                                        
                                        <asp:DropDownList ID="ddlFileType" runat="server" 
                                        Width="250px" DataValueField="CL_CODE" class="fieldNormal">
                                           <asp:ListItem Value="TLF01" Text="TLF01"></asp:ListItem>                                            
                                            <asp:ListItem Value="TLF02" Text="TLF02"></asp:ListItem>
                                            <asp:ListItem Value="TLF03" Text="TLF03"></asp:ListItem>
                                            <asp:ListItem Value="TLF04" Text="TLF04"></asp:ListItem>
                                        </asp:DropDownList>
                                        
                                    </td>
                                    <td class="tdNormal">
                                        &nbsp;</td>
                                    <td class="tdNormal">
                                        
                                                        &nbsp;</td>
                                    <td class="tdNormal">
                                        
                                        &nbsp;</td>
                                </tr>

                                <tr>
                                    <td class="tdNormal">
                                        &nbsp;</td>
                                    <td>
                                        
                                        <asp:Button ID="Button1" runat="server" Text="Generate File" CssClass="Btn_L_Normal"
                                            OnClientClick="" OnClick="btnSearch_Click" />
                                        
                                    </td>
                                    <td class="tdNormal">
                                        &nbsp;</td>
                                    <td class="tdNormal">
                                        
                                                        &nbsp;</td>
                                    <td class="tdNormal">
                                        
                                        &nbsp;</td>
                                </tr>

                                <tr>
                                    <td class="tdNormal">
                                        &nbsp;</td>
                                    <td>
                            <asp:Label ID="lblStatus" runat="server" class="fieldError"></asp:Label>
                                    </td>
                                    <td class="tdNormal">
                                        &nbsp;</td>
                                    <td class="tdNormal">
                                        
                                                        &nbsp;</td>
                                    <td class="tdNormal">
                                        
                                        &nbsp;</td>
                                </tr>

                                <tr>
                                    <td class="tdNormal">
                                        <asp:Label ID="lblError0" runat="server" class="fieldError">Download Files:</asp:Label>
                                    </td>
                                    <td>
                                        &nbsp;</td>
                                    <td class="tdNormal">
                                        &nbsp;</td>
                                    <td class="tdNormal">
                                        
                                                        &nbsp;</td>
                                    <td class="tdNormal">
                                        
                                        &nbsp;</td>
                                </tr>

                                <tr>
                                    <td class="tdNormal">
                                        File Name:</td>
                                    <td>
                                        <asp:DropDownList ID="ddlFiles2" runat="server" class="fieldNormal" 
                                            Width="250px" AutoPostBack="True" 
                                            onselectedindexchanged="ddlFiles2_SelectedIndexChanged" >
                                        </asp:DropDownList>


                                    </td>
                                    <td class="tdNormal">
                                     <%--   <asp:HyperLink ID="lnkCSV_Download" runat="server">Download File</asp:HyperLink>
                                   --%>         
                                        <asp:Button ID="btnCSV_Download" runat="server" Text="Download File" CssClass="Btn_L_Normal"
                                            OnClientClick="" OnClick="btnDownload_Click" />
                                  
                                    </td>
                                    <td class="tdNormal">
                                        
                                                        &nbsp;</td>
                                    <td class="tdNormal">
                                        
                                        &nbsp;</td>
                                </tr>

                                <tr>
                                    <td colspan="5" style="text-align: center">
                                    &nbsp;&nbsp;<br />
                                        &nbsp;&nbsp;</td>
                                </tr>
                            </table>
                            <br />
                            <asp:Label ID="lblError" runat="server" class="fieldError"></asp:Label>
                            <!------------------------------------body End2 ----------------------------------------------->
                            <br>
                        </td>
                    </tr>
                </table>
                <!------------------------------------body End2 ----------------------------------------------->
            </td>
        </tr>
    </table>




    
</asp:Content>

