<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_validationSummary.ascx.cs" Inherits="NKC_WF.WebUserControls.cmp_validationSummary" %>
<div class="row">
  <div class="col-3">
    <h4> <%: traduci("ValidationSummary") %></h4>
  </div>
  <div class="col-3">
        <asp:LinkButton runat="server" ID="lbtForceRevali" CssClass="btn btn-sm btn-success btn-block" OnClientClick='return confirm("Are you sure you want to re-evaluate ALL items?")' OnClick="lbtForceRevali_Click"><i class="fa fa-bell" aria-hidden="true"></i> <%: traduci("ForceRevalidate") %> </asp:LinkButton>
  </div>
  <div class="col-3">
        <asp:LinkButton runat="server" ID="lbtRevalidate" CssClass="btn btn-sm btn-danger btn-block" OnClick="lbtRevalidate_Click"><i class="fa fa-bell-o" aria-hidden="true"></i> <%: traduci("RevalidateParts") %></asp:LinkButton>
  </div>
  <div class="col-3">
        <asp:LinkButton runat="server" ID="lbtReValidAll" CssClass="btn btn-sm btn-primary btn-block" OnClick="lbtRevalAll_Click"><i class="fa fa-bell-o" aria-hidden="true"></i> <%: traduci("RevalidateReset") %></asp:LinkButton>
        <asp:LinkButton runat="server" ID="lbtValidateMissing" CssClass="btn btn-sm btn-secondary btn-block" OnClick="lbtValidateMissing_Click"><i class="fa fa-bell-o" aria-hidden="true"></i> <%: traduci("ValidateNewParts") %></asp:LinkButton>
  </div>
</div>

<asp:FormView ID="frmView" runat="server" DataSourceID="ods" Width="100%">
  <ItemTemplate>
    <div class="row">
      <div class="col-3 text-info">
        <div class="row">
          <div class="col">
             <%: traduci("Parts") %>
          </div>
          <div class="col text-right font-weight-bold">
            <asp:Label ID="TotPartsLabel" runat="server" Text='<%# Eval("TotParts") %>' />
          </div>
        </div>
      </div>
      <div class="col-3 text-success">
        <div class="row">
          <div class="col">
             <%: traduci("Validated") %>
          </div>
          <div class="col text-right font-weight-bold">
            <asp:Label ID="QtyOkLabel" runat="server" Text='<%# Eval("QtyOk") %>' />
          </div>
        </div>
      </div>
      <div class="col-3 text-danger">
        <div class="row">
          <div class="col">
             <%: traduci("NOTValid") %>
          </div>
          <div class="col text-right font-weight-bold">
            <asp:Label ID="QtyKoLabel" runat="server" Text='<%# Eval("QtyKo") %>' />
          </div>
        </div>
      </div>
      <div class="col-3 text-secondary">
        <div class="row">
          <div class="col">
             <%: traduci("Unknown") %>
          </div>
          <div class="col text-right font-weight-bold">
            <asp:Label ID="QtyUnknLabel" runat="server" Text='<%# Eval("QtyUnkn") %>' />
          </div>
        </div>
  </ItemTemplate>
</asp:FormView>
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="AppData.DS_AppTableAdapters.PartValidParetoTableAdapter"></asp:ObjectDataSource>
