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

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

<html >
<head id="Head1" runat="server">
    <title>Template 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>--%>
    <div>
        <table>
             <tr>
					<td colspan="13"><asp:label id="lblError" runat="server" CssClass="lblerror"  ForeColor="Red" Display="Dynamic"></asp:label></td>
				</tr>
                 <tr>
					<td colspan="13"><asp:label id="lblInfo" runat="server" CssClass="lblInfo" ForeColor="Red" Display="Dynamic"></asp:label></td>
				</tr>
                 <tr>
					<td colspan="13"><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="1"/>
                    </td>
                    <td>
                        <asp:Button ID="btnSave" runat="server" Text="Save" CssClass="btn" TabIndex="2" visible="false" />
                    </td>
                    <td>
                         <asp:Button ID="btnCancel" runat="server" Text="Cancel" CssClass="btn" TabIndex="3"/>
                    </td>
                    <td>
                         <asp:Button ID="btnDelete" runat="server" Text="Delete" CssClass="btn" TabIndex="4"/>
                    </td>
                </tr>
            </table>


            <table >

                
                <tr>
                    <td>
                      

                           <%-- <div style="Width:653px; Height:384px">--%>

                           <asp:GridView ID="dgTemplateMasterGrid" runat="server" CssClass="Grid" AutoGenerateColumns="false" Width="638px"
                            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" />
                            <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"  ValidationGroup ="Update" />
                                        <asp:LinkButton ID="btnCancel" runat="server" CommandName="Cancel" Text="Cancel"  />
                                    </EditItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" />
                                    <FooterStyle HorizontalAlign="Center" />
                                    <ItemTemplate>

                                        <asp:LinkButton ID="btnEdit" runat="server" CommandName="Edit" Text="Edit" Width="90"  ValidationGroup ="Edit" />
                                    </ItemTemplate>
                                                                        <FooterTemplate>
                                        <asp:LinkButton ID="btnInsert" runat="server" CommandName="Add" Text="Add" Width="90"   ValidationGroup="Insert"/>
                                    </FooterTemplate>

                                </asp:TemplateField>


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

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





                    
                                <asp:TemplateField HeaderText="Template Code" SortExpression="FJI_Template_Code" ItemStyle-Wrap="true">
                                    <%--Width="180px"--%>
                                    <ItemTemplate>
                                        <asp:Label ID="lblTemplateCode" runat="server"  Text='<%# Eval("FJI_Template_Code")%>' Visible="true" ToolTip='<%# Eval("FJI_Template_Code")%>'></asp:Label>
                                    </ItemTemplate>

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

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


                                <asp:TemplateField HeaderText="Template Name" SortExpression="FJI_Template_Name" ItemStyle-Wrap="true">
                                   <%-- Width="200px"--%>
                                    <ItemTemplate>
                                        <asp:Label ID="lblTemplateName" runat="server"  Text='<%# Eval("FJI_Template_Name")%>' Visible="true"></asp:Label>
                                    </ItemTemplate>

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

                                    <FooterTemplate>
                                        <asp:TextBox ID="txtftrTemplateName" runat="server" oncopy="return false" onpaste="return false" oncut="return false" onkeypress='return event.charCode < 32 || event.charCode > 32'  MaxLength="500" />
                                         <%--<asp:RequiredFieldValidator ID="vccTemplateName" runat="server" ControlToValidate="txtftrTemplateName" ValidationGroup="Insert"   />--%>
                                    </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="txtftrTemplateCode" runat="server"  oncopy="return false" onpaste="return false" oncut="return false" onkeypress='return event.charCode < 32 || event.charCode > 32'  Width="120px" MaxLength="50" CssClass="txt" />

                                       </td>

                                       <td>

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

                                       </td>



                                   </tr>
                               </EmptyDataTemplate>


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

                    </td>
                </tr>

                
            </table>
             <%--<div id="dialog_form" title="dialog-box">
        <iframe width="100%" height="100%" id="iFrame_TempDetails"></iframe>
    </div>--%>
    </div>
  <%--  </form>
</body>
</html>--%>

</asp:Content>

