<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true"
    CodeBehind="EvalationCeriteria.aspx.cs" Inherits="HRMS.Recruitment.EvalationCeritria" %>
    <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"> Evaluation Criteria</span>
                           
                            <div class="pull-right">
                                <asp:button text="Save" CssClass="btn btn-info" ID="btn_save" Width="120px"
                                    ValidationGroup="save" runat="server" onclick="btn_save_Click" />
                                <asp:button text="Back" CssClass="btn btn-info" ID="btn_cancel" runat="server"
                                    onclick="btn_cancel_Click" />
                            </div>
                        </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>


                            <div class="row" style="padding-top:10px">
                                <asp:HiddenField ID="hid_Evmst" runat="server" />

                                <label class="control-label col-sm-offset-1 col-xs-8 col-sm-3 col-md-3 col-lg-3">Bussiness Unit</label>
                                <div class="col-xs-10 col-sm-6 col-md-5 col-lg-5">
                                    <asp:DropDownList ID="ddl_Busunit" runat="server" CssClass="form-control select2">
                                      
                                    </asp:DropDownList>
                                    <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save"
                                        runat="server" id="req_Busunit" controltovalidate="ddl_Busunit"
                                        errormessage="Bussiness Group is Required!" />
                                </div>

                                <label class="control-label col-sm-offset-1 col-xs-8 col-sm-3 col-md-3 col-lg-3">Action</label>
                                <asp:HiddenField ID="hid_Actionid" runat="server" />
                                <div class="col-xs-10 col-sm-6 col-md-5 col-lg-5">
                                    <div class="input-group">
                                        <asp:TextBox CssClass="form-control" ID="txt_title" runat="server">
                                        </asp:TextBox>
                                        <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save"
                                            runat="server" id="req_title" controltovalidate="txt_title"
                                            errormessage="Action is Required!" />
                                        <span class="input-group-btn">
                                            <button id="btn_lov_Action" type="button" runat="server"
                                                class="btn btn-white" onserverclick="btn_lov_Action_Click"><i
                                                    class="fa fa-search"></i></button>
                                        </span>
                                    </div>
                                </div>

                            </div>


                        
                            <div class="row" style="padding-top:10px">

                                <label class="col-sm-offset-1 col-xs-8 col-sm-3 col-md-3 col-lg-3 control-label">From Date</label>
                                <div class="col-xs-10 col-sm-6 col-md-5 col-lg-5">

                                    <asp:TextBox CssClass="form-control datetime" ID="txt_FromDt" runat="server">
                                    </asp:TextBox>
                                    <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save"
                                        runat="server" id="req_frm_date" controltovalidate="txt_FromDt"
                                        errormessage="From date is Required!" />


                                </div>

                                <label class="col-sm-offset-1 col-xs-8 col-sm-3 col-md-3 col-lg-3 control-label">To Date</label>
                                <div class="col-xs-10 col-sm-6 col-md-5 col-lg-5">

                                    <asp:TextBox CssClass="form-control datetime" ID="txt_ToDt" runat="server">
                                    </asp:TextBox>
                                    <%--<asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save"
                                        runat="server" id="req_ToDt" controltovalidate="txt_ToDt"
                                        errormessage="To Date is Required!" />--%>


                                </div>
                            </div>

                                <div class="row" style="padding-top:10px">
                                <label class="col-sm-offset-1 col-xs-8 col-sm-3 col-md-3 col-lg-3 control-label">Description</label>
                                <div class="col-xs-10 col-sm-6 col-md-5 col-lg-5">

                                    <asp:TextBox CssClass="form-control" ID="txt_Desc" runat="server" TextMode="MultiLine">
                                    </asp:TextBox>
                                    <%--<asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save"
                                        runat="server" id="req_desc" controltovalidate="txt_desc"
                                        errormessage="From date is Required!" />--%>


                                </div>

                            </div>

                            <hr />

                           <div class="table-responsive">
                                      <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" 
                        CssClass="table table-striped table-bordered table-hover" CellPadding="0" OnRowCommand="GridView2_RowCommand" OnRowDataBound="GridView2_RowDataBound">

                                        <Columns>
                                            <asp:TemplateField HeaderStyle-Width="1%">
                                                <ItemTemplate>
                                                    <asp:HiddenField ID="hid_EVmst" runat="server"
                                                        Value='<%#Bind("EVAL_HEADER_ID")%>' />
                                                    <asp:HiddenField ID="hid_FormType" runat="server"
                                                        Value='<%#Bind("Factortype")%>' />
                                                 <asp:HiddenField ID="hid_Evdtl" runat="server"
                                                        Value='<%#Bind("EVAL_LINE_ID")%>' />

                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText="Factor" HeaderStyle-Width="20%">
                                                <ItemTemplate>
                                                   <div class="input-group">
                                                        <asp:HiddenField ID="hid_Factor" runat="server"
                                                            Value='<%#Bind("FACTOR_ID")%>' />
                                                        <asp:TextBox ID="txt_Factor" runat="server"
                                                            CssClass="form-control text" Text='<%#Bind("FactorName") %>'>
                                                        </asp:TextBox>
                                                    <asp:RequiredFieldValidator SetFocusOnError="true"
                                                            ValidationGroup='<%# "add_" + Container.DataItemIndex %>' runat="server" id="req_Factor"
                                                            controltovalidate="txt_Factor"
                                                            errormessage="Factor is Required!" />
                                                        <span class="input-group-btn">
                                                            <button id="btn_lov_Factor" type="button" runat="server"
                                                                class="btn btn-white"
                                                                onserverclick="btn_lov_Factor_Click"><i
                                                                    class="fa fa-search"></i></button>
                                                        </span>
                                                        </div>
                                                    
                                                    
                                                </ItemTemplate>

                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Factor Type" HeaderStyle-Width="10%">
                                                <ItemTemplate>
                                                    <asp:DropDownList ID="ddl_Type" runat="server" CssClass="form-control">
                                    </asp:DropDownList>
                                                </ItemTemplate>
                                                 </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Valid From" HeaderStyle-Width="20%">
                                                    <ItemTemplate>
                                                        <asp:TextBox ID="txt_efffrom" runat="server"
                                                            CssClass="form-control datetime"
                                                            Text='<%#Bind("validfrom") %>'></asp:TextBox>
                                                        <asp:RequiredFieldValidator SetFocusOnError="true"
                                                            ValidationGroup='<%# "add_" + Container.DataItemIndex %>' runat="server" id="req_efffrom"
                                                            controltovalidate="txt_efffrom"
                                                            errormessage="Valid From is Required!" />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Valid To" HeaderStyle-Width="20%">
                                                    <ItemTemplate>
                                                        <asp:TextBox ID="txt_efffrto" runat="server"
                                                            CssClass="form-control datetime"
                                                            Text='<%#Bind("validto") %>'></asp:TextBox>
                                                        <asp:RequiredFieldValidator SetFocusOnError="true"
                                                            ValidationGroup='<%# "add_" + Container.DataItemIndex %>' runat="server" id="req_Effto"
                                                            controltovalidate="txt_efffrto"
                                                            errormessage="Valid To is Required!" />
                                                    </ItemTemplate>
                                                </asp:TemplateField>

                                                <asp:TemplateField HeaderText="Action" ItemStyle-Width="6%">
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="linkedit" runat="server" Visible="false"
                                                            CommandName="gEdit"><i class="fa fa-pencil"
                                                                style="font-size:20px !important;"></i></asp:LinkButton>
                                                        <asp:LinkButton ID="lnk_add" ValidationGroup='<%# "add_" + Container.DataItemIndex %>'
                                                            runat="server" CommandName="gadd"><i class="fa fa-plus"
                                                                style="font-size:20px !important;"></i></asp:LinkButton>
                                                        <asp:linkbutton ID="linkdlt" CausesValidation="false"
                                                            CommandName="gDelete" runat="server"
                                                            OnClientClick="return confirm('Are you sure to delete?')"><i
                                                                class="fa fa-trash"
                                                                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>
                            <div class="row">
                                <asp:Label CssClass="control-label col-md-offset-2" ID="lbl_due" runat="server">
                                </asp:Label>
                            </div>


                        </div>
                    </section>
                </div>
            </div>
        </div>

           <script src="../../ThemeScrips/jquery.min.js"></script>
    <link href="../../ThemeScrips/select2.min.css" rel="stylesheet" />
    <script src="../../ThemeScrips/select2.min.js"></script>
    <script>
        $('.select2').select2();
    </script>
    </asp:Content>