<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_searchItems.ascx.cs" Inherits="NKC_WF.WebUserControls.cmp_searchItems" %>

<div class=" border border-success rounded table-success">

    <asp:FormView ID="frmView" runat="server" DataSourceID="ods" DataKeyNames="ItemID" Width="100%">
        <ItemTemplate>

            <div class="row" style="font-size: 2em;">
                <div class="col-md-2 text-center">
                    <asp:Label ID="ItemExtCodeLabel" runat="server" CssClass="font-weight-bold" Text='<%# Eval("ItemExtCode") %>' />
                </div>
                <div class="col-md-8 text-center">
                    <asp:Label ID="ItemDescLabel" runat="server" Text='<%# Eval("ItemDesc") %>' />
                </div>
                <div class="col-md-2 text-right">
                    x
                    <asp:Label ID="ItemQtyLabel" runat="server" Text='<%# Eval("ItemQty") %>' CssClass="font-weight-bold" />
                </div>
            </div>
            <div class="row">
                <div class="col-md-2 text-center">
                    <asp:Label ID="MatExtCodeLabel" runat="server" CssClass="font-weight-bold" Text='<%# Eval("MatExtCode") %>' />
                </div>
                <div class="col-md-8 text-center">
                    <asp:Label ID="MatDescLabel" runat="server" Text='<%# Eval("MatDesc") %>' />
                </div>
                <div class="col-md-2">
                </div>
            </div>
            <div class="row">
                <div class="col-md-3 text-center">
                     <%: traduci("Order") %>
                    <asp:Label ID="OrderExtCodeLabel" runat="server" Text='<%# Eval("OrderExtCode") %>' />
                </div>
                <div class="col-md-3 text-center">
                     <%: traduci("Kit") %>
        <asp:Label ID="KitExtCodeLabel" runat="server" Text='<%# Eval("KitExtCode") %>' />
                </div>
                <div class="col-md-3 text-center">
                     <%: traduci("Cart") %>
        <asp:Label ID="CartDtmxLabel" runat="server" Text='<%# Eval("CartDtmx") %>' />
                </div>
                <div class="col-md-3 text-center">
                     <%: traduci("Bin") %>
        <asp:Label ID="BinDtmxLabel" runat="server" Text='<%# Eval("BinDtmx") %>' />
                </div>
            </div>

        </ItemTemplate>
    </asp:FormView>
    <asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="AppData.DS_AppTableAdapters.ItemSearchDetailTableAdapter">
        <SelectParameters>
            <asp:ControlParameter ControlID="hfItemDtmx" DefaultValue="#" Name="ItemDtmx" PropertyName="Value" Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <asp:HiddenField runat="server" ID="hfItemDtmx" />
</div>
