Files
lux/Lux.UI/Components/Compo/WorkLoad/TimeEstim.razor.cs
T

55 lines
1.4 KiB
C#

using EgwCoreLib.Lux.Core.RestPayload;
using Microsoft.AspNetCore.Components;
namespace Lux.UI.Components.Compo.WorkLoad
{
public partial class TimeEstim
{
#region Public Properties
[Parameter]
public WorkLoadDetailDTO DetailRecord { get; set; } = null!;
[Parameter]
public EventCallback<bool> EC_ClosePopup { get; set; }
[Parameter]
public EventCallback<bool> EC_ReRunReq { get; set; }
[Parameter]
public EventCallback<BalanceReq> EC_RunBalance { get; set; }
#endregion Public Properties
#region Public Classes
/// <summary>
/// Definizione richiesta di bilanciamento per il calcolo
/// </summary>
public class BalanceReq
{
#region Public Properties
public Dictionary<string, double> MachineBalance { get; set; } = new Dictionary<string, double>();
public List<string> TagsList { get; set; } = new List<string>();
#endregion Public Properties
}
#endregion Public Classes
#region Protected Methods
protected async Task ClosePopup()
{
await EC_ClosePopup.InvokeAsync(true);
}
protected async Task ReRunJob()
{
await EC_ReRunReq.InvokeAsync(true);
}
#endregion Protected Methods
}
}