Migliorati form Cliente e PersonaRif

This commit is contained in:
2025-07-16 17:24:41 +02:00
parent 8c521dc81e
commit b2064ad71e
14 changed files with 381 additions and 94 deletions

View File

@@ -26,13 +26,32 @@ public class ModalHelpers
return await modal.Result;
}
public static async Task<DialogResult?> OpenUserForm(IDialogService dialog, string? codAnag)
public static async Task<DialogResult?> OpenUserForm(IDialogService dialog, ContactDTO? anag)
{
var modal = await dialog.ShowAsync<ContactForm>(
"User form",
new DialogParameters<ContactForm>
{
{ x => x.CodAnag, codAnag }
{ x => x.OriginalModel, anag }
},
new DialogOptions
{
FullScreen = true,
CloseButton = false,
NoHeader = true
}
);
return await modal.Result;
}
public static async Task<DialogResult?> OpenPersRifForm(IDialogService dialog, PersRifDTO? persRif)
{
var modal = await dialog.ShowAsync<PersRifForm>(
"Pers rif form",
new DialogParameters<PersRifForm>
{
{ x => x.OriginalModel, persRif }
},
new DialogOptions
{