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

<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>
                                        Events</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: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>
                                            Events
                                        </td>
                                    </tr>
                                </table>
                                <asp:GridView AllowPaging="true" ID="GridView1" CssClass="gridMaster" Width ="100%" 
                                    runat="server" AutoGenerateColumns="False"
                                    OnRowCommand="GridView1_RowCommand" CellPadding="4" ForeColor="#333333" GridLines="None" 
                                    DataKeyNames="re_code" onpageindexchanging="GridView1_PageIndexChanging" 
                                    EmptyDataText="There are no Events">
                                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                    <Columns>
                                        <asp:BoundField DataField="re_code" HeaderText="" Visible="false" />
                                        <asp:BoundField DataField="evant_name" ItemStyle-Width="20%" 
                                            HeaderText="Event Name">
                                            <ItemStyle Width="20%" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="tran_source" HeaderText="Source" />
                                        <asp:BoundField DataField="tran_dest" HeaderText="Destination"  />
                                        <asp:BoundField DataField="type_name" HeaderText="Type"  />
                                        <asp:BoundField DataField="recon_req_flag" HeaderText="Flag"  />
                                        <asp:BoundField DataField="business_class" HeaderText="Busines Class"  />
                                        <asp:ButtonField ButtonType="Image" ItemStyle-Width="30px" CommandName="v" 
                                            Text="View Event Channels" ImageUrl="~/Images/document_view.jpg" >
                                        </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" />
                                </asp:GridView>
                            </asp:Panel>
                            <br />
                            <!------------------------------------body End1 ----------------------------------------------->
                            <asp:Panel ID="pnlChannels" runat="server" Width="100%">
                                <table border="0" cellpadding="0" cellspacing="0" class="grid_TitleBG_B">
                                    <tr>
                                        <td>
                                            Channels
                                        </td>
                                    </tr>
                                </table>
                                <asp:GridView ID="GridView2" CssClass="gridMaster" Width ="100%" runat="server" AutoGenerateColumns="False"
                                    OnRowCommand="GridView2_RowCommand" AllowSorting="True" CellPadding="4" 
                                    ForeColor="#333333" GridLines="None" 
                                    DataKeyNames="rc_code" EmptyDataText="There are no channels">
                                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                    <Columns>
                                        <asp:BoundField DataField="event_name" ItemStyle-Width="40%" 
                                            HeaderText="Event Name">
                                            <ItemStyle Width="40%" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="channel_name" ItemStyle-Width="40%" 
                                            HeaderText="Channel Name" >
                                            <ItemStyle Width="40%" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="match_ref_no" ItemStyle-Width="20%" 
                                            HeaderText="Match Ref Number"  >
                                            <ItemStyle Width="20%" />
                                        </asp:BoundField>
                                        <asp:ButtonField ButtonType="Image" ItemStyle-Width="30px" CommandName="d" 
                                            Text="Deattach channel from event" 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" />
                                </asp:GridView>
                               
                                <table border="0" cellpadding="0" cellspacing="0" class="action_TB_BgForm">
                                    <tr>
                                        <td>
                                            <asp:Button ID="Button1" runat="server" Text="     Add     " 
                                                class="Btn_M_Normal" onclick="Button1_Click" />
                                    </tr>
                                </table>
                            </asp:Panel>
                            <asp:Panel ID="pnlControls" runat="server" Width="100%">
                                <fieldset id="addItem">
                                    <legend id="addItem">Attach new Channel</legend>
                                </fieldset>
                                <table border="0" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                    <tr>
                                        <td class="tdNormal" style="width:15%">
                                            Channel <span style="color:Red">*</span>
                                        </td>
                                        <td class="tdNormal" style="width:30%">
                                            <asp:DropDownList ID="ddlChannels" runat="server" class="fieldNormal"
                                            DataTextField="channel_name" DataValueField="rc_code" ></asp:DropDownList>
                                        </td>
                                        <td class="tdNormal" style="width:10%">
                                            &nbsp;
                                        </td>
                                        <td class="tdNormal" style="width:15%">
                                            Match Ref Number <span style="color:Red">*</span>
                                        </td>
                                        <td class="tdNormal" style="width:30%">
                                            <asp:DropDownList ID="ddlMatchRefNumber" runat="server" class="fieldNormal" Width="250px">
                                                <asp:ListItem Text="1" Value="1"></asp:ListItem>
                                                <asp:ListItem Text="2" Value="2"></asp:ListItem>
                                                <asp:ListItem Text="3" Value="3"></asp:ListItem>
                                                <asp:ListItem Text="4" Value="4"></asp:ListItem>
                                            </asp:DropDownList>
                                        </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" OnClientClick="return validate()" runat="server" Text="   Save   "
                                                class="Btn_M_Normal" onclick="btnSave_Click" />--%>
                                             <asp:Button ID="btnSave" runat="server" Text="   Save   "
                                                class="Btn_M_Normal" onclick="btnSave_Click" />
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                            <!------------------------------------body End2 ----------------------------------------------->
                            <br>
                        </td>
                    </tr>
                </table>
                            <!------------------------------------body End2 ----------------------------------------------->
                        </td>
                    </tr>
                </table>
</asp:Content>

