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

<%@ Register Src="~/WebUserControls/cmp_barcode.ascx" TagPrefix="uc1" TagName="cmp_barcode" %>
<%@ Register Src="~/WebUserControls/cmp_KS_BinCart.ascx" TagPrefix="uc1" TagName="cmp_KS_BinCart" %>
<%@ Register Src="~/WebUserControls/cmp_KS_OtherItemsCart.ascx" TagPrefix="uc1" TagName="cmp_KS_OtherItemsCart" %>
<%@ Register Src="~/WebUserControls/cmp_KS_Cart.ascx" TagPrefix="uc1" TagName="cmp_KS_Cart" %>
<%@ Register Src="~/WebUserControls/cmp_KS_Items.ascx" TagPrefix="uc1" TagName="cmp_KS_Items" %>


<div class="mx-0">
    <asp:HiddenField ID="hfBatchID" runat="server" />
    <asp:HiddenField ID="hfSheetID" runat="server" />
    <asp:HiddenField ID="hfDeviceId" runat="server" />
    <div class="card text-center" style="width: 100%;">
        <h4 class="card-header p-1 bg-secondary text-light"><%: traduci("KittingSmart") %></h4>
        <div class="card-body py-1">
            <div class="row mt-2" style="min-height: 25rem;">
                <div class="col-12 px-0">
                    <uc1:cmp_barcode runat="server" ID="cmp_barcode" />
                    <asp:HiddenField runat="server" ID="hfLastBCode" />
                    <asp:HiddenField runat="server" ID="hfLastObject" />
                    <asp:HiddenField runat="server" ID="hfLastValidBCode" />
                </div>
                <div class="col-12 px-0">
                    <uc1:cmp_KS_BinCart runat="server" ID="cmp_KS_BinCart" />
                    <uc1:cmp_KS_OtherItemsCart runat="server" ID="cmp_KS_OtherItemsCart" />
                    <uc1:cmp_KS_Cart runat="server" ID="cmp_KS_Cart" />
                    <uc1:cmp_KS_Items runat="server" ID="cmp_KS_Items" />
                </div>
                <div class="col-12 px-0">
                    <div runat="server" id="divItemDet" class="bg-success text-warning small" visible="false">
                        <asp:HiddenField runat="server" ID="hfItemID" />
                        <div class="row">
                            <div class="col-2 pr-0">
                                <b>
                                    <asp:Label runat="server" ID="lblItemCode" /></b>
                            </div>
                            <div class="col-4 px-1">
                                <asp:Label runat="server" ID="lblItemDesc" />
                            </div>
                            <div class="col-3 pl-0">
                                <asp:Label runat="server" ID="lblItemDtmx" />
                            </div>
                            <div class="col-3 pl-0">
                                <asp:Label runat="server" ID="lblItemCartDtmx" />
                            </div>
                        </div>
                    </div>
                    <div runat="server" id="divError" class="bg-danger text-warning" visible="false">
                        <div class="col-12 px-1">
                            <asp:Label runat="server" ID="lblErrorMsg" />
                        </div>
                    </div>
                    <div runat="server" id="divInfo" class="bg-info text-light" visible="false">
                        <div class="col-12 px-1">
                            <asp:Label runat="server" ID="lblSuccessMsg" />
                        </div>
                    </div>
                </div>
                <div class="col-12 px-0">
                    <asp:LinkButton runat="server" ID="lbtCancel" CssClass="btn btn-block btn-warning text-uppercase" OnClick="lbtCancel_Click"><i class="fa fa-ban" aria-hidden="true"></i> <%: traduci("cancel") %></asp:LinkButton>
                </div>
                <div class="col-12 px-0">
                    <b>
                        <asp:Label runat="server" ID="lblLastBCode" /></b><br />
                    <asp:Label runat="server" ID="lblMessage" /><br />
                    <asp:Label runat="server" ID="lblDestination" />
                </div>
                <div class="col-12 px-0">
                    <asp:LinkButton runat="server" ID="lbtResetSel" CssClass="btn btn-block btn-warning text-uppercase" OnClick="lbtResetSel_Click"><i class="fa fa-ban" aria-hidden="true"></i> <%: traduci("ResetSel") %></asp:LinkButton>
                </div>
            </div>
        </div>
    </div>
</div>
