- Provincia in Destinazione
This commit is contained in:
@ -12,6 +12,7 @@ public class Destinazione : EntitaBase
|
|||||||
public string PartitaIva { get; set; }
|
public string PartitaIva { get; set; }
|
||||||
public string? CodiceFiscale { get; set; }
|
public string? CodiceFiscale { get; set; }
|
||||||
public string? Cap { get; set; }
|
public string? Cap { get; set; }
|
||||||
|
public string? Provincia { get; set; }
|
||||||
public string? Citta { get; set; }
|
public string? Citta { get; set; }
|
||||||
public string? Indirizzo { get; set; }
|
public string? Indirizzo { get; set; }
|
||||||
public string? Email { get; set; }
|
public string? Email { get; set; }
|
||||||
|
|||||||
1169
StandManager.Infrastructure/Migrations/20251223132320_ProvinciaInDest.Designer.cs
generated
Normal file
1169
StandManager.Infrastructure/Migrations/20251223132320_ProvinciaInDest.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,28 @@
|
|||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace StandManager.Infrastructure.Migrations
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
public partial class ProvinciaInDest : Migration
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.AddColumn<string>(
|
||||||
|
name: "Provincia",
|
||||||
|
table: "Destinazione",
|
||||||
|
type: "nvarchar(max)",
|
||||||
|
nullable: true);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "Provincia",
|
||||||
|
table: "Destinazione");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -208,6 +208,9 @@ namespace StandManager.Infrastructure.Migrations
|
|||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b.Property<string>("Provincia")
|
||||||
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
b.Property<string>("RagioneSociale")
|
b.Property<string>("RagioneSociale")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|||||||
@ -116,6 +116,7 @@
|
|||||||
model.Indirizzo = $"{row.Indirizzo} {row.NumeroCivico}";
|
model.Indirizzo = $"{row.Indirizzo} {row.NumeroCivico}";
|
||||||
model.Cap = row.Cap;
|
model.Cap = row.Cap;
|
||||||
model.Citta = row.Comune;
|
model.Citta = row.Comune;
|
||||||
|
model.Provincia = row.Provincia;
|
||||||
model.Email = row.MailFatturazione;
|
model.Email = row.MailFatturazione;
|
||||||
model.EmailInvito = row.MailFatturazione;
|
model.EmailInvito = row.MailFatturazione;
|
||||||
model.NumeroTelefono = row.Telefono;
|
model.NumeroTelefono = row.Telefono;
|
||||||
|
|||||||
@ -12,6 +12,7 @@ public class DestinazioneViewModel
|
|||||||
public string PartitaIva { get; set; }
|
public string PartitaIva { get; set; }
|
||||||
public string Cap { get; set; }
|
public string Cap { get; set; }
|
||||||
public string Citta { get; set; }
|
public string Citta { get; set; }
|
||||||
|
public string Provincia { get; set; }
|
||||||
public string Indirizzo { get; set; }
|
public string Indirizzo { get; set; }
|
||||||
public string Email { get; set; }
|
public string Email { get; set; }
|
||||||
public string EmailInvito { get; set; }
|
public string EmailInvito { get; set; }
|
||||||
@ -21,7 +22,7 @@ public class DestinazioneViewModel
|
|||||||
public UtenteViewModel Agente { get; set; }
|
public UtenteViewModel Agente { get; set; }
|
||||||
public List<ReferenteViewModel> Referenti { get; set; }
|
public List<ReferenteViewModel> Referenti { get; set; }
|
||||||
|
|
||||||
public string Info => $"{RagioneSociale} - {Citta}(), {Indirizzo}";
|
public string Info => $"{RagioneSociale} - {Citta} ({Provincia}), {Indirizzo}";
|
||||||
|
|
||||||
public static implicit operator DestinazioneViewModel(Destinazione model)
|
public static implicit operator DestinazioneViewModel(Destinazione model)
|
||||||
{
|
{
|
||||||
@ -34,6 +35,7 @@ public class DestinazioneViewModel
|
|||||||
AgenteId = model.Agente?.Id,
|
AgenteId = model.Agente?.Id,
|
||||||
Cap = model.Cap,
|
Cap = model.Cap,
|
||||||
Citta = model.Citta,
|
Citta = model.Citta,
|
||||||
|
Provincia = model.Provincia,
|
||||||
Email = model.Email,
|
Email = model.Email,
|
||||||
EmailInvito = model.EmailInvito,
|
EmailInvito = model.EmailInvito,
|
||||||
Id = model.Id,
|
Id = model.Id,
|
||||||
@ -51,6 +53,7 @@ public class DestinazioneViewModel
|
|||||||
model.PartitaIva = PartitaIva;
|
model.PartitaIva = PartitaIva;
|
||||||
model.Cap = Cap;
|
model.Cap = Cap;
|
||||||
model.Citta = Citta;
|
model.Citta = Citta;
|
||||||
|
model.Provincia = Provincia;
|
||||||
model.Indirizzo = Indirizzo;
|
model.Indirizzo = Indirizzo;
|
||||||
model.Email = Email;
|
model.Email = Email;
|
||||||
model.EmailInvito = EmailInvito;
|
model.EmailInvito = EmailInvito;
|
||||||
|
|||||||
Reference in New Issue
Block a user