<%@ Page Title="Inventory Page" Language="C#" MasterPageFile="~/SunMaster.Master" AutoEventWireup="true" EnableEventValidation="false"
    CodeBehind="Inventory.aspx.cs" Inherits="SUNWEB.Inventory" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    
     
    
      <script type="text/javascript" language="javascript">
          function AllowOnlyNumeric() {
              // Get the ASCII value of the key that the user entered
              var key = window.event.keyCode;

              // Verify if the key entered was a numeric character (0-9) or a decimal (.)
              if ((key > 47 && key < 58) || key == 46)
              // If it was, then allow the entry to continue
                  return;

              else 
              // If it was not, then dispose the key and continue with entry
                  window.event.returnValue = null;
              alert("Number Only Allowed")
          }



          function isNumberKey(evt, obj) {

              var charCode = (evt.which) ? evt.which : event.keyCode
              var value = obj.value;
              var dotcontains = value.indexOf(".") != -1;
              if (dotcontains)
                  if (charCode == 46) return false;
              if (charCode == 46) return true;
              if (charCode > 31 && (charCode < 48 || charCode > 57))
                  return false;
              return true;
          }





          function validateNumberInput(event)
          {
              const key = event.key;
              const isNumber = /^\d$/.test(key);
              const isMinusSign = key === '-' && !event.target.value.includes('-');

              if (!isNumber && !isMinusSign) {
                  event.preventDefault();
              }

          }

      </script>

    <style type="text/css">
    @media only screen and (max-width: 600px)
     {
      div 
       {
       text-align:left;        
       }
     }
  </style>

  

  <style type="text/css">
      @media only screen and (min-device-width : 320px) and (max-device-width : 428px)
         {
            
             .ButtonExcel {
                font-size: 12px;
                border: medium;
                font-family:Circular Std Book;
                border: none;
                
                color: white;
                background-color: Green;
                text-align: center;
                border-radius:2px;
            }
            .ButtonSearch {
                font-size: 18px;
                border: medium;
                font-family:Circular Std Book;
                border: none;
                font-weight: 400;
                color: white;
                background-color:#1874CD;
                text-align: center;
                border-radius:4px;
                border : 3px solid black;
                width:35%;
                margin-bottom:7px;
                
            }
            
            .ButtonAdd {
                font-size: 18px;
                border: medium;
                font-family: Circular Std Book;
                border: none;
                font-weight: 400;
                color: white;
                background-color:#000000;
                text-align: center;
                border-radius:4px;
                border : 3px solid black;
                width:40%;
                margin-bottom:7px;
                
                
            }
            
            
            
            .LableTitle
            {
             font-size:20px;    
             font-weight:500;
                
            } 
             
             
         }
         @media screen and (min-width: 1200px) 
         {
            
            .ButtonExcel {
                font-size: 14px;
                border: medium;
                font-family: Circular Std Book;
                border: none;
               
                color: white;
                background-color: Green;
                text-align: center;
                border-radius:2px;
                
            }
            
            .ButtonSearch 
            {
                background: #ffc108;
                margin: 0;
                font-family: Circular Std Book;
                font-size: 14px;
                line-height: inherit;
                border-width: thin;
                border-color: #212529;
                border-radius: 2px;
                color: #212529;
                
               }
            .LableTitle
            {
             font-size:28px;    
             font-weight:500;
                
            } 
             .ButtonAdd {
                font-size: 18px;
                border: medium;
                font-family:Circular Std Book;
                border: none;
                font-weight: 400;
                color: white;
                background-color:#000000;
                text-align: center;
                border-radius:4px;
                border : 3px solid black;
                width:10%;
                margin-left:1150px;
                
                
                
                
            }
            
            
             
         }
        
    
    
    </style>

  <style type="text/css">
        .modalCss
        {
            display: none; /* Hidden by default */
            position: fixed; /* Stay in place */
            z-index: 1; /* Sit on top */
            padding-top: 80px; /* Location of the box */
            left: 0;
            top: 0;
            width: 100%; /* Full width */
            height: 100%; /* Full height */
            overflow: auto; /* Enable scroll if needed */
            background-color: rgb(0,0,0); /* Fallback color */
            background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
        }
        
        
        
        .modal-dialogCss
        {
        }
        
        /* Modal Content */
        .modal-contentCss
        {
            background-color: #fefefe;
            margin: auto;
           /* padding: 20px;*/
           /* border: 1px solid #888;*/
            width: 1400px;
            height:810px;
            border-radius: 3px; 
        }
        
        
        /* Create two equal columns that floats next to each other */
        .column
        {
            float: left;
            width: 40%;
            padding: 1px;
            margin-left:5px;
            height: auto; /* Should be removed. Only for demonstration */
        }
        
        /* Clear floats after the columns */
        .row:after
        {
            content: "";
            display: table;
            clear: both;
        }
        
        .ButtonSearch 
            {
                background: #ffc108;
                margin: 0;
               font-family: Circular Std Book;
                font-size: 14px;
                line-height: inherit;
                border-width: thin;
                border-color: #212529;
                border-radius: 2px;
                color: #212529;
                
               }
    </style>
  <script type="text/javascript">

        //Search Condiment
        function CloseModalInventoryAdjustList() {
            var modal = document.getElementById("ModaInventoryAdjustList");
            modal.style.display = "none";
        }


      function ShowModalInventoryAdjustList() {
          
          
            var modal = document.getElementById("ModaInventoryAdjustList");
            modal.style.display = "block";
        }

        function CloseModal() {
            var modal = document.getElementById("ModaInventoryAdjustList");
            modal.style.display = "none";
        }
  </script>



   <style type="text/css">
    .overlay
    {
        position: fixed;
        top: 0px;
        left: 0px;
        z-index: 0;
        height: 100%;
        width: 100%;
        top: 0;
        background-color: White;
        filter:alpha(opacity=60);
        opacity: 0.9;
        -moz-opacity: 1;
    }
    
    .LoadingDivCss
    {
        margin: 0;
        position: absolute;
        top: 50%;
        left: 50%;
        margin-right: -50%;
        transform: translate(-50%, -50%);
    }
    
    .LoadingImgCss
    {
        height: 100px;
        width: 100px;
    }
