Creato form per Clienti/Prospect
This commit is contained in:
13
salesbook.Shared/Core/Dto/UserDTO.cs
Normal file
13
salesbook.Shared/Core/Dto/UserDTO.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
namespace salesbook.Shared.Core.Dto;
|
||||
|
||||
public class UserDTO
|
||||
{
|
||||
public string? CodAnag { get; set; }
|
||||
public string? RagSoc { get; set; }
|
||||
public string? Indirizzo { get; set; }
|
||||
public string? Cap { get; set; }
|
||||
public string? Citta { get; set; }
|
||||
public string? Prov { get; set; }
|
||||
public string? Nazione { get; set; }
|
||||
public string? PartIva { get; set; }
|
||||
}
|
||||
@@ -25,4 +25,23 @@ public class ModalHelpers
|
||||
|
||||
return await modal.Result;
|
||||
}
|
||||
|
||||
public static async Task<DialogResult?> OpenUserForm(IDialogService dialog, string? codAnag)
|
||||
{
|
||||
var modal = await dialog.ShowAsync<UserForm>(
|
||||
"User form",
|
||||
new DialogParameters<UserForm>
|
||||
{
|
||||
{ x => x.CodAnag, codAnag }
|
||||
},
|
||||
new DialogOptions
|
||||
{
|
||||
FullScreen = true,
|
||||
CloseButton = false,
|
||||
NoHeader = true
|
||||
}
|
||||
);
|
||||
|
||||
return await modal.Result;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user