From 2444dd49c8e934aae11d31f13b3edd3e22e62358 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Mon, 17 May 2021 15:41:59 +0200 Subject: [PATCH 1/2] =?UTF-8?q?Pulizia=20classi=20NON=20pi=C3=B9=20impiega?= =?UTF-8?q?te?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MP.Data/DatabaseModels/Aaul.cs | 13 --------- MP.Data/DatabaseModels/Cal.cs | 18 ------------ MP.Data/DatabaseModels/Config.cs | 15 ---------- MP.Data/DatabaseModels/Ddb.cs | 15 ---------- MP.Data/DatabaseModels/Ddb1.cs | 24 ---------------- MP.Data/DatabaseModels/DdbTurni.cs | 30 -------------------- MP.Data/DatabaseModels/DdbTurniNew.cs | 30 -------------------- MP.Data/DatabaseModels/DdbTurniSummary.cs | 21 -------------- MP.Data/DatabaseModels/DdbTurniSummaryNew.cs | 21 -------------- MP.Data/DatabaseModels/Ecp.cs | 23 --------------- MP.Data/DatabaseModels/Ecp1.cs | 21 -------------- MP.Data/DatabaseModels/Kit.cs | 14 --------- MP.Data/DatabaseModels/Odl.cs | 26 ----------------- MP.Data/DatabaseModels/Odl1.cs | 30 -------------------- MP.Data/DatabaseModels/R.cs | 23 --------------- MP.Data/DatabaseModels/R1.cs | 22 -------------- MP.Data/DatabaseModels/Rc.cs | 19 ------------- MP.Data/DatabaseModels/Tally.cs | 12 -------- MP.Data/DatabaseModels/TcStat.cs | 16 ----------- MP.Data/DatabaseModels/Tcr.cs | 19 ------------- MP.Data/DatabaseModels/Tcr1.cs | 20 ------------- MP.Data/DatabaseModels/TcrDay.cs | 19 ------------- MP.Data/DatabaseModels/TcrDayTest.cs | 19 ------------- MP.Data/DatabaseModels/TestJason.cs | 14 --------- MP.Data/DatabaseModels/Ul.cs | 21 -------------- MP.Data/DatabaseModels/VDdb.cs | 24 ---------------- MP.Data/DatabaseModels/VDdbLight.cs | 18 ------------ MP.Data/DatabaseModels/VDdbLightOld.cs | 18 ------------ MP.Data/DatabaseModels/VDdbTurni.cs | 26 ----------------- MP.Data/DatabaseModels/VEcp.cs | 21 -------------- MP.Data/DatabaseModels/VEcp1.cs | 25 ---------------- MP.Data/DatabaseModels/VEcpExtended.cs | 27 ------------------ MP.Data/DatabaseModels/VKit.cs | 14 --------- MP.Data/DatabaseModels/VOdl.cs | 30 -------------------- MP.Data/DatabaseModels/VOdl1.cs | 28 ------------------ MP.Data/DatabaseModels/VPodlNonChiusi.cs | 30 -------------------- MP.Data/DatabaseModels/VR1.cs | 23 --------------- MP.Data/DatabaseModels/VTcStat.cs | 18 ------------ MP.Data/DatabaseModels/VTcr.cs | 20 ------------- MP.Data/DatabaseModels/VTcr1.cs | 21 -------------- MP.Data/DatabaseModels/VTcrDay.cs | 21 -------------- MP.Data/DatabaseModels/VetoTc.cs | 15 ---------- 42 files changed, 884 deletions(-) delete mode 100644 MP.Data/DatabaseModels/Aaul.cs delete mode 100644 MP.Data/DatabaseModels/Cal.cs delete mode 100644 MP.Data/DatabaseModels/Config.cs delete mode 100644 MP.Data/DatabaseModels/Ddb.cs delete mode 100644 MP.Data/DatabaseModels/Ddb1.cs delete mode 100644 MP.Data/DatabaseModels/DdbTurni.cs delete mode 100644 MP.Data/DatabaseModels/DdbTurniNew.cs delete mode 100644 MP.Data/DatabaseModels/DdbTurniSummary.cs delete mode 100644 MP.Data/DatabaseModels/DdbTurniSummaryNew.cs delete mode 100644 MP.Data/DatabaseModels/Ecp.cs delete mode 100644 MP.Data/DatabaseModels/Ecp1.cs delete mode 100644 MP.Data/DatabaseModels/Kit.cs delete mode 100644 MP.Data/DatabaseModels/Odl.cs delete mode 100644 MP.Data/DatabaseModels/Odl1.cs delete mode 100644 MP.Data/DatabaseModels/R.cs delete mode 100644 MP.Data/DatabaseModels/R1.cs delete mode 100644 MP.Data/DatabaseModels/Rc.cs delete mode 100644 MP.Data/DatabaseModels/Tally.cs delete mode 100644 MP.Data/DatabaseModels/TcStat.cs delete mode 100644 MP.Data/DatabaseModels/Tcr.cs delete mode 100644 MP.Data/DatabaseModels/Tcr1.cs delete mode 100644 MP.Data/DatabaseModels/TcrDay.cs delete mode 100644 MP.Data/DatabaseModels/TcrDayTest.cs delete mode 100644 MP.Data/DatabaseModels/TestJason.cs delete mode 100644 MP.Data/DatabaseModels/Ul.cs delete mode 100644 MP.Data/DatabaseModels/VDdb.cs delete mode 100644 MP.Data/DatabaseModels/VDdbLight.cs delete mode 100644 MP.Data/DatabaseModels/VDdbLightOld.cs delete mode 100644 MP.Data/DatabaseModels/VDdbTurni.cs delete mode 100644 MP.Data/DatabaseModels/VEcp.cs delete mode 100644 MP.Data/DatabaseModels/VEcp1.cs delete mode 100644 MP.Data/DatabaseModels/VEcpExtended.cs delete mode 100644 MP.Data/DatabaseModels/VKit.cs delete mode 100644 MP.Data/DatabaseModels/VOdl.cs delete mode 100644 MP.Data/DatabaseModels/VOdl1.cs delete mode 100644 MP.Data/DatabaseModels/VPodlNonChiusi.cs delete mode 100644 MP.Data/DatabaseModels/VR1.cs delete mode 100644 MP.Data/DatabaseModels/VTcStat.cs delete mode 100644 MP.Data/DatabaseModels/VTcr.cs delete mode 100644 MP.Data/DatabaseModels/VTcr1.cs delete mode 100644 MP.Data/DatabaseModels/VTcrDay.cs delete mode 100644 MP.Data/DatabaseModels/VetoTc.cs diff --git a/MP.Data/DatabaseModels/Aaul.cs b/MP.Data/DatabaseModels/Aaul.cs deleted file mode 100644 index f639d8c7..00000000 --- a/MP.Data/DatabaseModels/Aaul.cs +++ /dev/null @@ -1,13 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class Aaul - { - public string Azione { get; set; } - public string Descrizione { get; set; } - } -} diff --git a/MP.Data/DatabaseModels/Cal.cs b/MP.Data/DatabaseModels/Cal.cs deleted file mode 100644 index 62ac75a3..00000000 --- a/MP.Data/DatabaseModels/Cal.cs +++ /dev/null @@ -1,18 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class Cal - { - public DateTime Giorno { get; set; } - public bool? DoDdb { get; set; } - public bool? DoTcr { get; set; } - public bool? DoUl { get; set; } - public bool? DoEcp { get; set; } - public bool? DoRs { get; set; } - public bool? DoOdl { get; set; } - } -} diff --git a/MP.Data/DatabaseModels/Config.cs b/MP.Data/DatabaseModels/Config.cs deleted file mode 100644 index e994d899..00000000 --- a/MP.Data/DatabaseModels/Config.cs +++ /dev/null @@ -1,15 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class Config - { - public string Chiave { get; set; } - public string Valore { get; set; } - public string ValoreStd { get; set; } - public string Note { get; set; } - } -} diff --git a/MP.Data/DatabaseModels/Ddb.cs b/MP.Data/DatabaseModels/Ddb.cs deleted file mode 100644 index 01eb95f0..00000000 --- a/MP.Data/DatabaseModels/Ddb.cs +++ /dev/null @@ -1,15 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class Ddb - { - public DateTime DataOraRif { get; set; } - public string IdxMacchina { get; set; } - public int IdxStato { get; set; } - public decimal DurataMinuti { get; set; } - } -} diff --git a/MP.Data/DatabaseModels/Ddb1.cs b/MP.Data/DatabaseModels/Ddb1.cs deleted file mode 100644 index 60291b02..00000000 --- a/MP.Data/DatabaseModels/Ddb1.cs +++ /dev/null @@ -1,24 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class Ddb1 - { - public string IdxMacchina { get; set; } - public DateTime InizioStato { get; set; } - public DateTime? FineStato { get; set; } - public int IdxStato { get; set; } - public double? DurataMinuti { get; set; } - public string Value { get; set; } - public string CodArticolo { get; set; } - public double? TempoCicloBase { get; set; } - public int? PzPalletProd { get; set; } - public int? MatrOpr { get; set; } - public string Pallet { get; set; } - public string Descrizione { get; set; } - public string ClasseTempo { get; set; } - } -} diff --git a/MP.Data/DatabaseModels/DdbTurni.cs b/MP.Data/DatabaseModels/DdbTurni.cs deleted file mode 100644 index 4fc7e14d..00000000 --- a/MP.Data/DatabaseModels/DdbTurni.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class DdbTurni - { - public DateTime DataRif { get; set; } - public string IdxMacchina { get; set; } - public string Turno { get; set; } - public int IdxStato { get; set; } - public string CodArticolo { get; set; } - public DateTime InizioStato { get; set; } - public DateTime FineStato { get; set; } - public string Pallet { get; set; } - public int? PzPalletProd { get; set; } - public decimal? TempoCicloBase { get; set; } - public string Descrizione { get; set; } - public string ClasseTempo { get; set; } - public DateTime? DataTurnoInizio { get; set; } - public DateTime? DataTurnoFine { get; set; } - public long? DurataStato { get; set; } - public DateTime InizioPeriodo { get; set; } - public DateTime? FinePeriodo { get; set; } - public long? DurataPeriodo { get; set; } - public int TotPzProd { get; set; } - } -} diff --git a/MP.Data/DatabaseModels/DdbTurniNew.cs b/MP.Data/DatabaseModels/DdbTurniNew.cs deleted file mode 100644 index 37bf31d9..00000000 --- a/MP.Data/DatabaseModels/DdbTurniNew.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class DdbTurniNew - { - public DateTime DataRif { get; set; } - public string IdxMacchina { get; set; } - public string Turno { get; set; } - public int IdxStato { get; set; } - public string CodArticolo { get; set; } - public DateTime InizioStato { get; set; } - public DateTime FineStato { get; set; } - public string Pallet { get; set; } - public int? PzPalletProd { get; set; } - public decimal? TempoCicloBase { get; set; } - public string Descrizione { get; set; } - public string ClasseTempo { get; set; } - public DateTime? DataTurnoInizio { get; set; } - public DateTime? DataTurnoFine { get; set; } - public long? DurataStato { get; set; } - public DateTime InizioPeriodo { get; set; } - public DateTime? FinePeriodo { get; set; } - public long? DurataPeriodo { get; set; } - public int TotPzProd { get; set; } - } -} diff --git a/MP.Data/DatabaseModels/DdbTurniSummary.cs b/MP.Data/DatabaseModels/DdbTurniSummary.cs deleted file mode 100644 index 5db34143..00000000 --- a/MP.Data/DatabaseModels/DdbTurniSummary.cs +++ /dev/null @@ -1,21 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class DdbTurniSummary - { - public string IdxMacchina { get; set; } - public DateTime DataRif { get; set; } - public string Turno { get; set; } - public string CodArticolo { get; set; } - public int IdxStato { get; set; } - public decimal TempoCicloBase { get; set; } - public DateTime? Inizio { get; set; } - public int PzPalletProd { get; set; } - public decimal? Durata { get; set; } - public int? PzProd { get; set; } - } -} diff --git a/MP.Data/DatabaseModels/DdbTurniSummaryNew.cs b/MP.Data/DatabaseModels/DdbTurniSummaryNew.cs deleted file mode 100644 index 1460328b..00000000 --- a/MP.Data/DatabaseModels/DdbTurniSummaryNew.cs +++ /dev/null @@ -1,21 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class DdbTurniSummaryNew - { - public string IdxMacchina { get; set; } - public DateTime DataRif { get; set; } - public string Turno { get; set; } - public string CodArticolo { get; set; } - public int IdxStato { get; set; } - public decimal TempoCicloBase { get; set; } - public DateTime? Inizio { get; set; } - public int PzPalletProd { get; set; } - public decimal? Durata { get; set; } - public int? PzProd { get; set; } - } -} diff --git a/MP.Data/DatabaseModels/Ecp.cs b/MP.Data/DatabaseModels/Ecp.cs deleted file mode 100644 index 09fb32dc..00000000 --- a/MP.Data/DatabaseModels/Ecp.cs +++ /dev/null @@ -1,23 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class Ecp - { - public int IdxEcp { get; set; } - public DateTime DataOraConf { get; set; } - public string IdxMacchina { get; set; } - public string KeyRichiesta { get; set; } - public int IdxOdl { get; set; } - public string CodArticolo { get; set; } - public int PezziConf { get; set; } - public int PezziScar { get; set; } - public int PezziDaRilav { get; set; } - public int MatrOpr { get; set; } - public string Cognome { get; set; } - public string Nome { get; set; } - } -} diff --git a/MP.Data/DatabaseModels/Ecp1.cs b/MP.Data/DatabaseModels/Ecp1.cs deleted file mode 100644 index 33a3a973..00000000 --- a/MP.Data/DatabaseModels/Ecp1.cs +++ /dev/null @@ -1,21 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class Ecp1 - { - public DateTime DataOraConf { get; set; } - public string IdxMacchina { get; set; } - public int MatrApp { get; set; } - public DateTime DataFrom { get; set; } - public DateTime DataTo { get; set; } - public int PezziConf { get; set; } - public int PezziScar { get; set; } - public int PezziDaRilav { get; set; } - public string CommessaEsterna { get; set; } - public int TipoConf { get; set; } - } -} diff --git a/MP.Data/DatabaseModels/Kit.cs b/MP.Data/DatabaseModels/Kit.cs deleted file mode 100644 index cb25c5c0..00000000 --- a/MP.Data/DatabaseModels/Kit.cs +++ /dev/null @@ -1,14 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class Kit - { - public string KeyKit { get; set; } - public string KeyExtOrd { get; set; } - public string CodArtParent { get; set; } - } -} diff --git a/MP.Data/DatabaseModels/Odl.cs b/MP.Data/DatabaseModels/Odl.cs deleted file mode 100644 index fa8f8bfa..00000000 --- a/MP.Data/DatabaseModels/Odl.cs +++ /dev/null @@ -1,26 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class Odl - { - public int IdxOdl { get; set; } - public string KeyRichiesta { get; set; } - public string CodArticolo { get; set; } - public decimal Tcassegnato { get; set; } - public string IdxMacchina { get; set; } - public int NumPezzi { get; set; } - public int NumPezziEv { get; set; } - public int NumPezziSca { get; set; } - public int NumPezziRil { get; set; } - public DateTime? DataInizio { get; set; } - public DateTime? DataFine { get; set; } - public string KeyRichiestaParent { get; set; } - public string CodArticoloParent { get; set; } - public DateTime? DueDate { get; set; } - public int? PzPallet { get; set; } - } -} diff --git a/MP.Data/DatabaseModels/Odl1.cs b/MP.Data/DatabaseModels/Odl1.cs deleted file mode 100644 index 50436e07..00000000 --- a/MP.Data/DatabaseModels/Odl1.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class Odl1 - { - public int IdxOdl { get; set; } - public string CodArticolo { get; set; } - public string IdxMacchina { get; set; } - public int NumPezzi { get; set; } - public decimal Tcassegnato { get; set; } - public DateTime? DataInizio { get; set; } - public DateTime? DataFine { get; set; } - public string Note { get; set; } - public bool NeedAppr { get; set; } - public string UserAppr { get; set; } - public DateTime? DataAppr { get; set; } - public decimal? TcrichAttr { get; set; } - public string KeyRichiesta { get; set; } - public int PzPallet { get; set; } - public bool Provvisorio { get; set; } - public int MatrOpr { get; set; } - public string CommessaAs400 { get; set; } - public int ToAs400 { get; set; } - public DateTime? DueDate { get; set; } - } -} diff --git a/MP.Data/DatabaseModels/R.cs b/MP.Data/DatabaseModels/R.cs deleted file mode 100644 index 8e58bf74..00000000 --- a/MP.Data/DatabaseModels/R.cs +++ /dev/null @@ -1,23 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class R - { - public DateTime DataOraRif { get; set; } - public string IdxMacchina { get; set; } - public string Causale { get; set; } - public string Descrizione { get; set; } - public string Note { get; set; } - public int Qta { get; set; } - public string KeyRichiesta { get; set; } - public int IdxOdl { get; set; } - public string CodArticolo { get; set; } - public int MatrOpr { get; set; } - public string Cognome { get; set; } - public string Nome { get; set; } - } -} diff --git a/MP.Data/DatabaseModels/R1.cs b/MP.Data/DatabaseModels/R1.cs deleted file mode 100644 index e4abb10d..00000000 --- a/MP.Data/DatabaseModels/R1.cs +++ /dev/null @@ -1,22 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class R1 - { - public string IdxMacchina { get; set; } - public DateTime DataOra { get; set; } - public string Causale { get; set; } - public int Qta { get; set; } - public string Note { get; set; } - public string CodArticolo { get; set; } - public int MatrOpr { get; set; } - public DateTime? DataOraProdRec { get; set; } - public string Descrizione { get; set; } - public string KeyRichiesta { get; set; } - public int IdxOdl { get; set; } - } -} diff --git a/MP.Data/DatabaseModels/Rc.cs b/MP.Data/DatabaseModels/Rc.cs deleted file mode 100644 index 8578e1a4..00000000 --- a/MP.Data/DatabaseModels/Rc.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class Rc - { - public int IdxControllo { get; set; } - public DateTime DataOra { get; set; } - public string IdxMacchina { get; set; } - public int IdxOdl { get; set; } - public string CodArticolo { get; set; } - public int MatrOpr { get; set; } - public bool EsitoOk { get; set; } - public string Note { get; set; } - } -} diff --git a/MP.Data/DatabaseModels/Tally.cs b/MP.Data/DatabaseModels/Tally.cs deleted file mode 100644 index e64cf735..00000000 --- a/MP.Data/DatabaseModels/Tally.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class Tally - { - public int N { get; set; } - } -} diff --git a/MP.Data/DatabaseModels/TcStat.cs b/MP.Data/DatabaseModels/TcStat.cs deleted file mode 100644 index eef51348..00000000 --- a/MP.Data/DatabaseModels/TcStat.cs +++ /dev/null @@ -1,16 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class TcStat - { - public string CodArticolo { get; set; } - public string CodGruppo { get; set; } - public string IdxMacchina { get; set; } - public decimal TcStat1 { get; set; } - public int TcType { get; set; } - } -} diff --git a/MP.Data/DatabaseModels/Tcr.cs b/MP.Data/DatabaseModels/Tcr.cs deleted file mode 100644 index d0ba1c26..00000000 --- a/MP.Data/DatabaseModels/Tcr.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class Tcr - { - public DateTime DataOraRif { get; set; } - public string IdxMacchina { get; set; } - public string CodArticolo { get; set; } - public int PzProd { get; set; } - public decimal? Tcmedio { get; set; } - public decimal? Tcmin { get; set; } - public decimal? Tcmax { get; set; } - public decimal? Tc50p { get; set; } - } -} diff --git a/MP.Data/DatabaseModels/Tcr1.cs b/MP.Data/DatabaseModels/Tcr1.cs deleted file mode 100644 index 444d2669..00000000 --- a/MP.Data/DatabaseModels/Tcr1.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class Tcr1 - { - public string IdxMacchina { get; set; } - public string CodArticolo { get; set; } - public DateTime DataOraRif { get; set; } - public decimal Tcmedio { get; set; } - public int PzProd { get; set; } - public int IdxOdl { get; set; } - public decimal Tcassegnato { get; set; } - public string KeyRichiesta { get; set; } - public int PzPallet { get; set; } - } -} diff --git a/MP.Data/DatabaseModels/TcrDay.cs b/MP.Data/DatabaseModels/TcrDay.cs deleted file mode 100644 index 20c3fbdf..00000000 --- a/MP.Data/DatabaseModels/TcrDay.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class TcrDay - { - public DateTime DataOraRif { get; set; } - public string IdxMacchina { get; set; } - public string CodArticolo { get; set; } - public int PzProd { get; set; } - public decimal? Tcmedio { get; set; } - public decimal? Tcmin { get; set; } - public decimal? Tcmax { get; set; } - public decimal? Tc50p { get; set; } - } -} diff --git a/MP.Data/DatabaseModels/TcrDayTest.cs b/MP.Data/DatabaseModels/TcrDayTest.cs deleted file mode 100644 index 904d7c7f..00000000 --- a/MP.Data/DatabaseModels/TcrDayTest.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class TcrDayTest - { - public DateTime DataOraRif { get; set; } - public string IdxMacchina { get; set; } - public string CodArticolo { get; set; } - public int PzProd { get; set; } - public decimal? Tcmedio { get; set; } - public decimal? Tcmin { get; set; } - public decimal? Tcmax { get; set; } - public decimal? Tc50p { get; set; } - } -} diff --git a/MP.Data/DatabaseModels/TestJason.cs b/MP.Data/DatabaseModels/TestJason.cs deleted file mode 100644 index 8f921d40..00000000 --- a/MP.Data/DatabaseModels/TestJason.cs +++ /dev/null @@ -1,14 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class TestJason - { - public DateTime Data { get; set; } - public byte[] Json { get; set; } - public int? Rows { get; set; } - } -} diff --git a/MP.Data/DatabaseModels/Ul.cs b/MP.Data/DatabaseModels/Ul.cs deleted file mode 100644 index 54b11f82..00000000 --- a/MP.Data/DatabaseModels/Ul.cs +++ /dev/null @@ -1,21 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class Ul - { - public int IdxLog { get; set; } - public DateTime DataOraRif { get; set; } - public string IdxMacchina { get; set; } - public int MatrOpr { get; set; } - public string Cognome { get; set; } - public string Nome { get; set; } - public string CodArticolo { get; set; } - public string Azione { get; set; } - public string Valore { get; set; } - public decimal Qta { get; set; } - } -} diff --git a/MP.Data/DatabaseModels/VDdb.cs b/MP.Data/DatabaseModels/VDdb.cs deleted file mode 100644 index 4aeccff6..00000000 --- a/MP.Data/DatabaseModels/VDdb.cs +++ /dev/null @@ -1,24 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class VDdb - { - public string IdxMacchina { get; set; } - public DateTime InizioStato { get; set; } - public DateTime? FineStato { get; set; } - public int IdxStato { get; set; } - public double? DurataMinuti { get; set; } - public string Value { get; set; } - public string CodArticolo { get; set; } - public double? TempoCicloBase { get; set; } - public int? PzPalletProd { get; set; } - public int? MatrOpr { get; set; } - public string Pallet { get; set; } - public string Descrizione { get; set; } - public string ClasseTempo { get; set; } - } -} diff --git a/MP.Data/DatabaseModels/VDdbLight.cs b/MP.Data/DatabaseModels/VDdbLight.cs deleted file mode 100644 index f1bafcbc..00000000 --- a/MP.Data/DatabaseModels/VDdbLight.cs +++ /dev/null @@ -1,18 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class VDdbLight - { - public string CodMacchina { get; set; } - public string DescMacchina { get; set; } - public DateTime InizioStato { get; set; } - public string Stato { get; set; } - public double? DurataMinuti { get; set; } - public string CodArticolo { get; set; } - public string Operatore { get; set; } - } -} diff --git a/MP.Data/DatabaseModels/VDdbLightOld.cs b/MP.Data/DatabaseModels/VDdbLightOld.cs deleted file mode 100644 index d636177a..00000000 --- a/MP.Data/DatabaseModels/VDdbLightOld.cs +++ /dev/null @@ -1,18 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class VDdbLightOld - { - public string CodMacchina { get; set; } - public string DescMacchina { get; set; } - public DateTime InizioStato { get; set; } - public string Stato { get; set; } - public double? DurataMinuti { get; set; } - public string CodArticolo { get; set; } - public string Operatore { get; set; } - } -} diff --git a/MP.Data/DatabaseModels/VDdbTurni.cs b/MP.Data/DatabaseModels/VDdbTurni.cs deleted file mode 100644 index fbdc6046..00000000 --- a/MP.Data/DatabaseModels/VDdbTurni.cs +++ /dev/null @@ -1,26 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class VDdbTurni - { - public string IdxMacchina { get; set; } - public DateTime DataRif { get; set; } - public string Turno { get; set; } - public string CodArticolo { get; set; } - public int IdxStato { get; set; } - public decimal TempoCicloBase { get; set; } - public int PzPalletProd { get; set; } - public decimal? Durata { get; set; } - public int? PzProd { get; set; } - public string ClasseTempo { get; set; } - public string DescClasseTempo { get; set; } - public string Semaforo { get; set; } - public string SemColore { get; set; } - public string CodMacchina { get; set; } - public string DescMacchina { get; set; } - } -} diff --git a/MP.Data/DatabaseModels/VEcp.cs b/MP.Data/DatabaseModels/VEcp.cs deleted file mode 100644 index c90a45b6..00000000 --- a/MP.Data/DatabaseModels/VEcp.cs +++ /dev/null @@ -1,21 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class VEcp - { - public DateTime DataOraConf { get; set; } - public string IdxMacchina { get; set; } - public int MatrApp { get; set; } - public DateTime DataFrom { get; set; } - public DateTime DataTo { get; set; } - public int PezziConf { get; set; } - public int PezziScar { get; set; } - public int PezziDaRilav { get; set; } - public string CommessaEsterna { get; set; } - public int TipoConf { get; set; } - } -} diff --git a/MP.Data/DatabaseModels/VEcp1.cs b/MP.Data/DatabaseModels/VEcp1.cs deleted file mode 100644 index 3c63b654..00000000 --- a/MP.Data/DatabaseModels/VEcp1.cs +++ /dev/null @@ -1,25 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class VEcp1 - { - public int IdxEcp { get; set; } - public DateTime DataOraConf { get; set; } - public string IdxMacchina { get; set; } - public string CodMacchina { get; set; } - public string DescMacchina { get; set; } - public string KeyRichiesta { get; set; } - public int IdxOdl { get; set; } - public string CodArticolo { get; set; } - public int PezziConf { get; set; } - public int PezziScar { get; set; } - public int PezziDaRilav { get; set; } - public int MatrOpr { get; set; } - public string Cognome { get; set; } - public string Nome { get; set; } - } -} diff --git a/MP.Data/DatabaseModels/VEcpExtended.cs b/MP.Data/DatabaseModels/VEcpExtended.cs deleted file mode 100644 index c2d75bc9..00000000 --- a/MP.Data/DatabaseModels/VEcpExtended.cs +++ /dev/null @@ -1,27 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class VEcpExtended - { - public int IdxEcp { get; set; } - public DateTime DataOraConf { get; set; } - public string IdxMacchina { get; set; } - public string CodMacchina { get; set; } - public string DescMacchina { get; set; } - public string KeyRichiesta { get; set; } - public int IdxOdl { get; set; } - public string CodArticolo { get; set; } - public int PezziConf { get; set; } - public int PezziScar { get; set; } - public int PezziDaRilav { get; set; } - public int MatrOpr { get; set; } - public string Cognome { get; set; } - public string Nome { get; set; } - public decimal Tcassegnato { get; set; } - public DateTime DueDate { get; set; } - } -} diff --git a/MP.Data/DatabaseModels/VKit.cs b/MP.Data/DatabaseModels/VKit.cs deleted file mode 100644 index f84ce903..00000000 --- a/MP.Data/DatabaseModels/VKit.cs +++ /dev/null @@ -1,14 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class VKit - { - public string KeyKit { get; set; } - public string KeyExtOrd { get; set; } - public string CodArtParent { get; set; } - } -} diff --git a/MP.Data/DatabaseModels/VOdl.cs b/MP.Data/DatabaseModels/VOdl.cs deleted file mode 100644 index 8600135a..00000000 --- a/MP.Data/DatabaseModels/VOdl.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class VOdl - { - public int IdxOdl { get; set; } - public string CodArticolo { get; set; } - public string IdxMacchina { get; set; } - public int NumPezzi { get; set; } - public decimal Tcassegnato { get; set; } - public DateTime? DataInizio { get; set; } - public DateTime? DataFine { get; set; } - public string Note { get; set; } - public bool NeedAppr { get; set; } - public string UserAppr { get; set; } - public DateTime? DataAppr { get; set; } - public decimal? TcrichAttr { get; set; } - public string KeyRichiesta { get; set; } - public int PzPallet { get; set; } - public bool Provvisorio { get; set; } - public int MatrOpr { get; set; } - public string CommessaAs400 { get; set; } - public int ToAs400 { get; set; } - public DateTime? DueDate { get; set; } - } -} diff --git a/MP.Data/DatabaseModels/VOdl1.cs b/MP.Data/DatabaseModels/VOdl1.cs deleted file mode 100644 index 97fda075..00000000 --- a/MP.Data/DatabaseModels/VOdl1.cs +++ /dev/null @@ -1,28 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class VOdl1 - { - public int IdxOdl { get; set; } - public string KeyRichiesta { get; set; } - public string CodArticolo { get; set; } - public decimal Tcassegnato { get; set; } - public string IdxMacchina { get; set; } - public string CodMacchina { get; set; } - public string DescMacchina { get; set; } - public int NumPezzi { get; set; } - public int NumPezziEv { get; set; } - public int NumPezziSca { get; set; } - public int NumPezziRil { get; set; } - public DateTime? DataInizio { get; set; } - public DateTime? DataFine { get; set; } - public string KeyRichiestaParent { get; set; } - public string CodArticoloParent { get; set; } - public DateTime? DueDate { get; set; } - public int? PzPallet { get; set; } - } -} diff --git a/MP.Data/DatabaseModels/VPodlNonChiusi.cs b/MP.Data/DatabaseModels/VPodlNonChiusi.cs deleted file mode 100644 index fa806e0d..00000000 --- a/MP.Data/DatabaseModels/VPodlNonChiusi.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class VPodlNonChiusi - { - public int IdxPromessa { get; set; } - public string KeyRichiesta { get; set; } - public string KeyBcode { get; set; } - public bool Attivabile { get; set; } - public int IdxOdl { get; set; } - public DateTime? DataInizio { get; set; } - public string CodArticolo { get; set; } - public string DescArticolo { get; set; } - public string CodGruppo { get; set; } - public string IdxMacchina { get; set; } - public string CodMacchina { get; set; } - public string Nome { get; set; } - public int NumPezzi { get; set; } - public decimal Tcassegnato { get; set; } - public DateTime DueDate { get; set; } - public int Priorita { get; set; } - public int PzPallet { get; set; } - public decimal? TotMinProg { get; set; } - public decimal? TotOreProg { get; set; } - } -} diff --git a/MP.Data/DatabaseModels/VR1.cs b/MP.Data/DatabaseModels/VR1.cs deleted file mode 100644 index 956f8786..00000000 --- a/MP.Data/DatabaseModels/VR1.cs +++ /dev/null @@ -1,23 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class VR1 - { - public DateTime DataOraRif { get; set; } - public string IdxMacchina { get; set; } - public string Causale { get; set; } - public string Descrizione { get; set; } - public string Note { get; set; } - public int Qta { get; set; } - public string KeyRichiesta { get; set; } - public int IdxOdl { get; set; } - public string CodArticolo { get; set; } - public int MatrOpr { get; set; } - public string Cognome { get; set; } - public string Nome { get; set; } - } -} diff --git a/MP.Data/DatabaseModels/VTcStat.cs b/MP.Data/DatabaseModels/VTcStat.cs deleted file mode 100644 index 2c048219..00000000 --- a/MP.Data/DatabaseModels/VTcStat.cs +++ /dev/null @@ -1,18 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class VTcStat - { - public string CodArticolo { get; set; } - public string CodGruppo { get; set; } - public string IdxMacchina { get; set; } - public string CodMacchina { get; set; } - public string DescMacchina { get; set; } - public decimal TcStat { get; set; } - public int TcType { get; set; } - } -} diff --git a/MP.Data/DatabaseModels/VTcr.cs b/MP.Data/DatabaseModels/VTcr.cs deleted file mode 100644 index a3adb842..00000000 --- a/MP.Data/DatabaseModels/VTcr.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class VTcr - { - public string IdxMacchina { get; set; } - public string CodArticolo { get; set; } - public DateTime DataOraRif { get; set; } - public decimal Tcmedio { get; set; } - public int PzProd { get; set; } - public int IdxOdl { get; set; } - public decimal Tcassegnato { get; set; } - public string KeyRichiesta { get; set; } - public int PzPallet { get; set; } - } -} diff --git a/MP.Data/DatabaseModels/VTcr1.cs b/MP.Data/DatabaseModels/VTcr1.cs deleted file mode 100644 index 55061b57..00000000 --- a/MP.Data/DatabaseModels/VTcr1.cs +++ /dev/null @@ -1,21 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class VTcr1 - { - public DateTime DataOraRif { get; set; } - public string IdxMacchina { get; set; } - public string CodMacchina { get; set; } - public string DescMacchina { get; set; } - public string CodArticolo { get; set; } - public int PzProd { get; set; } - public decimal? Tcmedio { get; set; } - public decimal? Tcmin { get; set; } - public decimal? Tcmax { get; set; } - public decimal? Tc50p { get; set; } - } -} diff --git a/MP.Data/DatabaseModels/VTcrDay.cs b/MP.Data/DatabaseModels/VTcrDay.cs deleted file mode 100644 index 5d591407..00000000 --- a/MP.Data/DatabaseModels/VTcrDay.cs +++ /dev/null @@ -1,21 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class VTcrDay - { - public DateTime? DataOraRif { get; set; } - public string IdxMacchina { get; set; } - public string CodMacchina { get; set; } - public string DescMacchina { get; set; } - public string CodArticolo { get; set; } - public int PzProd { get; set; } - public decimal? Tcmedio { get; set; } - public decimal? Tcmin { get; set; } - public decimal? Tcmax { get; set; } - public decimal? Tc50p { get; set; } - } -} diff --git a/MP.Data/DatabaseModels/VetoTc.cs b/MP.Data/DatabaseModels/VetoTc.cs deleted file mode 100644 index b48ad96b..00000000 --- a/MP.Data/DatabaseModels/VetoTc.cs +++ /dev/null @@ -1,15 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class VetoTc - { - public string IdxMacchina { get; set; } - public string CodArticolo { get; set; } - public bool? VetoTc1 { get; set; } - public decimal SogliaTc { get; set; } - } -} From 8f905c496c809b90f464ad21bf05f2cb8fc1233a Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Mon, 17 May 2021 15:42:25 +0200 Subject: [PATCH 2/2] Completato review iniziale Scarti --- MP.Data/Controllers/MpStatsController.cs | 2 +- MP.Data/DatabaseModels/ResScarti.cs | 6 +- MP.Data/MoonPro_STATSContext.cs | 1427 +--------------------- MP.Stats/Pages/Scarti.razor | 27 +- MP.Stats/Pages/Scarti.razor.cs | 4 +- 5 files changed, 27 insertions(+), 1439 deletions(-) diff --git a/MP.Data/Controllers/MpStatsController.cs b/MP.Data/Controllers/MpStatsController.cs index 0b1d43eb..272707b6 100644 --- a/MP.Data/Controllers/MpStatsController.cs +++ b/MP.Data/Controllers/MpStatsController.cs @@ -73,7 +73,7 @@ namespace MP.Data.Controllers dbResult = dbCtx .DbSetScarti .Where(x => x.KeyRichiesta.Contains(searchVal) || x.Descrizione.Contains(searchVal) || x.CodArticolo.Contains(searchVal) || string.IsNullOrEmpty(searchVal)) - .OrderByDescending(x => x.DataOra) + .OrderByDescending(x => x.DataOraRif) .Take(numRecord) .ToList(); diff --git a/MP.Data/DatabaseModels/ResScarti.cs b/MP.Data/DatabaseModels/ResScarti.cs index 4d66d124..0bb3b617 100644 --- a/MP.Data/DatabaseModels/ResScarti.cs +++ b/MP.Data/DatabaseModels/ResScarti.cs @@ -11,13 +11,15 @@ namespace MP.Data.DatabaseModels public string Causale { get; set; } public string CodArticolo { get; set; } - public DateTime DataOra { get; set; } - public DateTime? DataOraProdRec { get; set; } + public string CodMacchina { get; set; } + public string Cognome { get; set; } + public DateTime DataOraRif { get; set; } public string Descrizione { get; set; } public string IdxMacchina { get; set; } public int IdxOdl { get; set; } public string KeyRichiesta { get; set; } public int MatrOpr { get; set; } + public string Nome { get; set; } public string Note { get; set; } public int Qta { get; set; } diff --git a/MP.Data/MoonPro_STATSContext.cs b/MP.Data/MoonPro_STATSContext.cs index ee404307..3a539ffb 100644 --- a/MP.Data/MoonPro_STATSContext.cs +++ b/MP.Data/MoonPro_STATSContext.cs @@ -33,60 +33,10 @@ namespace MP.Data #endregion Public Constructors -#if false - public virtual DbSet Aauls { get; set; } - public virtual DbSet Cals { get; set; } - public virtual DbSet Configs { get; set; } - public virtual DbSet Ddbs { get; set; } - public virtual DbSet Ddbs1 { get; set; } - public virtual DbSet DdbTurniNews { get; set; } - public virtual DbSet DdbTurnis { get; set; } - public virtual DbSet DdbTurniSummaries { get; set; } - public virtual DbSet DdbTurniSummaryNews { get; set; } - public virtual DbSet Ecps { get; set; } - public virtual DbSet Ecps1 { get; set; } - public virtual DbSet Kits { get; set; } - public virtual DbSet Odls { get; set; } - public virtual DbSet Odls1 { get; set; } - public virtual DbSet Rcs { get; set; } - public virtual DbSet Rs { get; set; } - public virtual DbSet Rs1 { get; set; } - public virtual DbSet Tallies { get; set; } - public virtual DbSet TcrDays { get; set; } - public virtual DbSet TcrDayTests { get; set; } - public virtual DbSet Tcrs { get; set; } - public virtual DbSet Tcrs1 { get; set; } - public virtual DbSet TcStats { get; set; } - public virtual DbSet TestJasons { get; set; } - public virtual DbSet
    Uls { get; set; } -#endif - -#if false - public virtual DbSet VDdbLightOlds { get; set; } - public virtual DbSet VDdbLights { get; set; } - public virtual DbSet VDdbs { get; set; } - public virtual DbSet VDdbTurnis { get; set; } - public virtual DbSet VEcpExtendeds { get; set; } - public virtual DbSet VEcps { get; set; } - public virtual DbSet VEcps1 { get; set; } - public virtual DbSet VetoTcs { get; set; } - public virtual DbSet VKits { get; set; } - public virtual DbSet VOdls { get; set; } - public virtual DbSet VOdls1 { get; set; } - public virtual DbSet VPodlNonChiusis { get; set; } -#endif - #region Public Properties public virtual DbSet DbSetControlli { get; set; } public virtual DbSet DbSetScarti { get; set; } -#if false - public virtual DbSet VRs1 { get; set; } - public virtual DbSet VTcrDays { get; set; } - public virtual DbSet VTcrs { get; set; } - public virtual DbSet VTcrs1 { get; set; } - public virtual DbSet VTcStats { get; set; } -#endif public virtual DbSet DbSetUserLog { get; set; } #endregion Public Properties @@ -116,1189 +66,11 @@ namespace MP.Data { modelBuilder.HasAnnotation("Relational:Collation", "SQL_Latin1_General_CP1_CI_AS"); -#if false - modelBuilder.Entity(entity => - { - entity.HasKey(e => e.Azione); - - entity.ToTable("AAUL"); - - entity.Property(e => e.Azione) - .HasMaxLength(50) - .HasDefaultValueSql("('ND')") - .HasComment("Azione dell'operatore"); - - entity.Property(e => e.Descrizione) - .IsRequired() - .HasMaxLength(50) - .HasDefaultValueSql("('')"); - }); - - modelBuilder.Entity(entity => - { - entity.HasKey(e => e.Giorno) - .HasName("PK_Calendario"); - - entity.ToTable("CAL"); - - entity.Property(e => e.Giorno) - .HasColumnType("datetime") - .HasColumnName("giorno"); - - entity.Property(e => e.DoDdb) - .IsRequired() - .HasColumnName("doDDB") - .HasDefaultValueSql("((1))") - .HasComment("Indica che è necessario ricalcolare statistiche derivate da DDB (DiarioDiBordo)"); - - entity.Property(e => e.DoEcp) - .IsRequired() - .HasColumnName("doECP") - .HasDefaultValueSql("((1))") - .HasComment("Indica che è necessario ricalcolare statistiche derivate da DPO (DatiProduzione Operatore) - conferme manuali operatore"); - - entity.Property(e => e.DoOdl) - .IsRequired() - .HasColumnName("doODL") - .HasDefaultValueSql("((1))") - .HasComment("Indica che è necessario ricalcolare statistiche ODL"); - - entity.Property(e => e.DoRs) - .IsRequired() - .HasColumnName("doRS") - .HasDefaultValueSql("((1))") - .HasComment("Indica che è necessario ricalcolare statistiche derivate da RS (Registro Scarti)"); - - entity.Property(e => e.DoTcr) - .IsRequired() - .HasColumnName("doTCR") - .HasDefaultValueSql("((1))") - .HasComment("Indica che è necessario ricalcolare statistiche derivate da rilevazione TCR (TempiCicloRilevati)"); - - entity.Property(e => e.DoUl) - .IsRequired() - .HasColumnName("doUL") - .HasDefaultValueSql("((1))") - .HasComment("Indica che è necessario ricalcolare statistiche derivate da DSO (Dichiarazioni Scarti Operatore)"); - }); - - modelBuilder.Entity(entity => - { - entity.HasKey(e => e.Chiave); - - entity.ToTable("Config"); - - entity.Property(e => e.Chiave) - .HasMaxLength(50) - .HasColumnName("chiave"); - - entity.Property(e => e.Note).HasColumnName("note"); - - entity.Property(e => e.Valore).HasColumnName("valore"); - - entity.Property(e => e.ValoreStd) - .HasColumnName("valoreStd") - .HasComment("Valore di default/riferimento per la variabile"); - }); - - modelBuilder.Entity(entity => - { - entity.HasKey(e => new { e.DataOraRif, e.IdxMacchina, e.IdxStato }) - .HasName("PK_DDB_1"); - - entity.ToTable("DDB"); - - entity.Property(e => e.DataOraRif).HasColumnType("datetime"); - - entity.Property(e => e.IdxMacchina).HasMaxLength(50); - - entity.Property(e => e.DurataMinuti).HasColumnType("decimal(18, 8)"); - }); - - modelBuilder.Entity(entity => - { - entity.HasNoKey(); - - entity.ToTable("DDB", "raw"); - - entity.HasIndex(e => e.InizioStato, "ci_DDB_Data") - .IsClustered(); - - entity.HasIndex(e => e.CodArticolo, "i_DDB_CodArt"); - - entity.HasIndex(e => e.IdxMacchina, "i_DDB_IdxMacc"); - - entity.HasIndex(e => e.IdxStato, "i_DDB_IdxStato"); - - entity.HasIndex(e => e.MatrOpr, "i_DDB_MatrOpr"); - - entity.Property(e => e.ClasseTempo).HasMaxLength(50); - - entity.Property(e => e.CodArticolo).HasMaxLength(50); - - entity.Property(e => e.Descrizione).HasMaxLength(50); - - entity.Property(e => e.FineStato).HasColumnType("datetime"); - - entity.Property(e => e.IdxMacchina) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.InizioStato).HasColumnType("datetime"); - - entity.Property(e => e.Pallet) - .HasMaxLength(20) - .HasColumnName("pallet"); - - entity.Property(e => e.Value).HasMaxLength(50); - }); - - modelBuilder.Entity(entity => - { - entity.HasKey(e => new { e.DataRif, e.IdxMacchina, e.Turno, e.IdxStato, e.CodArticolo, e.InizioPeriodo }); - - entity.ToTable("DDB_Turni"); - - entity.Property(e => e.DataRif).HasColumnType("datetime"); - - entity.Property(e => e.IdxMacchina).HasMaxLength(50); - - entity.Property(e => e.Turno).HasMaxLength(5); - - entity.Property(e => e.CodArticolo).HasMaxLength(50); - - entity.Property(e => e.InizioPeriodo).HasColumnType("datetime"); - - entity.Property(e => e.ClasseTempo).HasMaxLength(50); - - entity.Property(e => e.DataTurnoFine).HasColumnType("datetime"); - - entity.Property(e => e.DataTurnoInizio).HasColumnType("datetime"); - - entity.Property(e => e.Descrizione).HasMaxLength(50); - - entity.Property(e => e.FinePeriodo).HasColumnType("datetime"); - - entity.Property(e => e.FineStato).HasColumnType("datetime"); - - entity.Property(e => e.InizioStato).HasColumnType("datetime"); - - entity.Property(e => e.Pallet) - .HasMaxLength(20) - .HasColumnName("pallet"); - - entity.Property(e => e.TempoCicloBase).HasColumnType("decimal(18, 8)"); - }); - - modelBuilder.Entity(entity => - { - entity.HasKey(e => new { e.DataRif, e.IdxMacchina, e.Turno, e.IdxStato, e.CodArticolo, e.InizioPeriodo }); - - entity.ToTable("DDB_TurniNew"); - - entity.Property(e => e.DataRif).HasColumnType("datetime"); - - entity.Property(e => e.IdxMacchina).HasMaxLength(50); - - entity.Property(e => e.Turno).HasMaxLength(5); - - entity.Property(e => e.CodArticolo).HasMaxLength(50); - - entity.Property(e => e.InizioPeriodo).HasColumnType("datetime"); - - entity.Property(e => e.ClasseTempo).HasMaxLength(50); - - entity.Property(e => e.DataTurnoFine).HasColumnType("datetime"); - - entity.Property(e => e.DataTurnoInizio).HasColumnType("datetime"); - - entity.Property(e => e.Descrizione).HasMaxLength(50); - - entity.Property(e => e.FinePeriodo).HasColumnType("datetime"); - - entity.Property(e => e.FineStato).HasColumnType("datetime"); - - entity.Property(e => e.InizioStato).HasColumnType("datetime"); - - entity.Property(e => e.Pallet) - .HasMaxLength(20) - .HasColumnName("pallet"); - - entity.Property(e => e.TempoCicloBase).HasColumnType("decimal(18, 8)"); - }); - - modelBuilder.Entity(entity => - { - entity.HasKey(e => new { e.IdxMacchina, e.DataRif, e.Turno, e.CodArticolo, e.IdxStato, e.TempoCicloBase, e.PzPalletProd }); - - entity.ToTable("DDB_TurniSummary"); - - entity.Property(e => e.IdxMacchina).HasMaxLength(50); - - entity.Property(e => e.DataRif).HasColumnType("datetime"); - - entity.Property(e => e.Turno).HasMaxLength(5); - - entity.Property(e => e.CodArticolo).HasMaxLength(50); - - entity.Property(e => e.TempoCicloBase).HasColumnType("decimal(18, 8)"); - - entity.Property(e => e.Durata).HasColumnType("numeric(27, 7)"); - - entity.Property(e => e.Inizio).HasColumnType("datetime"); - }); - - modelBuilder.Entity(entity => - { - entity.HasKey(e => new { e.IdxMacchina, e.DataRif, e.Turno, e.CodArticolo, e.IdxStato, e.TempoCicloBase, e.PzPalletProd }); - - entity.ToTable("DDB_TurniSummaryNew"); - - entity.Property(e => e.IdxMacchina).HasMaxLength(50); - - entity.Property(e => e.DataRif).HasColumnType("datetime"); - - entity.Property(e => e.Turno).HasMaxLength(5); - - entity.Property(e => e.CodArticolo).HasMaxLength(50); - - entity.Property(e => e.TempoCicloBase).HasColumnType("decimal(18, 8)"); - - entity.Property(e => e.Durata).HasColumnType("numeric(27, 7)"); - - entity.Property(e => e.Inizio).HasColumnType("datetime"); - }); - - modelBuilder.Entity(entity => - { - entity.HasKey(e => e.IdxEcp); - - entity.ToTable("ECP"); - - entity.Property(e => e.IdxEcp).HasColumnName("idxECP"); - - entity.Property(e => e.CodArticolo) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.Cognome) - .IsRequired() - .HasMaxLength(50) - .HasDefaultValueSql("('')"); - - entity.Property(e => e.DataOraConf).HasColumnType("datetime"); - - entity.Property(e => e.IdxMacchina) - .IsRequired() - .HasMaxLength(50) - .HasColumnName("idxMacchina"); - - entity.Property(e => e.IdxOdl).HasColumnName("IdxODL"); - - entity.Property(e => e.KeyRichiesta) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.Nome) - .IsRequired() - .HasMaxLength(50) - .HasDefaultValueSql("('')"); - - entity.Property(e => e.PezziConf).HasColumnName("pezziConf"); - - entity.Property(e => e.PezziDaRilav).HasColumnName("pezziDaRilav"); - - entity.Property(e => e.PezziScar).HasColumnName("pezziScar"); - }); - - modelBuilder.Entity(entity => - { - entity.HasNoKey(); - - entity.ToTable("ECP", "raw"); - - entity.HasIndex(e => e.DataOraConf, "ci_ECP_Data") - .IsClustered(); - - entity.HasIndex(e => e.IdxMacchina, "i_ECP_IdxMacc"); - - entity.HasIndex(e => e.MatrApp, "i_ECP_MatrApp"); - - entity.HasIndex(e => e.IdxMacchina, "i_ODL_IdxMacc"); - - entity.Property(e => e.CommessaEsterna) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.DataFrom) - .HasColumnType("datetime") - .HasColumnName("dataFrom"); - - entity.Property(e => e.DataOraConf).HasColumnType("datetime"); - - entity.Property(e => e.DataTo) - .HasColumnType("datetime") - .HasColumnName("dataTo"); - - entity.Property(e => e.IdxMacchina) - .IsRequired() - .HasMaxLength(50) - .HasColumnName("idxMacchina"); - - entity.Property(e => e.PezziConf).HasColumnName("pezziConf"); - - entity.Property(e => e.PezziDaRilav).HasColumnName("pezziDaRilav"); - - entity.Property(e => e.PezziScar).HasColumnName("pezziScar"); - }); - - modelBuilder.Entity(entity => - { - entity.HasKey(e => e.KeyKit); - - entity.ToTable("KIT", "raw"); - - entity.Property(e => e.KeyKit).HasMaxLength(50); - - entity.Property(e => e.CodArtParent).IsRequired(); - - entity.Property(e => e.KeyExtOrd).IsRequired(); - }); - - modelBuilder.Entity(entity => - { - entity.HasKey(e => e.IdxOdl) - .HasName("PK_ODL_1"); - - entity.ToTable("ODL"); - - entity.Property(e => e.IdxOdl) - .ValueGeneratedNever() - .HasColumnName("IdxODL"); - - entity.Property(e => e.CodArticolo) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.CodArticoloParent) - .IsRequired() - .HasDefaultValueSql("('')"); - - entity.Property(e => e.DataFine).HasColumnType("datetime"); - - entity.Property(e => e.DataInizio).HasColumnType("datetime"); - - entity.Property(e => e.DueDate).HasColumnType("datetime"); - - entity.Property(e => e.IdxMacchina).HasMaxLength(50); - - entity.Property(e => e.KeyRichiesta) - .IsRequired() - .HasMaxLength(50) - .HasComment("Chiave: ordine esterno o KIT"); - - entity.Property(e => e.KeyRichiestaParent) - .IsRequired() - .HasDefaultValueSql("('')") - .HasComment("Chiave: ordine esterno o KIT"); - - entity.Property(e => e.PzPallet).HasDefaultValueSql("((1))"); - - entity.Property(e => e.Tcassegnato) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TCAssegnato"); - }); - - modelBuilder.Entity(entity => - { - entity.HasKey(e => e.IdxOdl) - .IsClustered(false); - - entity.ToTable("ODL", "raw"); - - entity.HasIndex(e => e.IdxOdl, "ci_ODL_Data") - .IsClustered(); - - entity.HasIndex(e => e.IdxMacchina, "i_ODL_IdxMacc"); - - entity.HasIndex(e => e.KeyRichiesta, "i_ODL_KeyRic"); - - entity.Property(e => e.IdxOdl) - .ValueGeneratedNever() - .HasColumnName("IdxODL"); - - entity.Property(e => e.CodArticolo) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.CommessaAs400) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.DataAppr).HasColumnType("datetime"); - - entity.Property(e => e.DataFine).HasColumnType("datetime"); - - entity.Property(e => e.DataInizio).HasColumnType("datetime"); - - entity.Property(e => e.DueDate).HasColumnType("datetime"); - - entity.Property(e => e.IdxMacchina).HasMaxLength(50); - - entity.Property(e => e.KeyRichiesta) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.Note).HasMaxLength(2500); - - entity.Property(e => e.Provvisorio).HasColumnName("provvisorio"); - - entity.Property(e => e.Tcassegnato) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TCAssegnato"); - - entity.Property(e => e.TcrichAttr) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TCRichAttr"); - - entity.Property(e => e.UserAppr).HasMaxLength(50); - }); - - modelBuilder.Entity(entity => - { - entity.HasKey(e => new { e.DataOraRif, e.IdxMacchina, e.Causale, e.IdxOdl }); - - entity.ToTable("RS"); - - entity.Property(e => e.DataOraRif).HasColumnType("datetime"); - - entity.Property(e => e.IdxMacchina).HasMaxLength(50); - - entity.Property(e => e.Causale).HasMaxLength(50); - - entity.Property(e => e.IdxOdl).HasColumnName("IdxODL"); - - entity.Property(e => e.CodArticolo) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.Cognome) - .IsRequired() - .HasMaxLength(50) - .HasDefaultValueSql("('')"); - - entity.Property(e => e.Descrizione) - .IsRequired() - .HasMaxLength(250); - - entity.Property(e => e.KeyRichiesta) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.Nome) - .IsRequired() - .HasMaxLength(50) - .HasDefaultValueSql("('')"); - - entity.Property(e => e.Note) - .IsRequired() - .HasMaxLength(250); - }); - - modelBuilder.Entity(entity => - { - entity.HasNoKey(); - - entity.ToTable("RS", "raw"); - - entity.HasIndex(e => e.DataOra, "ci_RS_Data") - .IsClustered(); - - entity.HasIndex(e => e.Causale, "i_RS_Causale"); - - entity.HasIndex(e => e.CodArticolo, "i_RS_CodArt"); - - entity.HasIndex(e => e.IdxMacchina, "i_RS_IdxMacc"); - - entity.HasIndex(e => e.MatrOpr, "i_RS_MatrOpr"); - - entity.Property(e => e.Causale) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.CodArticolo) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.DataOra).HasColumnType("datetime"); - - entity.Property(e => e.DataOraProdRec).HasColumnType("datetime"); - - entity.Property(e => e.Descrizione) - .IsRequired() - .HasMaxLength(250); - - entity.Property(e => e.IdxMacchina) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.IdxOdl).HasColumnName("IdxODL"); - - entity.Property(e => e.KeyRichiesta) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.Note) - .IsRequired() - .HasMaxLength(250); - }); - - modelBuilder.Entity(entity => - { - entity.HasKey(e => e.IdxControllo) - .IsClustered(false); - - entity.ToTable("RC", "raw"); - - entity.HasIndex(e => e.DataOra, "ci_RC_Data") - .IsClustered(); - - entity.HasIndex(e => e.CodArticolo, "i_RC_CodArt"); - - entity.HasIndex(e => e.EsitoOk, "i_RC_EsitoOk"); - - entity.HasIndex(e => e.IdxMacchina, "i_RC_IdxMacc"); - - entity.HasIndex(e => e.MatrOpr, "i_RC_MatrOpr"); - - entity.Property(e => e.IdxControllo).ValueGeneratedNever(); - - entity.Property(e => e.CodArticolo) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.DataOra).HasColumnType("datetime"); - - entity.Property(e => e.EsitoOk).HasColumnName("EsitoOK"); - - entity.Property(e => e.IdxMacchina) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.IdxOdl).HasColumnName("IdxODL"); - - entity.Property(e => e.Note) - .IsRequired() - .HasMaxLength(250); - }); - - modelBuilder.Entity(entity => - { - entity.HasKey(e => e.N) - .HasName("PK_Tally_N"); - - entity.ToTable("Tally"); - }); - - modelBuilder.Entity(entity => - { - entity.HasKey(e => new { e.CodArticolo, e.CodGruppo, e.IdxMacchina }); - - entity.ToTable("TC_Stat"); - - entity.Property(e => e.CodArticolo).HasMaxLength(50); - - entity.Property(e => e.CodGruppo).HasMaxLength(50); - - entity.Property(e => e.IdxMacchina).HasMaxLength(50); - - entity.Property(e => e.TcStat1) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TC_Stat"); - - entity.Property(e => e.TcType).HasColumnName("TC_Type"); - }); - - modelBuilder.Entity(entity => - { - entity.HasKey(e => new { e.IdxMacchina, e.CodArticolo, e.DataOraRif }) - .IsClustered(false); - - entity.ToTable("TCR"); - - entity.Property(e => e.IdxMacchina).HasMaxLength(50); - - entity.Property(e => e.CodArticolo).HasMaxLength(50); - - entity.Property(e => e.DataOraRif).HasColumnType("datetime"); - - entity.Property(e => e.Tc50p) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TC50p") - .HasComment("Valore percentile 50"); - - entity.Property(e => e.Tcmax) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TCMax") - .HasComment("Valore MASSIMO"); - - entity.Property(e => e.Tcmedio) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TCMedio") - .HasComment("Valore di MEDIA arimetica"); - - entity.Property(e => e.Tcmin) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TCMin") - .HasComment("Valore minimo"); - }); - - modelBuilder.Entity(entity => - { - entity.HasNoKey(); - - entity.ToTable("TCR", "raw"); - - entity.HasIndex(e => e.DataOraRif, "ci_TCR_Data") - .IsClustered(); - - entity.HasIndex(e => e.CodArticolo, "i_TCR_CodArt"); - - entity.HasIndex(e => e.IdxMacchina, "i_TCR_IdxMacc"); - - entity.HasIndex(e => e.KeyRichiesta, "i_TCR_KeyRich"); - - entity.Property(e => e.CodArticolo) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.DataOraRif).HasColumnType("datetime"); - - entity.Property(e => e.IdxMacchina) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.IdxOdl).HasColumnName("IdxODL"); - - entity.Property(e => e.KeyRichiesta) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.Tcassegnato) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TCAssegnato"); - - entity.Property(e => e.Tcmedio) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TCMedio"); - }); - - modelBuilder.Entity(entity => - { - entity.HasKey(e => new { e.IdxMacchina, e.CodArticolo, e.DataOraRif }) - .HasName("PK_TCRDay") - .IsClustered(false); - - entity.ToTable("TCR_Day"); - - entity.Property(e => e.IdxMacchina).HasMaxLength(50); - - entity.Property(e => e.CodArticolo).HasMaxLength(50); - - entity.Property(e => e.DataOraRif).HasColumnType("date"); - - entity.Property(e => e.Tc50p) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TC50p") - .HasComment("Valore percentile 50"); - - entity.Property(e => e.Tcmax) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TCMax") - .HasComment("Valore MASSIMO"); - - entity.Property(e => e.Tcmedio) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TCMedio") - .HasComment("Valore di MEDIA arimetica"); - - entity.Property(e => e.Tcmin) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TCMin") - .HasComment("Valore minimo"); - }); - - modelBuilder.Entity(entity => - { - entity.HasNoKey(); - - entity.ToTable("TCR_DayTest"); - - entity.Property(e => e.CodArticolo) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.DataOraRif).HasColumnType("date"); - - entity.Property(e => e.IdxMacchina) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.Tc50p) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TC50p"); - - entity.Property(e => e.Tcmax) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TCMax"); - - entity.Property(e => e.Tcmedio) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TCMedio"); - - entity.Property(e => e.Tcmin) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TCMin"); - }); - - modelBuilder.Entity(entity => - { - entity.HasNoKey(); - - entity.ToTable("TestJason"); - - entity.Property(e => e.Data).HasColumnType("date"); - }); - - modelBuilder.Entity
      (entity => - { - entity.HasKey(e => e.IdxLog) - .HasName("PK_UserLog"); - - entity.ToTable("UL"); - - entity.HasIndex(e => e.DataOraRif, "i_UL_DataOra"); - - entity.Property(e => e.Azione) - .IsRequired() - .HasMaxLength(50) - .HasDefaultValueSql("('ND')") - .HasComment("Azione dell'operatore"); - - entity.Property(e => e.CodArticolo) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.Cognome) - .IsRequired() - .HasMaxLength(50) - .HasDefaultValueSql("('')"); - - entity.Property(e => e.DataOraRif).HasColumnType("datetime"); - - entity.Property(e => e.IdxMacchina) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.Nome) - .IsRequired() - .HasMaxLength(50) - .HasDefaultValueSql("('')"); - - entity.Property(e => e.Qta).HasColumnType("decimal(18, 8)"); - - entity.Property(e => e.Valore) - .IsRequired() - .HasMaxLength(250) - .HasDefaultValueSql("('')"); - }); - - modelBuilder.Entity(entity => - { - entity.HasNoKey(); - - entity.ToView("vDDB"); - - entity.Property(e => e.ClasseTempo).HasMaxLength(50); - - entity.Property(e => e.CodArticolo).HasMaxLength(50); - - entity.Property(e => e.Descrizione).HasMaxLength(50); - - entity.Property(e => e.FineStato).HasColumnType("datetime"); - - entity.Property(e => e.IdxMacchina) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.InizioStato).HasColumnType("datetime"); - - entity.Property(e => e.Pallet) - .HasMaxLength(20) - .HasColumnName("pallet"); - - entity.Property(e => e.Value).HasMaxLength(50); - }); - - modelBuilder.Entity(entity => - { - entity.HasNoKey(); - - entity.ToView("v_DDB_Light", "export"); - - entity.Property(e => e.CodArticolo).HasMaxLength(50); - - entity.Property(e => e.CodMacchina).HasMaxLength(50); - - entity.Property(e => e.DescMacchina).HasMaxLength(50); - - entity.Property(e => e.InizioStato).HasColumnType("datetime"); - - entity.Property(e => e.Operatore) - .IsRequired() - .HasMaxLength(101); - - entity.Property(e => e.Stato).HasMaxLength(50); - }); - - modelBuilder.Entity(entity => - { - entity.HasNoKey(); - - entity.ToView("vDDB_Light_OLD"); - - entity.Property(e => e.CodArticolo).HasMaxLength(50); - - entity.Property(e => e.CodMacchina).HasMaxLength(50); - - entity.Property(e => e.DescMacchina).HasMaxLength(50); - - entity.Property(e => e.InizioStato).HasColumnType("datetime"); - - entity.Property(e => e.Operatore) - .IsRequired() - .HasMaxLength(101); - - entity.Property(e => e.Stato).HasMaxLength(50); - }); - - modelBuilder.Entity(entity => - { - entity.HasNoKey(); - - entity.ToView("v_DDB_Turni", "export"); - - entity.Property(e => e.ClasseTempo).HasMaxLength(50); - - entity.Property(e => e.CodArticolo) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.CodMacchina).HasMaxLength(50); - - entity.Property(e => e.DataRif).HasColumnType("datetime"); - - entity.Property(e => e.DescClasseTempo).HasMaxLength(50); - - entity.Property(e => e.DescMacchina).HasMaxLength(50); - - entity.Property(e => e.Durata).HasColumnType("numeric(38, 7)"); - - entity.Property(e => e.IdxMacchina) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.SemColore) - .IsRequired() - .HasMaxLength(6) - .IsUnicode(false); - - entity.Property(e => e.Semaforo).HasMaxLength(50); - - entity.Property(e => e.TempoCicloBase).HasColumnType("decimal(18, 8)"); - - entity.Property(e => e.Turno) - .IsRequired() - .HasMaxLength(5); - }); - - modelBuilder.Entity(entity => - { - entity.HasNoKey(); - - entity.ToView("vECP"); - - entity.Property(e => e.CommessaEsterna) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.DataFrom) - .HasColumnType("datetime") - .HasColumnName("dataFrom"); - - entity.Property(e => e.DataOraConf).HasColumnType("datetime"); - - entity.Property(e => e.DataTo) - .HasColumnType("datetime") - .HasColumnName("dataTo"); - - entity.Property(e => e.IdxMacchina) - .IsRequired() - .HasMaxLength(50) - .HasColumnName("idxMacchina"); - - entity.Property(e => e.PezziConf).HasColumnName("pezziConf"); - - entity.Property(e => e.PezziDaRilav).HasColumnName("pezziDaRilav"); - - entity.Property(e => e.PezziScar).HasColumnName("pezziScar"); - }); - - modelBuilder.Entity(entity => - { - entity.HasNoKey(); - - entity.ToView("v_ECP", "export"); - - entity.Property(e => e.CodArticolo) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.CodMacchina).HasMaxLength(50); - - entity.Property(e => e.Cognome) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.DataOraConf).HasColumnType("datetime"); - - entity.Property(e => e.DescMacchina).HasMaxLength(50); - - entity.Property(e => e.IdxEcp).HasColumnName("idxECP"); - - entity.Property(e => e.IdxMacchina) - .IsRequired() - .HasMaxLength(50) - .HasColumnName("idxMacchina"); - - entity.Property(e => e.IdxOdl).HasColumnName("IdxODL"); - - entity.Property(e => e.KeyRichiesta) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.Nome) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.PezziConf).HasColumnName("pezziConf"); - - entity.Property(e => e.PezziDaRilav).HasColumnName("pezziDaRilav"); - - entity.Property(e => e.PezziScar).HasColumnName("pezziScar"); - }); - - modelBuilder.Entity(entity => - { - entity.HasNoKey(); - - entity.ToView("v_ECP_Extended", "export"); - - entity.Property(e => e.CodArticolo) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.CodMacchina).HasMaxLength(50); - - entity.Property(e => e.Cognome) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.DataOraConf).HasColumnType("datetime"); - - entity.Property(e => e.DescMacchina).HasMaxLength(50); - - entity.Property(e => e.DueDate).HasColumnType("datetime"); - - entity.Property(e => e.IdxEcp).HasColumnName("idxECP"); - - entity.Property(e => e.IdxMacchina) - .IsRequired() - .HasMaxLength(50) - .HasColumnName("idxMacchina"); - - entity.Property(e => e.IdxOdl).HasColumnName("IdxODL"); - - entity.Property(e => e.KeyRichiesta) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.Nome) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.PezziConf).HasColumnName("pezziConf"); - - entity.Property(e => e.PezziDaRilav).HasColumnName("pezziDaRilav"); - - entity.Property(e => e.PezziScar).HasColumnName("pezziScar"); - - entity.Property(e => e.Tcassegnato) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TCAssegnato"); - }); - - modelBuilder.Entity(entity => - { - entity.HasNoKey(); - - entity.ToView("vKIT"); - - entity.Property(e => e.KeyKit) - .IsRequired() - .HasMaxLength(50); - }); - - modelBuilder.Entity(entity => - { - entity.HasNoKey(); - - entity.ToView("vODL"); - - entity.Property(e => e.CodArticolo) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.CommessaAs400) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.DataAppr).HasColumnType("datetime"); - - entity.Property(e => e.DataFine).HasColumnType("datetime"); - - entity.Property(e => e.DataInizio).HasColumnType("datetime"); - - entity.Property(e => e.DueDate).HasColumnType("datetime"); - - entity.Property(e => e.IdxMacchina).HasMaxLength(50); - - entity.Property(e => e.IdxOdl).HasColumnName("IdxODL"); - - entity.Property(e => e.KeyRichiesta) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.Note).HasMaxLength(2500); - - entity.Property(e => e.Provvisorio).HasColumnName("provvisorio"); - - entity.Property(e => e.Tcassegnato) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TCAssegnato"); - - entity.Property(e => e.TcrichAttr) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TCRichAttr"); - - entity.Property(e => e.UserAppr).HasMaxLength(50); - }); - - modelBuilder.Entity(entity => - { - entity.HasNoKey(); - - entity.ToView("v_ODL", "export"); - - entity.Property(e => e.CodArticolo) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.CodArticoloParent).IsRequired(); - - entity.Property(e => e.CodMacchina).HasMaxLength(50); - - entity.Property(e => e.DataFine).HasColumnType("datetime"); - - entity.Property(e => e.DataInizio).HasColumnType("datetime"); - - entity.Property(e => e.DescMacchina).HasMaxLength(50); - - entity.Property(e => e.DueDate).HasColumnType("datetime"); - - entity.Property(e => e.IdxMacchina).HasMaxLength(50); - - entity.Property(e => e.IdxOdl).HasColumnName("IdxODL"); - - entity.Property(e => e.KeyRichiesta) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.KeyRichiestaParent).IsRequired(); - - entity.Property(e => e.Tcassegnato) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TCAssegnato"); - }); - - modelBuilder.Entity(entity => - { - entity.HasNoKey(); - - entity.ToView("v_PODL_NonChiusi", "export"); - - entity.Property(e => e.CodArticolo) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.CodGruppo) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.CodMacchina) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.DataInizio).HasColumnType("datetime"); - - entity.Property(e => e.DescArticolo).HasMaxLength(301); - - entity.Property(e => e.DueDate).HasColumnType("datetime"); - - entity.Property(e => e.IdxMacchina) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.IdxOdl).HasColumnName("IdxODL"); - - entity.Property(e => e.IdxPromessa).HasColumnName("idxPromessa"); - - entity.Property(e => e.KeyBcode) - .IsRequired() - .HasMaxLength(50) - .HasColumnName("KeyBCode"); - - entity.Property(e => e.KeyRichiesta) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.Nome).HasMaxLength(50); - - entity.Property(e => e.Tcassegnato) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TCAssegnato"); - - entity.Property(e => e.TotMinProg).HasColumnType("decimal(29, 8)"); - - entity.Property(e => e.TotOreProg).HasColumnType("decimal(32, 11)"); - }); -#endif - modelBuilder.Entity(entity => { entity.HasNoKey(); - entity.ToView("vRS"); + entity.ToView("v_UI_RS"); entity.Property(e => e.Causale) .IsRequired() @@ -1308,43 +80,7 @@ namespace MP.Data .IsRequired() .HasMaxLength(50); - entity.Property(e => e.DataOra).HasColumnType("datetime"); - - entity.Property(e => e.DataOraProdRec).HasColumnType("datetime"); - - entity.Property(e => e.Descrizione) - .IsRequired() - .HasMaxLength(250); - - entity.Property(e => e.IdxMacchina) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.IdxOdl).HasColumnName("IdxODL"); - - entity.Property(e => e.KeyRichiesta) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.Note) - .IsRequired() - .HasMaxLength(250); - }); -#if false - - modelBuilder.Entity(entity => - { - entity.HasNoKey(); - - entity.ToView("v_RS", "export"); - - entity.Property(e => e.Causale) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.CodArticolo) - .IsRequired() - .HasMaxLength(50); + entity.Property(e => e.CodMacchina).HasMaxLength(50); entity.Property(e => e.Cognome) .IsRequired() @@ -1374,7 +110,6 @@ namespace MP.Data .IsRequired() .HasMaxLength(250); }); -#endif modelBuilder.Entity(entity => { @@ -1403,142 +138,6 @@ namespace MP.Data .HasMaxLength(250); }); -#if false - modelBuilder.Entity(entity => - { - entity.HasNoKey(); - - entity.ToView("v_TC_Stat", "export"); - - entity.Property(e => e.CodArticolo) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.CodGruppo) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.CodMacchina).HasMaxLength(50); - - entity.Property(e => e.DescMacchina).HasMaxLength(50); - - entity.Property(e => e.IdxMacchina) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.TcStat) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TC_Stat"); - - entity.Property(e => e.TcType).HasColumnName("TC_Type"); - }); - - modelBuilder.Entity(entity => - { - entity.HasNoKey(); - - entity.ToView("vTCR"); - - entity.Property(e => e.CodArticolo) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.DataOraRif).HasColumnType("datetime"); - - entity.Property(e => e.IdxMacchina) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.IdxOdl).HasColumnName("IdxODL"); - - entity.Property(e => e.KeyRichiesta) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.Tcassegnato) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TCAssegnato"); - - entity.Property(e => e.Tcmedio) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TCMedio"); - }); - - modelBuilder.Entity(entity => - { - entity.HasNoKey(); - - entity.ToView("v_TCR", "export"); - - entity.Property(e => e.CodArticolo) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.CodMacchina).HasMaxLength(50); - - entity.Property(e => e.DataOraRif).HasColumnType("datetime"); - - entity.Property(e => e.DescMacchina).HasMaxLength(50); - - entity.Property(e => e.IdxMacchina) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.Tc50p) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TC50p"); - - entity.Property(e => e.Tcmax) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TCMax"); - - entity.Property(e => e.Tcmedio) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TCMedio"); - - entity.Property(e => e.Tcmin) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TCMin"); - }); - - modelBuilder.Entity(entity => - { - entity.HasNoKey(); - - entity.ToView("v_TCR_Day", "export"); - - entity.Property(e => e.CodArticolo) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.CodMacchina).HasMaxLength(50); - - entity.Property(e => e.DataOraRif).HasColumnType("datetime"); - - entity.Property(e => e.DescMacchina).HasMaxLength(50); - - entity.Property(e => e.IdxMacchina) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.Tc50p) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TC50p"); - - entity.Property(e => e.Tcmax) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TCMax"); - - entity.Property(e => e.Tcmedio) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TCMedio"); - - entity.Property(e => e.Tcmin) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TCMin"); - }); -#endif - modelBuilder.Entity(entity => { entity.HasNoKey(); @@ -1575,28 +174,6 @@ namespace MP.Data .IsRequired() .HasMaxLength(250); }); -#if false - - modelBuilder.Entity(entity => - { - entity.HasKey(e => new { e.IdxMacchina, e.CodArticolo }); - - entity.ToTable("VetoTC"); - - entity.Property(e => e.IdxMacchina).HasMaxLength(50); - - entity.Property(e => e.CodArticolo).HasMaxLength(50); - - entity.Property(e => e.SogliaTc) - .HasColumnType("decimal(18, 8)") - .HasColumnName("SogliaTC"); - - entity.Property(e => e.VetoTc1) - .IsRequired() - .HasColumnName("VetoTC") - .HasDefaultValueSql("((1))"); - }); -#endif OnModelCreatingPartial(modelBuilder); } diff --git a/MP.Stats/Pages/Scarti.razor b/MP.Stats/Pages/Scarti.razor index c6503e13..0cf4dde2 100644 --- a/MP.Stats/Pages/Scarti.razor +++ b/MP.Stats/Pages/Scarti.razor @@ -24,23 +24,32 @@ Data ODL/Commessa Articolo - Descrizione - Qta - Operatore + Descrizione + Qta + Operatore @foreach (var record in ListRecords) { - + @* *@ - @record.IdxMacchina - @record.DataOra + +
      @record.CodMacchina
      +
      @record.IdxMacchina
      + + +
      @record.DataOraRif.ToString("yyyy.MM.dd")
      +
      @record.DataOraRif.ToString("ddd HH:mm.ss")
      + @record.IdxOdl | @record.KeyRichiesta @record.CodArticolo - @record.Descrizione - @record.CodArticolo - @record.MatrOpr + +
      [@record.Causale] @record.Descrizione
      +
      @record.Note
      + + @record.Qta + @record.Cognome @record.Nome (@record.MatrOpr) } diff --git a/MP.Stats/Pages/Scarti.razor.cs b/MP.Stats/Pages/Scarti.razor.cs index 2a8a3d36..7e3329fd 100644 --- a/MP.Stats/Pages/Scarti.razor.cs +++ b/MP.Stats/Pages/Scarti.razor.cs @@ -70,14 +70,14 @@ namespace MP.Stats.Pages #region Public Methods - public string checkSelect(DateTime DataOra, string IdxMacchina, string Causale) + public string checkSelect(DateTime DataOraRif, string IdxMacchina, string Causale) { string answ = ""; if (currRecord != null) { try { - answ = (currRecord.DataOra == DataOra && currRecord.IdxMacchina == IdxMacchina && currRecord.Causale == Causale) ? "table-info" : ""; + answ = (currRecord.DataOraRif == DataOraRif && currRecord.IdxMacchina == IdxMacchina && currRecord.Causale == Causale) ? "table-info" : ""; } catch { }