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

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<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>
                                        Claims Business Rules</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 />
                                        <asp:Label ID="lblError" runat="server" Text="" class="fieldError"></asp:Label>
                                        <asp:Panel ID="pnlFilter" runat="server" Width="100%" Visible=true>
                                        <table border="0" width=100% cellpadding="0" cellspacing="0" class="add_ItemTB">
                                                <tr>
                                                    <td class="tdNormal">
                                                        Select Event
                                                    </td>
                                                    <td>
                                                    <asp:DropDownList ID="ddlEvents" runat="server" DataTextField="evant_name" 
                                                            Width=250px DataValueField="re_code" class="fieldNormal">
                                                    </asp:DropDownList>
                                                 </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="2" style="text-align:center">
                                                        <asp:Button ID="Button1" runat="server" Text="Search" CssClass="Btn_L_Normal" 
                                                            onclick="Button1_Click" />
                                                    </td>
                                                </tr>
                                            </table>
                                            </asp:Panel>
                                            <br />
                                             <asp:UpdateProgress ID="UpdateProgress1" runat="server" 
                                                        AssociatedUpdatePanelID="UpdatePanel1" DisplayAfter="0">
                                                        <ProgressTemplate>
                                                            <img alt="Loading" src="../Images/ajax-loader.gif" />
                                                        </ProgressTemplate>
                                                    </asp:UpdateProgress>
                                        <asp:Panel ID="pnlResult" runat="server" Width="100%" Visible="false">
                                            <fieldset id="addItem">
                                             <legend id="addItem">Claims Business Rules</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"
                                                             DataKeyNames="cbr_code" AllowPaging="True" AllowSorting="True" 
                                                            CellPadding="4" ForeColor="#333333" GridLines="None" 
                                                            onrowcommand="GridView1_RowCommand" EmptyDataText="There are no Results" 
                                                            onrowdatabound="GridView1_RowDataBound" 
                                                            onrowcreated="GridView1_RowCreated">
                                                            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                                            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" HorizontalAlign="Right" />
                                                            <Columns>
                                                                <asp:BoundField DataField="event_name" HeaderText="Event Name" />
                                                                <asp:BoundField DataField="ej" HeaderText="EJ" />
                                                                <asp:BoundField DataField="switch" HeaderText="Base24" />
                                                                <asp:BoundField DataField="switch_rev" HeaderText="Base24 Rev" />
                                                                <asp:BoundField DataField="host" HeaderText="Finacle" />
                                                                <asp:BoundField DataField="host_rev" HeaderText="Finacle Rev" />
                                                                <asp:BoundField DataField="span" HeaderText="Span" />
                                                                <asp:BoundField DataField="span_rev" HeaderText="Span Rev" />
                                                                <asp:BoundField DataField="cps" HeaderText="CPS" />
                                                                <asp:BoundField DataField="debit_acct" HeaderText="Debit acct" />
                                                                <asp:BoundField DataField="credit_acct" HeaderText="Credit acct" />
                                                                <asp:BoundField DataField="enabled" HeaderText="Enabled"/>
                                                                <asp:BoundField DataField="app_status" HeaderText="app_status"/>
                                                                <asp:BoundField DataField="status" HeaderText="Status"/>
                                                                <asp:ButtonField ButtonType="Image" ItemStyle-Width="30px" CommandName="vm" Text="View Modification" ImageUrl="~/Images/view.jpg" />
                                                                <asp:ButtonField ButtonType="Image" ItemStyle-Width="30px" CommandName="e" 
                                                                    Text="Edit" ImageUrl="~/Images/edit.jpg" >
                                                                    <ItemStyle Width="30px" />
                                                                </asp:ButtonField>
                                                                <asp:ButtonField ButtonType="Image" ItemStyle-Width="30px" CommandName="d" 
                                                                    Text="Delete" ImageUrl="~/Images/delete.jpg" >
                                                                    <ItemStyle Width="30px" />
                                                                </asp:ButtonField>
                                                            </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     " 
                                                            class="Btn_M_Normal" onclick="btnAdd_Click"/>
                                                </tr>
                                            </table>
                                        </asp:Panel> 
                                            
                                            <asp:Panel ID="pnlBR" runat="server" Width="80%" Visible="false">
                                                <fieldset id="addItem">
                                                 <legend id="addItem">Business Rule Details</legend>
                                                </fieldset>
                                                <table border="0" width="80%" cellpadding="0" cellspacing="0" class="add_ItemTB1">
                                                    <tr runat="server" id="addrow">
                                                        <td class="tdNormal" style="width:15%">
                                                            Event</td>
                                                        <td class="tdNormal" style="width:30%">
                                                            <asp:DropDownList ID="ddlEvents0" runat="server" class="fieldNormal" 
                                                                DataTextField="evant_name" DataValueField="re_code" AutoPostBack="True" 
                                                                onselectedindexchanged="ddlEvents0_SelectedIndexChanged">
                                                            </asp:DropDownList>
                                                        </td>
                                                        <td class="tdNormal" style="width:10%">
                                                            &nbsp;</td>
                                                        <td class="tdNormal" style="width:15%">
                                                            </td>
                                                        <td class="tdNormal" style="width:30%">
                                                            
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="tdNormal">
                                                            EJ</td>
                                                        <td class="tdNormal">
                                                            <asp:RadioButton ID="rdEJSuccessful" Text ="Successful" runat="server" class="fieldNormal" GroupName="ej" />
                                                            <asp:RadioButton ID="rdEJUnSuccessful" Text ="UnSuccessful" runat="server" class="fieldNormal" GroupName="ej" />
                                                            </td>
                                                        <td class="tdNormal">
                                                            &nbsp;</td>
                                                        <td class="tdNormal">
                                                            CPS Action</td>
                                                        <td class="tdNormal">
                                                             <%-- <asp:CheckBox ID="chkCPS" runat="server" class="fieldNormal" />--%>
                                                    <asp:DropDownList ID="ddlCPSType" runat="server" DataTextField="type_name" DataValueField="type_code"
                                                        Width="250px" class="fieldNormal" AutoPostBack="False">
                                                       <%-- <asp:ListItem Text="NO CPS" Value="0"></asp:ListItem>--%>
                                                    </asp:DropDownList>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="tdNormal">
                                                            Base24</td>
                                                        <td class="tdNormal">
                                                            <asp:CheckBox ID="chkBase24" runat="server" class="fieldNormal" />
                                                            </td>
                                                        <td class="tdNormal">
                                                            &nbsp;</td>
                                                        <td class="tdNormal">
                                                            Base24 Reversal</td>
                                                        <td class="tdNormal">
                                                            <asp:CheckBox ID="chkBase24rev" runat="server" class="fieldNormal" />
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="tdNormal">
                                                            Finacle</td>
                                                        <td class="tdNormal">
                                                            <asp:CheckBox ID="chkfinacle" runat="server" class="fieldNormal" />
                                                            </td>
                                                        <td class="tdNormal">
                                                            &nbsp;</td>
                                                        <td class="tdNormal">
                                                            Finacle Reversal</td>
                                                        <td class="tdNormal">
                                                            <asp:CheckBox ID="chkfinaclerev" runat="server" class="fieldNormal" />
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="tdNormal">
                                                            Span</td>
                                                        <td class="tdNormal">
                                                            <asp:CheckBox ID="chkspan" runat="server" class="fieldNormal" />
                                                            </td>
                                                        <td class="tdNormal">
                                                            &nbsp;</td>
                                                        <td class="tdNormal">
                                                         Reversal </td>
                                                        <td class="tdNormal">
                                                            <asp:CheckBox ID="chkspanrev" runat="server" class="fieldNormal" />
                                                        </td>
                                                    </tr>
                                                    <tr runat="server" id="Tr1">
                                                        <td class="tdNormal" style="width:15%">
                                                            Debit Account</td>
                                                        <td class="tdNormal" style="width:30%">
                                                            <asp:DropDownList ID="ddldebitacct" runat="server" class="fieldNormal"  
                                                                DataTextField="acct_name" DataValueField="at_code">
                                                            </asp:DropDownList>
                                                        </td>
                                                        <td class="tdNormal" style="width:10%">
                                                            &nbsp;</td>
                                                        <td class="tdNormal" style="width:15%">
                                                        Credit Account
                                                            </td>
                                                        <td class="tdNormal" style="width:30%">
                                                            <asp:DropDownList ID="ddlcreditacct" runat="server" class="fieldNormal" 
                                                                DataTextField="acct_name" DataValueField="at_code">
                                                            </asp:DropDownList>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="tdNormal">
                                                            Enabled</td>
                                                        <td class="tdNormal">
                                                            <asp:CheckBox ID="chkEnabled" runat="server" class="fieldNormal" />
                                                        </td>
                                                        <td class="tdNormal">
                                                            &nbsp;</td>
                                                        <td class="tdNormal">
                                                            </td>
                                                        <td class="tdNormal">
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="tdNormal" colspan="5">
                                                            &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   " 
                                                                class="Btn_M_Normal" CausesValidation="False" onclick="btnCancel_Click"/>
                                                            <asp:Button ID="btnSave" runat="server" Text="   Save   "
                                                                class="Btn_M_Normal" onclick="btnSave_Click"/>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </asp:Panel>

                                            <asp:Panel ID="pnl_confirmation" runat="server" Width="100%" Visible=false>
                                            <table border="0" width="100%" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                                <tr>
                                                    <td colspan="2" class="tdNormal" align="center">
                                                       <asp:Label ID="Label1" runat="server" Text="Are you sure you want to delete this Rule ?"></asp:Label>                                                       
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="tdNormal">
                                                       <asp:Button ID="btn_conf_ok" runat="server" Text="OK" CssClass="Btn_L_Normal" 
                                                            onclick="btn_conf_ok_Click"/>
                                                    </td>

                                                    <td class="tdNormal">
                                                       <asp:Button ID="btn_conf_cancel" runat="server" Text="Cancel" 
                                                            CssClass="Btn_L_Normal" onclick="btn_conf_cancel_Click"/>
                                                    </td>
                                                        
                                                </tr>
                                            </table>
                                        </asp:Panel>
                                        <!------------------------------------body End2 ----------------------------------------------->
                                        <br>
                                    </td>
                                </tr>
                            </table>
                            <!------------------------------------body End2 ----------------------------------------------->
                        </td>
                    </tr>
                </table>
                  </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

