38 lines
1.0 KiB
C#
38 lines
1.0 KiB
C#
using EgwCoreLib.Razor;
|
|
|
|
namespace Lux.UI.Components.Compo.Planner
|
|
{
|
|
public partial class WLB_Estimated
|
|
{
|
|
[Parameter]
|
|
public List<OrderRowModel>? AllRecords { get; set; } = null;
|
|
|
|
[Parameter]
|
|
public EventCallback<int> EC_DoBalance { get; set; }
|
|
[Parameter]
|
|
public EventCallback<bool> EC_DoBalanceAll { get; set; }
|
|
|
|
private bool showDetail = false;
|
|
|
|
private void ToggleDetail()
|
|
{
|
|
showDetail = !showDetail;
|
|
}
|
|
|
|
private BootstrapModal Modal = new();
|
|
private string mTitle = "";
|
|
private string mMessage = "";
|
|
private BootstrapModal.ModalMode mMode = BootstrapModal.ModalMode.ND;
|
|
private Dictionary<bool, string> modalOpt = new Dictionary<bool, string>();
|
|
|
|
private Task SendAllAsync()
|
|
{
|
|
return EC_DoBalanceAll.InvokeAsync(false);
|
|
}
|
|
|
|
private Task DoBalance(int OrderRowID)
|
|
{
|
|
return EC_DoBalance.InvokeAsync(OrderRowID);
|
|
}
|
|
}
|
|
} |