74 lines
1.8 KiB
C#
74 lines
1.8 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
|
|
|
|
private string selUid = "";
|
|
|
|
protected string MainCss
|
|
{
|
|
get => string.IsNullOrEmpty(selUid) ? "col-12" : "col-6";
|
|
}
|
|
|
|
#region Public Classes
|
|
|
|
protected List<string> ListTargetMachine
|
|
{
|
|
get
|
|
{
|
|
var answ = DetailRecord.ListMachines;
|
|
// aggiungo la macchina EXT...
|
|
answ.Add("EXT");
|
|
return answ;
|
|
}
|
|
}
|
|
|
|
|
|
/// <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
|
|
}
|
|
} |