From fe3abd6ae76a8d368c28c2abbb51317f2b5369e3 Mon Sep 17 00:00:00 2001 From: Marco Audiffredi Date: Mon, 29 Jul 2024 18:17:46 +0200 Subject: [PATCH] inserimento sede --- Controllers/GiriController.cs | 3 ++- Models/Sbr_ord.cs | 1 + Program.cs | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Controllers/GiriController.cs b/Controllers/GiriController.cs index 1daedfe..1125e45 100644 --- a/Controllers/GiriController.cs +++ b/Controllers/GiriController.cs @@ -708,11 +708,12 @@ namespace ApiSoftway.Controllers var ti = await _sbrord.Where(t => t.Brserial.Equals(model.Serial)).FirstAsync(); string _committente = ti.Brcodcom; string _cliFatturazione = ti.Brclifat; + string _codSede = ti.Brcodsed; int seque = ti.Brnumseq.Value; t.Cca = _committente; t.Ccda=_cliFatturazione; t.Cprownum = seque; - + t.Piconseg=_codSede; //Step 3 : testata diff --git a/Models/Sbr_ord.cs b/Models/Sbr_ord.cs index fd928e8..878483a 100644 --- a/Models/Sbr_ord.cs +++ b/Models/Sbr_ord.cs @@ -10,5 +10,6 @@ namespace ApiSoftway.Models public string? Brcodcom { get; set; } public string? Brclifat { get; set; } public int? Brnumseq { get; set; } + public string? Brcodsed { get; set; } } } diff --git a/Program.cs b/Program.cs index d739c30..7688b2a 100644 --- a/Program.cs +++ b/Program.cs @@ -74,5 +74,5 @@ app.UseAuthorization(); app.MapControllers(); -app.Run(); -//app.Run("http://localhost:6000"); +//app.Run(); +app.Run("http://localhost:6000");