Aggiunto chk x calcolare anche ultimo foglio in statistiche OEE materiali
This commit is contained in:
@@ -3,7 +3,9 @@
|
||||
<div class="row small text-dark text-left">
|
||||
<div class='<%: cssSized %>'>
|
||||
<div class="form-group my-0 row">
|
||||
<label for="TotalTimeLabel" class="col-4">Mat OEE</label>
|
||||
<label for="TotalTimeLabel" class="col-4">
|
||||
Mat OEE
|
||||
<asp:CheckBox runat="server" ID="chkExcludeMin" Checked="true" Text="All Sheets" OnCheckedChanged="chkExcludeMin_CheckedChanged" /></label>
|
||||
<div class="col-8 font-weight-bold">
|
||||
<asp:Label runat="server" ID="lblMatDet" />
|
||||
</div>
|
||||
@@ -17,7 +19,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div runat="server" id="divDetJson" class="col-12" Style="height: 12rem; overflow-y: scroll;" >
|
||||
<div runat="server" id="divDetJson" class="col-12" style="height: 12rem; overflow-y: scroll;">
|
||||
<asp:Label runat="server" ID="lblTestJson" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -188,11 +188,15 @@ namespace NKC_WF.WebUserControls
|
||||
{
|
||||
// ordino le medie
|
||||
workRatio.Sort();
|
||||
// controllo di averne + di 1...
|
||||
if (workRatio.Count > materialsList.Count * 2)
|
||||
// filtro i valori + bassi solo se richiesto in conf
|
||||
if (!chkExcludeMin.Checked)
|
||||
{
|
||||
// elimino le + basse quanti materiali ci sono...
|
||||
workRatio.RemoveRange(0, materialsList.Count);
|
||||
// controllo di averne + di 1...
|
||||
if (workRatio.Count > materialsList.Count * 2)
|
||||
{
|
||||
// elimino le + basse quanti materiali ci sono...
|
||||
workRatio.RemoveRange(0, materialsList.Count);
|
||||
}
|
||||
}
|
||||
double avgRatio = workRatio.Average();
|
||||
double minRatio = workRatio.Min();
|
||||
@@ -260,5 +264,10 @@ namespace NKC_WF.WebUserControls
|
||||
}
|
||||
|
||||
#endregion Protected Methods
|
||||
|
||||
protected void chkExcludeMin_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
updateMongoData(BatchId);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -14,6 +14,15 @@ namespace NKC_WF.WebUserControls
|
||||
public partial class cmp_batchDetailMongo
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// chkExcludeMin control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.CheckBox chkExcludeMin;
|
||||
|
||||
/// <summary>
|
||||
/// lblMatDet control.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user