Fix duplicazione scheda quando si modificava
This commit is contained in:
@@ -288,6 +288,7 @@
|
||||
new SaveRequestDto
|
||||
{
|
||||
LocalIdScheda = Scheda.Id,
|
||||
ActivityId = Scheda.ActivityId,
|
||||
ActivityTypeId = Scheda.ActivityTypeId,
|
||||
CodJfas = Scheda.CodJfas,
|
||||
CodMdep = CodMdep,
|
||||
@@ -296,8 +297,6 @@
|
||||
PersonaRif = Scheda.Responsabile,
|
||||
Barcodes = Scheda.Articoli.ConvertAll(x => x.Barcode),
|
||||
Scandeza = (ScadenzaEnum)Scheda.Scadenza,
|
||||
// Aggancia la scheda all'ispezione GIA esistente sul server (se sincronizzata),
|
||||
// altrimenti null e il server la crea. Evita di creare una nuova ispezione a ogni salvataggio.
|
||||
ParentActivityId = SteupDataService.InspectionPageState.Ispezione.ActivityId
|
||||
}
|
||||
);
|
||||
|
||||
@@ -8,6 +8,9 @@ public class SaveRequestDto
|
||||
[JsonPropertyName("localIdScheda")]
|
||||
public int? LocalIdScheda { get; set; }
|
||||
|
||||
[JsonPropertyName("activityId")]
|
||||
public string? ActivityId { get; set; }
|
||||
|
||||
[JsonPropertyName("codMdep")]
|
||||
public string? CodMdep { get; set; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user