diff --git a/Lux.UI/Components/Compo/WorkLoad/TimeEstim.razor b/Lux.UI/Components/Compo/WorkLoad/TimeEstim.razor
index 17cc83d7..5646d44b 100644
--- a/Lux.UI/Components/Compo/WorkLoad/TimeEstim.razor
+++ b/Lux.UI/Components/Compo/WorkLoad/TimeEstim.razor
@@ -39,7 +39,19 @@
- @if (AllProdGroup != null && AllProdGroup.Count > 0)
+ @if (BalancePlantList != null && BalancePlantList.Count > 0)
+ {
+
+ @foreach (var item in DictPercReq)
+ {
+
+ @item.Key
+
+
+ }
+
+ }
+ @* @if (AllProdGroup != null && AllProdGroup.Count > 0)
{
@foreach (var item in AllProdGroup)
@@ -50,7 +62,7 @@
}
- }
+ } *@
@if (checkSend)
@@ -126,7 +138,7 @@
Vincolati: @DetailRecord.NumOkVin
-
+
@@ -157,7 +169,7 @@
{
|
-
+
|
@wld.Key
@@ -183,6 +195,7 @@
}
+
@if (DetailRecord.NumOk > 0)
{
@@ -220,10 +233,18 @@
{
@foreach (var item in AllProdGroup.Where(x => x.NumParts == DetailRecord.NumOk))
{
+ int ordine = 0;
foreach (var wld in item.WorkGroupList)
{
+ ordine++;
|
- |
+ @if (ordine % 2 == 1)
+ {
+
+
+
+ |
+ }
@wld.Key
|
diff --git a/Lux.UI/Components/Compo/WorkLoad/TimeEstim.razor.cs b/Lux.UI/Components/Compo/WorkLoad/TimeEstim.razor.cs
index 5aa45824..3219cf5e 100644
--- a/Lux.UI/Components/Compo/WorkLoad/TimeEstim.razor.cs
+++ b/Lux.UI/Components/Compo/WorkLoad/TimeEstim.razor.cs
@@ -213,7 +213,7 @@ namespace Lux.UI.Components.Compo.WorkLoad
double stdPerc = 1.0;
if (cList != null && cList.Count > 1)
{
- stdPerc = 1.0 / (cList.Count - 1);
+ stdPerc = 1.0 / (cList.Count);
}
if (cList != null)
@@ -224,9 +224,9 @@ namespace Lux.UI.Components.Compo.WorkLoad
case SetMode.None:
break;
- //case SetMode.Balance:
- // DictPercReq = cList.ToDictionary(x => x.ProdPlantCod, x => x.ProdPlantCod != "EXT" ? stdPerc : 0.0);
- // break;
+ case SetMode.Balance:
+ DictPercReq = cList.ToDictionary(x => x, x => x != "EXT" ? stdPerc : 0.0);
+ break;
case SetMode.AssignOk:
DictPercReq = cList.ToDictionary(x => x, x => stdPerc);
@@ -307,7 +307,7 @@ namespace Lux.UI.Components.Compo.WorkLoad
}
}
- private void ToggleAssignVincMode(ProductionGroupModel currGroup, SetMode reqMode)
+ private void ToggleAssignMode(ProductionGroupModel currGroup, SetMode reqMode)
{
// se era gia attivo --> chiude... altrimenti assegna!
CurrMode = CurrMode == reqMode ? SetMode.None : reqMode;