d076a4b77a
Uscendo da una scheda a meta' (tasto indietro del dispositivo o "Annulla")
il lavoro veniva scartato. Il tasto indietro non era nemmeno gestito: non
arriva alla WebView e non c'e' stack di navigazione, quindi mandava l'app
in background con i dati solo in memoria.
Nuovo stato Bozza ("Da completare"): salvata in locale, mai inviabile
finche' non viene conclusa.
- Scheda.Bozza + migration additiva (default false: le schede esistenti
non cambiano stato).
- SchedaSyncHelper: terzo SyncState, CountBozze(). CountDaInviare()
esclude le bozze, quindi il badge "da inviare" resta corretto.
- ModalFormScheda: SaveDraft() salva solo in locale senza validazione;
Save() azzera il flag; Submit() avvisa quando il form e' invalido
(prima il tocco su "Salva" sembrava non fare nulla se i campi mancanti
erano fuori schermo); Update() prende preserveActivityId cosi' una
bozza di scheda gia' inviata mantiene il link al server e al
completamento lo aggiorna invece di duplicarlo.
- ConfirmUpdateActivity: il pulsante bozza sta su NoText, non CancelText
(CancelText ritorna null, NoText ritorna false).
- BackButtonService + MainActivity.OnBackPressed: il tasto indietro passa
dallo stesso percorso di "Annulla". Ignorato mentre e' aperto un dialog
figlio, per non mostrare il prompt sotto un altro dialog.
- IspezionePage: "Concludi ispezione" si blocca se ci sono bozze,
"Esporta reparto" le salta, chip "N da completare" per reparto.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
155 lines
5.0 KiB
C#
155 lines
5.0 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
using SteUp.Data.LocalDb;
|
|
|
|
#nullable disable
|
|
|
|
namespace SteUp.Data.Migrations
|
|
{
|
|
[DbContext(typeof(AppDbContext))]
|
|
partial class AppDbContextModelSnapshot : ModelSnapshot
|
|
{
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder.HasAnnotation("ProductVersion", "10.0.7");
|
|
|
|
modelBuilder.Entity("SteUp.Shared.Core.Entities.Ispezione", b =>
|
|
{
|
|
b.Property<string>("CodMdep")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("Data")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Rilevatore")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ActivityId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("Stato")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("CodMdep", "Data", "Rilevatore");
|
|
|
|
b.ToTable("Ispezioni");
|
|
});
|
|
|
|
modelBuilder.Entity("SteUp.Shared.Core.Entities.Scheda", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("ActivityId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ActivityTypeId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("Bozza")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("CodJfas")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("CodMdep")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("Data")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("DescrizioneReparto")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ImageNames")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Note")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Responsabile")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Rilevatore")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("Scadenza")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("CodMdep", "Data", "Rilevatore");
|
|
|
|
b.ToTable("Schede");
|
|
});
|
|
|
|
modelBuilder.Entity("SteUp.Shared.Core.Entities.SchedaArticolo", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Barcode")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Descrizione")
|
|
.IsRequired()
|
|
.HasMaxLength(256)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("SchedaId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("SchedaId", "Barcode")
|
|
.IsUnique();
|
|
|
|
b.ToTable("SchedaArticoli");
|
|
});
|
|
|
|
modelBuilder.Entity("SteUp.Shared.Core.Entities.Scheda", b =>
|
|
{
|
|
b.HasOne("SteUp.Shared.Core.Entities.Ispezione", "Ispezione")
|
|
.WithMany("Schede")
|
|
.HasForeignKey("CodMdep", "Data", "Rilevatore")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Ispezione");
|
|
});
|
|
|
|
modelBuilder.Entity("SteUp.Shared.Core.Entities.SchedaArticolo", b =>
|
|
{
|
|
b.HasOne("SteUp.Shared.Core.Entities.Scheda", "Scheda")
|
|
.WithMany("Articoli")
|
|
.HasForeignKey("SchedaId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Scheda");
|
|
});
|
|
|
|
modelBuilder.Entity("SteUp.Shared.Core.Entities.Ispezione", b =>
|
|
{
|
|
b.Navigation("Schede");
|
|
});
|
|
|
|
modelBuilder.Entity("SteUp.Shared.Core.Entities.Scheda", b =>
|
|
{
|
|
b.Navigation("Articoli");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|