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

<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">
                        Instrument 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="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="GridView4" runat="server" AutoGenerateColumns="False"
                                        CssClass="table table-striped table-bordered table-hover" CellPadding="0"
                                        OnRowCommand="GridView4_RowCommand" OnRowDataBound="GridView4_RowDataBound">
                                        <Columns>
                                            <asp:TemplateField HeaderStyle-Width="1%">
                                                <ItemTemplate>
                                                    <asp:HiddenField ID="INSTRUMENT_LINE_ID" runat="server" Value='<%#Bind("INSTRUMENT_LINE_ID")%>' />
                                                    <asp:HiddenField ID="hid_instrument_type" runat="server" Value='<%# Bind("INSTRUMENT_TYPE") %>' />
                                                    <asp:HiddenField ID="hid_rec_lineID" runat="server" Value='<%# Bind("REC_PLAN_LINE_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="Instrument Type" ControlStyle-Width="150px" ItemStyle-Width="100px">
                                                <ItemTemplate>
                                                    <asp:DropDownList ID="ddl_instrument_type" runat="server" CssClass="form-control select2"></asp:DropDownList>
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText="Date From" ControlStyle-Width="100px" 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='<%# "add4" + 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="100px" 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='<%# "add4" + Container.DataItemIndex %>'
                                                        runat="server" id="req_DATE_TO" controltovalidate="txt_DATE_TO"
                                                        errormessage="DATE TO is Required!" />
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText="Publish Date" ControlStyle-Width="100px" ItemStyle-Width="100px">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt_PublishDate" runat="server"
                                                        Text='<%#Bind("PUBLISH_DATE") %>' CssClass="form-control datetime">
                                                    </asp:TextBox>
                                                    <asp:RequiredFieldValidator SetFocusOnError="true"
                                                        ValidationGroup='<%# "add4" + Container.DataItemIndex %>'
                                                        runat="server" id="req_Publish" controltovalidate="txt_PublishDate"
                                                        errormessage="Publish 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='<%# "add4" + 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>

                </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>
