Compare commits
2 Commits
1f3e6f66bf
...
2b3bab6acb
| Author | SHA1 | Date | |
|---|---|---|---|
| 2b3bab6acb | |||
| 6d06c04a57 |
@ -20,8 +20,8 @@ public class IscrizioneEventoService : TService<IscrizioneEvento>, IIscrizioneEv
|
||||
|
||||
entita.DataCreazione = isNuovaEntita ? DateTime.Now : entita.DataCreazione;
|
||||
entita.DataModifica = isNuovaEntita == false ? DateTime.Now : null;
|
||||
entita.IdUtenteCreazione = isNuovaEntita ? null : entita.IdUtenteCreazione;
|
||||
entita.IdUtenteModifica = isNuovaEntita == false ? null : null;
|
||||
entita.IdUtenteCreazione = entita.IdUtenteCreazione;
|
||||
entita.IdUtenteModifica = isNuovaEntita == false ? entita.IdUtenteModifica : null;
|
||||
|
||||
if (isNuovaEntita)
|
||||
await _unitOfWork.GetRepository<IscrizioneEvento>().Put(entita);
|
||||
|
||||
@ -196,13 +196,16 @@
|
||||
|
||||
private async Task onIscrizioneSave()
|
||||
{
|
||||
var userId = await MembershipUtils.GetUserId(_auth);
|
||||
|
||||
var model = new IscrizioneEvento()
|
||||
{
|
||||
EventoId = invito.EventoId,
|
||||
InvitoEventoId = invito.Id,
|
||||
ClienteId = invito.ClienteId,
|
||||
DestinazioneId = iscrizione.DestinazioneId,
|
||||
TipologiaClienteId = iscrizione.TipologiaClienteId
|
||||
TipologiaClienteId = iscrizione.TipologiaClienteId,
|
||||
IdUtenteCreazione = userId != Guid.Empty ? userId : null
|
||||
};
|
||||
|
||||
/*if (invito.EventoId != Guid.Empty && iscrizione.DestinazioneId == Guid.Empty)
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
@rendermode InteractiveServer
|
||||
|
||||
<PageTitle>Iscrizione Evento</PageTitle>
|
||||
<AppHeader ShowNavigation="false"/>
|
||||
<AppHeader ShowNavigation="false" />
|
||||
|
||||
<div class="container my-5 py-3">
|
||||
<ClienteToggle ValueChanged="onClienteToggleChanged" />
|
||||
@ -30,7 +30,7 @@
|
||||
{
|
||||
<Component_Registrazione invito="invito" hasCliente="hasCliente" @ref="registrazione" />
|
||||
}
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<DacFooter />
|
||||
@ -70,7 +70,11 @@
|
||||
x => x.PartitaIva == codiceFornito || x.CodiceFiscale == codiceFornito || x.Rid == codiceFornito || x.Cliente.Rid == codiceFornito,
|
||||
includi: x => x.Include(y => y.Cliente)));
|
||||
|
||||
if (destinazione != null)
|
||||
if (destinazione == null || string.IsNullOrEmpty(text))
|
||||
{
|
||||
await _dialogService.Alert("Non è stato trovato il clente (Codice cliente/Partita IVA non presente)", "Errore", new ConfirmOptions() { OkButtonText = "Ok" });
|
||||
}
|
||||
else
|
||||
{
|
||||
invito.ClienteId = destinazione.ClienteId;
|
||||
invito.DestinazioneId = destinazione.Id;
|
||||
|
||||
Reference in New Issue
Block a user