<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/FiniqAppMasterPage.Master" CodeBehind="FinIQ_EventMaster.aspx.vb" Inherits="FinIQWebApp.FinIQ_EventMaster" %>


<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<%--<!DOCTYPE html>

<html>
<head id="Head1"  runat="server">
    <title>Event Master</title>
     <link href="../App_Themes/Style1.css" rel="stylesheet" />
    <style>
        .GridHeader a:link, .GridHeader a, .GridHeaderTitle a:link, .GridHeaderTitle a, .GridHeaderFix td a, .GridHeaderFix a:link {
            color: #888888 !important;
        }

        .link {
    color: blue !important;
    text-decoration: none !important;
    font: normal 12px Arial, Helvetica, sans-serif !important;
}

    </style>
</head>
<body>
    <form id="form1" runat="server">--%>
          <%-- <script >
            var dialog1;
            SetJquery1 = function () {

                $(document).ready(function () {

                   

                    dialog1 = $("#dialog_form").dialog({
                        title: 'Template Details',
                        modal: true,
                        autoOpen: false,
                        width: 750,
                        height: 480
                    });

                   

                });
            }


            function Popup() {
                SetJquery1();
                $("#iFrame_TempDetails").prop("src", "TemplateMaster.aspx");
                dialog1.dialog('open');
                dialog1.width = '731px';
            }

        </script>
        <style >
            #dialog_form {
            overflow: hidden;
        }
        </style>--%>

   <%-- <style>
        .GridHeader a:link, .GridHeader a, .GridHeaderTitle a:link, .GridHeaderTitle a, .GridHeaderFix td a, .GridHeaderFix a:link {
            color: #888888 !important;
        }

        .link {
            color: blue !important;
            text-decoration: none !important;
            font: normal 12px Arial, Helvetica, sans-serif !important;
        }
        .Grid {}
    </style>--%>
    <div>
     <table>
         <tr>
					<td><asp:label id="lblError" runat="server"  CssClass="lblerror"></asp:label></td>
				</tr>
                 <tr>
					<td><asp:label id="lblInfo" runat="server" CssClass="lblInfo" ForeColor="Red" Display="Dynamic"></asp:label></td>
				</tr>
                 <tr>
					<td><asp:label id="lblWarning" runat="server" CssClass="lblWarning" ForeColor="Red" Display="Dynamic"></asp:label></td>
				</tr>
         </table>
         <table>
                <tr>
                    <td>
                         <asp:Button ID="btnLoad" runat="server" Text="Load" CssClass="btn" TabIndex="10"/>
                    </td>
                    <td>
                        <asp:Button ID="btnSave" runat="server" Text="Save" CssClass="btn" TabIndex="11"  visible="false" />
                    </td>
                    <td>
                         <asp:Button ID="btnCancel" runat="server" Text="Cancel" CssClass="btn" TabIndex="13"/>
                    </td>
                    <td>
                         <asp:Button ID="btnDelete" runat="server" Text="Delete" CssClass="btn" TabIndex="15"/>
                    </td>
                </tr>
            </table>

        <table>
                <tr>
                        <td >
                           <%-- <div style="Width:653px; Height:384px">--%>
                           <asp:GridView ID="dgEventMasterGrid" runat="server" CssClass="Grid" AutoGenerateColumns="false" Width="100%"
                            AllowPaging="True" ShowHeaderWhenEmpty="true" EmptyDataText="No data found"
                            AllowSorting="True" ShowFooter="true">
                            <AlternatingRowStyle CssClass="GridItem" />
                            <RowStyle CssClass="GridItem" Wrap="true" />
                            <HeaderStyle CssClass="GridHeader" Font-Bold="true" Wrap="true" />
                            <FooterStyle CssClass="GridFooter" />
                            <PagerStyle CssClass="GridPager" />
                            <Columns>

                                  <asp:TemplateField HeaderText="">


                                    <ItemTemplate>
                                        <asp:CheckBox type="checkbox" runat="server" ID="chkGrid" AutoPostBack="true" Enabled="true" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <%--<asp:CommandField  ShowEditButton="True"  ButtonType="Link" />--%>

                                <asp:TemplateField>

                                    <EditItemTemplate>
                                        <asp:LinkButton ID="btnUpdate" runat="server" CommandName="Update" Text="Update"  /><%-- CssClass="link"--%>
                                        <asp:LinkButton ID="btnCancel" runat="server" CommandName="Cancel" Text="Cancel"  /> <%--CssClass="link"--%>
                                    </EditItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" />
                                    <FooterStyle HorizontalAlign="Center" />
                                    <ItemTemplate>
                                        <asp:LinkButton ID="btnEdit" runat="server" CommandName="Edit" Text="Edit" Width="90"  /> <%--CssClass="link"--%>
                                    </ItemTemplate>

                                    <FooterTemplate>
                                        <asp:LinkButton ID="btnInsert" runat="server" CommandName="Add" Text="Add" Width="90" ValidationGroup="Insert"  /> <%--CssClass="link"--%>
                                    </FooterTemplate>

                                </asp:TemplateField>

                              <%--  <asp:BoundField HeaderText="Sr No." DataField="FJI_Event_Id" Visible="true" ReadOnly="True" SortExpression="FJI_Event_Id" HeaderStyle-Font-Bold="true" ItemStyle-HorizontalAlign="Right" ItemStyle-Wrap="false" ItemStyle-Width="80px" />--%>
                                  <asp:TemplateField HeaderText="Sr No" SortExpression="FJI_Event_Id" ItemStyle-Wrap="true" ItemStyle-Width="50px" ItemStyle-HorizontalAlign="Center">
                                    <ItemTemplate>
                                        <asp:Label ID="lblEventId" runat="server" Width="50px" Text='<%# Eval("FJI_Event_Id")%>' Visible="true" ToolTip='<%# Eval("FJI_Event_Id")%>'></asp:Label>
                                    </ItemTemplate>

                                <%--    <EditItemTemplate>
                                        <asp:TextBox ID="txtEventId" Text='<%# Eval("FJI_Event_Id")%>' MaxLength="50" runat="server" Width="50px" Visible="true"></asp:TextBox>
                                    </EditItemTemplate>--%>
                                         
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="Event Code" SortExpression="FJI_Event_Code" >
                                    <ItemTemplate >
                                        <asp:Label ID="lblEventCode" runat="server"  Text='<%# Eval("FJI_Event_Code")%>' Visible="true" ToolTip='<%# Eval("FJI_Event_Code")%>' ></asp:Label>
                                    </ItemTemplate>

                                    <EditItemTemplate>
                                        <asp:TextBox ID="txtEventCode" Wrap="true" Text='<%# Eval("FJI_Event_Code")%>' MaxLength="50" runat="server" oncopy="return false" onpaste="return false" oncut="return false"  onkeypress='return event.charCode < 32 || event.charCode > 32' Visible="true"></asp:TextBox>
                                    </EditItemTemplate>

                                    <FooterTemplate>
                                        <asp:TextBox ID="txtftrEventCode" runat="server" oncopy="return false" onpaste="return false" oncut="return false"  onkeypress='return event.charCode < 32 || event.charCode > 32'  MaxLength="50" />
                                        <%--<asp:RequiredFieldValidator ID="vccEventCode" runat="server" ControlToValidate="txtftrEventCode" ValidationGroup="Insert" ErrorMessage="Event Code can not be empty" ForeColor="Red" Display="Dynamic" />--%>
                                    </FooterTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="Event Name" SortExpression="FJI_Event_Name" >
                                    <ItemTemplate>
                                        <asp:Label ID="lblEventName" runat="server"  Text='<%# Eval("FJI_Event_Name")%>' Visible="true"></asp:Label>
                                    </ItemTemplate>

                                    <EditItemTemplate>
                                        <asp:TextBox ID="txtEventName" Wrap="true"  Text='<%# Eval("FJI_Event_Name")%>'  oncopy="return false" onpaste="return false" oncut="return false"  onkeypress='return event.charCode < 32 || event.charCode > 32'  runat="server" MaxLength="500"  Visible="true"></asp:TextBox>
                                    </EditItemTemplate>

                                    <FooterTemplate> 
                                        <asp:TextBox ID="txtftrEventName" runat="server"  oncopy="return false" onpaste="return false" oncut="return false"  onkeypress='return event.charCode < 32 || event.charCode > 32'  MaxLength="500" />
                                         <%--<asp:RequiredFieldValidator ID="vccEventName" runat="server" ControlToValidate="txtftrEventName" ValidationGroup="Insert" ForeColor="Red" Display="Dynamic" />--%>
                                    </FooterTemplate>
                                </asp:TemplateField>

                            </Columns>
                               <EmptyDataTemplate>
                                  <%-- <tr>
                                        <th scope="col"></th>
                                         <th scope="col"></th>
                                       <th scope="col">Sr No

                                       </th>

                                       <th scope="col">Event Code

                                       </th>

                                       <th scope="col">Event Name

                                       </th>

                                      

                                   </tr>--%>

                                   <tr>
                                       <td></td>
                                    

                                         <td>
                                           <asp:LinkButton ID="btnInsert" runat="server" CommandName="EmptyDataTemplate" Text="Add" Width="90"  />
                               
                                       </td>
                                       <td>

                                        

                                       </td>

                                       <td>

                                          <asp:TextBox ID="txtftrEventCode" runat="server" Width="120px"  oncopy="return false" onpaste="return false" oncut="return false" onkeypress='return event.charCode < 32 || event.charCode > 32'  MaxLength="50" CssClass="txt" />

                                       </td>

                                       <td>

                                           <asp:TextBox ID="txtftrEventName"  runat="server" MaxLength="500" Width="120px"  oncopy="return false" onpaste="return false" oncut="return false" onkeypress='return event.charCode < 32 || event.charCode > 32'   Visible="true" CssClass="txt" ></asp:TextBox>

                                       </td>

                                     

                                   </tr>
                               </EmptyDataTemplate>



                        </asp:GridView>
                           <%-- </div>--%>
                        </td>
                </tr>

            </table>

    </div>
    <%--</form>
</body>
</html>--%>
    </asp:Content>
