<%@ Page Language="C#" MasterPageFile="~/MasterPages/Main.master" AutoEventWireup="true" CodeFile="RECONS.aspx.cs" Inherits="Business_RECONS"  %>

<%@ 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">
                            <!------------------------------------body St  ---------------------------------------------->
                            <table border="0" cellpadding="0" cellspacing="0" class="body_formTitle">
                                <tr>
                                    <td>
                                        Recon Summary</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">
                                                        Select Channel
                                                    </td>
                                                    <td colspan=4>
                                                        <asp:DropDownList ID="ddlChannels" runat="server" DataTextField="channel_name" 
                                                            Width="250px" DataValueField="rc_code" class="fieldNormal" AutoPostBack="True" 
                                                            onselectedindexchanged="ddlChannels_SelectedIndexChanged" >
                                                        </asp:DropDownList>
                                                 </td>
                                                </tr>
                                                <tr>
                                                    <td class="tdNormal">
                                                        Select Event
                                                    </td>
                                                    <td>
                                                    <asp:DropDownList ID="ddlEvents" runat="server" DataTextField="evant_name" AutoPostBack="True"
                                                            Width="250px" DataValueField="re_code" class="fieldNormal" 
                                                            OnSelectedIndexChanged="ddlEvents_SelectedIndexChanged" >
                                                    </asp:DropDownList>
                                                 </td>
                                                 <td align="center">&nbsp;</td>
                                                 <td>Select Event Type</td>
                                                 <td><asp:DropDownList ID="ddlEventTypes" runat="server" Width=250px 
                                                         class="fieldNormal" onselectedindexchanged="ddlEventTypes_SelectedIndexChanged">
                                                        <asp:ListItem Value="0">------- Event Type -------</asp:ListItem>
                                                        <asp:ListItem Value="ALL">All</asp:ListItem>
                                                        <asp:ListItem Value="ACQ">Acquirer</asp:ListItem>
                                                        <asp:ListItem Value="ISS">Issuer</asp:ListItem>
                                                        <asp:ListItem Value="OUS">OnUs</asp:ListItem>
                                                    </asp:DropDownList></td>
                                                </tr>
                                                <tr>
                                                    <td class="tdNormal">
                                                        Select Date
                                                    </td>
                                                    <td>
                                                        <uc1:DatePicker ID="DatePicker1" runat="server" width=250 />
                                                 </td>
                                                 <td class="tdNormal"></td>
                                                 <td class="tdNormal"></td>
                                                 <td class="tdNormal"></td>
                                                </tr>
                                                <tr>
                                                    <td colspan="5" style="text-align:center">
                                                        <asp:Button ID="Button1" runat="server" Text="Search" CssClass="Btn_L_Normal" onclick="Button1_Click"/>
                                                    </td>
                                                </tr>
                                            </table>
                                            <br />
                                        <asp:Panel ID="pnlResult" runat="server" Width="100%" Visible="false">
                                            <fieldset id="addItem">
                                             <legend id="addItem">Recon Summary Results</legend>
                                            </fieldset>
                                            <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"
                                                             AllowPaging="True" AllowSorting="True" CellPadding="4" DataKeyNames="file_id"
                                                            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" />
                                                            <Columns>
                                                              <asp:BoundField DataField="re_code"/>
                                                                <asp:BoundField DataField="file_date" HeaderText="File Date" />
                                                                <asp:BoundField DataField="file_id"  HeaderText="File ID" />
                                                                <asp:BoundField DataField="recon_type" HeaderText="Recon Type" ItemStyle-HorizontalAlign="Center"/>
                                                                <asp:BoundField DataField="rc_code" HeaderText="Channel" />
                                                                <asp:BoundField DataField="re_event" HeaderText="Event" />
                                                                <asp:BoundField DataField="number_of_match" HeaderText="Matched Count" />
                                                                <asp:BoundField DataField="matched_amount" HeaderText="Matched Amount" />
                                                                  
                                                                <asp:ButtonField ButtonType="Image" ItemStyle-Width="30px" CommandName="v" Text="View Details"
                                                                    ImageUrl="~/Images/view.jpg" />
                                                                
                                                            </Columns>
                                                            <PagerStyle BackColor="#284775" ForeColor="White" />
                                                            <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>
                                        </asp:Panel>                                        
                                        <!------------------------------------body End2 ----------------------------------------------->
                                        <br />

                                        <asp:Panel ID="pnl_finacleDetails" runat="server" Width="100%" Visible="false">
                                             <fieldset id="addItem">
                                                <legend id="addItem">Transaction Details</legend>
                                            </fieldset>

                                            <table border="0" cellpadding="0" cellspacing="0" class="add_ItemTB1">
                                                <tr>
                                                    <td class="tdNormal" style="width:15%">File Number:</td>
                                                    <td class="tdNormal" style="width:30%"><asp:Label ID="lbl_fileNumber_finacle" runat="server"></asp:Label></td>
                                                    <td class="tdNormal" style="width:10%">&nbsp;</td>
                                                    <td class="tdNormal" style="width:15%">Recon Type</td>
                                                    <td class="tdNormal" style="width:30%"><asp:Label ID="lbl_reconType_finacle" runat="server"></asp:Label></td>
                                                </tr>

                                                <tr>
                                                    <td class="tdNormal" style="width:15%">Channel:</td>
                                                    <td class="tdNormal" style="width:30%"><asp:Label ID="lbl_channel_finacle" runat="server"></asp:Label></td>
                                                    <td class="tdNormal" style="width:10%">&nbsp;</td>
                                                    <td class="tdNormal" style="width:15%">Event:</td>
                                                    <td class="tdNormal" style="width:30%"><asp:Label ID="lbl_event_finacle" runat="server"></asp:Label></td>
                                                </tr>
                                                
                                                <tr>
                                                    <td class="tdNormal" style="width:15%">Match Count:</td>
                                                    <td class="tdNormal" style="width:30%"><asp:Label ID="lbl_matchCount_finacle" runat="server"></asp:Label></td>
                                                    <td class="tdNormal" style="width:10%">&nbsp;</td>
                                                    <td class="tdNormal" style="width:15%">Match Amount:</td>
                                                    <td class="tdNormal" style="width:30%"><asp:Label ID="lbl_matchAmount_finacle" runat="server"></asp:Label></td>
                                                </tr>

                                                <tr>
                                                    <td class="tdNormal" style="width:15%">Non Match Recon Count:</td>
                                                    <td class="tdNormal" style="width:30%">
                                                        <%--<asp:Label ID="lbl_nonMatchReconCount_finacle" runat="server" ToolTip="Exist in Master Not in Switch"></asp:Label>--%>
                                                        <asp:LinkButton ID="link_nonMatchReconCount_finacle" runat="server"  ToolTip="Exist in Master Not in Switch" 
                                                            onclick="link_nonMatchReconCount_finacle_Click"></asp:LinkButton>
                                                    </td>
                                                    <td class="tdNormal" style="width:10%">&nbsp;</td>
                                                    <td class="tdNormal" style="width:15%">Non Match Recon Amount:</td>
                                                    <td class="tdNormal" style="width:30%"><asp:Label ID="lbl_nonMatchReconAmount_finacle" runat="server"></asp:Label></td>
                                                </tr>

                                                <tr>
                                                    <td class="tdNormal" style="width:15%">Non Match Trxn Count:</td>
                                                    <td class="tdNormal" style="width:30%">
                                                        <%--<asp:Label ID="lbl_nonMatchTrxnCount_finacle" runat="server" ToolTip="Exist in Switch Not in Master"></asp:Label>--%>
                                                        <asp:LinkButton ID="lnk_nonMatchTrxnCount_finacle" runat="server"  ToolTip="Exist in Master Not in Switch" 
                                                            onclick="lnk_nonMatchTrxnCount_finacle_Click"></asp:LinkButton>
                                                    </td>
                                                    <td class="tdNormal" style="width:10%">&nbsp;</td>
                                                    <td class="tdNormal" style="width:15%">Non Match Trxn Amount:</td>
                                                    <td class="tdNormal" style="width:30%"><asp:Label ID="lbl_nonMatchTrxnAmount_finacle" runat="server"></asp:Label></td>
                                                </tr>

                                                <tr>
                                                    <td class="tdNormal" style="width:15%">Duplicate Number:</td>
                                                    <td class="tdNormal" style="width:30%"><asp:Label ID="lbl_duplicateNumber_finacle" runat="server" ToolTip="Duplicated in Switch"></asp:Label></td>
                                                    <td class="tdNormal" style="width:10%">&nbsp;</td>
                                                    <td class="tdNormal" style="width:15%">Duplicate Amount:</td>
                                                    <td class="tdNormal" style="width:30%"><asp:Label ID="lbl_duplicateAmount_finacle" runat="server"></asp:Label></td>
                                                </tr>
                                            </table>
                                        </asp:Panel>

                                        <asp:Panel ID="pnl_generalDetails" runat="server" Width="100%" Visible="false">
                                            <fieldset id="addItem">
                                                <legend id="addItem">Transaction Details</legend>
                                            </fieldset>

                                            <table border="0" cellpadding="0" cellspacing="0" class="add_ItemTB1">
                                                <tr>
                                                    <td class="tdNormal" style="width:15%">File Number:</td>
                                                    <td class="tdNormal" style="width:30%"><asp:Label ID="lbl_fileNumber" runat="server" ></asp:Label></td>
                                                    <td class="tdNormal" style="width:10%">&nbsp;</td>
                                                    <td class="tdNormal" style="width:15%">Recon Type:</td>
                                                    <td class="tdNormal" style="width:30%"><asp:Label ID="lbl_reconType" runat="server" ></asp:Label></td>
                                                </tr>

                                                <tr>
                                                    <td class="tdNormal" style="width:15%">Channel:</td>
                                                    <td class="tdNormal" style="width:30%"><asp:Label ID="lbl_channel" runat="server" ></asp:Label></td>
                                                    <td class="tdNormal" style="width:10%">&nbsp;</td>
                                                    <td class="tdNormal" style="width:15%">Event:</td>
                                                    <td class="tdNormal" style="width:30%"><asp:Label ID="lbl_event" runat="server" ></asp:Label></td>
                                                </tr>
                                                
                                                <tr>
                                                    <td class="tdNormal" style="width:15%">Match Count:</td>
                                                    <td class="tdNormal" style="width:30%"><asp:Label ID="lbl_matchCount" runat="server" ></asp:Label></td>
                                                    <td class="tdNormal" style="width:10%">&nbsp;</td>
                                                    <td class="tdNormal" style="width:15%">Match Amount:</td>
                                                    <td class="tdNormal" style="width:30%"><asp:Label ID="lbl_matchAmount" runat="server" ></asp:Label></td>
                                                </tr>

                                                <tr>
                                                    <td class="tdNormal" style="width:15%">Non Match Recon Count:</td>
                                                    <td class="tdNormal" style="width:30%">
                                                   <%-- <asp:Label ID="lbl_nonMatchReconCount" runat="server"  ToolTip="Exist in Master Not in Switch"></asp:Label>
                                                        &nbsp;<asp:ImageButton ID="imgRecon" ImageUrl ="~/Images/document_view.jpg" 
                                                            runat ="server" onclick="imgRecon_Click" />--%>
                                                        <asp:LinkButton ID="link_nonMatchReconCount" runat="server"  ToolTip="Exist in Master Not in Switch" 
                                                            onclick="link_nonMatchReconCount_Click"></asp:LinkButton>
                                                    </td>
                                                    <td class="tdNormal" style="width:10%">&nbsp;</td>
                                                    <td class="tdNormal" style="width:15%">Non Match Recon Amount:</td>
                                                    <td class="tdNormal" style="width:30%"><asp:Label ID="lbl_nonMatchReconAmount" runat="server" ></asp:Label></td>
                                                </tr>

                                                <tr>
                                                    <td class="tdNormal" style="width:15%">Non Match Recon Count - Credit:</td>
                                                    <td class="tdNormal" style="width:30%"><asp:Label ID="lbl_nonMatchReconCountCr" runat="server" ></asp:Label></td>
                                                    <td class="tdNormal" style="width:10%">&nbsp;</td>
                                                    <td class="tdNormal" style="width:15%">Non Match Recon amount - Credit:</td>
                                                    <td class="tdNormal" style="width:30%"><asp:Label ID="lbl_nonMatchReconAmountCr" runat="server" ></asp:Label></td>
                                                </tr>

                                                <tr>
                                                    <td class="tdNormal" style="width:15%">Non Match Recon Count - Debit:</td>
                                                    <td class="tdNormal" style="width:30%"><asp:Label ID="lbl_nonMatchReconCountDr" runat="server" ></asp:Label></td>
                                                    <td class="tdNormal" style="width:10%">&nbsp;</td>
                                                    <td class="tdNormal" style="width:15%">Non Match Recon amount - Debit:</td>
                                                    <td class="tdNormal" style="width:30%"><asp:Label ID="lbl_nonMatchReconAmountDr" runat="server" ></asp:Label></td>
                                                </tr>

                                                <tr>
                                                    <td class="tdNormal" style="width:15%">Non Match Trxn Count:</td>
                                                    <td class="tdNormal" style="width:30%">
                                                   <%-- <asp:Label ID="lbl_nonMatchTrxnCount" runat="server" ToolTip="Exist in Switch Not in Master"></asp:Label>
                                                        &nbsp;<asp:ImageButton ID="imgTran" runat="server" 
                                                            ImageUrl ="~/Images/document_view.jpg" onclick="imgTran_Click"  />--%>
                                                            <asp:LinkButton ID="lnk_nonMatchTrxnCount" runat ="server" 
                                                            ToolTip="Exist in Switch Not in Master" onclick="lnk_nonMatchTrxnCount_Click"></asp:LinkButton>
                                                    </td>
                                                    <td class="tdNormal" style="width:10%">&nbsp;</td>
                                                    <td class="tdNormal" style="width:15%">Non Match Trxn Amount:</td>
                                                    <td class="tdNormal" style="width:30%"><asp:Label ID="lbl_nonMatchTrxnAmount" runat="server" ></asp:Label></td>
                                                </tr>

                                                <tr>
                                                    <td class="tdNormal" style="width:15%">Non Match Trxn Count - Credit:</td>
                                                    <td class="tdNormal" style="width:30%"><asp:Label ID="lbl_nonMatchTrxnCountCr" runat="server" ></asp:Label></td>
                                                    <td class="tdNormal" style="width:10%">&nbsp;</td>
                                                    <td class="tdNormal" style="width:15%">Non Match Trxn Amount - Credit:</td>
                                                    <td class="tdNormal" style="width:30%"><asp:Label ID="lbl_nonMatchTrxnAmountCr" runat="server" ></asp:Label></td>
                                                </tr>

                                                <tr>
                                                    <td class="tdNormal" style="width:15%">Non Match Trxn Count - Debit:</td>
                                                    <td class="tdNormal" style="width:30%"><asp:Label ID="lbl_nonMatchTrxnCountDr" runat="server" ></asp:Label></td>
                                                    <td class="tdNormal" style="width:10%">&nbsp;</td>
                                                    <td class="tdNormal" style="width:15%">Non Match Trxn Amount - Debit:</td>
                                                    <td class="tdNormal" style="width:30%"><asp:Label ID="lbl_nonMatchTrxnAmountDr" runat="server" ></asp:Label></td>
                                                </tr>
                                                
                                                <tr>
                                                    <td class="tdNormal" style="width:15%">Duplicate Number:</td>
                                                    <td class="tdNormal" style="width:30%"><asp:Label ID="lbl_duplicateNumber" runat="server" ToolTip="Duplicated in Switch"></asp:Label></td>
                                                    <td class="tdNormal" style="width:10%">&nbsp;</td>
                                                    <td class="tdNormal" style="width:15%">Duplicate Amount:</td>
                                                    <td class="tdNormal" style="width:30%"><asp:Label ID="lbl_duplicateAmount" runat="server" ></asp:Label></td>
                                                </tr>

                                                <tr>
                                                    <td class="tdNormal" style="width:15%">Duplicate Number - Credit:</td>
                                                    <td class="tdNormal" style="width:30%"><asp:Label ID="lbl_duplicateNumberCr" runat="server" ></asp:Label></td>
                                                    <td class="tdNormal" style="width:10%">&nbsp;</td>
                                                    <td class="tdNormal" style="width:15%">Duplicate Amount - Credit:</td>
                                                    <td class="tdNormal" style="width:30%"><asp:Label ID="lbl_duplicateAmounCr" runat="server" ></asp:Label></td>
                                                </tr>

                                                <tr>
                                                    <td class="tdNormal" style="width:15%">Duplicate Number - Debit:</td>
                                                    <td class="tdNormal" style="width:30%"><asp:Label ID="lbl_duplicateNumberDr" runat="server" ></asp:Label></td>
                                                    <td class="tdNormal" style="width:10%">&nbsp;</td>
                                                    <td class="tdNormal" style="width:15%">Duplicate Amount - Debit:</td>
                                                    <td class="tdNormal" style="width:30%"><asp:Label ID="lbl_duplicateAmounDr" runat="server" ></asp:Label></td>
                                                </tr>


                                            </table>
                                        </asp:Panel>


                                    </td>
                                </tr>
                            </table>
                            <!------------------------------------body End2 ----------------------------------------------->
                        </td>
                    </tr>
                </table>
</asp:Content>

