<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="ActionDetail.aspx.cs" Inherits="HRMS.Recruitment.ActionDetail" %>

<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">
                        Action Detail
                         <div class="pull-right">
                            <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="modal-body">
                        <div class="row">
                              <asp:HiddenField ID="hid_Reqplan" runat="server" />
                            <asp:HiddenField ID="hid_requisition" runat="server" />
                            <asp:HiddenField ID="hid_City" runat="server" />
                            <asp:HiddenField ID="hid_bg_grp" runat="server" />
                            <asp:HiddenField ID="hid_position" runat="server" />
                            
                        </div>
                        <div style="width:102%;height:250px;overflow:scroll;">

                       
    <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="10px">
                                                <ItemTemplate>
                                                    <asp:HiddenField ID="hid_Actionline_id" runat="server" Value='<%#Bind("RECRUITMENT_PLAN_ACTION_ID")%>' />
                                                    <asp:HiddenField ID="hid_rec_line" runat="server" Value='<%#Bind("RECRUITMENT_PLAN_LINE_ID")%>' />
                                                   <%-- <asp:HiddenField ID="hid_Plan_id" runat="server"
                                                        Value='<%#Bind("RECRUITMENT_PLAN_HEADER_ID")%>' />
                                                    <asp:HiddenField ID="hid_Reqid" runat="server"
                                                        Value='<%#Bind("REQUEST_HEADER_ID")%>' />--%>
                                                    <asp:HiddenField ID="hid_Acion_ID" runat="server"
                                                        Value='<%#Bind("ACTION_ID")%>' />
                                                    <%--<asp:HiddenField ID="hid_PosiID" runat="server"
                                                        Value='<%#Bind("POSITION_ID")%>' />
                                                    <asp:HiddenField ID="hid_CityID" runat="server"
                                                        Value='<%#Bind("CITY_ID")%>' />--%>
                                                    <asp:HiddenField ID="hid_NextAction" runat="server"
                                                        Value='<%#Bind("NEXT_ACTION_ID")%>' />
                                                     <asp:HiddenField ID="hid_evelID_Action" runat="server"
                                                            Value='<%#Bind("EVAL_HEADER_ID")%>' />
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText="Request" ControlStyle-Width="250px" ItemStyle-Width="100px">
                                                <ItemTemplate>
                                                    <%--<div class="input-group">--%>  
                                                        <asp:TextBox ID="txt_ReqId" Enabled="false" runat="server"  CssClass="form-control"></asp:TextBox>
                                                        
                                                        <%--<asp:RequiredFieldValidator SetFocusOnError="true"
                                                            ValidationGroup='<%# "add2" + Container.DataItemIndex %>'
                                                            runat="server" id="req_Request"
                                                            controltovalidate="txt_ReqId"
                                                            errormessage="Request is Required!" />
                                                        <span class="input-group-btn">
                                                            <button id="btn_lov_ReqAction" type="button" runat="server"
                                                                class="btn btn-white"
                                                                onserverclick="btn_lov_ReqAction_Click"><i
                                                                    class="fa fa-search"></i></button>
                                                        </span>--%>
                                                    <%--</div>--%>
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText="Position" ControlStyle-Width="200px" ItemStyle-Width="100px">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt_Pos" Enabled="false" runat="server"  CssClass="form-control"></asp:TextBox>
                                                    
                                     
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText="City" ControlStyle-Width="150px" ItemStyle-Width="100px">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt_City" Enabled="false" runat="server"  CssClass="form-control"></asp:TextBox>
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            

                                            <asp:TemplateField HeaderText="Evaluation" ControlStyle-Width="200px" ItemStyle-Width="100px">
                                                <ItemTemplate>
                                                    <div class="input-group">
                                                       
                                                        <asp:TextBox CssClass="form-control" ID="txt_evalName"
                                                            runat="server" Text='<%#Bind("EvalName") %>'>
                                                        </asp:TextBox>
                                                        <asp:RequiredFieldValidator SetFocusOnError="true"
                                                            ValidationGroup='<%# "add2" + Container.DataItemIndex %>'
                                                            runat="server" id="Req_evalName" controltovalidate="txt_evalName"
                                                            errormessage="Evaluation is Required!" />
                                                        <span class="input-group-btn">
                                                            <button id="btn_lov_Eval" type="button" runat="server"
                                                                class="btn btn-white"
                                                                onserverclick="btn_lov_Eval_Click"><i
                                                                    class="fa fa-search"></i></button>
                                                        </span>
                                                    </div>
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText="Action" ControlStyle-Width="200px" ItemStyle-Width="100px">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt_Action" runat="server"
                                                        Text='<%#Bind("Action") %>' CssClass="form-control"
                                                        ></asp:TextBox>
                                                    <asp:RequiredFieldValidator SetFocusOnError="true"
                                                        ValidationGroup='<%# "add2" + Container.DataItemIndex %>'
                                                        runat="server" id="req_Action" controltovalidate="txt_Action"
                                                        errormessage="Action is Required!" />
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Totalmarks" HeaderStyle-Width="80px">
                                                <ItemTemplate>


                                                    <asp:TextBox CssClass="form-control" ID="txt_Totalmarks"
                                                        runat="server" Text='<%#Bind("TOTAL_MARKS") %>'>
                                                    </asp:TextBox>
                                                    <asp:RequiredFieldValidator SetFocusOnError="true"
                                                        ValidationGroup='<%# "add2" + Container.DataItemIndex %>'
                                                        runat="server" id="req_Totalmarks"
                                                        controltovalidate="txt_Totalmarks"
                                                        errormessage="Total Marks is Required!" />

                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText="PassingMarks" HeaderStyle-Width="80px">
                                                <ItemTemplate>
                                                    <asp:TextBox CssClass="form-control" ID="txt_PassingMarks"
                                                        runat="server" Text='<%#Bind("PASSING_MARKS") %>'>
                                                    </asp:TextBox>
                                                    <asp:RequiredFieldValidator SetFocusOnError="true"
                                                        ValidationGroup='<%# "add2" + Container.DataItemIndex %>'
                                                        runat="server" id="req_PassingMarks"
                                                        controltovalidate="txt_PassingMarks"
                                                        errormessage="Passing Marks is Required!" />

                                                    <asp:CompareValidator runat="server" id="cmpint_mrk" controltovalidate="txt_PassingMarks" controltocompare="txt_Totalmarks" operator="LessThanEqual" type="Integer" errormessage="Passing Marks should be less than OR equal to Total Marks!" ValidationGroup='<%# "add2" + Container.DataItemIndex %>' />

                                                </ItemTemplate>
                                            </asp:TemplateField>

                                           

                                            <asp:TemplateField HeaderText="Date From" ControlStyle-Width="150px" ItemStyle-Width="100px">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt_DATE_FROM" runat="server"
                                                        Text='<%#Bind("DATE_FROM") %>' CssClass="form-control datetime">
                                                    </asp:TextBox>
                                                    <asp:RequiredFieldValidator SetFocusOnError="true"
                                                        ValidationGroup='<%# "add2" + Container.DataItemIndex %>'
                                                        runat="server" id="req_DATE_FROM"
                                                        controltovalidate="txt_DATE_FROM"
                                                        errormessage="DATE FROM is Required!" />

                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText="Date To" ControlStyle-Width="150px" ItemStyle-Width="100px">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt_DATE_TO" runat="server"
                                                        Text='<%#Bind("DATE_TO") %>' CssClass="form-control datetime">
                                                    </asp:TextBox>
                                                    <asp:RequiredFieldValidator SetFocusOnError="true"
                                                        ValidationGroup='<%# "add2" + Container.DataItemIndex %>'
                                                        runat="server" id="req_DATE_TO" controltovalidate="txt_DATE_TO"
                                                        errormessage="DATE TO is Required!" />
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText="Next Action" ControlStyle-Width="200px" ItemStyle-Width="100px">
                                                <ItemTemplate>
                                                    <asp:DropDownList ID="ddl_NextAction" runat="server"
                                                        CssClass="form-control"></asp:DropDownList>
                                                    <asp:RequiredFieldValidator SetFocusOnError="true"
                                                        ValidationGroup='<%# "add2" + Container.DataItemIndex %>'
                                                        runat="server" id="req_NextAction"
                                                        controltovalidate="ddl_NextAction"
                                                        errormessage="Next Action is Required!" />
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                             <asp:TemplateField HeaderText="Remarks" ControlStyle-Width="150px" ItemStyle-Width="100px">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt_Remarks" runat="server" TextMode="MultiLine"
                                                        Text='<%#Bind("Remarks") %>' CssClass="form-control ">
                                                    </asp:TextBox>
                                                    <asp:RequiredFieldValidator SetFocusOnError="true"
                                                        ValidationGroup='<%# "add2" + Container.DataItemIndex %>'
                                                        runat="server" id="req_Remarks" controltovalidate="txt_Remarks"
                                                        errormessage="Remarks is Required!" />
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText="Action" ItemStyle-Width="5%">
                                                <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='<%# "add2" + 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>--%>

                                                    <a id="Fac" href="FactorDetail.aspx?Plan_Header=<%# Request.QueryString["Plan_Header"]+""+"&Request_ID="+Request.QueryString["Request_ID"]+"" + "&Req_Name="+Request.QueryString["Req_Name"]+"" +"&bg_id="+ Request.QueryString["bg_id"]+""+"&pos_id="+Request.QueryString["pos_id"]+""+"&pos_name="+Request.QueryString["pos_name"]+""+"&City_id="+Request.QueryString["City_id"]+""+"&City_name="+Request.QueryString["City_name"]+"" +"&EvalHID="+HRMS.Global.Encrypt(Eval("EVAL_HEADER_ID").ToString())+"&ActID="+HRMS.Global.Encrypt(Eval("ACTION_ID").ToString()) +"&rec_lineID="+Request.QueryString["rec_lineID"].ToString() +"&Tmrks="+HRMS.Global.Encrypt(Eval("TOTAL_MARKS").ToString())%>">Factor</a>
                                                </ItemTemplate>
                                                <ItemStyle Width="6%"></ItemStyle>



                                            </asp:TemplateField>
                                           
                                        </Columns>
                                        <FooterStyle CssClass="footerStyle" />
                                        <HeaderStyle CssClass="headerStyle" />
                                        <RowStyle CssClass="rowStyle" />
                                    </asp:GridView>
                             </div>
                         </div>
                         </div>

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