2022-10-04 13:28:44 +02:00
|
|
|
// Copyright (C) 2022 FCS Frede's Computer Services.
|
|
|
|
// This program is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU Affero General Public License as
|
|
|
|
// published by the Free Software Foundation, either version 3 of the
|
|
|
|
// License, or (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU Affero General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU Affero General Public License
|
|
|
|
// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html]
|
|
|
|
//
|
|
|
|
|
2023-03-07 12:40:02 +01:00
|
|
|
|
2022-08-02 08:40:22 +02:00
|
|
|
using Microsoft.AspNetCore.Components;
|
2022-12-22 08:19:08 +01:00
|
|
|
using Wonky.Entity.Views;
|
2022-08-02 08:40:22 +02:00
|
|
|
|
2023-02-14 12:41:27 +01:00
|
|
|
namespace Wonky.Client.OverlayOrderCreate;
|
2022-08-02 08:40:22 +02:00
|
|
|
|
2023-06-06 16:53:01 +02:00
|
|
|
public partial class ConfirmCheckOverlay
|
2022-08-02 08:40:22 +02:00
|
|
|
{
|
2023-06-01 17:28:51 +02:00
|
|
|
// ##############################################################
|
2022-12-22 08:19:08 +01:00
|
|
|
[Parameter] public string BodyMessage { get; set; } = "";
|
2022-08-02 08:40:22 +02:00
|
|
|
[Parameter] public string CompanyId { get; set; } = "";
|
2023-05-27 16:37:17 +02:00
|
|
|
[Parameter] public List<ProductInventoryItemView> Products { get; set; } = new();
|
2022-12-22 08:19:08 +01:00
|
|
|
[Parameter] public EventCallback OnOkClicked { get; set; }
|
2023-06-01 17:28:51 +02:00
|
|
|
|
|
|
|
// ##############################################################
|
|
|
|
private string _modalDisplay = "";
|
|
|
|
private bool _showBackdrop;
|
2022-08-02 08:40:22 +02:00
|
|
|
|
2022-12-22 08:19:08 +01:00
|
|
|
public void Show()
|
|
|
|
{
|
|
|
|
_modalDisplay = "block;";
|
|
|
|
_showBackdrop = true;
|
|
|
|
StateHasChanged();
|
|
|
|
}
|
2022-08-02 08:40:22 +02:00
|
|
|
|
2022-12-22 08:19:08 +01:00
|
|
|
public void Hide()
|
|
|
|
{
|
|
|
|
_modalDisplay = "none;";
|
|
|
|
_showBackdrop = false;
|
|
|
|
StateHasChanged();
|
|
|
|
}
|
2022-08-02 08:40:22 +02:00
|
|
|
}
|