1ba9414b21
- Modificata modale con scelta grezzi - Modificata modale per bilanciamento
71 lines
1.7 KiB
C#
71 lines
1.7 KiB
C#
using static Lux.UI.Components.Compo.Order.OrderRowMan;
|
|
|
|
namespace Lux.UI.Components.Compo.WorkLoad
|
|
{
|
|
public partial class PartStatus
|
|
{
|
|
#region Public Properties
|
|
|
|
[Parameter]
|
|
public MergedOrderRow MergeOrderRow { get; set; } = null!;
|
|
|
|
[Parameter]
|
|
public EventCallback<bool> EC_ClosePopup { get; set; }
|
|
|
|
[Parameter]
|
|
public EventCallback<bool> EC_ReRunReq { get; set; }
|
|
|
|
#endregion Public Properties
|
|
|
|
#region Protected Methods
|
|
|
|
protected override void OnParametersSet()
|
|
{
|
|
if(MergeOrderRow.WorkLoad != null)
|
|
{
|
|
DetailRecord = MergeOrderRow.WorkLoad;
|
|
}
|
|
}
|
|
|
|
protected Task ClosePopup()
|
|
{
|
|
return EC_ClosePopup.InvokeAsync(true);
|
|
}
|
|
|
|
protected Task ReRunJob()
|
|
{
|
|
return EC_ReRunReq.InvokeAsync(true);
|
|
}
|
|
|
|
private WorkLoadDetailDTO? DetailRecord = null;
|
|
private bool showUnwork = false;
|
|
private bool showVinc = false;
|
|
private bool showWork = false;
|
|
|
|
private enum TypeGroup
|
|
{
|
|
Unwork,
|
|
Vincolate,
|
|
Work
|
|
}
|
|
|
|
private void ToggleGroup(TypeGroup mode)
|
|
{
|
|
switch(mode)
|
|
{
|
|
case TypeGroup.Unwork:
|
|
showUnwork = !showUnwork;
|
|
break;
|
|
case TypeGroup.Vincolate:
|
|
showVinc = !showVinc;
|
|
break;
|
|
case TypeGroup.Work:
|
|
showWork = !showWork;
|
|
break;
|
|
}
|
|
}
|
|
|
|
|
|
#endregion Protected Methods
|
|
}
|
|
} |