</style>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

  <asp:UpdatePanel ID="UpdatePaneInventoryAdjust" runat="server" UpdateMode="Conditional">
  <ContentTemplate>
       <%-- <table style="width:100%">
       <tr>
       <td>
         <asp:Button ID="btnExcel" runat="server" Text="Export" ToolTip="To Export the Report Click Here"  CssClass="btn btn-success btn-xs" BackColor="green" BorderColor="green"  onclick="btnExcel_Click"/>
       </td>
       <td align="right" style="padding-bottom:7px;">
         
         <label for="validationCustom05">Branch  <asp:Label ID="lblBranchAliasName" runat="server"></asp:Label> </label> 
         <asp:DropDownList ID="cmbBranches" CssClass="form-select w-25"   
         runat="server" AutoPostBack="true" 
         onselectedindexchanged="cmbBranches_SelectedIndexChanged"></asp:DropDownList>

       </td>
       </tr>
       
      </table>--%>

 <div class="d-flex justify-content-between align-items-center mb-3">
    <!-- Button on the left -->
    <asp:Button ID="btnExcel" runat="server"
        Text="Export"
        ToolTip="To Export the Report Click Here"
        CssClass="btn btn-success btn-sm"
        OnClick="btnExcel_Click" />

    <!-- Dropdown with label on the right -->
  
     <div class="d-flex align-items-center mb-3">
    <!-- Label -->
    <label for="cmbBranches" class="form-label me-2 mb-0">Branch</label>

    <!-- Dropdown -->
    <asp:DropDownList ID="cmbBranches"
        runat="server"
        CssClass="form-select me-3"
        AutoPostBack="true"
        OnSelectedIndexChanged="cmbBranches_SelectedIndexChanged"
        Style="width: 200px;">
    </asp:DropDownList>

    <!-- Optional: Alias label shown beside -->
    <asp:Label ID="lblBranchAliasName" runat="server" CssClass="text-muted" />
</div>

