note consegna

This commit is contained in:
michele 2025-03-21 14:51:34 +01:00
parent c22e2ef0e3
commit d237d4ab96
4 changed files with 11 additions and 3 deletions

View File

@ -769,7 +769,6 @@ namespace ApiSoftway.Controllers
[HttpGet("listaDestinazioniByAutistaDataMezzoWeb")]
public async Task<ActionResult<IEnumerable<Destinazioni_out>>> listaDestinazioniByAutistaDataWeb(string autista, DateTime? dataGiro, string mezzo)
{
List<Destinazioni_out> lst = new List<Destinazioni_out>();
_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("<br> ");
sb.Append("<b>Note</b> " + _note);
}
string _noteCon = !string.IsNullOrEmpty(d.NoteConsegna) ? d.NoteConsegna.Trim() : string.Empty;
if (!string.IsNullOrEmpty(_noteCon))
{
sb.Append("<br> ");
sb.Append("<b>Note</b> " + _noteCon);
}
item = sb.ToString();
sb = null;

View File

@ -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

View File

@ -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

View File

@ -111,5 +111,5 @@ app.UseAuthorization();
app.MapControllers();
//app.Run();
app.Run("http://localhost:6000");
app.Run();
//app.Run("http://localhost:6000");