- FIX Destinazione visibile in RegistrazioneInFiera
This commit is contained in:
@ -149,6 +149,7 @@
|
||||
|
||||
@code {
|
||||
[Parameter] public InvitoEventoViewModel invito { get; set; }
|
||||
[Parameter] public bool hasCliente { get; set; }
|
||||
|
||||
[SupplyParameterFromForm]
|
||||
private IscrizioneEventoViewModel iscrizione { get; set; } = new();
|
||||
@ -162,7 +163,6 @@
|
||||
|
||||
private bool presaVisionePrivacy { get; set; }
|
||||
private bool presaVisioneDatiPersonali { get; set; }
|
||||
private bool hasCliente { get; set; }
|
||||
|
||||
private DateTime inizioEvento { get; set; }
|
||||
private DateTime fineEvento { get; set; }
|
||||
@ -231,13 +231,12 @@
|
||||
public void NoCliente()
|
||||
{
|
||||
destinazioniList = new List<DestinazioneViewModel>() { new() { RagioneSociale = "--Nessuna" } };
|
||||
hasCliente = false;
|
||||
iscrizione.EsperienzaConDAC = "No";
|
||||
}
|
||||
|
||||
public void HasCliente()
|
||||
{
|
||||
hasCliente = true;
|
||||
iscrizione.EsperienzaConDAC = "Si";
|
||||
}
|
||||
|
||||
private async Task onProvinciaChanged(object args)
|
||||
|
||||
@ -28,7 +28,7 @@
|
||||
|
||||
@if (showForm)
|
||||
{
|
||||
<Component_Registrazione invito="invito" @ref="registrazione" />
|
||||
<Component_Registrazione invito="invito" hasCliente="hasCliente" @ref="registrazione" />
|
||||
}
|
||||
|
||||
</div>
|
||||
@ -40,15 +40,22 @@
|
||||
private bool showForm { get; set; } = false;
|
||||
private InvitoEventoViewModel invito { get; set; } = new InvitoEventoViewModel();
|
||||
private Component_Registrazione registrazione { get; set; } = new();
|
||||
private bool hasCliente { get; set; }
|
||||
|
||||
private string codiceFornito { get; set; }
|
||||
|
||||
private void onClienteToggleChanged(bool value)
|
||||
{
|
||||
if (!value)
|
||||
{
|
||||
hasCliente = false;
|
||||
registrazione.NoCliente();
|
||||
}
|
||||
else
|
||||
{
|
||||
hasCliente = true;
|
||||
registrazione.HasCliente();
|
||||
}
|
||||
|
||||
showCodiceCliente = value;
|
||||
showForm = true;
|
||||
|
||||
Reference in New Issue
Block a user