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

<asp:FormView ID="frmView" runat="server" DataSourceID="ods" Width="100%">
  <ItemTemplate>
    <div class="card text-center mb-2" style="width: 100%;">
      <h5 runat="server" id="h5Title" class='<%# $"card-header py-1 {titleCss}"  %>'>
        <asp:Label ID="StatLabel" runat="server" Text='<%# Eval("Stat") %>' /></h5>
      <div class="card-body py-1">
        <table class="table table-sm mb-0">
          <thead>
            <tr>
              <th scope="col"><%: traduci ("Wait") %></th>
              <th scope="col"><%: traduci ("Wip") %></th>
              <th scope="col"><%: traduci ("Done") %></th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td class="text-danger">
                <asp:Label ID="WaitLabel" runat="server" Text='<%# Eval("Wait") %>' /></td>
              <td class="text-warning">
                <asp:Label ID="WipLabel" runat="server" Text='<%# Eval("Wip") %>' /></td>
              <td class="text-success">
                <asp:Label ID="DoneLabel" runat="server" Text='<%# Eval("Done") %>' /></td>
            </tr>
          </tbody>
        </table>
      </div>
    </div>
  </ItemTemplate>
</asp:FormView>
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="AppData.DS_AppTableAdapters.UnloadStatsTableAdapter">
  <SelectParameters>
    <asp:ControlParameter ControlID="hfBatchID" Name="BatchID" PropertyName="Value" Type="Int32" />
    <asp:ControlParameter ControlID="hfStatLevel" Name="StatLevel" PropertyName="Value" Type="Int32" />
  </SelectParameters>
</asp:ObjectDataSource>


<asp:HiddenField ID="hfBatchID" runat="server" />
<asp:HiddenField ID="hfStatLevel" runat="server" />
