<%@ page language="C#" masterpagefile="~/MasterPages/Main.master" autoeventwireup="true" inherits="sysparams, App_Web_ilbxgk41" viewStateEncryptionMode="Always" maintainScrollPositionOnPostBack="true" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <script language="javascript" type="text/javascript">
       
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    &nbsp;&nbsp;&nbsp;
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
         <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <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>
                                    Card Scheme Events
                                </td>
                            </tr>
                        </table>
                        <br>
                        <!------------------------------------body End1 ----------------------------------------------->
                        <asp:Label ID="Label1" runat="server" Text="" class="fieldError"></asp:Label>
                        <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 />
                                    <asp:Panel ID="pnlSearch" runat="server">
                                        <table border="0" width="100%" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                            <tr>
                                                <td class="tdNormal" style="width: 15%">
                                                    Event Name
                                                </td>
                                                <td colspan="4">
                                                    <asp:TextBox ID="txtSerachEventName" runat="server" class="fieldNormal" Width="250"
                                                    MaxLength="100"  > </asp:TextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="tdNormal" style="width: 15%">
                                                    Narrative
                                                </td>
                                                <td colspan="4">
                                                    <asp:TextBox ID="txtnarrative" runat="server" class="fieldNormal" Width="250"> </asp:TextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="tdNormal" style="width: 15%">
                                                    From Account
                                                </td>
                                                <td colspan="4">
                                                    <asp:TextBox ID="txtSearchFromAccount" runat="server" class="fieldNormal" Width="250"
                                                        MaxLength="20"></asp:TextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="tdNormal" style="width: 15%">
                                                    To Account
                                                </td>
                                                <td colspan="4">
                                                    <asp:TextBox ID="txtSearchToAccount" runat="server" class="fieldNormal" Width="250"
                                                        MaxLength="20"></asp:TextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="5" style="text-align: center">
                                                    <asp:Button ID="btnSearch" runat="server" Text="Search" CssClass="Btn_L_Normal" OnClick="ButtonSearch_Click" />
                                                </td>
                                            </tr>
                                        </table>
                                    </asp:Panel>
                                    <br />
         
                                    <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1"
                                        DisplayAfter="0">
                                        <ProgressTemplate>
                                            <div style="text-align: center">
                                                <img alt="Loading" src="../Images/ajax-loader.gif" />
                                            </div>
                                        </ProgressTemplate>
                                    </asp:UpdateProgress>
                                    <br />
                                    <asp:Panel ID="pnlGrid" runat="server" Width="100%">
                                        <asp:Label ID="lblError" runat="server" Text="" class="fieldError"></asp:Label>
                                        <table border="0" cellpadding="0" cellspacing="0" class="grid_TitleBG_B">
                                            <tr>
                                                <td>
                                                    Update CS Events
                                                </td>
                                            </tr>
                                        </table>
                                        <table border="0" width="100%" cellpadding="0" cellspacing="0" class="add_ItemTB1">
                                            <tr>
                                                <td class="tdNormal" colspan="5">
                                                    <asp:GridView ID="GridView1" CssClass="gridMaster" Width="100%" runat="server" AutoGenerateColumns="False"
                                                        OnRowCommand="GridView1_RowCommand" AllowSorting="True" CellPadding="4" ForeColor="#333333"
                                                        GridLines="None" OnRowCreated="GridView1_RowCreated" DataKeyNames="CS_EVNT_CODE"
                                                        EmptyDataText="There are no results">
                                                        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                                        <Columns>
                                                            <asp:BoundField DataField="CS_EVNT_CODE" ItemStyle-Width="20%" HeaderText="EVENT CODE" />
                                                            <asp:BoundField DataField="EVENT_NAME" HeaderText="EVENT NAME" />
                                                              <asp:BoundField DataField="NARRATIVE" HeaderText="NARRATIVE" />
                                                            <asp:BoundField DataField="FROM_ACCOUNT" HeaderText="FROM ACCOUNT" />
                                                            <asp:BoundField DataField="TO_ACCOUNT" HeaderText="TO ACCOUNT" />
                                                             
                                                            <asp:BoundField DataField="From_Acct_Crncy" HeaderText="FROM ACC. CURRENCY" />
                                                            <asp:BoundField DataField="To_Acct_Crncy" HeaderText="TO ACCT. CURRENCY" />

                                                            <asp:ButtonField ButtonType="Image" ItemStyle-Width="30px" CommandName="u" Text="Update"
                                                                ImageUrl="~/Images/edit.jpg" />
                                                        </Columns>
                                                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="Black" />
                                                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                                                    </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>
                                    <table border="0" cellpadding="0" cellspacing="0" class="action_TB_BgForm">
                                        <tr>
                                            <td>
                                            &nbsp;</tr>
                                    </table>
                                    <br />
                                    <!------------------------------------body End1 ----------------------------------------------->
                                    <asp:Panel ID="pnlUpdate" runat="server" Width="100%">
                                        <fieldset id="addItem">
                                            <legend id="addItem">Parameter Details</legend>
                                        </fieldset>
                                        <table border="0" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                            <tr>
                                                <td class="tdNormal" style="width: 15%">
                                                    From Account
                                                </td>
                                                <td class="tdNormal" style="width: 30%">
                                                    <asp:TextBox ID="txtUpdateFromAccount" runat="server" Width="100%" class="fieldNormal"
                                                        MaxLength="20"></asp:TextBox>
                                                </td>
                                                <td class="tdNormal" style="width: 10%">
                                                    &nbsp;
                                                </td>
                                                <td class="tdNormal" style="width: 15%">
                                                    To Account
                                                </td>
                                                <td class="tdNormal" style="width: 30%">
                                                    <asp:TextBox ID="txtUpdateToAccount" runat="server" Width="100%" class="fieldNormal"
                                                        MaxLength="20"></asp:TextBox>
                                                </td>
                                            </tr>
                                             <tr>
                                                <td class="tdNormal" style="width: 15%">
                                                    From Account Currency
                                                </td>
                                                <td class="tdNormal" style="width: 30%">
                                                    <asp:DropDownList ID="ddlFromCurrency" runat="server" DataTextField="currency" Width="250px"
                                                        DataValueField="currency" class="fieldNormal">
                                                    </asp:DropDownList>
                                                </td>
                                                <td class="tdNormal" style="width: 10%">
                                                    &nbsp;
                                                </td>
                                                <td class="tdNormal" style="width: 15%">
                                                    To Account Currency
                                                </td>
                                                <td class="tdNormal" style="width: 30%">
                                                   <asp:DropDownList ID="ddlToCurrency" runat="server" DataTextField="currency" Width="250px"
                                                        DataValueField="currency" class="fieldNormal">
                                                    </asp:DropDownList>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="tdNormal" style="width: 15%">
                                                    Event Name
                                                </td>
                                                <td class="tdNormal" style="width: 30%">
                                                    <asp:TextBox ID="txtUpdateEventName" runat="server" Width="100%" class="fieldNormal"
                                                        MaxLength="100"></asp:TextBox>
                                                </td>
                                                <td class="tdNormal" style="width: 10%">
                                                    &nbsp;
                                                </td>
                                                <td class="tdNormal" style="width: 15%">
                                                    Narrative
                                                </td>
                                                <td class="tdNormal" style="width: 30%">
                                                    <asp:TextBox ID="txtUpdateNarrative" runat="server" Width="100%" class="fieldNormal"
                                                        MaxLength="60"></asp:TextBox>
                                                </td>
                                            </tr>

                                            <tr>
                                                <td>
                                                    <asp:TextBox ID="txtHiddeneEvenCode" runat="server" Width="100%" class="fieldNormal"
                                                        Visible="false"></asp:TextBox>
                                                </td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                            </tr>
                                        </table>
                                        <table border="0" cellpadding="0" cellspacing="0" class="action_TB_BgaddItem">
                                            <tr>
                                                <td>
                                                    <asp:Button ID="btnCancel" runat="server" Text="   Cancel   " OnClick="btnCancel_Click"
                                                        class="Btn_M_Normal" CausesValidation="False" />
                                                    <asp:Button ID="btnSave"  runat="server" Text="   Save   "
                                                        OnClick="btnSave_Click" class="Btn_M_Normal" />
                                                </td>
                                            </tr>
                                        </table>
                                    </asp:Panel>
                                    <!------------------------------------body End2 ----------------------------------------------->
                                    <br>
                                </td>
                            </tr>
                        </table>
                        <!------------------------------------body End2 ----------------------------------------------->
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
