Files
lux/Lux.UI/Components/Compo/Templates/TemplateRowMan.razor.cs
T
2026-03-05 19:41:24 +01:00

50 lines
1.3 KiB
C#

using EgwCoreLib.Lux.Data.DbModel.Items;
using EgwCoreLib.Lux.Data.DbModel.Sales;
using Microsoft.AspNetCore.Components;
namespace Lux.UI.Components.Compo.Templates
{
public partial class TemplateRowMan
{
#region Public Properties
/// <summary>
/// Modello dell'offerta corrente (bindato dal genitore).
/// </summary>
[Parameter]
public TemplateRowModel CurrRecord { get; set; } = null!;
/// <summary>
/// Callback invocato al chiusura della finestra (con valore <c>true</c> per cancellazione).
/// </summary>
[Parameter]
public EventCallback<bool> EC_Close { get; set; }
[Parameter]
public List<SellingItemModel> ListSellinglItems { get; set; } = null!;
/// <summary>
/// Callback invocato al salvataggio con record aggiornato
/// </summary>
[Parameter]
public EventCallback<TemplateRowModel> EC_Updated { get; set; }
#endregion Public Properties
#region Private Methods
private Task DoCancel()
{
return EC_Close.InvokeAsync(true);
}
private Task DoSave()
{
// richiesta update con salvataggio record
return EC_Updated.InvokeAsync(CurrRecord);
}
#endregion Private Methods
}
}