</div>
  
      

       
        <div class="simple-card">
                      <ul class="nav nav-tabs" id="myTab5" role="tablist">
                      <li class="nav-item">
                     <%-- <a class="nav-link active border-left-0" id="home-tab-simple" data-toggle="tab" href="#home-simple" role="tab" aria-controls="home" aria-selected="true">ADJUST </a>--%>
                      </li>
                                                     
                      </ul>
                      <div class="tab-content" id="myTabContent5">
                      <div class="tab-pane fade show active" id="home-simple" role="tabpanel" aria-labelledby="home-tab-simple">
                      <div class="card-body">


                        <div class="row">
                        <div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
                        <div class="card">
                                           
                      
                          
                         <h7 class="card-header" style="background-color: #4c4c4c; color: White;">
                          <span style="font-size:14px;color:#F8F9FA">STOCK ADJUST </span>&nbsp;&nbsp;
                          <button type="button"  onclick="ShowModalInventoryAdjustList()" class="btn btn-warning">
                          Search
                          </button>
                          </h7>

                        </dv>
                        <div class="card-body">
                               <div class="table-responsive">
                               <table id="Table1" class="table table-striped table-bordered second" style="width:100%">
                               <tbody>
                               <caption>
                               <h6><asp:Label ID="lblAdjustPendingText" runat="server"></asp:Label> </h6>
                               <asp:GridView ID="GrdInvAdjView"
                                runat="server" showfooter="false"  BorderColor="Transparent" 
                                DataKeyNames="InventoryID" AutoGenerateColumns="false" EmptyDataText=" No Inventory Selected ! "
                                Height="50px" Width= "380px" onrowdeleting="GrdInvAdjView_RowDeleting" >
                               <AlternatingRowStyle CssClass="dataTableAlt" />
                                  <RowStyle CssClass="dataTable" />
                                    <Columns>
                                        <asp:TemplateField HeaderText="SNo" HeaderStyle-HorizontalAlign="Left"  ItemStyle-HorizontalAlign="left" ItemStyle-Width="31%">
                                        <ItemTemplate> 
                                        <%--<%#Container.DataItemIndex+1 %>--%>
                                        <asp:Label ID="lblSNo" runat="server" Text='<%#Eval("SNo")%>'></asp:Label>
                                        </ItemTemplate>
                                        </asp:TemplateField>

                                        <%--<asp:BoundField DataField="InventoryID" HeaderText="InvID"  HeaderStyle-HorizontalAlign="Left"  HtmlEncode="False" ItemStyle-HorizontalAlign="left" ItemStyle-Width="31%"  />--%>
                                        <asp:TemplateField HeaderText="InventoryID" HeaderStyle-HorizontalAlign="Left"  ItemStyle-HorizontalAlign="left" ItemStyle-Width="31%" >
                                        <ItemTemplate> <asp:Label ID="lblInvID" runat="server" Text='<%#Eval("InventoryID")%>'></asp:Label></ItemTemplate>
                                        </asp:TemplateField>
                                         
                                        <%--<asp:BoundField DataField="Barcode" HeaderText="Barcode"  HeaderStyle-HorizontalAlign="Left" HeaderStyle-CssClass="text-left" HtmlEncode="False" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="29%" />--%>
                                        <asp:TemplateField HeaderText="Barcode" HeaderStyle-HorizontalAlign="Left" HeaderStyle-CssClass="text-left" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="29%" >
                                        <ItemTemplate> <asp:Label ID="lblBarcode" runat="server" Text='<%#Eval("Barcode")%>'></asp:Label></ItemTemplate>
                                        </asp:TemplateField>

                                        <%--<asp:BoundField DataField="Qty" HeaderText="Qty" HtmlEncode="False" ItemStyle-HorizontalAlign="Right" HeaderStyle-CssClass="text-right" ItemStyle-Width="42%" />--%>
                                        <asp:TemplateField HeaderText="Qty" ItemStyle-HorizontalAlign="Right" HeaderStyle-CssClass="text-right" ItemStyle-Width="42%" >
                                        <ItemTemplate> <asp:Label ID="lblQty" runat="server" Text='<%#Eval("Qty")%>'></asp:Label></ItemTemplate>
                                        </asp:TemplateField>

                                        <%--<asp:BoundField DataField="AdjCost" HeaderText="AdjCost" HtmlEncode="False" ItemStyle-HorizontalAlign="Right" HeaderStyle-CssClass="text-right" ItemStyle-Width="42%" />--%>
                                        <asp:TemplateField HeaderText="AdjCost" ItemStyle-HorizontalAlign="Right" HeaderStyle-CssClass="text-right" ItemStyle-Width="42%" >
                                        <ItemTemplate> <asp:Label ID="lblAdjCost" runat="server" Text='<%#Eval("AdjCost")%>'></asp:Label></ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="CFlag" ItemStyle-HorizontalAlign="Right" HeaderStyle-CssClass="text-right" ItemStyle-Width="42%" >
                                        <ItemTemplate> <asp:Label ID="lblCFlag" runat="server" Text='<%#Eval("CFlag")%>'></asp:Label></ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="CAction" ItemStyle-HorizontalAlign="Right" HeaderStyle-CssClass="text-right" ItemStyle-Width="42%" >
                                        <ItemTemplate> <asp:Label ID="lblCAction" runat="server" Text='<%#Eval("CAction")%>'></asp:Label></ItemTemplate>
                                        </asp:TemplateField>
                                       
                                        <asp:TemplateField HeaderText="Flag" ItemStyle-HorizontalAlign="Right" HeaderStyle-CssClass="text-right" ItemStyle-Width="42%" >
                                        <ItemTemplate> <asp:Label ID="lblFlag" runat="server" Text='<%#Eval("Flag")%>'></asp:Label></ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="Action" ItemStyle-HorizontalAlign="Right" HeaderStyle-CssClass="text-right" ItemStyle-Width="42%" >
                                        <ItemTemplate> <asp:Label ID="lblAction" runat="server" Text='<%#Eval("Action")%>'></asp:Label></ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:CommandField ShowDeleteButton="True" DeleteText="Remove"  ControlStyle-ForeColor="Red"   />

                                       </Columns>
                                      </asp:GridView>
                                      </caption>
                                          
                                        
                                </tbody>
                                    
                                </table>
                                </div>
                                </div>
                          </div>
                          <div align="left">
                          <asp:Button ID="btnAdjustStockSubmit" runat="server" Text="Apply" ToolTip="Click To Adjust the Above items "  CssClass="btn btn-primary" AutoPostBack="true" onclick="btnAdjustStockSubmit_Click" />   
                          </div>
                          </div>
                       </div>
                                    
                     </div>
                       </div>
                                         
                     </div>
                     </div>
          <br />
          <br />
         </div>
         </div>



      <%--newly modified..--%>
      <div class="modalCss" id="ModaInventoryAdjustList">
