From d237d4ab967cb967ef5f53b6931dd3535fe9e69b Mon Sep 17 00:00:00 2001 From: michele Date: Fri, 21 Mar 2025 14:51:34 +0100 Subject: [PATCH] note consegna --- Controllers/GiriController.cs | 8 +++++++- Models/Destinazioni.cs | 1 + Models/Destinazioni_out.cs | 1 + Program.cs | 4 ++-- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Controllers/GiriController.cs b/Controllers/GiriController.cs index 324c228..3465965 100644 --- a/Controllers/GiriController.cs +++ b/Controllers/GiriController.cs @@ -769,7 +769,6 @@ namespace ApiSoftway.Controllers [HttpGet("listaDestinazioniByAutistaDataMezzoWeb")] public async Task>> listaDestinazioniByAutistaDataWeb(string autista, DateTime? dataGiro, string mezzo) { - List lst = new List(); _destinazioni = _destinazioni_web_context.Destinazioni; var r = await _destinazioni.Where(t => t.CodAutista != null && t.CodAutista.Equals(autista) && t.DataCarico != null && t.DataCarico == dataGiro && t.CodAutomezzo != null && t.CodAutomezzo.Equals(mezzo)).OrderByDescending(t => t.DataCarico).ThenBy(t => t.Seq).ToListAsync(); @@ -816,6 +815,7 @@ namespace ApiSoftway.Controllers o.Uova = d.Uova; o.Cist = d.Cist; o.Note = d.Note; + o.NoteConsegna = d.NoteConsegna; o.Seq = d.Seq; o.Prog = d.Prog; @@ -1300,6 +1300,12 @@ namespace ApiSoftway.Controllers sb.Append("
"); sb.Append("Note " + _note); } + string _noteCon = !string.IsNullOrEmpty(d.NoteConsegna) ? d.NoteConsegna.Trim() : string.Empty; + if (!string.IsNullOrEmpty(_noteCon)) + { + sb.Append("
"); + sb.Append("Note " + _noteCon); + } item = sb.ToString(); sb = null; diff --git a/Models/Destinazioni.cs b/Models/Destinazioni.cs index 74fe15d..3b33bc5 100644 --- a/Models/Destinazioni.cs +++ b/Models/Destinazioni.cs @@ -50,6 +50,7 @@ namespace ApiSoftway.Models public int? Uova { get; set; } public int? Cist { get; set; } public string? Note { get; set; } + public string? NoteConsegna { get; set; } public int? Seq { get; set; } //progressivo- chiave tabella pimodgir diff --git a/Models/Destinazioni_out.cs b/Models/Destinazioni_out.cs index 50c31e9..c7f8d53 100644 --- a/Models/Destinazioni_out.cs +++ b/Models/Destinazioni_out.cs @@ -36,6 +36,7 @@ namespace ApiSoftway.Models public int? Uova { get; set; } public int? Cist { get; set; } public string? Note { get; set; } + public string? NoteConsegna { get; set; } public int? Seq { get; set; } //progressivo- chiave tabella pimodgir diff --git a/Program.cs b/Program.cs index 8d8319c..276da5f 100644 --- a/Program.cs +++ b/Program.cs @@ -111,5 +111,5 @@ app.UseAuthorization(); app.MapControllers(); -//app.Run(); -app.Run("http://localhost:6000"); +app.Run(); +//app.Run("http://localhost:6000");