<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="PlanDetail.aspx.cs" Inherits="HRMS.Recruitment.PlanDetail" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
      <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
                                        CssClass="table table-striped table-bordered table-hover" CellPadding="0"
                                        OnRowCommand="GridView1_RowCommand">
                                        <Columns>
                                            <asp:TemplateField HeaderStyle-Width="10px">
                                                <ItemTemplate>
                                                    <asp:HiddenField ID="hid_line_id" runat="server" />
                                                    <asp:HiddenField ID="hid_Plan_id" runat="server"
                                                        Value='<%#Bind("REC_PLAN_HEADER_ID")%>' />
                                                    <asp:HiddenField ID="hid_PosiID" runat="server"
                                                        Value='<%#Bind("POSITION_ID")%>' />
                                                    <asp:HiddenField ID="hid_CityID" runat="server"
                                                        Value='<%#Bind("CITY_ID")%>' />
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText="Request">
                                                <ItemTemplate>
                                                    <div class="input-group">
                                                        <asp:HiddenField ID="hid_requestID" runat="server"
                                                            Value='<%#Bind("REQUEST_HEADER_ID")%>' />
                                                        <asp:TextBox CssClass="form-control" ID="txt_ReqId"
                                                            runat="server" Text='<%#Bind("RequestName") %>'>
                                                        </asp:TextBox>
                                                        <asp:RequiredFieldValidator SetFocusOnError="true"
                                                            ValidationGroup='<%# "add1" + Container.DataItemIndex %>'
                                                            runat="server" id="req_Request"
                                                            controltovalidate="txt_ReqId"
                                                            errormessage="Request is Required!" />
                                                        <span class="input-group-btn">
                                                            <button id="btn_lov_Req" type="button" runat="server"
                                                                class="btn btn-white"
                                                                onserverclick="btn_lov_Req_Click"><i
                                                                    class="fa fa-search"></i></button>
                                                        </span>
                                                    </div>
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText="Position" HeaderStyle-Width="140px">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt_Pos" runat="server"
                                                        Text='<%#Bind("Position") %>' CssClass="form-control"
                                                        Enabled="false"></asp:TextBox>
                                                    <asp:RequiredFieldValidator SetFocusOnError="true"
                                                        ValidationGroup='<%# "add1" + Container.DataItemIndex %>'
                                                        runat="server" id="req_Positions" controltovalidate="txt_Pos"
                                                        errormessage="Positions is Required!" />
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText="City">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt_City" runat="server" Text='<%#Bind("City") %>'
                                                        CssClass="form-control" Enabled="false"></asp:TextBox>
                                                    <asp:RequiredFieldValidator SetFocusOnError="true"
                                                        ValidationGroup='<%# "add1" + Container.DataItemIndex %>'
                                                        runat="server" id="req_City" controltovalidate="txt_City"
                                                        errormessage="City is Required!" />
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText="Estimated Start Date">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt_ESTIMATEDStart" runat="server"
                                                        Text='<%#Bind("ESTIMATED_START_DATE") %>'
                                                        CssClass="form-control datetime"></asp:TextBox>
                                                    <asp:RequiredFieldValidator SetFocusOnError="true"
                                                        ValidationGroup='<%# "add1" + Container.DataItemIndex %>'
                                                        runat="server" id="req_EstimatedstartDate"
                                                        controltovalidate="txt_ESTIMATEDStart"
                                                        errormessage="Estimated Start Date is Required!" />

                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText="Estimated End Date">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt_ESTIMATEDEnd" runat="server"
                                                        Text='<%#Bind("ESTIMATED_END_DATE") %>'
                                                        CssClass="form-control datetime"></asp:TextBox>
                                                    <asp:RequiredFieldValidator SetFocusOnError="true"
                                                        ValidationGroup='<%# "add1" + Container.DataItemIndex %>'
                                                        runat="server" id="req_EstimateenddDate"
                                                        controltovalidate="txt_ESTIMATEDEnd"
                                                        errormessage="Estimated End Date 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='<%# "add1" + 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>
</asp:Content>
