33 lines
917 B
C#
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);
|
|
}
|
|
}
|
|
} |