dfea26610d
- Modificata interfaccia carico macchine
36 lines
1.1 KiB
C#
36 lines
1.1 KiB
C#
namespace Lux.UI.Components.Compo.Planner
|
|
{
|
|
public partial class EstPorDetail
|
|
{
|
|
[Parameter]
|
|
public OrderRowModel CurrPOR { get; set; } = null!;
|
|
|
|
[Parameter]
|
|
public bool ShowDetail { get; set; } = false;
|
|
|
|
private string CssDetail => ShowDetail ? "fa-chevron-up" : "fa-chevron-down";
|
|
|
|
private void ToggleDetail()
|
|
{
|
|
ShowDetail = !ShowDetail;
|
|
}
|
|
|
|
protected string currCss => CurrPOR.OrderRowState == Enums.OrderStates.Estimated ? "active" : "list-group-item-primary";
|
|
protected bool balEnabled => CurrPOR.OrderRowState == Enums.OrderStates.Estimated;
|
|
|
|
[Parameter]
|
|
public EventCallback<int> EC_DoBalance { get; set; }
|
|
|
|
protected Task DoBalance(int OrderRowID)
|
|
{
|
|
return EC_DoBalance.InvokeAsync(OrderRowID);
|
|
}
|
|
|
|
protected string FormatEstTime(decimal totSeconds)
|
|
{
|
|
var tSpan = TimeSpan.FromSeconds((double)totSeconds);
|
|
string answ = EgwCoreLib.Lux.Core.DateTimeUtils.FormatDateTime(tSpan);
|
|
return answ;
|
|
}
|
|
}
|
|
} |