<div class="modal-dialogCss">
<div class="modal-contentCss" style="width: 90%">                            
<div class="modal-body" style="padding:0px;"> 


       <div class="card">
           <h7 class="card-header" style="background-color: #4c4c4c; color: White;">
                  SEARCH STOCK ADJUST 
           <button type="button" class="close"  style="color:White; opacity:1;" onclick="CloseModal()" data-dismiss="modal">&times;</button>
           </h7>
           <div class="card-body">
               <div class="row">
                   <div class="column">
                    <label for="validationCustom03">
                    Search Type
                    </label>

                     <asp:DropDownList ID="cmbSearch" CssClass="form-select" Style="width: 200px;" 
                      runat="server" AutoPostBack="true" onselectedindexchanged="cmbSearch_SelectedIndexChanged">
                      <asp:ListItem Value="0" Text="Select"></asp:ListItem>
                      <asp:ListItem Value="1" Text="All Inventory"></asp:ListItem>
                      <asp:ListItem Value="2" Text="Inventory Id"></asp:ListItem>
                      <asp:ListItem Value="3" Text="Barcode"></asp:ListItem>
                      <asp:ListItem  Value="4" Text="Inventory Name"></asp:ListItem>
                      <asp:ListItem  Value="5" Text="Category Type"></asp:ListItem>
                      <asp:ListItem  Value="6" Text="Group1"></asp:ListItem>
                      <asp:ListItem  Value="7" Text="Group2"></asp:ListItem>
                      <asp:ListItem  Value="8" Text="Group3"></asp:ListItem>
                      <asp:ListItem  Value="9" Text="Group4"></asp:ListItem>
                      <asp:ListItem  Value="10" Text="Group5"></asp:ListItem>
                      <asp:ListItem  Value="11" Text="Description"></asp:ListItem>
                   </asp:DropDownList>

                    </div>

            <div class="row mb-2">
               <div class="col-auto">
                   <label for="txtSearchVal" class="form-label">Enter Description</label>
                   <asp:TextBox ID="txtSearchVal" runat="server" CssClass="form-control w-50" />
               </div>
           </div>


         </div>
         <div class="row">
         <div class="column">
         <asp:CheckBox ID="chkActiveonly" runat="server" Checked="true" />
         <span>Active Only</span>
         </div>

        </div>

                   
        <div class="row">
         <div class="column">
        <asp:Button ID="btnSearch" runat="server" Text="Apply" CssClass="btn btn-primary"  OnClick="btnSearch_Click"/>
        </div>
        </div>

      <div class="row">
       
      </div>
            <div>
              <div class="table-responsive" style="height:padding: 0px 20px 0px 10px;">
              
              <table id="Table3" class="table table-striped table-bordered second">

              <tbody>
              <caption>
              <label for="validationCustom03">
               Search Result:
              </label>
              <asp:Panel ID="Panel8" runat="server" BackColor="white" Height="450px" ScrollBars="Auto"
                Width="1480px">              
               
               <asp:GridView ID="grdInventoryView" runat="server" AutoGenerateColumns="False"  EmptyDataRowStyle-CssClass="alert-dark"
               Font-Size="11px" HeaderStyle-BackColor="RoyalBlue" EmptyDataText="Record Found ! " 
               DataKeyNames="InventoryID" FooterStyle-BackColor="Green" FooterStyle-ForeColor="white" 
               Width="1400px" Height="300px"  AllowPaging="true" PageSize="1000"
               BackColor="White" AllowSorting="false" OnSorting="OnSorting"
               BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" 
               onpageindexchanging="grdInventoryView_PageIndexChanging">
               <Columns>
     
                   <%--<asp:TemplateField HeaderText="SNo">
                   <ItemTemplate>
                   <%#Container.DataItemIndex+1 %>
                   </ItemTemplate>
                   </asp:TemplateField>--%>



                   <asp:TemplateField HeaderText="InvenID" SortExpression="InventoryId" ItemStyle-HorizontalAlign="Center">
                       <ItemTemplate>
                           <asp:Label ID="lblInventoryID" runat="server" Text='<%#Eval("InventoryID") %>'></asp:Label>
                       </ItemTemplate>
                   </asp:TemplateField>

                   <asp:TemplateField HeaderText="Barcode" ItemStyle-Width="80px" SortExpression="BarCode">
                       <ItemTemplate>
                           <asp:Label ID="lblBarCode" runat="server" Text='<%#Eval("BarCode") %>'></asp:Label>
                       </ItemTemplate>
                   </asp:TemplateField>

                   <%--<asp:TemplateField HeaderText="Tot.Amt" ItemStyle-Width="80px">
                      <ItemTemplate>
                      <asp:Label ID="lblRTotamt" runat="server"   Text='<%#Eval("TotalSoldAmt" ,"{0:F2}") %>'></asp:Label>
                      </ItemTemplate>
                </asp:TemplateField>     
                   --%>
                   <asp:TemplateField HeaderText="Inv.Name" ItemStyle-Width="180px" SortExpression="InventoryName" ItemStyle-HorizontalAlign="Left">
                       <ItemTemplate>
                           <asp:Label ID="lblInventoryName" runat="server" Text='<%#Eval("InventoryName") %>'></asp:Label>
                       </ItemTemplate>
                   </asp:TemplateField>
                   <asp:TemplateField HeaderText="Description" ItemStyle-Width="280px" SortExpression="Description">
                       <ItemTemplate>
                           <asp:Label ID="lblDescription" runat="server" Text='<%#Eval("Description") %>' Width="200PX"></asp:Label>
                       </ItemTemplate>
                   </asp:TemplateField>
                   <asp:TemplateField HeaderText="CategoryName" ItemStyle-Width="180px" SortExpression="CategoryName">
                       <ItemTemplate>
                           <asp:Label ID="lblCategoryName" runat="server" Text='<%#Eval("CategoryName") %>'></asp:Label>
                       </ItemTemplate>
                   </asp:TemplateField>
                   <asp:TemplateField HeaderText="Price" SortExpression="Price" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right">
                       <ItemTemplate>
                           <asp:Label ID="lblPrice" runat="server" Text='<%#Eval("Price" ,"{0:F2}") %>'></asp:Label>
                       </ItemTemplate>
                   </asp:TemplateField>
                   <asp:TemplateField HeaderText="Price2" SortExpression="Price2" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right">
                       <ItemTemplate>
                           <asp:Label ID="lblPrice2" runat="server" Text='<%#Eval("Price2" ,"{0:F2}") %>'></asp:Label>
                       </ItemTemplate>
                   </asp:TemplateField>

                   <asp:TemplateField HeaderText="Price3" SortExpression="Price3" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right">
                       <ItemTemplate>
                           <asp:Label ID="lblPrice3" runat="server" Text='<%#Eval("Price3" ,"{0:F2}") %>'></asp:Label>
                       </ItemTemplate>
                   </asp:TemplateField>

                   <asp:TemplateField HeaderText="Price4" SortExpression="Price4" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right">
                       <ItemTemplate>
                           <asp:Label ID="lblPrice4" runat="server" Text='<%#Eval("Price4" ,"{0:F2}") %>'></asp:Label>
                       </ItemTemplate>
                   </asp:TemplateField>

                   <asp:TemplateField HeaderText="OnHand" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" SortExpression="Onhand">
                       <ItemTemplate>
                           <asp:Label ID="lblOnHand" runat="server" Text='<%#Eval("OnHandICA") %>'></asp:Label>
                       </ItemTemplate>
                   </asp:TemplateField>

                   <asp:TemplateField HeaderText="Adjust">
                       <ItemTemplate>
                  <asp:TextBox ID="txtAdjust5" runat="server"  CssClass="textbox" onkeypress="validateNumberInput(event)" MaxLength="5" Text="0"
                  Width="80px"></asp:TextBox>
                   
    
                       </ItemTemplate>
                   </asp:TemplateField>

                   <asp:TemplateField HeaderText="UnitCost">
                       <ItemTemplate>
                           <asp:TextBox ID="txtUnitCost" runat="server" CssClass="textbox" MaxLength="8"
                               Width="80px" Text='<%# Eval("UCost") %>'> </asp:TextBox>
                       </ItemTemplate>
                   </asp:TemplateField>
   
                   <asp:TemplateField ItemStyle-HorizontalAlign="Center">
                       <HeaderTemplate>
                           <asp:Label ID="lblFixedCost" runat="server" Width="60px" Text="Static Cost"></asp:Label>
                       </HeaderTemplate>
                       <ItemTemplate>
                           <asp:CheckBox ID="chkFixedCost" runat="server" />
                       </ItemTemplate>
                   </asp:TemplateField>

                   <asp:TemplateField ItemStyle-HorizontalAlign="Center">
                       <HeaderTemplate>
                           <asp:Label ID="lblWastage" runat="server" Text="Wastage"></asp:Label>
                       </HeaderTemplate>
                       <ItemTemplate>
                           <asp:CheckBox ID="chkSelect" runat="server" />
                       </ItemTemplate>
                   </asp:TemplateField>

               </Columns>
                    <PagerStyle CssClass="gridview"></PagerStyle>
                    <FooterStyle BackColor="#006699" ForeColor="White"></FooterStyle>
                    <HeaderStyle BackColor="White" Font-Bold="True" ForeColor="Black"></HeaderStyle>
                    <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                    <RowStyle ForeColor="#000066" />
                    <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#F1F1F1" />
                    <SortedAscendingHeaderStyle BackColor="#007DBB" />
                    <SortedDescendingCellStyle BackColor="#CAC9C9" />
                    <SortedDescendingHeaderStyle BackColor="#00547E" />
                </asp:GridView>
                  <br />
              </asp:Panel>
        
            
            </caption>
            </tbody>
            </table>
            <div style="margin-left:1330px;">
            <asp:Button ID="btnSave" runat="server" Text="Confirm Selection"  ToolTip="Add Items To Inventory Adjust"  CssClass="btn btn-primary" AutoPostBack="true" onclick="btnSave_Click" />                 
            </div>
 
            </div>
           </div>
       </div>

      
      </div>

       
     

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


      
    </ContentTemplate>
    <Triggers>
     <asp:PostBackTrigger ControlID="btnSearch" />

    </Triggers>
    </asp:UpdatePanel>

      <asp:UpdateProgress ID="UpdateProgress" runat="server" AssociatedUpdatePanelID="UpdatePaneInventoryAdjust">
        <ProgressTemplate>
            <div class="overlay">
                <%--  <div style="z-index: 1000; margin-left: 450px; margin-top: 0; opacity: 1; -moz-opacity: 1;"> --%>
                <div class="LoadingDivCss">
                    <img alt="" src="IMG/Spinner.gif" class="LoadingImgCss" />
                  
                </div>
            </div>
        </ProgressTemplate>
    </asp:UpdateProgress>

    
          

           <asp:UpdatePanel ID="upanelx" runat="server" UpdateMode="Conditional">
             <ContentTemplate>
             
             
             
            </ContentTemplate>
             
         </asp:UpdatePanel>

            
                       
<script src="https://code.jquery.com/jquery-3.7.0.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css?v=1.1" rel="stylesheet" />
<!-- Bootstrap 5 -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" />
<!-- Optional Bootstrap Icons -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css" rel="stylesheet" />


   

          
         

</asp:Content>
