<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="RequiredSkills.aspx.cs" Inherits="HRMS.RequiredSkills" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
     <div class="main-panel">
        <div class="row">
            <div class="col-md-12">
                <section class="panel">
                    <header class="panel-heading" style="padding-bottom:30px">
                           <span class="label label-primary"> Required Skills</span>
                      
                    </header>

                    <div class="panel-body">
                        <div class="span6">
                                <div id="divmessage" runat="server" visible="false" class="alert alert-info alert-dismissable">
                                    <asp:label text="" ID="lbl_msg" CssClass="msg" runat="server"></asp:label>
                                </div>
                            </div>

                            <div class="span6">
                                <div id="diverrmessage" runat="server" visible="false" class="alert alert-info alert-dismissable">
                                    <asp:label text="" id="lbl_err_msg" CssClass="msg" runat="server"></asp:label>
                                </div>
                            </div>

                        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                        CssClass="table table-striped table-bordered table-hover" CellPadding="0">
                                <Columns>
                                <asp:TemplateField HeaderStyle-Width="10px">
                                    <ItemTemplate>
                                        <asp:HiddenField ID="hid_skill" runat="server"/>
                                        <asp:HiddenField ID="hid_req_type" runat="server"/>
                                    </ItemTemplate>
                                </asp:TemplateField>    

                                <asp:TemplateField HeaderText="Skill">
                                    <ItemTemplate>
                                         <asp:TextBox ID="txt_pr_no" runat="server" CssClass="form-control"></asp:TextBox>
                                        
                                        <asp:RequiredFieldValidator runat="server" ID="rq1" ControlToValidate="ddl_status" ErrorMessage="Period Status is required." setfocusonerror="true" ValidationGroup = '<%# "add_" + Container.DataItemIndex %>'></asp:RequiredFieldValidator>
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="Request Type" HeaderStyle-Width="140px">
                                    <ItemTemplate>
                                       <asp:DropDownList ID="ddl_req_type" runat="server" CssClass="form-control select2"></asp:DropDownList>
                                        <asp:RequiredFieldValidator runat="server" ID="rq2" ControlToValidate="txt_pr_no" ErrorMessage="Period No. is required." setfocusonerror="true" ValidationGroup = '<%# "add_" + Container.DataItemIndex %>'></asp:RequiredFieldValidator>
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="Total Score">
                                    <ItemTemplate>
                                        <asp:TextBox ID="txt_year" runat="server" CssClass="form-control"></asp:TextBox>
                                        <asp:RequiredFieldValidator runat="server" ID="rq3" ControlToValidate="txt_year" ErrorMessage="Period Year is required." setfocusonerror="true" ValidationGroup = '<%# "add_" + Container.DataItemIndex %>'></asp:RequiredFieldValidator>
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="Minimum Score">
                                    <ItemTemplate>
                                        <asp:TextBox ID="txt_name" runat="server" CssClass="form-control" ></asp:TextBox>
                                        <asp:RequiredFieldValidator runat="server" ID="rq4" ControlToValidate="txt_name" ErrorMessage="Period Name is required." setfocusonerror="true" ValidationGroup = '<%# "add_" + Container.DataItemIndex %>'></asp:RequiredFieldValidator>
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="Publish">
                                    <ItemTemplate>
                                        <asp:TextBox ID="txt_strt_date" runat="server" CssClass="form-control datetime"></asp:TextBox>
                                        <asp:RequiredFieldValidator runat="server" ID="rq5" ControlToValidate="txt_strt_date" ErrorMessage="Start Date is required." setfocusonerror="true" ValidationGroup = '<%# "add_" + Container.DataItemIndex %>'></asp:RequiredFieldValidator>
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="Seq">
                                    <ItemTemplate>
                                        <asp:TextBox ID="txt_end_date" runat="server"  CssClass="form-control datetime"></asp:TextBox>
                                        <asp:RequiredFieldValidator runat="server" ID="rq6" ControlToValidate="txt_end_date" ErrorMessage="End Date is required." setfocusonerror="true" ValidationGroup = '<%# "add_" + Container.DataItemIndex %>'></asp:RequiredFieldValidator>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                
                                    <asp:TemplateField HeaderText="Action" ItemStyle-Width="6%">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="linkedit" Visible="false" runat="server" CommandName="gEdit"><i class="fa fa-pencil" style="font-size:20px !important;"></i></asp:LinkButton>
                                            <asp:linkbutton ID="lnkadd" CommandName="gAdd" runat="server" ValidationGroup = '<%# "add_" + Container.DataItemIndex %>'><i class="fa fa-plus" style="font-size:20px !important"></i></asp:linkbutton>
                                        </ItemTemplate>
                                            <ItemStyle Width="6%"></ItemStyle>
                                    </asp:TemplateField>
                                </Columns>
                                    <%--<FooterStyle CssClass="footerStyle" />
                                    <HeaderStyle CssClass="headerStyle" />
                                    <RowStyle CssClass="rowStyle" />--%>
                            </asp:GridView>



                    </div>
                </section>
            </div>
        </div>
    </div>
</asp:Content>
