<%@ Page Title="Materials Income" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="MaterialsIncome.aspx.cs" Inherits="SMTBETECH_V3.MaterialsIncome" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">


    
        <style type="text/css">
    /*body {
        font-family: Arial;
        font-size: 10pt;
    }*/

    .GridPager a, .GridPager span {
        display: block;
        height: 28px;
        width: 24px;
        font-weight: bold;
        text-align: center;
        text-decoration: none;
    }

    .GridPager a {
        background-color: #f5f5f5;
        color: #969696;
        border: 1px solid #969696;
    }

    .GridPager span {
        /*background-color: #A1DCF2;*/
        background-color: steelblue;
        color: whitesmoke;
        border: 1px solid #3AC0F2;
    }
</style>


    
    
    <asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server"></asp:ScriptManagerProxy>

    <asp:UpdateProgress ID="UpdateProgress1" runat="server" DynamicLayout="true" AssociatedUpdatePanelID="UpdatePanel1" >

   <ProgressTemplate>
      Loading...
   </ProgressTemplate>
   
    </asp:UpdateProgress>

    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>

            <h2 id="title"><%: Title %></h2>

           
            <asp:Panel runat="server" DefaultButton="btnSearch">

            <div class="row" style="width:100%">

                <div class="col-2" style="text-align:left">
                    <asp:Button CssClass="btn btn-primary btn-sm" ID="btnNewMaterial" runat="server"
                        Text="New" OnClick="btnNewMaterial_Click"/>
                </div>
                <div class="col-4">
                    <asp:TextBox CssClass="form-control" placeholder="Search Part Number"  runat="server"
                        ID="txtSearchMaterial" AutoPostBack="false" onFocus="this.select()"/>
                </div>
                <div class="col-6" style="text-align:left">
                    <asp:Button CssClass="btn btn-primary btn-sm" ID="btnSearch" runat="server" 
                        Text="Search" OnClick="btnSearch_Click"/>
                    <asp:Button CssClass="btn btn-primary btn-sm" ID="btnClearSearch" runat="server"
                        Text="Clear" OnClick="btnClearSearch_Click"/>
                </div>

            </div>
            <p></p>
            </asp:Panel>

        <div style="overflow-x:scroll">
            <asp:GridView CssClass="table table-bordered table-striped table-sm"
                ID="GVMaterials"
                runat="server"
                AutoGenerateColumns="False"
                AllowPaging="True"
                AllowSorting="False"
                OnRowCommand="GVMaterials_RowCommand" OnPageIndexChanging="GVMaterials_PageIndexChanging" PageSize="10">
            <HeaderStyle CssClass="table-primary" />
                <Columns>
                    <asp:BoundField DataField="Id" HeaderText="Id" ReadOnly="True" InsertVisible="False" SortExpression="Id"></asp:BoundField>

                    <asp:BoundField Visible="false" DataField="IdMaterial" HeaderText="IdMaterial" ReadOnly="True" InsertVisible="False" SortExpression="IdMaterial"></asp:BoundField>

                    <asp:ButtonField HeaderStyle-Wrap="false" HeaderStyle-Width="300px" ItemStyle-Wrap="false" SortExpression="PartNumber" 
                        CommandName="EditMaterial" DataTextField="PartNumber" HeaderText="Part Number" />
            
                    <asp:BoundField HeaderStyle-Wrap="false" HeaderStyle-Width="200px" ItemStyle-Wrap="false" DataField="Description" HeaderText="Description" SortExpression="Description"></asp:BoundField>
                    
                    
                    <asp:BoundField HeaderStyle-Wrap="false" HeaderStyle-Width="200px" ItemStyle-Wrap="false" DataField="Quantity" HeaderText="Quantity" SortExpression="Quantity" ItemStyle-ForeColor="Blue" ItemStyle-HorizontalAlign="Right"></asp:BoundField>

                    <asp:BoundField HeaderStyle-Wrap="false" HeaderStyle-Width="200px" ItemStyle-Wrap="false" DataField="ImportDocType" HeaderText="Import Doc Type" SortExpression="ImportDocType"></asp:BoundField>

                    <asp:BoundField HeaderStyle-Wrap="false" HeaderStyle-Width="200px" ItemStyle-Wrap="false" DataField="ConditionOfGoods" HeaderText="Condition of Goods" SortExpression="ConditionOfGoods"></asp:BoundField>
                    <asp:BoundField HeaderStyle-Wrap="false" HeaderStyle-Width="200px" ItemStyle-Wrap="false" DataField="BrandUsed" HeaderText="Brand Used" SortExpression="BrandUsed"></asp:BoundField>
                    <asp:BoundField HeaderStyle-Wrap="false" HeaderStyle-Width="200px" ItemStyle-Wrap="false" DataField="SerialNumber" HeaderText="Serial Number" SortExpression="SerialNumber"></asp:BoundField>
                    <asp:BoundField HeaderStyle-Wrap="false" HeaderStyle-Width="200px" ItemStyle-Wrap="false" DataField="ImportNo" HeaderText="Import No" SortExpression="ImportNo"></asp:BoundField>
                    <asp:BoundField HeaderStyle-Wrap="false" HeaderStyle-Width="200px" ItemStyle-Wrap="false" DataField="LocalNo" HeaderText="Local No" SortExpression="LocalNo"></asp:BoundField>
                    <asp:BoundField HeaderStyle-Wrap="false" HeaderStyle-Width="200px" ItemStyle-Wrap="false" DataField="DateIncomming" HeaderText="Date Incomming" SortExpression="DateIncomming"></asp:BoundField>

                    <asp:BoundField HeaderStyle-Wrap="false" HeaderStyle-Width="200px" ItemStyle-Wrap="false" DataField="IdSupplier" HeaderText="IdSupplier" SortExpression="IdSupplier"></asp:BoundField>
                    <asp:BoundField HeaderStyle-Wrap="false" HeaderStyle-Width="200px" ItemStyle-Wrap="false" DataField="SupplierName" HeaderText="Supplier Name" SortExpression="SupplierName"></asp:BoundField>
                    <asp:BoundField HeaderStyle-Wrap="false" HeaderStyle-Width="200px" ItemStyle-Wrap="false" DataField="TaxID" HeaderText="TaxID" SortExpression="TaxID"></asp:BoundField>

                    <asp:BoundField HeaderStyle-Wrap="false" HeaderStyle-Width="200px" ItemStyle-Wrap="false" DataField="ImportCarrier" HeaderText="Import Carrier" SortExpression="ImportCarrier"></asp:BoundField>
                    <asp:BoundField HeaderStyle-Wrap="false" HeaderStyle-Width="200px" ItemStyle-Wrap="false" DataField="LocalCarrier" HeaderText="Local Carrier" SortExpression="LocalCarrier"></asp:BoundField>
                    <asp:BoundField HeaderStyle-Wrap="false" HeaderStyle-Width="200px" ItemStyle-Wrap="false" DataField="AWBTrackingNo" HeaderText="AWB Tracking No" SortExpression="AWBTrackingNo"></asp:BoundField>
                    <asp:BoundField HeaderStyle-Wrap="false" HeaderStyle-Width="200px" ItemStyle-Wrap="false" DataField="BillLadingNo" HeaderText="Bill Lading No" SortExpression="BillLadingNo"></asp:BoundField>

                    <asp:BoundField HeaderStyle-Wrap="false" HeaderStyle-Width="200px" ItemStyle-Wrap="false" DataField="RackLocation" HeaderText="Rack Location"></asp:BoundField>
                    
                    <asp:BoundField ItemStyle-Wrap="false" ItemStyle-Width="200px" DataField="CreationDate" HeaderText="Creation Date" SortExpression="CreationDate"></asp:BoundField>
                    <asp:BoundField ItemStyle-Wrap="false" ItemStyle-Width="200px" DataField="ModifiedDate" HeaderText="Modified Date" SortExpression="ModifiedDate"></asp:BoundField>
                </Columns>
                    <PagerStyle CssClass="GridPager" />
        
        </asp:GridView>
    </div>
            <p></p>
            <div>
                Total:
                <asp:Label runat="server" ID="lblCount"></asp:Label>
            </div>
    

        </ContentTemplate>
    </asp:UpdatePanel>
        
    
   




</asp:Content>
