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

<%@ Register Src="~/WebUserControls/cmp_barcode.ascx" TagPrefix="uc1" TagName="cmp_barcode" %>
<%@ Register Src="~/WebUserControls/cmp_MachSelSmart.ascx" TagPrefix="uc1" TagName="cmp_MachSelSmart" %>

<div class="mx-0">
    <asp:HiddenField ID="hfBatchID" runat="server" />
    <asp:HiddenField ID="hfSheetID" runat="server" />
    <asp:HiddenField ID="hfDeviceId" runat="server" />
    <div class="row mt-2">
    <div class="col-12 px-0 table-secondary">
        <uc1:cmp_MachSelSmart runat="server" ID="cmp_MachSelSmart" />
    </div>
        <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">
            <asp:LinkButton runat="server" ID="lbtPrintLabels" CssClass="btn btn-info btn-block text-uppercase" OnClick="lbtPrintLabels_Click"><i class="fa fa-print" aria-hidden="true"></i> <%: traduci("DoPrintLabel") %></asp:LinkButton>

        </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-3 pr-0">
                        <b>
                            <asp:Label runat="server" ID="lblItemCode" /></b>
                    </div>
                    <div class="col-6 px-1">
                        <asp:Label runat="server" ID="lblItemDesc" />
                    </div>
                    <div class="col-3 pl-0">
                        <asp:Label runat="server" ID="lblItemDtmx" />
                    </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>
</div>
