<%@ Page Language="C#" MasterPageFile="~/MasterPages/Main.master" AutoEventWireup="true"
    CodeFile="POSClaimsPOS.aspx.cs" Inherits="POS_ClaimsPOS"  %>
<%@ 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>
                            POS Claims
                        </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 style="display:none">
                                    <td class="tdNormal">
                                        Claim Type
                                    </td>
                                    <td class="tdNormal" colspan=4>
                                        <asp:RadioButton ID="rdATM" AutoPostBack=true Text="ATM" GroupName=1 runat="server" 
                                            oncheckedchanged="rdATM_CheckedChanged"/>
                                        <asp:RadioButton ID="rdPOS" AutoPostBack=true Text="POS" GroupName=1 runat="server" Checked=true
                                            oncheckedchanged="rdPOS_CheckedChanged" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tdNormal">
                                        Claim ID <span style="color:Red">*</span>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtClaimID" runat="server" class="fieldNormal" Width="250" MaxLength="20"></asp:TextBox>
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                    <td class="tdNormal">
                                        
                                        Events</td>
                                    <td class="tdNormal">
                                        
                                        <asp:DropDownList ID="ddlEvents" runat="server"  Width="251px"
                                          DataTextField="evant_name" DataValueField="re_code" class="fieldNormal" AutoPostBack ="false">
                                        </asp:DropDownList>
                                        
                                    </td>
                                </tr>
                                <tr runat="server" id="rowATM">
                                    <td class="tdNormal">
                                        Reference Number
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtReference" MaxLength="12" runat="server" class="fieldNormal" Width="250"></asp:TextBox>
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                    <td class="tdNormal">
                                        Card Number
                                    </td>
                                    <td class="tdNormal">
                                        <asp:TextBox ID="txtCardNumber" runat="server" class="fieldNormal"  MaxLength="20" Width="250"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr runat="server" id="rowATM2">
                                    <td class="tdNormal">
                                        ATM No
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtATMNo" runat="server" class="fieldNormal" MaxLength="4" Width="250"></asp:TextBox>
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                    <td class="tdNormal">
                                        &nbsp;</td>
                                    <td class="tdNormal">
                                        &nbsp;</td>
                                </tr>
                                <tr runat="server" id="rowPOS">
                                    <td class="tdNormal">
                                        Client Number
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtClientNo" runat="server" class="fieldNormal" MaxLength="20" Width="250"></asp:TextBox>
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                    <td class="tdNormal">
                                        Terminal ID <span style="color:Red">*</span>
                                    </td>
                                    <td class="tdNormal">
                                        <asp:TextBox ID="txtTermID" runat="server" class="fieldNormal" MaxLength="16" Width="250"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr runat="server" id="rowPOS2">
                                    <td class="tdNormal">
                                        Retailer ID
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtRetailerID" runat="server" class="fieldNormal" MaxLength="12" Width="250"></asp:TextBox>
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                    <td class="tdNormal">
                                        Card Number <span style="color:Red">*</span>
                                    </td>
                                    <td class="tdNormal">
                                        <asp:TextBox ID="txtCardPOS" runat="server" class="fieldNormal" MaxLength="20" Width="250"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr runat="server" id="rowPOS3">
                                    <td class="tdNormal">  Claim Type Channel</td>
                                    <td>
                                       <asp:RadioButton ID="rdMADAType" runat="server" GroupName="aaaa" Text="MADA" 
                                            Checked="False"  OnCheckedChanged="rdMADAType_CheckedChanged" AutoPostBack="True" />
                                        <asp:RadioButton ID="rdGCCNETType" runat="server" GroupName="aaaa" Text="GCCNET" 
                                        OnCheckedChanged="rdGCCNETType_CheckedChanged"  AutoPostBack="True" /> 
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                    <td class="tdNormal">
                                        Search Type
                                    </td>
                                    <td class="tdNormal">
                                        <asp:RadioButton ID="rdCH" runat="server" GroupName="aaa" Text="Card Holder" 
                                            Checked="True" />
                                        <asp:RadioButton ID="rdMER" runat="server" GroupName="aaa" Text="Merchant" />
                                    </td>
                                </tr> 
                                
                                <tr>
                                    <td class="tdNormal">
                                        Claim Status</td>
                                    <td>
                                        <asp:DropDownList ID="ddlClaimType" runat="server" DataTextField="CLAIM_STATUS_DESC" 
                                        Width="250px" DataValueField="CL_CODE" class="fieldNormal" AutoPostBack="True" 
                                            onselectedindexchanged="ddlClaimType_SelectedIndexChanged" ></asp:DropDownList>
                                    </td>
                                    <td class="tdNormal">
                                        &nbsp;</td>
                                    <td class="tdNormal">
                                        
                                        SAMA Status</td>
                                    <td class="tdNormal">
                                       
                                        <asp:DropDownList ID="ddlSamaStatuses" runat="server" DataTextField="status_desc" 
                                        Width="250px" DataValueField="status_code" class="fieldNormal" 
                                            AutoPostBack="False" Enabled="False" ></asp:DropDownList>
                                        
                                    </td>
                                </tr>

                                <tr>
                                    <td class="tdNormal">
                                        Claim Type</td>
                                    <td>
                                        <asp:DropDownList ID="ddlClaimType2" runat="server" Height="16px" Width="249px"
                                        DataTextField="CLAIM_TYPE"
                                        DataValueField="CT_CODE"
                                        class="fieldNormal">
                                        </asp:DropDownList>
                                    </td>
                                    <td class="tdNormal">
                                        &nbsp;</td>
                                    <td class="tdNormal">
                                        
                                        Search Type</td>
                                    <td class="tdNormal">
                                       
                                        <asp:RadioButton ID="rdOnUs" runat="server" GroupName="aa" Text="On Us" 
                                            Checked="True" Enabled="False" />
                                        <asp:RadioButton ID="rdOther" runat="server" GroupName="aa" Text="Others" 
                                            Enabled="False" />
                                       
                                    </td>
                                </tr>

                                <tr>
                                    <td class="tdNormal">
                                        Transaction Date <span style="color:Red">*</span>
                                    </td>
                                    <td>
                                        <uc1:datepicker id="dtTranDate" runat="server" width="250" />
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                    <td class="tdNormal">
                                        
                                        SAMA Claim ID<span style="color:Red">*</span>
                                    </td>
                                    <td class="tdNormal">
                                       
									      <asp:TextBox ID="txtOrgClaimID" runat="server"   MaxLength="15" Width="247px"></asp:TextBox>
                                 
                                       
                                    </td>
                                </tr>

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

                                <tr>
                                    <td class="tdNormal"> SAMA to Date</td>
                                    <td>
                                        <uc1:datepicker id="dtSameToDate" runat="server" width="150" />
                                        
                                    </td>
                                    <td class="tdNormal">
                                        &nbsp;</td>
                                    <td class="tdNormal">
                                        
                                                        &nbsp;</td>
                                    <td class="tdNormal">
                                        
                                        &nbsp;</td>
                                </tr>

                                <tr>
                                    <td colspan="5" style="text-align: center">
                                        <asp:Button ID="btnSearch" runat="server" Text="Search" CssClass="Btn_L_Normal"
                                            OnClientClick="" OnClick="btnSearch_Click" />
                                    &nbsp;&nbsp;&nbsp;
                                        <asp:Button ID="btnGenReport" runat="server" Text="Generate Report" CssClass="Btn_L_Normal"
                                            OnClientClick="" OnClick="btnGenReport_Click" Width="101px" />
                                           
                                           <asp:Button ID="btnEmailPaySlip" runat="server" Text="Email Merchant-Req. Slip " CssClass="Btn_L_Normal1"
                                               OnClientClick="" OnClick="btnEmailPaySlip_Click"  />
                                             
                                    </td>
                                </tr>
                            </table>
                            <br />
                            <asp:Label ID="lblError" runat="server" Text="" class="fieldError"></asp:Label>
                            <table border="0" width="100%" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                <tr>
                                    <td class="tdNormal" colspan="5">
                                        <asp:GridView ID="GridView1" CssClass="gridMaster" Width ="100%" runat="server" AutoGenerateColumns="False"
                                            DataKeyNames="claim_id" AllowPaging="True" AllowSorting="True" CellPadding="4"
                                             OnRowCreated="GridView1_RowCreated" 
                                            ForeColor="#333333" GridLines="None" EmptyDataText="There are no Results" OnRowCommand="GridView1_RowCommand">
                                            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" HorizontalAlign="Right" />
                                            <Columns>
                                                <asp:BoundField DataField="claim_id" HeaderText="Claim ID" />
                                                <asp:BoundField DataField="card_number" HeaderText="Card No" />
                                                <asp:BoundField DataField="term_id" HeaderText="Terminal ID" />
                                                <asp:BoundField DataField="tran_date" HeaderText="Tran Date" />
                                                <asp:BoundField DataField="tran_amount" HeaderText="Tran Amount" />
                                                <asp:BoundField DataField="rrn" HeaderText="Reference No" />
                                                <asp:BoundField DataField="claim_issuer" HeaderText="Claim Issuer" />
                                                <asp:BoundField DataField="claim_status_desc" HeaderText="Status" />
                                                <asp:BoundField DataField="sama_claim_status" HeaderText="Sama Status" />
                                                <asp:BoundField DataField="duration_days" HeaderText="Duration" />
                                                <asp:BoundField DataField="Claim_Reset_Flg" HeaderText="Reset?" />
                                                <asp:BoundField DataField="last_commentator" HeaderText="last Inv. By" />
                                                <asp:BoundField DataField="Parent_claim_id" HeaderText="Parent claim" />
                                                <asp:ButtonField ButtonType="Image" ItemStyle-Width="30px" CommandName="i" Text="Investigate"
                                                    ImageUrl="~/Images/document_view.jpg"></asp:ButtonField>
                                                <asp:ButtonField ButtonType="Image" ItemStyle-Width="30px" CommandName="d" Text="Delete" 
                                                    ImageUrl="~/Images/delete.jpg" ></asp:ButtonField>
                                                <asp:ButtonField ButtonType="Image" ItemStyle-Width="30px" CommandName="r" Text="Reset" 
                                                    ImageUrl="~/Images/AR/update.jpg" ></asp:ButtonField>

                                                  <asp:BoundField DataField="RE_CODE" HeaderText="re_code" />
                                            </Columns>
                                            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="Black" />
                                            <EditRowStyle BackColor="#999999" />
                                            <AlternatingRowStyle BackColor="White" ForeColor="#284775" HorizontalAlign="Right" />
                                        </asp:GridView>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tdNormal" style="width: 20%">
                                        Go To Page:
                                        <asp:DropDownList ID="ddlPages" runat="server" class="fieldNormal" AutoPostBack="True"
                                            Width="50px" OnSelectedIndexChanged="ddlPages_SelectedIndexChanged">
                                        </asp:DropDownList>
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                </tr>
                            </table>
                            <table border="0" cellpadding="0" cellspacing="0" class="action_TB_BgForm">
                                <tr>
                                    <td>
                                        <asp:Button ID="btnAdd" runat="server" Text="add Cardholder claim" class="Btn_L_Normal1"
                                            OnClick="btnAdd_Click" />
                                        <asp:Button ID="btnAdd1" runat="server" Text="add Merchant claim" class="Btn_L_Normal1"
                                            OnClick="btnAdd1_Click" />
                                </tr>
                            </table>
                            <!------------------------------------body End2 ----------------------------------------------->
                            <br>
                        </td>
                    </tr>
                </table>
                <!------------------------------------body End2 ----------------------------------------------->
            </td>
        </tr>
    </table>
</asp:Content>
