<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="Shipment.aspx.cs" Inherits="HRMS.Purcahsing.Shipment" %>
<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">
                            Shipment
                            <div class="pull-right">
                                <asp:button text="Distributions" CssClass="btn btn-info" ID="btn_save" Width="120px"
                                    ValidationGroup="Distributions" runat="server" onclick="btn_Distributions_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>

                           <updatepanel>
                            <asp:HiddenField runat="server" ID="hidTAB" Value="0" />
                         
                            <ul class="nav nav-tabs">
                                <li class="active"><a data-toggle="tab" id="Shipment_click" href="#Shipment" aria-expanded="true">Shipment</a></li>
                               <li class="inactive"><a data-toggle="tab" id="More_click" href="#More" aria-expanded="false">More</a></li>
                                <li class="inactive"><a data-toggle="tab"id="Status_click" href="#Status" aria-expanded="false">Status</a></li>
                                
                                </li>
                            </ul>


                           <div class="tab-content">
                            <div id="Shipment" class="tab-pane fade active in">
                                    <br />

                                <%--<div style="width:102%;height:250px;overflow:scroll;">--%>
                                 <div class="row" style="padding-top:10px">
                                      <div class="modal-body" style="overflow-y: scroll;">
                                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
                                       CssClass="table table-striped table-bordered table-hover" CellPadding="0" Width="5000px"
                                        OnRowCommand="GridView1_RowCommand">
                                        <Columns>
                                            <asp:TemplateField HeaderStyle-Width="10px">
                                                <ItemTemplate>
                                                    <asp:HiddenField ID="hid_line_id" runat="server"  Value='<%#Bind("po_line_id")%>'/>
                                                     <asp:HiddenField ID="hid_po_header_id" runat="server"  Value='<%#Bind("po_header_id")%>'/>
                                                    <asp:HiddenField ID="hid_Location" runat="server"
                                                        Value='<%#Bind("Ship_To_Location_Id")%>' />
                                                    <asp:HiddenField ID="hid_UOM" runat="server"
                                                        Value='<%#Bind("Unit_Meas_Lookup_Code")%>' />
                                                    <asp:HiddenField ID="hid_org" runat="server"
                                                        Value='<%#Bind("Ship_To_Organization_Id")%>' />
                                                    <asp:HiddenField ID="hidShipment_Num" runat="server"
                                                        Value='<%#Bind("Shipment_Num")%>' />
                                                    
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText="Numeber" HeaderStyle-Width="5%">
                                                <ItemTemplate>
                                                    <div class="input-group">
                                                        
                                                        <asp:TextBox CssClass="form-control" ID="txt_Number"
                                                            runat="server" Text='<%#Bind("Shipment_Num") %>'>
                                                        </asp:TextBox>
                                                    </div>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                              <asp:TemplateField HeaderText="Org"  HeaderStyle-Width="30%">
                                                <ItemTemplate>
                                                    <div class="input-group">                                                        
                                                        <asp:TextBox CssClass="form-control" ID="txt_Org"
                                                            runat="server" Text='<%#Bind("OrganizationName") %>'>
                                                        </asp:TextBox>
                                                        
                                                        <span class="input-group-btn">
                                                            <button id="btn_lov_Org" type="button" runat="server"
                                                                class="btn btn-white"
                                                                onserverclick="btn_lov_Org_Click"><i
                                                                    class="fa fa-search"></i></button>
                                                        </span>
                                                    </div>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                             <asp:TemplateField HeaderText="Ship-to">
                                                <ItemTemplate>
                                                    <div class="input-group">                                                        
                                                        <asp:TextBox CssClass="form-control" ID="txt_Shipto"
                                                            runat="server" Text='<%#Bind("LocationName") %>'>
                                                        </asp:TextBox>
                                                        
                                                        <span class="input-group-btn">
                                                            <button id="btn_lov_Shipto" type="button" runat="server"
                                                                class="btn btn-white"
                                                                onserverclick="btn_lov_Shipto_Click"><i
                                                                    class="fa fa-search"></i></button>
                                                        </span>
                                                    </div>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                               
                                            <asp:TemplateField HeaderText="UOM" HeaderStyle-Width="20%">
                                                <ItemTemplate>
                                                    <div class="input-group">                                                        
                                                        <asp:TextBox CssClass="form-control" ID="txt_UOM"
                                                            runat="server" Text='<%#Bind("UOM") %>'>
                                                        </asp:TextBox>
                                                        
                                                        <span class="input-group-btn">
                                                            <button id="btn_lov_UOM" type="button" runat="server"
                                                                class="btn btn-white"
                                                                onserverclick="btn_lov_UOM_Click"><i
                                                                    class="fa fa-search"></i></button>
                                                        </span>
                                                    </div>
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                         <asp:TemplateField HeaderText="Quantity" HeaderStyle-Width="25%">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt_qty" runat="server"
                                                        Text='<%#Bind("Quantity") %>' CssClass="form-control"
                                                        ></asp:TextBox>
                                                                                                         
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                              <asp:TemplateField HeaderText="Promised" HeaderStyle-Width="25%">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt_PROMISED_DATE" runat="server"
                                                        Text='<%#Bind("PROMISED_DATE") %>' CssClass="form-control datetime" 
                                                        ></asp:TextBox>
                                                                                                         
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                              <asp:TemplateField HeaderText="Need-By" HeaderStyle-Width="25%">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt_Needby" runat="server"
                                                        Text='<%#Bind("need_by_date") %>' CssClass="form-control datetime" 
                                                        ></asp:TextBox>
                                                                                                         
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                             
                                               <asp:TemplateField HeaderText="Orignal Promise" HeaderStyle-Width="20%">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt_type" runat="server"
                                                        Text='<%#Bind("Orignal_Promised") %>' CssClass="form-control"
                                                        ></asp:TextBox>
                                                                                                         
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText="Not For Receiver" HeaderStyle-Width="15%">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt_noteforrec" runat="server"
                                                        Text='<%#Bind("note_to_receiver") %>'
                                                        CssClass="form-control"></asp:TextBox>
                                                   

                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText="Country OF Origin" HeaderStyle-Width="15%">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt_cityoforgin" runat="server"
                                                        Text='<%#Bind("country_of_origin_code") %>'
                                                        CssClass="form-control"></asp:TextBox>
                                                  
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                          
                                                     
                                            <asp:TemplateField HeaderText="Charge Account" HeaderStyle-Width="50%">
                                                <ItemTemplate>
                                                                                
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            
                                            
                                             <asp:TemplateField HeaderText="Amount" HeaderStyle-Width="25%">
                                                <ItemTemplate>
                                                   
                                                                                                         
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                              
                                        
                                              <asp:TemplateField HeaderText="Reserved" HeaderStyle-Width="25%">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt_Reserved" runat="server"
                                                        Text='<%#Bind("encumbered_flag") %>' CssClass="form-control"
                                                        ></asp:TextBox>
                                                                                                         
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                           
                                           <%-- <asp:TemplateField ItemStyle-Width="12%">
                                                <ItemTemplate>
                                                    
                                                    <a id="asg"  href="ActionDetail.aspx?Plan_Header=<%# HRMS.Global.Encrypt(hid_ReqplanId.Value.ToString())+"&Request_ID="+HRMS.Global.Encrypt(Eval("REQUEST_HEADER_ID").ToString()) + "&Req_Name="+HRMS.Global.Encrypt(Eval("RequestName").ToString()) +"&bg_id="+ HRMS.Global.Encrypt(ddl_Busunit.SelectedValue.ToString())+"&pos_id="+HRMS.Global.Encrypt(Eval("POSITION_ID").ToString())+"&pos_name="+ HRMS.Global.Encrypt(Eval("Position").ToString())+"&City_id="+HRMS.Global.Encrypt(Eval("CITY_ID").ToString())+"&City_name="+ HRMS.Global.Encrypt(Eval("City").ToString())+"&rec_lineID="+ HRMS.Global.Encrypt(Eval("REC_PLAN_LINE_ID").ToString())%>">Action</a>
                                                    
                                                        
                                                    
                                                    <a id="Ins" href="InstrumentDetail.aspx?Plan_Header=<%# HRMS.Global.Encrypt(hid_ReqplanId.Value.ToString())+"&Request_ID="+HRMS.Global.Encrypt(Eval("REQUEST_HEADER_ID").ToString()) + "&Req_Name="+HRMS.Global.Encrypt(Eval("RequestName").ToString()) +"&bg_id="+ HRMS.Global.Encrypt(ddl_Busunit.SelectedValue.ToString())+"&pos_id="+HRMS.Global.Encrypt(Eval("POSITION_ID").ToString())+"&pos_name="+ HRMS.Global.Encrypt(Eval("Position").ToString())+"&City_id="+HRMS.Global.Encrypt(Eval("CITY_ID").ToString())+"&City_name="+ HRMS.Global.Encrypt(Eval("City").ToString())+"&rec_lineID="+ HRMS.Global.Encrypt(Eval("REC_PLAN_LINE_ID").ToString())%>">Instrument</a>
                                                </ItemTemplate>
                                            </asp:TemplateField>--%>
                                           
                                            <asp:TemplateField HeaderText="Action" ItemStyle-Width="5%">
                                                <ItemTemplate>
                                                    <asp:LinkButton ID="LinkButton4" runat="server" Visible="false"
                                                        CommandName="gEdit"><i class="fa fa-pencil"
                                                            style="font-size:20px !important;"></i>
                                                    </asp:LinkButton>
                                                    <asp:LinkButton ID="LinkButton5"
                                                        
                                                        runat="server" CommandName="gadd"><i class="fa fa-plus"
                                                            style="font-size:20px !important;"></i>
                                                    </asp:LinkButton>
                                                    <asp:linkbutton ID="Linkbutton6" 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>
                                    <br />
                                </div>
                            
                            <div id="More" class="tab-pane fade">
                                    <br />
                                 <div class="modal-body" style="overflow-y: scroll;">
                                    <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False"
                                      CssClass="table table-striped table-bordered table-hover" CellPadding="0" Width="1500px"
                                        OnRowCommand="GridView2_RowCommand">
                                        <Columns>
                                            <asp:TemplateField HeaderStyle-Width="10px">
                                                <ItemTemplate>
                                                    <asp:HiddenField ID="hid_priceref_id" runat="server" Value='<%#Bind("po_line_id")%>' />
                                                     <%--<asp:HiddenField ID="hid_Pricetpe" runat="server" Value='<%#Bind("price_type_lookup_code")%>' />--%>
                                                    
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                              
                                            <asp:TemplateField HeaderText="Receipt Close Tolerance(%)" HeaderStyle-Width="10%">
                                                <ItemTemplate>
                                                    <div class="input-group">
                                                        
                                                        <asp:TextBox CssClass="form-control" ID="txt_Recclosetol"
                                                            runat="server" Text='<%#Bind("receive_close_tolerance") %>'>
                                                        </asp:TextBox>
                                                    </div>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                             <asp:TemplateField HeaderText="Invoice Close Tolerance(%)" HeaderStyle-Width="10%">
                                                <ItemTemplate>
                                                    <div class="input-group">
                                                        
                                                        <asp:TextBox CssClass="form-control" ID="txt_invoiceclode"
                                                            runat="server" Text='<%#Bind("invoice_close_tolerance") %>'>
                                                        </asp:TextBox>
                                                    </div>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Accurat Reciept">
                                                 
                                                <ItemTemplate>
                                              
                                            <div class="col-md-3 text-left">
                                                <span class="checkbox"><input id="chk_Accurat" runat="server"
                                                        type="checkbox" name="ctl00$ContentPlaceHolder1$Accurat"  />
                                                    <label class="col-md-1 control-label"></label></span>

                                            </div>
                                                     </ItemTemplate>
                                            </asp:TemplateField>
                                             
                                                   <asp:TemplateField HeaderText="Firm">
                                                <ItemTemplate>
                                               <label class="col-md-1 control-label"></label>
                                            <div class="col-md-3 text-left">
                                                <span class="checkbox"><input id="chk_Firm" runat="server"
                                                        type="checkbox" name="ctl00$ContentPlaceHolder1$Firm" />
                                                    <label class="col-md-1 control-label"></label></span>

                                            </div>
                                                     </ItemTemplate>
                                            </asp:TemplateField>
                                             <asp:TemplateField HeaderText="VMI">
                                                <ItemTemplate>
                                               <label class="col-md-1 control-label"></label>
                                            <div class="col-md-3 text-left">
                                                <span class="checkbox"><input id="chk_VMI" runat="server"
                                                        type="checkbox" name="ctl00$ContentPlaceHolder1$VMI" />
                                                    <label class="col-md-1 control-label"></label></span>

                                            </div>
                                                     </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Consigned">
                                                <ItemTemplate>
                                               <label class="col-md-1 control-label"></label>
                                            <div class="col-md-3 text-left">
                                                <span class="checkbox"><input id="chk_Consigned" runat="server"
                                                        type="checkbox" name="ctl00$ContentPlaceHolder1$Consigned" />
                                                    <label class="col-md-1 control-label"></label></span>

                                            </div>
                                                     </ItemTemplate>
                                            </asp:TemplateField>
                                          <asp:TemplateField HeaderText="Action" ItemStyle-Width="5%">
                                                <ItemTemplate>
                                                    <asp:LinkButton ID="LinkButton1" runat="server" Visible="false"
                                                        CommandName="gEdit"><i class="fa fa-pencil"
                                                            style="font-size:20px !important;"></i>
                                                    </asp:LinkButton>
                                                    <asp:LinkButton ID="LinkButton2"
                                                        
                                                        runat="server" CommandName="gadd"><i class="fa fa-plus"
                                                            style="font-size:20px !important;"></i>
                                                    </asp:LinkButton>
                                                    <asp:linkbutton ID="Linkbutton3" 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>
                                    <br />

                                </div>
                         
                             <div id="Status" class="tab-pane fade">
                                    <br />
                                                                  <div class="modal-body" style="overflow-y: scroll;">
                                    <asp:GridView ID="GridView3" runat="server" AutoGenerateColumns="False"
                                      CssClass="table table-striped table-bordered table-hover" CellPadding="0" Width="2000px"
                                        OnRowCommand="GridView3_RowCommand">
                                        <Columns>
                                            <asp:TemplateField HeaderStyle-Width="10px">
                                                <ItemTemplate>
                                                    <asp:HiddenField ID="hid_priceDoc_id" runat="server" Value='<%#Bind("po_line_id")%>' />
                                                  <%--  <asp:HiddenField ID="hid_ContractID" runat="server" Value='<%#Bind("Contract_Num")%>' />
                                                     <asp:HiddenField ID="hid_ConID" runat="server" Value='<%#Bind("oke_contract_header_id")%>' />--%>
                                                    
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                              
                                    
                                             <asp:TemplateField HeaderText="Days Early" HeaderStyle-Width="10%">
                                                <ItemTemplate>
                                                    <div class="input-group">
                                                        
                                                        <asp:TextBox CssClass="form-control" ID="txt_Dayearly"
                                                            runat="server" Text='<%#Bind("days_early_receipt_allowed") %>'>
                                                        </asp:TextBox>
                                                    </div>
                                                </ItemTemplate>
                                          </asp:TemplateField>
                                             <asp:TemplateField HeaderText="Day Late" HeaderStyle-Width="10%">
                                                <ItemTemplate>
                                                    <div class="input-group">
                                                        
                                                        <asp:TextBox CssClass="form-control" ID="txt_DayLate"
                                                            runat="server" Text='<%#Bind("days_late_receipt_allowed") %>'>
                                                        </asp:TextBox>
                                                    </div>
                                                </ItemTemplate>
                                          </asp:TemplateField>
                                             <asp:TemplateField HeaderText="Action" HeaderStyle-Width="10%">
                                                <ItemTemplate>
                                                    
                                                <div class="col-md-3">

                                                    <asp:DropDownList ID="ddl_Action" runat="server"
                                                        CssClass="form-control">

                                                        <asp:ListItem Text="None" Value="1"></asp:ListItem>
                                                        <asp:ListItem Text="Warning" Value="2"></asp:ListItem>
                                                         <asp:ListItem Text="Reject" Value="3"></asp:ListItem>
                                                    </asp:DropDownList>

                                                </div>
                                                </ItemTemplate>
                                          </asp:TemplateField>
                                             <asp:TemplateField HeaderText="Last Accept Date " HeaderStyle-Width="10%">
                                                <ItemTemplate>
                                                    <div class="input-group">
                                                        
                                                        <asp:TextBox CssClass="form-control Datetime" ID="txt_lastacceptdate"
                                                            runat="server" Text='<%#Bind("last_accept_date") %>'>
                                                        </asp:TextBox>
                                                    </div>
                                                </ItemTemplate>
                                          </asp:TemplateField>

                                           
                                            
                                             <asp:TemplateField HeaderText="Tolerance" HeaderStyle-Width="10%">
                                                <ItemTemplate>
                                                    <div class="input-group">
                                                        
                                                        <asp:TextBox CssClass="form-control" ID="txt_Tolerance"
                                                            runat="server" Text='<%#Bind("Qty_Rcv_Tolerance") %>'>
                                                        </asp:TextBox>
                                                    </div>
                                                </ItemTemplate>
                                          </asp:TemplateField>
                                            
                                            <asp:TemplateField HeaderText="Action" HeaderStyle-Width="10%">
                                                <ItemTemplate>
                                            <div class="col-md-3">
                                                 <div class="input-group">
                                                    <asp:DropDownList ID="ddl_Action1" runat="server"
                                                        CssClass="form-control">

                                                        <asp:ListItem Text="None" Value="1"></asp:ListItem>
                                                        <asp:ListItem Text="Warning" Value="2"></asp:ListItem>
                                                         <asp:ListItem Text="Reject" Value="3"></asp:ListItem>
                                                    </asp:DropDownList>

                                                </div>
                                                </div>
                                                    </ItemTemplate>
                                          </asp:TemplateField>

                                         
                                             <asp:TemplateField HeaderText="Allow Substituis Reciept">
                                                <ItemTemplate>
                                               <label class="col-md-1 control-label"></label>
                                            <div class="col-md-3 text-left">
                                                <span class="checkbox"><input id="chk_Allowsub" runat="server"
                                                        type="checkbox" name="ctl00$ContentPlaceHolder1$Allowsub" />
                                                    <label class="col-md-1 control-label"></label></span>

                                            </div>
                                                     </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Tolerance%" HeaderStyle-Width="10%">
                                                <ItemTemplate>
                                                    <div class="input-group">
                                                        
                                                        <asp:TextBox CssClass="form-control" ID="txt_rev"
                                                            runat="server" Text='<%#Bind("QTY_RCV_EXCEPTION_CODE") %>'>
                                                        </asp:TextBox>
                                                    </div>
                                                </ItemTemplate>
                                          </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Reciept Routing" HeaderStyle-Width="10%">
                                                <ItemTemplate>
                                                    <div class="input-group">
                                                        
                                                        <asp:TextBox CssClass="form-control" ID="txt_Routing"
                                                            runat="server" Text='<%#Bind("RECEIVING_ROUTING_ID") %>'>
                                                        </asp:TextBox>
                                                    </div>
                                                </ItemTemplate>
                                          </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Enforce SHip-To" HeaderStyle-Width="10%">
                                                <ItemTemplate>
                                                    <div class="input-group">
                                                        
                                                        <asp:TextBox CssClass="form-control" ID="txt_Enfoorce"
                                                            runat="server" Text='<%#Bind("ENFORCE_SHIP_TO_LOCATION_CODE") %>'>
                                                        </asp:TextBox>
                                                    </div>
                                                </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"
                                                        
                                                        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>
                                    <br />

                                </div>
                            
                        

                        </div>
                               </updatepanel>

                            <hr />

                            <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 src="/ThemeScrips/select2.min.js"></script>--%>


    <script src="Scripts/jquery-2.1.3.min.js"></script>
    <script src="Scripts/bootstrap.js"></script>

    <script>
        $('.select2').select2();
        $('.select2').select2({ dropdownAutoWidth: true });
        $('.select2').select2({ width: '100%' });

        $(document).ready(function () {

            var tabId = document.getElementById('<%= hidTAB.ClientID%>').value;
            if (tabId == "3") {
                $('#myTabs a[href="#Status"]').tab('show');
                //alert(tabId);
            }
            else if (tabId == "2") {
                $('#myTabs a[href="#More"]').tab('show');
                //alert(tabId);
            }
            else {
                $('#myTabs a[href="#Shipment"]').tab('show');
                //alert(tabId);
            }

            //$('.nav-tabs a[href="#' + tabId + '"]').tab('show');
            //$('#myTabs a[href="' + tab + '"]').tab('show');

            //$("btn_lov_ReqPlan").click(function ()){
            //    $('#myTabs a[href="#Action"]').tab('show');
            //    alert('Yes Action');
            //});

        });

        $("#Shipment_click").click(function () {
            document.getElementById('<%= hidTAB.ClientID%>').value = "1";
            //var x = document.getElementById('<%= hidTAB.ClientID%>').value;           
            //alert(x);
        });

        $("#More_click").click(function () {
            document.getElementById('<%= hidTAB.ClientID%>').value = "2";
            //var y = document.getElementById('<%= hidTAB.ClientID%>').value;
            //alert(y);
        });

        $("#Status_click").click(function () {
            document.getElementById('<%= hidTAB.ClientID%>').value = "3";
            //var z = document.getElementById('<%= hidTAB.ClientID%>').value;
            //alert(z);
        });

        

      
    </script>
</asp:Content>
