Files
Samuele Locatelli 4d58189581 Async/Await fix vari
2026-03-25 16:13:40 +01:00

33 lines
917 B
C#

using EgwCoreLib.Lux.Core.Generic;
namespace Lux.UI.Components.Compo.Planner
{
public partial class OdlMan
{
[Parameter]
public List<OdlAssignDto>? AllRecords { get; set; } = null;
[Parameter]
public EventCallback<OdlAssignDto> EC_ReqCreateProd { get; set; }
[Parameter]
public EventCallback<OdlAssignDto> EC_ReqCalcProd { get; set; }
protected string FormatEstTime(decimal totSeconds)
{
var tSpan = TimeSpan.FromSeconds((double)totSeconds);
string answ = EgwCoreLib.Lux.Core.DateTimeUtils.FormatDateTime(tSpan);
return answ;
}
protected Task CreateProd(OdlAssignDto reqOdl)
{
return EC_ReqCreateProd.InvokeAsync(reqOdl);
}
protected Task CalcProd(OdlAssignDto reqOdl)
{
return EC_ReqCalcProd.InvokeAsync(reqOdl);
}
}
}