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 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; } } }