33 lines
891 B
C#
33 lines
891 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; }
|
|
|
|
private string FormatEstTime(decimal totSeconds)
|
|
{
|
|
var tSpan = TimeSpan.FromSeconds((double)totSeconds);
|
|
string answ = DateTimeUtils.FormatDateTime(tSpan);
|
|
return answ;
|
|
}
|
|
|
|
private Task CreateProd(OdlAssignDto reqOdl)
|
|
{
|
|
return EC_ReqCreateProd.InvokeAsync(reqOdl);
|
|
}
|
|
private Task CalcProd(OdlAssignDto reqOdl)
|
|
{
|
|
return EC_ReqCalcProd.InvokeAsync(reqOdl);
|
|
}
|
|
}
|
|
} |