36 lines
1.0 KiB
C#
36 lines
1.0 KiB
C#
using EgwCoreLib.Lux.Core.Generic;
|
|
using EgwCoreLib.Lux.Data.DbModel.Production;
|
|
using Microsoft.AspNetCore.Components;
|
|
using static Lux.UI.Components.Compo.Planner.BalanceProgGroup;
|
|
|
|
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.DtUtils.FormatDateTime(tSpan);
|
|
return answ;
|
|
}
|
|
|
|
protected async Task CreateProd(OdlAssignDto reqOdl)
|
|
{
|
|
await EC_ReqCreateProd.InvokeAsync(reqOdl);
|
|
}
|
|
protected async Task CalcProd(OdlAssignDto reqOdl)
|
|
{
|
|
await EC_ReqCalcProd.InvokeAsync(reqOdl);
|
|
}
|
|
}
|
|
} |