Fix duplicazione scheda quando si modificava
This commit is contained in:
@@ -288,6 +288,7 @@
|
|||||||
new SaveRequestDto
|
new SaveRequestDto
|
||||||
{
|
{
|
||||||
LocalIdScheda = Scheda.Id,
|
LocalIdScheda = Scheda.Id,
|
||||||
|
ActivityId = Scheda.ActivityId,
|
||||||
ActivityTypeId = Scheda.ActivityTypeId,
|
ActivityTypeId = Scheda.ActivityTypeId,
|
||||||
CodJfas = Scheda.CodJfas,
|
CodJfas = Scheda.CodJfas,
|
||||||
CodMdep = CodMdep,
|
CodMdep = CodMdep,
|
||||||
@@ -296,8 +297,6 @@
|
|||||||
PersonaRif = Scheda.Responsabile,
|
PersonaRif = Scheda.Responsabile,
|
||||||
Barcodes = Scheda.Articoli.ConvertAll(x => x.Barcode),
|
Barcodes = Scheda.Articoli.ConvertAll(x => x.Barcode),
|
||||||
Scandeza = (ScadenzaEnum)Scheda.Scadenza,
|
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
|
ParentActivityId = SteupDataService.InspectionPageState.Ispezione.ActivityId
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -8,6 +8,9 @@ public class SaveRequestDto
|
|||||||
[JsonPropertyName("localIdScheda")]
|
[JsonPropertyName("localIdScheda")]
|
||||||
public int? LocalIdScheda { get; set; }
|
public int? LocalIdScheda { get; set; }
|
||||||
|
|
||||||
|
[JsonPropertyName("activityId")]
|
||||||
|
public string? ActivityId { get; set; }
|
||||||
|
|
||||||
[JsonPropertyName("codMdep")]
|
[JsonPropertyName("codMdep")]
|
||||||
public string? CodMdep { get; set; }
|
public string? CodMdep { get; set; }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user