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


<div class="row">
  <asp:Repeater runat="server" ID="repBins" DataSourceID="ods">
    <ItemTemplate>
      <div class="col-2 mx-1">
        <div runat="server" id="divBlock" class="row small alert border-thick p-0 pb-2 alert-primary border border-primary" role="alert">
          <div class="col-12 bg-primary text-light pt-2">
            <h5>
              <asp:Label runat="server" ID="lblTitle" Text='<%# $"<b>B{Eval("BinIndex")}</b> | {Eval("BinDtmxProc")}" %>' CssClass="text-uppercase" /></h5>
          </div>
          <div class="col-4 text-left">
               <%: traduci("Cnc") %>
          </div>
          <div class="col-8 text-right">
            <b>
              <asp:Label ID="MatExtCodeLabel" runat="server" Text='<%# Eval("CreationDate","{0:yyyy-MM-dd HH:mm}") %>' /></b>
          </div>
          <div class="col-4 text-left">
               <%: traduci("Paint") %>
          </div>
          <div class="col-8 text-right">
            <b>
              <asp:Label ID="Label2" runat="server" Text='<%# Eval("PaintDate","{0:yyyy-MM-dd HH:mm}") %>' /></b>
          </div>
          <div class="col-4 text-left">
               <%: traduci("OnKitting") %>
          </div>
          <div class="col-8 text-right">
            <b>
              <asp:Label ID="Label3" runat="server" Text='<%# Eval("KittingStart","{0:yyyy-MM-dd HH:mm}") %>' /></b>
          </div>
          <div class="col-4 text-left">
             <%: traduci("Part") %>
          </div>
          <div class="col-8 text-right">
            <b>
              <asp:Label ID="Label1" runat="server" Text='<%# Eval("ItemExtCode") %>' /></b>
          </div>
          <div class="col-4 text-left">
               <%: traduci("Qty") %>
          </div>
          <div class="col-8 text-right">
        <b><asp:Label ID="lblTotItemLoad" runat="server" Text='<%# Eval("TotItemLoad") %>' /></b> / <asp:Label ID="lblTotItem" runat="server" Text='<%# Eval("TotItem") %>' />
          </div>
        </div>
      </div>
    </ItemTemplate>
  </asp:Repeater>
  <asp:ObjectDataSource runat="server" ID="ods" OldValuesParameterFormatString="original_{0}" SelectMethod="getByStatus" TypeName="AppData.DS_AppTableAdapters.BinsTableAdapter">
    <SelectParameters>
      <asp:Parameter DefaultValue="True" Name="Fillup" Type="Boolean" />
      <asp:Parameter DefaultValue="False" Name="Complete" Type="Boolean" />
      <asp:Parameter DefaultValue="True" Name="Painted" Type="Boolean" />
      <asp:Parameter DefaultValue="True" Name="OnKitStation" Type="Boolean" />
    </SelectParameters>
  </asp:ObjectDataSource>
</div>