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

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


<div class="row" runat="server" id="titleCart">
    <div class="col-12 text-center form">
        <asp:HiddenField runat="server" ID="hfMode" />
        <asp:HiddenField runat="server" ID="hfCartId" />
        <asp:HiddenField runat="server" ID="hfItemId" />
        <asp:HiddenField runat="server" ID="hfItemExtCode" />
        <asp:HiddenField runat="server" ID="hfItemDtmx" />
        <asp:Label runat="server" ID="lblPart" CssClass="bg-warning text-dark form-control"><%: traduci("ModePart") %></asp:Label>
        <asp:Label runat="server" ID="lblCart" CssClass="bg-danger text-light form-control"><%: traduci("ModeCart") %></asp:Label>
        <asp:Label runat="server" ID="lblRevalid" CssClass="bg-success text-light form-control"><%: traduci("ModeRevalidation") %></asp:Label>
    </div>
    <div class="col-12 mb-2">
        <asp:LinkButton runat="server" ID="lbtInvalidatePartCart" CssClass="btn btn-lg btn-block btn-danger" OnClick="lbtInvalidatePartCart_Click" OnClientClick='<%#  SteamWare.jsUtils.getCBE("CofirmInvalidatePart") %>'> <div class="row">
                <div class="col-2 text-left">
                    <i class="fa fa-trash" aria-hidden="true"></i>
                </div>
                <div class="col-8 text-center">
                    <%: traduci("InvalidatePart") %>
                </div>
                <div class="col-2 text-right">
                    <i class="fa fa-trash" aria-hidden="true"></i>
                </div>
            </div>
        </asp:LinkButton>
        <asp:LinkButton runat="server" ID="lbtInvalidateCart" CssClass="btn btn-lg btn-block btn-danger" OnClick="lbtInvalidateCart_Click" OnClientClick='<%#  SteamWare.jsUtils.getCBE("CofirmInvalidateFullCart") %>'> <div class="row">
                <div class="col-2 text-left">
                    <i class="fa fa-trash" aria-hidden="true"></i>
                </div>
                <div class="col-8 text-center">
                    <%: traduci("InvalidateCart") %>
                </div>
                <div class="col-2 text-right">
                    <i class="fa fa-trash" aria-hidden="true"></i>
                </div>
            </div>
        </asp:LinkButton>
    </div>
    <div class="col-12">
        <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 runat="server" id="divError" class="col-12" visible="false">
        <asp:Label runat="server" ID="lblErrorMsg" CssClass="text-danger" />
    </div>
    <div runat="server" id="divInfo" class="col-12" visible="false">
        <asp:Label runat="server" ID="lblSuccessMsg" CssClass="text-success" />
    </div>
    <div class="col-12">
        <uc1:cmp_ItemDet runat="server" ID="cmp_ItemDet" />
        <uc1:cmp_KS_Cart runat="server" ID="cmp_KS_Cart" />
    </div>
</div>
