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

<div class="row mx-0">
    <asp:Repeater runat="server" ID="repCarts" DataSourceID="ods">
        <ItemTemplate>
            <div class="col-2 px-1">
                <div runat="server" id="divBlock" class='<%# "row small alert border-thick mx-1 p-0 pb-2 border " + getCssByNums(Eval("NumPzWaiting"),Eval("NumPzBinAvail"),Eval("OtherQtyWait"),Eval("OtherQtyCur")) %>' role="alert">
                    <div class="col-12 bg-success text-light pt-2">
                        <h5>
                            <asp:Label runat="server" ID="lblTitle" Text='<%# $"<b>C{Eval("CartIndex")}</b> | {Eval("CartDtmx")}" %>' CssClass="text-uppercase" /></h5>
                    </div>
                    <div class="col-6 text-left">
                        <%: traduci("Order") %>
                    </div>
                    <div class="col-6 text-right">
                        <b>
                            <asp:Label ID="MatExtCodeLabel" runat="server" Text='<%# Eval("OrderExtCode") %>' /></b>
                    </div>
                    <div class="col-6 text-left">
                        <%: traduci("Model") %>
                    </div>
                    <div class="col-6 text-right">
                        <b>
                            <asp:Label ID="Label2" runat="server" Text='<%# Eval("ModelCode") %>' /></b>
                    </div>
                    <div class="col-6 text-left">
                        <%: traduci("DestPlant") %>
                    </div>
                    <div class="col-6 text-right">
                        <b>
                            <asp:Label ID="Label5" runat="server" Text='<%# Eval("DestPlant") %>' /></b>
                    </div>
                    <div class="col-6 text-left border-bottom border-success">
                        <%: traduci("Kit") %>
                    </div>
                    <div class="col-6 text-right border-bottom border-success">
                        <b>
                            <asp:Label ID="Label1" runat="server" Text='<%# Eval("KitQty") %>' /></b>
                    </div>
                    <div class="col-6 text-left">
                        <b><%: traduci("CncParts") %> </b>
                    </div>
                    <div class="col-6 text-right">
                        <b>
                            <asp:Label ID="lblPartsTot" runat="server" Text='<%# Eval("TotItem") %>' /></b>
                    </div>
                    <div class="col-4 text-left">
                        <%: traduci("Wait") %>
                        <asp:Label runat="server" ID="lblWait" CssClass="font-weight-bold" Text='<%# Eval("NumPzWaiting") %>' />
                    </div>
                    <div class="col-4 text-center">
                        <%: traduci("Ready") %>
                        <asp:Label runat="server" ID="Label3" CssClass="font-weight-bold" Text='<%# Eval("NumPzBinAvail") %>' />
                    </div>
                    <div class="col-4 text-right">
                        <%: traduci("Cart") %>
                        <asp:Label runat="server" ID="Label4" CssClass="font-weight-bold" Text='<%# Eval("TotItemCart") %>' />
                    </div>
                    <div class="col-6 text-left border-top border-success">
                        <%: traduci("OtherParts") %>
                    </div>
                    <div class="col-6 text-right border-top border-success">
                        <b>
                            <asp:Label ID="Label8" runat="server" Text='<%# Eval("OtherQtyReq") %>' /></b>
                    </div>
                    <div class="col-4 text-left">
                        <%: traduci("Wait") %>
                        <asp:Label runat="server" ID="Label6" CssClass="font-weight-bold" Text='<%# Eval("OtherQtyWait") %>' />
                    </div>
                    <div class="col-4 text-center">
                    </div>
                    <div class="col-4 text-right">
                        <%: traduci("Cart") %>
                        <asp:Label runat="server" ID="Label9" CssClass="font-weight-bold" Text='<%# Eval("OtherQtyCur") %>' />
                    </div>
                </div>
            </div>
        </ItemTemplate>
    </asp:Repeater>
    <asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="AppData.DS_AppTableAdapters.CartOnKitTableAdapter"></asp:ObjectDataSource>
</div>