using EgwCoreLib.Lux.Core.Generic; namespace Lux.UI.Components.Compo.Planner { public partial class OdlDetail { [Parameter] public OdlAssignDto CurrRecord { get; set; } = null!; [Parameter] public bool ShowDetail { get; set; } = false; [Parameter] public EventCallback EC_DoBalance { get; set; } private string CssDetail => ShowDetail ? "fa-chevron-up" : "fa-chevron-down"; private void ToggleDetail() { ShowDetail = !ShowDetail; } protected string FormatEstTime(decimal totSeconds) { var tSpan = TimeSpan.FromSeconds((double)totSeconds); string answ = DateTimeUtils.FormatDateTime(tSpan); return answ; } } }