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

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

<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("MachineUnloadSmart") %></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="hfLastValidBCode" />
          <asp:HiddenField runat="server" ID="hfShowCart" />
          <asp:HiddenField runat="server" ID="hfShowBin" />
          <asp:HiddenField runat="server" ID="hfShowSecOp" />
        </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="divItemError" 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="divInfoMessage" class="bg-success text-light" visible="false">
            <div class="col-12 px-1">
              <asp:Label runat="server" ID="lblInfoMessage" />
            </div>
          </div>
        </div>
        <div class="col-12 px-0">
          <asp:HiddenField runat="server" ID="hfSecOp" />
          <div class="row small">
            <div class="col-4 pr-1">
              <div runat="server" id="icnCart" class="btn btn-sm btn-block btn-outline-secondary"><%: traduci("Cart") %></div>
            </div>
            <div class="col-4 px-1">
              <div runat="server" id="icnBin" class="btn btn-sm btn-block btn-outline-secondary"><%: traduci("Bin") %></div>
            </div>
            <div class="col-4 pl-1">
              <div runat="server" id="icnSecOp" class="btn btn-sm btn-block btn-outline-secondary"><%: traduci("SecOp") %></div>
            </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="lbtScrapped" CssClass="btn btn-block btn-danger" OnClick="lbtScrapped_Click" OnClientClick='return confirm("Confirm Item as SCRAP? It will be sent to offline rework list.")'><i class="fa fa-trash" aria-hidden="true"></i> <%: traduci("scrapped") %></asp:LinkButton>
          <asp:LinkButton runat="server" ID="lbtParkArea" CssClass="btn btn-block btn-secondary" OnClick="lbtParkArea_Click"><i class="fa fa-thumb-tack" aria-hidden="true"></i> <%: traduci("toPark") %></asp:LinkButton>
        </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>
