MP.DATA, riorganizzazioni varie:
- renaming classi gestione DbModels in - spostamento anagrafica flussi da auth a generale
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
[Table("AlarmLog")]
|
||||
public partial class AlarmLogModel
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public int AlarmLogId { get; set; } = 0;
|
||||
public DateTime DtRif { get; set; } = DateTime.Now;
|
||||
public decimal Duration { get; set; } = 0;
|
||||
public string MachineId { get; set; } = "";
|
||||
public string MemAddress { get; set; } = "";
|
||||
public int MemIndex { get; set; } = 0;
|
||||
public int StatusVal { get; set; } = 0;
|
||||
public string ValDecoded { get; set; } = "";
|
||||
public DateTime DtNotify { get; set; } = DateTime.Now;
|
||||
public string UserAck { get; set; } = "";
|
||||
public DateTime DtAck { get; set; } = DateTime.Now;
|
||||
|
||||
[NotMapped]
|
||||
public int ReqNotify
|
||||
{
|
||||
get => Duration > 1 && DtNotify < DtRif ? 1 : 0;
|
||||
}
|
||||
[NotMapped]
|
||||
public int ReqAck
|
||||
{
|
||||
get => DtNotify > DtRif && DtAck < DtRif ? 1 : 0;
|
||||
}
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
[Table("AnagArticoli")]
|
||||
public partial class AnagArticoli
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
public string CodArticolo { get; set; }
|
||||
public string DescArticolo { get; set; }
|
||||
public string Disegno { get; set; }
|
||||
public string Tipo { get; set; }
|
||||
public string Azienda { get; set; }
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
[Table("AnagArticoli")]
|
||||
public partial class AnagArticoli_MAG
|
||||
{
|
||||
#region Public Properties
|
||||
[Key]
|
||||
public string CodArt { get; set; }
|
||||
public string DescrArt { get; set; }
|
||||
public string CodArtExt { get; set; }
|
||||
public string CodStato { get; set; }
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
[Table("AnagraficaEventi")]
|
||||
public class AnagEventiModel
|
||||
{
|
||||
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public int IdxTipo { get; set; } = 0;
|
||||
public string Nome { get; set; } = "";
|
||||
public string TabAzione { get; set; } = "";
|
||||
public string Azione { get; set; } = "";
|
||||
public string KeyEvento { get; set; } = "";
|
||||
public bool EventoTablet { get; set; } = true;
|
||||
public string NoteEvento { get; set; } = "";
|
||||
public string CssClass { get; set; } = "";
|
||||
public string Icon { get; set; } = "";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
[Table("AnagFLTrans")]
|
||||
public class AnagFLTransModel
|
||||
{
|
||||
[Key, MaxLength(50)]
|
||||
public string CodFluxIn { get; set; } = "";
|
||||
|
||||
[MaxLength(50)]
|
||||
public string CodFluxOut { get; set; } = "";
|
||||
|
||||
[MaxLength(50)]
|
||||
public string UM { get; set; } = "";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
[Table("AnagFluxType")]
|
||||
public partial class AnagFluxTypeModel
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
[Key, MaxLength(50)]
|
||||
public string FluxType { get; set; } = "";
|
||||
|
||||
[MaxLength(50)]
|
||||
public string DescrType { get; set; } = "";
|
||||
|
||||
public bool IsNumber { get; set; } = false;
|
||||
|
||||
public bool IsEnergy { get; set; } = false;
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
[Table("RegGiacenze")]
|
||||
public class AnagGiacenzeModel
|
||||
{
|
||||
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public int IdxRG { get; set; } = 0;
|
||||
public int IdxOdl { get; set; } = 0;
|
||||
public string IdentRG { get; set; } = "";
|
||||
public string Product { get; set; } = "";
|
||||
public string Variety { get; set; } = "";
|
||||
public string Supplier { get; set; } = "";
|
||||
public string ExtDoc { get; set; } = "";
|
||||
public DateTime DateRif { get; set; }
|
||||
public double QtyTot { get; set; } = 0;
|
||||
public int NumPack { get; set; } = 0;
|
||||
public string Notes { get; set; } = "";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
[Table("AnagraficaGruppi")]
|
||||
public partial class AnagGruppi
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
//[Key, DatabaseGenerated(DatabaseGeneratedOption.None), MaxLength(50)]
|
||||
public string CodGruppo { get; set; }
|
||||
|
||||
//[MaxLength(50)]
|
||||
public string TipoGruppo { get; set; }
|
||||
|
||||
//[MaxLength(250)]
|
||||
public string DescrGruppo { get; set; }
|
||||
|
||||
public bool SelEnabled { get; set; }
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
[Table("AnagKeyValue")]
|
||||
public partial class AnagKeyValueModel
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
[Key]
|
||||
public string nomeVar { get; set; } = "";
|
||||
public int valInt { get; set; } = 0;
|
||||
public double valFloat { get; set; } = 0;
|
||||
public string valString { get; set; } = "";
|
||||
public string descrizione { get; set; } = "";
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
[Keyless]
|
||||
public partial class AnagLottiArca
|
||||
{
|
||||
public string Cd_MGEsercizio { get; set; }
|
||||
public string Cd_MG { get; set; }
|
||||
public string Cd_AR { get; set; }
|
||||
public int? Id_DoDB { get; set; }
|
||||
public string? Cd_MGUbicazione { get; set; }
|
||||
public string? Cd_ARLotto { get; set; }
|
||||
public string? Cd_DoSottoCommessa { get; set; }
|
||||
public decimal Quantita { get; set; }
|
||||
public decimal Valore { get; set; }
|
||||
public decimal IniQ { get; set; }
|
||||
public decimal IniV { get; set; }
|
||||
public decimal RetQ { get; set; }
|
||||
public decimal RetV { get; set; }
|
||||
public decimal CarQ { get; set; }
|
||||
public decimal CarV { get; set; }
|
||||
public decimal ScaQ { get; set; }
|
||||
public decimal ScaV { get; set; }
|
||||
public decimal CarQA { get; set; }
|
||||
public decimal CarVA { get; set; }
|
||||
public decimal CarQP { get; set; }
|
||||
public decimal CarVP { get; set; }
|
||||
public decimal CarQT { get; set; }
|
||||
public decimal CarVT { get; set; }
|
||||
public decimal ScaQV { get; set; }
|
||||
public decimal ScaVV { get; set; }
|
||||
public decimal ScaQP { get; set; }
|
||||
public decimal ScaVP { get; set; }
|
||||
public decimal ScaQT { get; set; }
|
||||
public decimal ScaVT { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
[Table("ElencoLotti")]
|
||||
public class AnagLottoModel
|
||||
{
|
||||
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public string Lotto { get; set; }
|
||||
public int IdxODL { get; set; }
|
||||
public string RifExt { get; set; }
|
||||
public string TipoLotto { get; set; }
|
||||
public string CodArt { get; set; }
|
||||
public string CodStato { get; set; }
|
||||
public string Origine { get; set; }
|
||||
public DateTime DtCrea { get; set; }
|
||||
public string Note { get; set; }
|
||||
public decimal QtaOrig { get; set; }
|
||||
public int NumUdc { get; set; }
|
||||
public decimal QtaCurr { get; set; }
|
||||
public DateTime DtMod { get; set; }
|
||||
public bool Attivo { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
[Table("AnagMagazzini")]
|
||||
public partial class AnagMagModel
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
|
||||
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public int MagID { get; set; }
|
||||
public string CodMag { get; set; } = "";
|
||||
public string CodCS { get; set; } = "";
|
||||
public string DescMag { get; set; } = "";
|
||||
public bool Nascosto { get; set; } = false;
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
[Table("AnagraficaOperatori")]
|
||||
public class AnagOperatoriModel
|
||||
{
|
||||
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public int MatrOpr { get; set; }
|
||||
public string Cognome { get; set; } = "";
|
||||
public string Nome { get; set; } = "";
|
||||
public bool isAdmin { get; set; } = false;
|
||||
public string authKey { get; set; }
|
||||
public string CodOprExt { get; set; }
|
||||
public bool isEnabled { get; set; } = false;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
[Table("AnagraficaStati")]
|
||||
public class AnagStatiModel
|
||||
{
|
||||
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public int IdxStato { get; set; } = 0;
|
||||
public string Descrizione { get; set; } = "";
|
||||
public string Semaforo { get; set; } = "";
|
||||
public int Priorita { get; set; } = 0;
|
||||
public string ClasseTempo { get; set; } = "";
|
||||
public bool ShowArticolo { get; set; } = true;
|
||||
public string KeyStato { get; set; } = "";
|
||||
public string NoteStato { get; set; } = "";
|
||||
//public string CssClass { get; set; } = "";
|
||||
//public string Icon { get; set; } = "";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
[Table("AnagTags")]
|
||||
public partial class AnagTagsModel
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
[Key, DatabaseGenerated(DatabaseGeneratedOption.None), MaxLength(50)]
|
||||
public string TagCode { get; set; } = "";
|
||||
|
||||
public string TagDescr { get; set; } = "";
|
||||
|
||||
public int DisplOrd { get; set; } = 0;
|
||||
|
||||
public string CssClass { get; set; } = "";
|
||||
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
[Table("ElencoUdc")]
|
||||
public class AnagUdcModel
|
||||
{
|
||||
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public string UDC { get; set; } = "";
|
||||
public string Lotto { get; set; } = "";
|
||||
public string CodCliente { get; set; } = "";
|
||||
public string CodPost { get; set; } = "";
|
||||
public DateTime DtRec { get; set; }
|
||||
public decimal Qta { get; set; } = 0;
|
||||
public int NumCont { get; set; } = 0;
|
||||
public string CodSoggetto { get; set; } = "";
|
||||
public decimal PesoTot { get; set; } = 0;
|
||||
public decimal PesoCad { get; set; } = 0;
|
||||
public decimal Tara { get; set; } = 0;
|
||||
public string CodImballo { get; set; } = "";
|
||||
public int IdxPosizione { get; set; } = 0;
|
||||
public DateTime DtMod { get; set; }
|
||||
public string Note { get; set; } = "";
|
||||
|
||||
/// <summary>
|
||||
/// Navigazione oggetto lotto
|
||||
/// </summary>
|
||||
[ForeignKey("Lotto")]
|
||||
public virtual AnagLottoModel lottoNav { get; set; } = null!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
[Table("AnagraficaFlussi")]
|
||||
public partial class AnagraficaFlussiModel
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
[Key, MaxLength(50)]
|
||||
public string CodFlux { get; set; }
|
||||
|
||||
[MaxLength(50)]
|
||||
public string DescrFlux { get; set; }
|
||||
|
||||
[MaxLength(50)]
|
||||
public string FluxType { get; set; } = "";
|
||||
|
||||
/// <summary>
|
||||
/// Navigazione oggetto AnagFluxType
|
||||
/// </summary>
|
||||
[ForeignKey("FluxType")]
|
||||
public virtual AnagFluxTypeModel FluxTypeNav { get; set; } = null!;
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
public partial class AzioniUL
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
public string Azione { get; set; }
|
||||
public string Class { get; set; }
|
||||
public string Descrizione { get; set; }
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
public partial class CommentiModel
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
[MaxLength(50)]
|
||||
public string IdxMacchina { get; set; } = "NA";
|
||||
public DateTime InizioStato { get; set; } = DateTime.Now;
|
||||
public int IdxODL{ get; set; } = 0;
|
||||
|
||||
public string CodArticolo { get; set; } = "";
|
||||
|
||||
public string Value { get; set; } = "";
|
||||
|
||||
public string Operatore { get; set; } = "";
|
||||
|
||||
/// <summary>
|
||||
/// Hard coded 999
|
||||
/// </summary>
|
||||
[NotMapped]
|
||||
public int IdxTipo { get; set; } = 999;
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
[Table("Config")]
|
||||
public partial class ConfigModel
|
||||
{
|
||||
public string Chiave { get; set; }
|
||||
public string Valore { get; set; }
|
||||
/// <summary>
|
||||
/// Valore di default/riferimento per la variabile
|
||||
/// </summary>
|
||||
public string ValoreStd { get; set; }
|
||||
public string Note { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
public partial class DatiMacchineModel
|
||||
{
|
||||
public string IdxMacchina { get; set; }
|
||||
public bool? PalletChange { get; set; }
|
||||
public string CodArticoloA { get; set; }
|
||||
public string CodArticoloB { get; set; }
|
||||
public string SerialPort { get; set; }
|
||||
public int? RefreshPeriod { get; set; }
|
||||
public bool? Simulazione { get; set; }
|
||||
public bool? SimplePallet { get; set; }
|
||||
/// <summary>
|
||||
/// definisce se l'INSERT sia abilitato per la macchina (disabilitato in fase di ricostruzione batch...)
|
||||
/// </summary>
|
||||
public bool? InsEnabled { get; set; }
|
||||
/// <summary>
|
||||
/// definisce se sia abilitata la registrazione di TUTTI gli invii di dati in ingresso da questa specifica macchina
|
||||
/// </summary>
|
||||
public bool SLogEnabled { get; set; }
|
||||
/// <summary>
|
||||
/// Abilita o meno il trigger su DiarioDiBordo x ricalcolo eventi
|
||||
/// </summary>
|
||||
public bool? IsTrigerDbon { get; set; }
|
||||
/// <summary>
|
||||
/// Indica se la macchina abbia un COUNTER (assoluto) o meno, tipicamente true x IOB-WIN, false per IOB-PI
|
||||
/// </summary>
|
||||
public bool HasCounter { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
public partial class DdbTurni
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
public string ClasseTempo { get; set; }
|
||||
public string CodArticolo { get; set; }
|
||||
public string CodMacchina { get; set; }
|
||||
public DateTime DataRif { get; set; }
|
||||
public DateTime? DataTurnoFine { get; set; }
|
||||
public DateTime? DataTurnoInizio { get; set; }
|
||||
public string DescArticolo { get; set; } = "";
|
||||
public string Descrizione { get; set; }
|
||||
|
||||
[NotMapped]
|
||||
[DisplayFormat(DataFormatString = "{0:N2}", ApplyFormatInEditMode = true)]
|
||||
public long DurataMin
|
||||
{
|
||||
get
|
||||
{
|
||||
long answ = (long)(DurataStato != null ? DurataStato : 0);
|
||||
return answ / 60000;
|
||||
}
|
||||
}
|
||||
|
||||
public long? DurataPeriodo { get; set; }
|
||||
public long? DurataStato { get; set; }
|
||||
public DateTime? FinePeriodo { get; set; }
|
||||
public DateTime FineStato { get; set; }
|
||||
public string IdxMacchina { get; set; }
|
||||
public int? IdxOdl { get; set; }
|
||||
public int IdxStato { get; set; }
|
||||
public DateTime InizioPeriodo { get; set; }
|
||||
public DateTime InizioStato { get; set; }
|
||||
public string KeyRichiesta { get; set; }
|
||||
public string Pallet { get; set; }
|
||||
public int? PzPalletProd { get; set; }
|
||||
public decimal? TempoCicloBase { get; set; }
|
||||
public int TotPzProd { get; set; }
|
||||
public string Turno { get; set; }
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
[Table("DiarioDiBordo")]
|
||||
public partial class DiarioDiBordoModel
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
[MaxLength(50)]
|
||||
public string IdxMacchina { get; set; } = "NA";
|
||||
public DateTime InizioStato { get; set; } = DateTime.Now;
|
||||
public DateTime? FineStato { get; set; } = DateTime.Now;
|
||||
public int IdxStato { get; set; } = 0;
|
||||
public double DurataMinuti { get; set; } = 0;
|
||||
[MaxLength(50)]
|
||||
public string Value { get; set; } = "";
|
||||
[MaxLength(50)]
|
||||
public string CodArticolo { get; set; } = "";
|
||||
public double TempoCicloBase { get; set; } = 0;
|
||||
public int PzPalletProd { get; set; } = 0;
|
||||
public int MatrOpr { get; set; } = 0;
|
||||
[MaxLength(20)]
|
||||
public string pallet { get; set; } = "";
|
||||
|
||||
/// <summary>
|
||||
/// Navigazione oggetto Machine
|
||||
/// </summary>
|
||||
[ForeignKey("IdxMacchina")]
|
||||
public virtual Macchine MachineNav { get; set; } = null!;
|
||||
/// <summary>
|
||||
/// Navigazione oggetto Articolo
|
||||
/// </summary>
|
||||
[ForeignKey("CodArticolo")]
|
||||
public virtual AnagArticoli ArticoloNav { get; set; } = null!;
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
[Table("Dossiers")]
|
||||
public partial class DossierModel
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public int IdxDossier { get; set; }
|
||||
|
||||
[MaxLength(50)]
|
||||
public string DataType { get; set; }
|
||||
|
||||
public DateTime DtRif { get; set; }
|
||||
|
||||
[MaxLength(50)]
|
||||
public string IdxMacchina { get; set; } = "";
|
||||
[MaxLength(50)]
|
||||
public string CodArticolo { get; set; } = "";
|
||||
|
||||
public int IdxODL { get; set; } = 0;
|
||||
|
||||
public string Valore { get; set; } = "";
|
||||
|
||||
[MaxLength(50)]
|
||||
public string KeyRichiesta { get; set; } = "";
|
||||
|
||||
/// <summary>
|
||||
/// Navigazione oggetto Machine
|
||||
/// </summary>
|
||||
[ForeignKey("IdxMacchina")]
|
||||
public virtual Macchine MachineNav { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// Navigazione oggetto ODL
|
||||
/// </summary>
|
||||
[ForeignKey("IdxODL")]
|
||||
public virtual ODLModel OdlNav { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// Navigazione oggetto Articolo
|
||||
/// </summary>
|
||||
[ForeignKey("CodArticolo")]
|
||||
public virtual AnagArticoli ArticoloNav { get; set; } = null!;
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
[Table("ElencoLotti")]
|
||||
public partial class ElencoLottiModel
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
[Key]
|
||||
public string Lotto { get; set; } = "";
|
||||
public int IdxODL { get; set; } = 0;
|
||||
[MaxLength(50)]
|
||||
public string RifExt { get; set; } = "";
|
||||
[MaxLength(50)]
|
||||
public string TipoLotto { get; set; } = "";
|
||||
[MaxLength(50), Column("CodArt")]
|
||||
public string CodArticolo { get; set; } = "";
|
||||
[MaxLength(50)]
|
||||
public string CodStato { get; set; } = "";
|
||||
[MaxLength(50)]
|
||||
public string Origine { get; set; } = "";
|
||||
public DateTime? DtCrea { get; set; }
|
||||
[MaxLength(250)]
|
||||
public string Note { get; set; } = "";
|
||||
public decimal QtaOrig { get; set; } = 0;
|
||||
public int NumUdc { get; set; } = 1;
|
||||
public decimal QtaCurr { get; set; } = 0;
|
||||
public DateTime? DtMod { get; set; }
|
||||
public bool Attivo { get; set; } = false;
|
||||
[MaxLength(250)]
|
||||
public string DescrArt { get; set; } = "";
|
||||
[MaxLength(50)]
|
||||
public string CodArtExt { get; set; } = "";
|
||||
[MaxLength(50)]
|
||||
public string DescStato { get; set; } = "";
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
[Table("EventList")]
|
||||
public partial class EventListModel
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
[MaxLength(50)]
|
||||
public string IdxMacchina { get; set; } = "NA";
|
||||
public DateTime? InizioStato { get; set; } = DateTime.Now;
|
||||
public int IdxTipo { get; set; } = 0;
|
||||
|
||||
[MaxLength(50)]
|
||||
public string CodArticolo { get; set; } = "";
|
||||
|
||||
[MaxLength(250)]
|
||||
public string Value { get; set; } = "";
|
||||
|
||||
public int MatrOpr { get; set; } = 0;
|
||||
|
||||
[MaxLength(20)]
|
||||
public string pallet { get; set; } = "";
|
||||
|
||||
/// <summary>
|
||||
/// Navigazione oggetto Machine
|
||||
/// </summary>
|
||||
[ForeignKey("IdxMacchina")]
|
||||
public virtual Macchine MachineNav { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// Navigazione oggetto Articolo
|
||||
/// </summary>
|
||||
[ForeignKey("CodArticolo")]
|
||||
public virtual AnagArticoli ArticoloNav { get; set; } = null!;
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
public partial class FermiNonQualModel
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
public string IdxMacchina { get; set; } = "NA";
|
||||
public DateTime InizioStato { get; set; } = DateTime.Now;
|
||||
public string Macchina { get; set; } = "";
|
||||
public int IdxStato { get; set; } = 0;
|
||||
public string Stato { get; set; } = "";
|
||||
public string Semaforo { get; set; } = "";
|
||||
public double DurataMinuti { get; set; } = 0;
|
||||
public string Value { get; set; } = "";
|
||||
public string CodArticolo { get; set; } = "";
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
[Table("FluxLog")]
|
||||
public partial class FluxLogModel
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
[MaxLength(50)]
|
||||
public string IdxMacchina { get; set; }
|
||||
|
||||
public DateTime dtEvento { get; set; }
|
||||
|
||||
[MaxLength(50)]
|
||||
public string CodFlux { get; set; }
|
||||
|
||||
[MaxLength(250)]
|
||||
public string Valore { get; set; }
|
||||
|
||||
public int Cnt { get; set; }
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
[Table("Gruppi2Macchine")]
|
||||
public partial class Gruppi2MaccModel
|
||||
{
|
||||
#region Public Properties
|
||||
public string IdxMacchina { get; set; }
|
||||
|
||||
public string CodGruppo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Navigazione oggetto Machine
|
||||
/// </summary>
|
||||
[ForeignKey("IdxMacchina")]
|
||||
public virtual Macchine MachineNav { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// Navigazione oggetto Machine
|
||||
/// </summary>
|
||||
[ForeignKey("CodGruppo")]
|
||||
public virtual AnagGruppi GruppiNav { get; set; } = null!;
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
[Table("Gruppi2Operatori")]
|
||||
public partial class Gruppi2OperModel
|
||||
{
|
||||
#region Public Properties
|
||||
public int MatrOpr { get; set; } = 0;
|
||||
|
||||
public string CodGruppo { get; set; } = "";
|
||||
|
||||
/// <summary>
|
||||
/// Navigazione oggetto Operatori
|
||||
/// </summary>
|
||||
[ForeignKey("MatrOpr")]
|
||||
public virtual AnagOperatoriModel OperNav { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// Navigazione oggetto Machine
|
||||
/// </summary>
|
||||
[ForeignKey("CodGruppo")]
|
||||
public virtual AnagGruppi GruppiNav { get; set; } = null!;
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
[Keyless]
|
||||
public partial class InveSessTotLotModel
|
||||
{
|
||||
public int InveSessID { get; set; }
|
||||
public int MagID { get; set; }
|
||||
public string CodMag { get; set; }
|
||||
public string DescMag { get; set; }
|
||||
public string Lotto { get; set; }
|
||||
public string CodArticolo { get; set; }
|
||||
public string DescrArt { get; set; }
|
||||
public int NumColli { get; set; }
|
||||
public decimal TotLotto { get; set; }
|
||||
public bool IsForced { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
[Table("InveSess")]
|
||||
public class InventorySessionModel
|
||||
{
|
||||
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public int InveSessID { get; set; }
|
||||
public string Description { get; set; } = "";
|
||||
public string UserCrea { get; set; } = "";
|
||||
public int? MagID { get; set; } = null;
|
||||
public DateTime DtStart { get; set; } = DateTime.Now;
|
||||
public DateTime? DtEnd { get; set; } = null;
|
||||
public bool Transferred { get; set; } = false;
|
||||
|
||||
[NotMapped]
|
||||
public bool IsCurrent
|
||||
{
|
||||
get => (DtEnd == null);
|
||||
}
|
||||
[NotMapped]
|
||||
public bool IsValid
|
||||
{
|
||||
get => ((DtEnd != null && DtEnd > DtStart));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Navigazione oggetto Magazzino
|
||||
/// </summary>
|
||||
[ForeignKey("MagID")]
|
||||
public virtual AnagMagModel AnagMagNav { get; set; } = null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
public partial class KeepAliveModel
|
||||
{
|
||||
public string IdxMacchina { get; set; }
|
||||
public DateTime? DataOraServer { get; set; }
|
||||
public DateTime? DataOraMacchina { get; set; }
|
||||
public DateTime? DataOraStart { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
[Table("Lingue")]
|
||||
public partial class LingueModel
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
[Key]
|
||||
public string Lingua { get; set; } = "";
|
||||
public string DescrizioneLingua { get; set; } = "";
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
[Table("LinkMenuJQM")]
|
||||
public partial class LinkMenu
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public int idxLink { get; set; }
|
||||
|
||||
[MaxLength(50)]
|
||||
public string TipoLink { get; set; } = "";
|
||||
|
||||
public int ordine { get; set; } = 0;
|
||||
|
||||
[MaxLength(50)]
|
||||
public string Testo { get; set; } = "";
|
||||
|
||||
[MaxLength(50)]
|
||||
public string NavigateUrl { get; set; } = "";
|
||||
|
||||
[MaxLength(50)]
|
||||
public string icona { get; set; } = "";
|
||||
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
[Table("ListValues")]
|
||||
public partial class ListValues
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
[MaxLength(50)]
|
||||
public string TableName { get; set; }
|
||||
|
||||
[MaxLength(50)]
|
||||
public string FieldName { get; set; }
|
||||
|
||||
[MaxLength(50)]
|
||||
public string value { get; set; }
|
||||
|
||||
[MaxLength(50)]
|
||||
public string label { get; set; }
|
||||
|
||||
public int ordinal { get; set; }
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
[Table("Macchine")]
|
||||
public partial class Macchine
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
[Key]
|
||||
public string IdxMacchina { get; set; }
|
||||
/// <summary>
|
||||
/// Cod macchina
|
||||
/// </summary>
|
||||
public string CodMacchina { get; set; } = "";
|
||||
/// <summary>
|
||||
/// Nome macchina
|
||||
/// </summary>
|
||||
public string Nome { get; set; } = "";
|
||||
/// <summary>
|
||||
/// Descrizione macchina
|
||||
/// </summary>
|
||||
public string Descrizione { get; set; } = "";
|
||||
/// <summary>
|
||||
/// Patch del file json di configurazione di una ricetta
|
||||
/// </summary>
|
||||
public string RecipePath { get; set; } = "";
|
||||
/// <summary>
|
||||
/// Path (assoluto!) dell'archivio ricette da impiegare
|
||||
/// </summary>
|
||||
public string RecipeArchivePath { get; set; } = "";
|
||||
|
||||
/// <summary>
|
||||
/// Locazione (x ordinamento)
|
||||
/// </summary>
|
||||
public string locazione { get; set; } = "";
|
||||
|
||||
/// <summary>
|
||||
/// Indica se abbia ricetta calcolata
|
||||
/// </summary>
|
||||
[NotMapped]
|
||||
public bool hasRecipeCalc
|
||||
{
|
||||
get => !string.IsNullOrEmpty(RecipePath);
|
||||
}
|
||||
/// <summary>
|
||||
/// Indica se abbia ricetta calcolata
|
||||
/// </summary>
|
||||
[NotMapped]
|
||||
public bool hasRecipeArch
|
||||
{
|
||||
get => !string.IsNullOrEmpty(RecipeArchivePath);
|
||||
}
|
||||
|
||||
//public string Note { get; set; } = "";
|
||||
//public string url { get; set; } = "";
|
||||
//public string css { get; set; } = "";
|
||||
//public int RowNum { get; set; } = 0;
|
||||
//public int ColNum { get; set; } = 0;
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
public partial class Macchine2SlaveModel
|
||||
{
|
||||
public string IdxMacchina { get; set; }
|
||||
public string IdxMacchinaSlave { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,354 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Data;
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
public partial class MappaStatoExpl
|
||||
{
|
||||
public int RowNum { get; set; }
|
||||
public DateTime? LastUpdate { get; set; }
|
||||
public string IdxMacchina { get; set; }
|
||||
public string CodMacchina { get; set; }
|
||||
public string Nome { get; set; }
|
||||
public string Url { get; set; }
|
||||
public int? IdxOdl { get; set; } = 0;
|
||||
public int? IdxPOdl { get; set; } = 0;
|
||||
public string CodArticolo { get; set; }
|
||||
public string Disegno { get; set; }
|
||||
public int NumPezzi { get; set; } = 0;
|
||||
public decimal TCAssegnato { get; set; } = 0;
|
||||
public DateTime? DataInizioOdl { get; set; }
|
||||
public string Semaforo { get; set; }
|
||||
public int? IdxStato { get; set; }
|
||||
public string DescrizioneStato { get; set; }
|
||||
public double? Durata { get; set; }
|
||||
public int PezziProd { get; set; } = 0;
|
||||
public int PezziConf { get; set; } = 0;
|
||||
public decimal? TempoOn { get; set; }
|
||||
public decimal? TempoAuto { get; set; }
|
||||
public decimal? TempoRun { get; set; }
|
||||
public decimal? TCMedio { get; set; }
|
||||
public decimal? TCLav { get; set; }
|
||||
public decimal? TCEff { get; set; }
|
||||
public decimal? TCMedioRt { get; set; }
|
||||
public decimal? TCLavRT { get; set; }
|
||||
public decimal? TCEffRT { get; set; }
|
||||
|
||||
[NotMapped]
|
||||
public decimal TProd
|
||||
{
|
||||
get
|
||||
{
|
||||
return (TCAssegnato) * (PezziConf);
|
||||
}
|
||||
}
|
||||
[NotMapped]
|
||||
public string OEE_tot
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "N/A";
|
||||
decimal denom = TempoOn ?? 1;
|
||||
if (denom != 0)
|
||||
{
|
||||
var oee = ((TCAssegnato) * (PezziConf)) / denom;
|
||||
answ = $"{oee:P2}";
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
[NotMapped]
|
||||
public int extraVal
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
if(NumPezzi < PezziProd)
|
||||
{
|
||||
answ = Math.Abs(NumPezzi - PezziProd);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
[NotMapped]
|
||||
public string OEE_wrk
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "N/A";
|
||||
decimal denom = TempoAuto ?? 1;
|
||||
if (denom != 0)
|
||||
{
|
||||
var oee = ((TCAssegnato) * (PezziConf)) / denom;
|
||||
answ = $"{oee:P2}";
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
[NotMapped]
|
||||
public string OEE_run
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "N/A";
|
||||
decimal denom = TempoRun ?? 1;
|
||||
if (denom != 0)
|
||||
{
|
||||
var oee = ((TCAssegnato) * (PezziConf)) / denom;
|
||||
answ = $"{oee:P2}";
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
|
||||
[NotMapped]
|
||||
public string OEE_RT_tot
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "N/A";
|
||||
decimal denom = TCMedioRt ?? 1;
|
||||
if (denom != 0)
|
||||
{
|
||||
var oee = ((TCAssegnato)) / denom;
|
||||
answ = $"{oee:P2}";
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
[NotMapped]
|
||||
public string OEE_RT_wrk
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "N/A";
|
||||
decimal denom = TCLavRT ?? 1;
|
||||
if (denom != 0)
|
||||
{
|
||||
var oee = ((TCAssegnato)) / denom;
|
||||
answ = $"{oee:P2}";
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
[NotMapped]
|
||||
public string OEE_RT_run
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "N/A";
|
||||
decimal denom = TCEffRT ?? 1;
|
||||
if (denom != 0)
|
||||
{
|
||||
var oee = ((TCAssegnato)) / denom;
|
||||
answ = $"{oee:P2}";
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
[NotMapped]
|
||||
public bool ReqFulfill
|
||||
{
|
||||
get
|
||||
{
|
||||
return PezziProd >= NumPezzi;
|
||||
}
|
||||
}
|
||||
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (!(obj is MappaStatoExpl item))
|
||||
return false;
|
||||
|
||||
if (RowNum != item.RowNum)
|
||||
return false;
|
||||
|
||||
if (LastUpdate != item.LastUpdate)
|
||||
return false;
|
||||
|
||||
if (IdxMacchina != item.IdxMacchina)
|
||||
return false;
|
||||
|
||||
if (CodMacchina != item.CodMacchina)
|
||||
return false;
|
||||
|
||||
if (Nome != item.Nome)
|
||||
return false;
|
||||
|
||||
if (Url != item.Url)
|
||||
return false;
|
||||
|
||||
if (IdxOdl != item.IdxOdl)
|
||||
return false;
|
||||
|
||||
if (IdxPOdl != item.IdxPOdl)
|
||||
return false;
|
||||
|
||||
if (CodArticolo != item.CodArticolo)
|
||||
return false;
|
||||
|
||||
if (Disegno != item.Disegno)
|
||||
return false;
|
||||
|
||||
if (NumPezzi != item.NumPezzi)
|
||||
return false;
|
||||
|
||||
if (TCAssegnato != item.TCAssegnato)
|
||||
return false;
|
||||
|
||||
if (DataInizioOdl != item.DataInizioOdl)
|
||||
return false;
|
||||
|
||||
if (Semaforo != item.Semaforo)
|
||||
return false;
|
||||
|
||||
if (IdxStato != item.IdxStato)
|
||||
return false;
|
||||
|
||||
if (DescrizioneStato != item.DescrizioneStato)
|
||||
return false;
|
||||
|
||||
if (Durata != item.Durata)
|
||||
return false;
|
||||
|
||||
if (PezziProd != item.PezziProd)
|
||||
return false;
|
||||
|
||||
if (PezziConf != item.PezziConf)
|
||||
return false;
|
||||
|
||||
if (TempoOn != item.TempoOn)
|
||||
return false;
|
||||
|
||||
if (TempoAuto != item.TempoAuto)
|
||||
return false;
|
||||
|
||||
if (TempoRun != item.TempoRun)
|
||||
return false;
|
||||
|
||||
if (TCMedio != item.TCMedio)
|
||||
return false;
|
||||
|
||||
if (TCLav != item.TCLav)
|
||||
return false;
|
||||
|
||||
if (TCEff != item.TCEff)
|
||||
return false;
|
||||
|
||||
if (TCMedioRt != item.TCMedioRt)
|
||||
return false;
|
||||
|
||||
if (TCLavRT != item.TCLavRT)
|
||||
return false;
|
||||
|
||||
if (TCEffRT != item.TCEffRT)
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
public bool MostlyEquals(object obj)
|
||||
{
|
||||
if (!(obj is MappaStatoExpl item))
|
||||
return false;
|
||||
|
||||
if (RowNum != item.RowNum)
|
||||
return false;
|
||||
|
||||
//if (LastUpdate != item.LastUpdate)
|
||||
// return false;
|
||||
|
||||
if (IdxMacchina != item.IdxMacchina)
|
||||
return false;
|
||||
|
||||
if (CodMacchina != item.CodMacchina)
|
||||
return false;
|
||||
|
||||
if (Nome != item.Nome)
|
||||
return false;
|
||||
|
||||
if (Url != item.Url)
|
||||
return false;
|
||||
|
||||
if (IdxOdl != item.IdxOdl)
|
||||
return false;
|
||||
|
||||
if (IdxPOdl != item.IdxPOdl)
|
||||
return false;
|
||||
|
||||
if (CodArticolo != item.CodArticolo)
|
||||
return false;
|
||||
|
||||
if (Disegno != item.Disegno)
|
||||
return false;
|
||||
|
||||
if (NumPezzi != item.NumPezzi)
|
||||
return false;
|
||||
|
||||
if (TCAssegnato != item.TCAssegnato)
|
||||
return false;
|
||||
|
||||
if (DataInizioOdl != item.DataInizioOdl)
|
||||
return false;
|
||||
|
||||
if (Semaforo != item.Semaforo)
|
||||
return false;
|
||||
|
||||
if (IdxStato != item.IdxStato)
|
||||
return false;
|
||||
|
||||
//if (DescrizioneStato != item.DescrizioneStato)
|
||||
// return false;
|
||||
|
||||
//if (Durata != item.Durata)
|
||||
// return false;
|
||||
|
||||
if (PezziProd != item.PezziProd)
|
||||
return false;
|
||||
|
||||
if (PezziConf != item.PezziConf)
|
||||
return false;
|
||||
|
||||
//if (TempoOn != item.TempoOn)
|
||||
// return false;
|
||||
|
||||
//if (TempoAuto != item.TempoAuto)
|
||||
// return false;
|
||||
|
||||
//if (TempoRun != item.TempoRun)
|
||||
// return false;
|
||||
|
||||
//if (TCMedio != item.TCMedio)
|
||||
// return false;
|
||||
|
||||
//if (TCLav != item.TCLav)
|
||||
// return false;
|
||||
|
||||
//if (TCEff != item.TCEff)
|
||||
// return false;
|
||||
|
||||
//if (TCMedioRt != item.TCMedioRt)
|
||||
// return false;
|
||||
|
||||
//if (TCLavRT != item.TCLavRT)
|
||||
// return false;
|
||||
|
||||
//if (TCEffRT != item.TCEffRT)
|
||||
// return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return base.GetHashCode();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
[Table("MicroStatoMacchina")]
|
||||
public partial class MicroStatoMacchinaModel
|
||||
{
|
||||
[Key]
|
||||
public string IdxMacchina { get; set; } = "NA";
|
||||
public int IdxMicroStato { get; set; } = 0;
|
||||
public DateTime InizioStato { get; set; } = DateTime.Now;
|
||||
public string Value { get; set; } = "";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
[Table("v_ODL_exp")]
|
||||
public partial class ODLExpModel
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
[Key]
|
||||
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 decimal TCRichAttr { get; set; }
|
||||
public DateTime? DataInizio { get; set; }
|
||||
public DateTime? DataFine { get; set; }
|
||||
[MaxLength(2500)]
|
||||
public string Note { get; set; } = "";
|
||||
public string KeyRichiesta { get; set; }
|
||||
public int PzPallet { get; set; } = 1;
|
||||
public string CodCli { get; set; } = "";
|
||||
|
||||
[NotMapped]
|
||||
public string DurataMinuti
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "";
|
||||
DateTime end = DataFine != null ? (DateTime)DataFine : DateTime.Now;
|
||||
var tsDurata = (end).Subtract((DateTime)DataInizio);
|
||||
if (tsDurata.TotalDays < 1)
|
||||
{
|
||||
answ = $"{tsDurata.Hours:00}h {tsDurata.Minutes:00}'";
|
||||
}
|
||||
else
|
||||
{
|
||||
answ = $"{tsDurata.Days}gg {tsDurata.Hours:00}h";
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Navigazione oggetto Machine
|
||||
/// </summary>
|
||||
[ForeignKey("IdxMacchina")]
|
||||
public virtual Macchine MachineNav { get; set; } = null!;
|
||||
/// <summary>
|
||||
/// Navigazione oggetto Articolo
|
||||
/// </summary>
|
||||
[ForeignKey("CodArticolo")]
|
||||
public virtual AnagArticoli ArticoloNav { get; set; } = null!;
|
||||
|
||||
public string DescArticolo { get; set; } = "";
|
||||
public string CodMacchina { get; set; } = "";
|
||||
public string Nome { get; set; } = "";
|
||||
|
||||
public string OperSetup { get; set; }
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
[Table("ODL")]
|
||||
public partial class ODLModel
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public int IdxOdl { get; set; }
|
||||
[MaxLength(50)]
|
||||
public string CodArticolo { get; set; } = "";
|
||||
[MaxLength(50)]
|
||||
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; }
|
||||
[MaxLength(2500)]
|
||||
public string Note { get; set; } = "";
|
||||
[MaxLength(50)]
|
||||
public string KeyRichiesta { get; set; }
|
||||
public int PzPallet { get; set; } = 1;
|
||||
[MaxLength(50)]
|
||||
public string CodCli { get; set; } = "";
|
||||
|
||||
[NotMapped]
|
||||
public string DurataMinuti
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "";
|
||||
DateTime end = DataFine != null ? (DateTime)DataFine : DateTime.Now;
|
||||
var tsDurata = (end).Subtract((DateTime)DataInizio);
|
||||
if (tsDurata.TotalDays < 1)
|
||||
{
|
||||
answ = $"{tsDurata.Hours:00}h {tsDurata.Minutes:00}'";
|
||||
}
|
||||
else
|
||||
{
|
||||
answ = $"{tsDurata.Days}gg {tsDurata.Hours:00}h";
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Navigazione oggetto Machine
|
||||
/// </summary>
|
||||
[ForeignKey("IdxMacchina")]
|
||||
public virtual Macchine MachineNav { get; set; } = null!;
|
||||
/// <summary>
|
||||
/// Navigazione oggetto Articolo
|
||||
/// </summary>
|
||||
[ForeignKey("CodArticolo")]
|
||||
public virtual AnagArticoli ArticoloNav { get; set; } = null!;
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
[Table("ODL_Energy")]
|
||||
public partial class OdlEnergyModel
|
||||
{
|
||||
[Key]
|
||||
public int IdxOdl { get; set; }
|
||||
public string KeyRichiesta { get; set; }
|
||||
public string CodArticolo { get; set; } = "";
|
||||
public string DescArticolo { get; set; } = "";
|
||||
public decimal TCAssegnato { get; set; }
|
||||
public string IdxMacchina { get; set; }
|
||||
public DateTime DataInizio { get; set; } = DateTime.MinValue;
|
||||
public DateTime? DataFine { get; set; }
|
||||
public decimal TotCount { get; set; } = 0;
|
||||
public decimal TotGas { get; set; } = 0;
|
||||
public decimal TotWatt { get; set; } = 0;
|
||||
public decimal TotCount01 { get; set; } = 0;
|
||||
public decimal TotCount02 { get; set; } = 0;
|
||||
public decimal TotCount03 { get; set; } = 0;
|
||||
public decimal TotEn01 { get; set; } = 0;
|
||||
public decimal TotEn02 { get; set; } = 0;
|
||||
public decimal TotEn03 { get; set; } = 0;
|
||||
|
||||
[NotMapped]
|
||||
public decimal AvgWatt
|
||||
{
|
||||
get
|
||||
{
|
||||
var num = TotWatt;
|
||||
var den = TotCount;
|
||||
if (den == 0)
|
||||
{
|
||||
den = 1;
|
||||
}
|
||||
decimal answ = num / den;
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
[NotMapped]
|
||||
public decimal AvgTotEn01
|
||||
{
|
||||
get
|
||||
{
|
||||
var num = TotEn01;
|
||||
var den = TotCount01;
|
||||
if (den == 0)
|
||||
{
|
||||
den = 1;
|
||||
}
|
||||
decimal answ = num / den;
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
public partial class PODLExpModel
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
[Key]
|
||||
public int IdxPromessa { get; set; }
|
||||
[MaxLength(50)]
|
||||
public string KeyRichiesta { get; set; }
|
||||
[MaxLength(50)]
|
||||
public string KeyBCode { get; set; }
|
||||
public bool Attivabile { get; set; } = false;
|
||||
public int IdxOdl { get; set; } = 0;
|
||||
[MaxLength(50)]
|
||||
public string CodArticolo { get; set; } = "";
|
||||
[MaxLength(50)]
|
||||
public string CodGruppo { get; set; } = "";
|
||||
[MaxLength(50)]
|
||||
public string IdxMacchina { get; set; }
|
||||
public int NumPezzi { get; set; } = 1;
|
||||
public decimal Tcassegnato { get; set; } = 1;
|
||||
public DateTime? DueDate { get; set; }
|
||||
public int Priorita { get; set; } = 1;
|
||||
public int PzPallet { get; set; } = 1;
|
||||
[MaxLength(2500)]
|
||||
public string Note { get; set; } = "";
|
||||
[MaxLength(50)]
|
||||
public string CodCli { get; set; } = "";
|
||||
public DateTime InsertDate { get; set; } = DateTime.Now;
|
||||
[MaxLength(500)]
|
||||
public string Recipe { get; set; } = "";
|
||||
|
||||
[NotMapped]
|
||||
public string CodFase
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "*";
|
||||
if (!string.IsNullOrEmpty(KeyRichiesta))
|
||||
{
|
||||
try
|
||||
{
|
||||
var allData = KeyRichiesta.Split('_');
|
||||
if (allData.Length > 0)
|
||||
{
|
||||
answ = allData[0];
|
||||
}
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Navigazione oggetto Machine
|
||||
/// </summary>
|
||||
[ForeignKey("IdxMacchina")]
|
||||
public virtual Macchine MachineNav { get; set; } = null!;
|
||||
/// <summary>
|
||||
/// Navigazione oggetto Articolo
|
||||
/// </summary>
|
||||
[ForeignKey("CodArticolo")]
|
||||
public virtual AnagArticoli ArticoloNav { get; set; } = null!;
|
||||
|
||||
public string DescArticolo { get; set; } = "";
|
||||
public string CodMacchina { get; set; } = "";
|
||||
public string Nome { get; set; } = "";
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
[Table("PromesseODL")]
|
||||
public partial class PODLModel
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public int IdxPromessa { get; set; }
|
||||
[MaxLength(50)]
|
||||
public string KeyRichiesta { get; set; }
|
||||
[MaxLength(50)]
|
||||
public string KeyBCode { get; set; }
|
||||
public bool Attivabile { get; set; } = false;
|
||||
public int IdxOdl { get; set; } = 0;
|
||||
[MaxLength(50)]
|
||||
public string CodArticolo { get; set; } = "";
|
||||
[MaxLength(50)]
|
||||
public string CodGruppo { get; set; } = "";
|
||||
[MaxLength(50)]
|
||||
public string IdxMacchina { get; set; }
|
||||
public int NumPezzi { get; set; } = 1;
|
||||
public decimal Tcassegnato { get; set; } = 1;
|
||||
public DateTime? DueDate { get; set; }
|
||||
public int Priorita { get; set; } = 1;
|
||||
public int PzPallet { get; set; } = 1;
|
||||
[MaxLength(2500)]
|
||||
public string Note { get; set; } = "";
|
||||
[MaxLength(50)]
|
||||
public string CodCli { get; set; } = "";
|
||||
public DateTime InsertDate { get; set; } = DateTime.Now;
|
||||
[MaxLength(500)]
|
||||
public string Recipe { get; set; } = "";
|
||||
|
||||
[NotMapped]
|
||||
public string CodFase
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "*";
|
||||
var allData = KeyRichiesta.Split('_');
|
||||
if (allData.Length > 0)
|
||||
{
|
||||
answ = allData[0];
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Navigazione oggetto Machine
|
||||
/// </summary>
|
||||
[ForeignKey("IdxMacchina")]
|
||||
public virtual Macchine MachineNav { get; set; } = null!;
|
||||
/// <summary>
|
||||
/// Navigazione oggetto Articolo
|
||||
/// </summary>
|
||||
[ForeignKey("CodArticolo")]
|
||||
public virtual AnagArticoli ArticoloNav { get; set; } = null!;
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
public partial class PzProdModel
|
||||
{
|
||||
[Key]
|
||||
public string idxMacchina { get; set; } = "NA";
|
||||
public int pezziNonConfermati { get; set; } = 0;
|
||||
public DateTime DataFrom { get; set; } = DateTime.Now;
|
||||
public DateTime DataTo { get; set; } = DateTime.Now;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
public partial class RegCheckModel
|
||||
{
|
||||
#region Public Properties
|
||||
[Key]
|
||||
public string IdxMacchina { get; set; }
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
[Table("RegistroControlli")]
|
||||
public partial class RegistroControlliModel
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
|
||||
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public int IdxControllo { get; set; } = 0;
|
||||
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; }
|
||||
public string Operatore { get; set; } = "";
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
//[Table("DiarioDichiarazioni")]
|
||||
public partial class RegistroDichiarazioniModel
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public int IdxDich { get; set; }
|
||||
|
||||
public DateTime DtRec { get; set; } = DateTime.Now;
|
||||
public string IdxMacchina { get; set; } = "";
|
||||
public string TagCode { get; set; } = "";
|
||||
public int MatrOpr { get; set; }
|
||||
public string ValString { get; set; } = "";
|
||||
public string CognNome { get; set; } = "";
|
||||
public string CssClass { get; set; } = "";
|
||||
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
[Table("RegistroScartiKit")]
|
||||
public partial class RegistroScartiKitModel
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
public string IdxMacchina { get; set; } = "";
|
||||
public DateTime DataOra { get; set; } = DateTime.Now;
|
||||
public string Causale { get; set; } = "";
|
||||
public string CodArticoloKit { get; set; } = "";
|
||||
public string CodArticolo { get; set; } = "";
|
||||
public string Operatore { get; set; } = "";
|
||||
|
||||
public int Qta { get; set; } = 0;
|
||||
public int QtaMax { get; set; } = 0;
|
||||
public string Note { get; set; } = "";
|
||||
public int MatrOpr { get; set; } = 0;
|
||||
public DateTime? DataOraProdRec { get; set; } = null;
|
||||
public string Descrizione { get; set; } = "";
|
||||
public string cssClass { get; set; } = "";
|
||||
public string icona { get; set; } = "";
|
||||
public string DescArticolo { get; set; } = "";
|
||||
public string Tipo { get; set; } = "";
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Internal;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using static MP.Data.MgModels.RecipeModel;
|
||||
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
public partial class RegistroScartiModel
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
public string IdxMacchina { get; set; } = "";
|
||||
public DateTime DataOra { get; set; } = DateTime.Now;
|
||||
public string Causale { get; set; } = "";
|
||||
public string Operatore { get; set; } = "";
|
||||
|
||||
public int Qta { get; set; } = 0;
|
||||
public string Note { get; set; } = "";
|
||||
public string CodArticolo { get; set; } = "";
|
||||
public int MatrOpr { get; set; } = 0;
|
||||
public DateTime? DataOraProdRec { get; set; } = null;
|
||||
public bool KitSplit { get; set; } = false;
|
||||
public string Descrizione { get; set; } = "";
|
||||
public string cssClass { get; set; } = "";
|
||||
public string icona { get; set; } = "";
|
||||
public string DescArticolo { get; set; } = "";
|
||||
public string Tipo { get; set; } = "";
|
||||
|
||||
#endregion Public Properties
|
||||
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (!(obj is RegistroScartiModel item))
|
||||
return false;
|
||||
|
||||
if (IdxMacchina != item.IdxMacchina)
|
||||
return false;
|
||||
|
||||
if (DataOra != item.DataOra)
|
||||
return false;
|
||||
|
||||
if (Causale != item.Causale)
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return base.GetHashCode();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
public partial class ResControlli
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
public string CodArticolo { get; set; }
|
||||
public string CodMacchina { get; set; } = "";
|
||||
public string Cognome { get; set; } = "";
|
||||
public DateTime DataOra { get; set; }
|
||||
public string DescArticolo { get; set; } = "";
|
||||
public bool EsitoOk { get; set; }
|
||||
public int IdxControllo { 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; }
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
public partial class ResScarti
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
public string Causale { get; set; }
|
||||
public string CodArticolo { get; set; }
|
||||
public string CodMacchina { get; set; }
|
||||
public string Cognome { get; set; }
|
||||
public DateTime DataOraRif { get; set; }
|
||||
public string DescArticolo { 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; }
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
[Table("ST_Actual")]
|
||||
public partial class ST_Act
|
||||
{
|
||||
|
||||
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public int IdxST { get; set; }
|
||||
public string CodTempl { get; set; } = "";
|
||||
public string CodArticolo { get; set; } = "";
|
||||
public int MatrOpr { get; set; } = 0;
|
||||
public DateTime DtMod { get; set; } = DateTime.Now;
|
||||
public string UserLogin { get; set; } = "";
|
||||
public bool IsValidated { get; set; } = false;
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
[Table("ST_ActualRows")]
|
||||
public partial class ST_ActRow
|
||||
{
|
||||
|
||||
public int IdxST { get; set; }
|
||||
public string Label { get; set; } = "";
|
||||
public int Oggetto { get; set; } = 0;
|
||||
public int Num { get; set; } = 0;
|
||||
public string CodGruppo { get; set; } = "";
|
||||
public string CodTipo { get; set; } = "";
|
||||
public string Value { get; set; } = "";
|
||||
public string CheckType { get; set; } = "";
|
||||
public bool Required { get; set; } = false;
|
||||
public string ExtCode { get; set; } = "";
|
||||
public string ValueRead { get; set; } = "";
|
||||
public string Note { get; set; } = "";
|
||||
|
||||
[NotMapped]
|
||||
public bool ShowMissingData
|
||||
{
|
||||
get => Required && (Value != ExtCode);
|
||||
}
|
||||
|
||||
[NotMapped]
|
||||
public bool ShowCheckedData
|
||||
{
|
||||
get => Required && (Value == ExtCode);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
[Table("ST_AnagGruppi")]
|
||||
public partial class ST_AnagGruppi
|
||||
{
|
||||
|
||||
[Key]
|
||||
public string CodGruppo { get; set; } = "";
|
||||
public string DescGruppo { get; set; } = "";
|
||||
public int OrdVisual { get; set; } = 0;
|
||||
public string CssClass { get; set; } = "";
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
[Table("ST_AnagTipi")]
|
||||
public partial class ST_AnagTipi
|
||||
{
|
||||
|
||||
[Key]
|
||||
public string CodTipo { get; set; } = "";
|
||||
public string DescTipo { get; set; } = "";
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
[Table("ST_Check")]
|
||||
public partial class ST_Check
|
||||
{
|
||||
|
||||
public DateTime DtEvent { get; set; } = DateTime.Now;
|
||||
public int IdxODL { get; set; } = 0;
|
||||
public int IdxST { get; set; } = 0;
|
||||
public int Oggetto { get; set; } = 0;
|
||||
public int Num { get; set; } = 0;
|
||||
public string ValueRead { get; set; } = "";
|
||||
public string ExtCode { get; set; } = "";
|
||||
public bool CheckOk { get; set; } = false;
|
||||
public DateTime DtMod { get; set; } = DateTime.Now;
|
||||
public string UserMod { get; set; } = "";
|
||||
public bool Forced { get; set; } = false;
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
[Table("ST_Template")]
|
||||
public partial class ST_Template
|
||||
{
|
||||
|
||||
[Key]
|
||||
public string CodTempl { get; set; } = "";
|
||||
public string DescTempl { get; set; } = "";
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
[Table("ST_TemplateRows")]
|
||||
public partial class ST_TemplateRows
|
||||
{
|
||||
|
||||
public string CodTempl { get; set; } = "";
|
||||
public int Num { get; set; } = 0;
|
||||
public string CodGruppo { get; set; } = "";
|
||||
public string CodTipo { get; set; } = "";
|
||||
public string Label { get; set; } = "";
|
||||
public string Value { get; set; } = "";
|
||||
public string CheckType { get; set; } = "";
|
||||
public bool Required { get; set; } = false;
|
||||
public string Note { get; set; } = "";
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
[Table("InveScanData")]
|
||||
public class ScanDataModel
|
||||
{
|
||||
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public int ScanID { get; set; }
|
||||
public DateTime DtScan { get; set; } = DateTime.Now;
|
||||
public string UserScan { get; set; } = "";
|
||||
public string ScanValue { get; set; } = "";
|
||||
public bool IsForced { get; set; } = false;
|
||||
public string CodArticolo { get; set; } = "";
|
||||
public string Lotto { get; set; } = "";
|
||||
public string RifExt { get; set; } = "";
|
||||
public decimal Qty { get; set; } = 0;
|
||||
public string Note { get; set; } = "";
|
||||
public bool IsKnown { get; set; } = false;
|
||||
public bool IsUnique { get; set; } = false;
|
||||
public int InveSessID { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// Navigazione oggetto Inventory Session
|
||||
/// </summary>
|
||||
[ForeignKey("InveSessID")]
|
||||
public virtual InventorySessionModel InveSessNav { get; set; } = null!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
public partial class StatODLModel
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
[Key]
|
||||
public int IdxStato { get; set; }
|
||||
public string Descrizione { get; set; } = "";
|
||||
public string Semaforo { get; set; }
|
||||
public string Css { get; set; }
|
||||
public double TotDurata { get; set; }
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
[Table("StatoMacchine")]
|
||||
public partial class StatoMacchineModel
|
||||
{
|
||||
[Key]
|
||||
public string IdxMacchina { get; set; } = "NA";
|
||||
public int IdxStato { get; set; } = 0;
|
||||
public DateTime InizioStato { get; set; } = DateTime.Now;
|
||||
public string Value { get; set; } = "";
|
||||
public string CodArticolo { get; set; } = "";
|
||||
public double TempoCicloBase { get; set; } = 0;
|
||||
public int PzPalletProd { get; set; } = 0;
|
||||
public int MatrOpr { get; set; } = 0;
|
||||
public string pallet { get; set; } = "";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
public partial class StatoProdModel
|
||||
{
|
||||
[Key]
|
||||
public string idxMacchina { get; set; } = "NA";
|
||||
public int IdxOdl { get; set; } = 0;
|
||||
public int PzTotODL { get; set; } = 0;
|
||||
public int PzConfScarto { get; set; } = 0;
|
||||
public int PzConfBuoni { get; set; } = 0;
|
||||
public int PzRichODL { get; set; } = 0;
|
||||
public int Pz2RecTot { get; set; } = 0;
|
||||
public int Pz2RecScarto { get; set; } = 0;
|
||||
public DateTime DataFrom { get; set; } = DateTime.Now;
|
||||
public DateTime DataTo { get; set; } = DateTime.Now;
|
||||
public int PzConfRilav { get; set; } = 0;
|
||||
public int Pz2RecRilav { get; set; } = 0;
|
||||
|
||||
[NotMapped]
|
||||
public int PzConfAll
|
||||
{
|
||||
get => PzConfBuoni + PzConfRilav + PzConfScarto;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
public partial class StatsAnagArticoli
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
public string CodArticolo { get; set; }
|
||||
public string DescArticolo { get; set; }
|
||||
public string Disegno { get; set; }
|
||||
public string Tipo { get; set; }
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
public partial class StatsODL
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
public string CodArticolo { get; set; } = "";
|
||||
public string CodArticoloParent { get; set; }
|
||||
public DateTime? DataFine { get; set; }
|
||||
public DateTime? DataInizio { get; set; }
|
||||
public string DescArticolo { get; set; } = "";
|
||||
public DateTime? DueDate { get; set; }
|
||||
public string IdxMacchina { get; set; }
|
||||
public int IdxOdl { get; set; }
|
||||
public string KeyRichiesta { get; set; }
|
||||
public string KeyRichiestaParent { get; set; }
|
||||
public int NumPezzi { get; set; }
|
||||
public int NumPezziEv { get; set; }
|
||||
public int NumPezziRil { get; set; }
|
||||
public int NumPezziSca { get; set; }
|
||||
public int? PzPallet { get; set; }
|
||||
public decimal Tcassegnato { get; set; }
|
||||
|
||||
[NotMapped]
|
||||
public int TotCicli
|
||||
{
|
||||
get => NumPezziEv + NumPezziSca;
|
||||
}
|
||||
|
||||
[NotMapped]
|
||||
public int NumPezziScaNet
|
||||
{
|
||||
get => NumPezziSca - NumPezziRil;
|
||||
}
|
||||
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using static MP.Data.Objects.Enums;
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
[Table("TaskExec")]
|
||||
public partial class TaskExecModel
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public int TaskExecId { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// task Id di riferimento
|
||||
/// </summary>
|
||||
public int TaskId { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// DataOra inizio
|
||||
/// </summary>
|
||||
public DateTime DtStart { get; set; } = DateTime.Now;
|
||||
|
||||
/// <summary>
|
||||
/// DataOra fine
|
||||
/// </summary>
|
||||
public DateTime DtEnd { get; set; } = DateTime.Now.AddDays(-1);
|
||||
|
||||
/// <summary>
|
||||
/// Durata ultima esecuzione in secondi
|
||||
/// </summary>
|
||||
[NotMapped]
|
||||
public double Duration
|
||||
{
|
||||
get => DtEnd.Subtract(DtStart).TotalSeconds;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Esito in Errore
|
||||
/// </summary>
|
||||
public bool IsError { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// Ultimo risultato registrato
|
||||
/// </summary>
|
||||
public string Result { get; set; } = "";
|
||||
|
||||
/// <summary>
|
||||
/// Navigazione oggetto TaskList
|
||||
/// </summary>
|
||||
[ForeignKey("TaskId")]
|
||||
public virtual TaskListModel TaskListNav { get; set; } = null!;
|
||||
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using static MP.Data.Objects.Enums;
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
[Table("TaskList")]
|
||||
public partial class TaskListModel
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public int TaskId { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// Ordinale x esecuzione
|
||||
/// </summary>
|
||||
public int Ordinal { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// Nome Task
|
||||
/// </summary>
|
||||
public string Name { get; set; } = "";
|
||||
|
||||
/// <summary>
|
||||
/// Descrizione Task
|
||||
/// </summary>
|
||||
public string Descript { get; set; } = "";
|
||||
|
||||
/// <summary>
|
||||
/// Tipo Task
|
||||
/// </summary>
|
||||
public Task2ExeType TType { get; set; } = Task2ExeType.ND;
|
||||
|
||||
/// <summary>
|
||||
/// Comando da invocare
|
||||
/// </summary>
|
||||
public string Command { get; set; } = "";
|
||||
|
||||
/// <summary>
|
||||
/// Elenco argomenti (json)
|
||||
/// </summary>
|
||||
public string Args { get; set; } = "";
|
||||
|
||||
/// <summary>
|
||||
/// Frequenza esecuzione da enum
|
||||
/// </summary>
|
||||
public TaskFreqType Freq { get; set; } = TaskFreqType.ND;
|
||||
|
||||
/// <summary>
|
||||
/// Cadenza esecuzione
|
||||
/// </summary>
|
||||
public int Cad { get; set; } = 1;
|
||||
|
||||
/// <summary>
|
||||
/// DataOra ultima esecuzione
|
||||
/// </summary>
|
||||
public DateTime DtLastExec { get; set; } = DateTime.Today.AddYears(-10);
|
||||
/// <summary>
|
||||
/// DataOra ultima esecuzione
|
||||
/// </summary>
|
||||
public DateTime DtNextExec { get; set; } = DateTime.Today.AddYears(-9);
|
||||
|
||||
/// <summary>
|
||||
/// Durata ultima esecuzione in secondi
|
||||
/// </summary>
|
||||
public double LastDuration { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// Esito ultima esecuzione in Errore
|
||||
/// </summary>
|
||||
public bool LastIsError { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// Ultimo risultato registrato
|
||||
/// </summary>
|
||||
public string LastResult { get; set; } = "";
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using static MP.Data.Objects.Enums;
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
[NotMapped]
|
||||
public partial class TaskResultModel
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
/// <summary>
|
||||
/// Tipo di task eseguito
|
||||
/// </summary>
|
||||
public string Task { get; set; } = "";
|
||||
|
||||
/// <summary>
|
||||
/// Risultato: >0 = successo, <0 = errore
|
||||
/// </summary>
|
||||
public int ExecResult { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// Risultato esecuzione testuale
|
||||
/// </summary>
|
||||
public string TextResult { get; set; } = "";
|
||||
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
[Table("TransizioneIngressi")]
|
||||
public partial class TransizioneIngressiModel
|
||||
{
|
||||
public int IdxFamigliaIngresso { get; set; }
|
||||
public int IdxMicroStato { get; set; }
|
||||
public int ValoreIngresso { get; set; }
|
||||
public int? IdxTipoEvento { get; set; }
|
||||
public int NextIdxMicroStato { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
[Table("TransizioneStati")]
|
||||
public partial class TransizioneStatiModel
|
||||
{
|
||||
public int IdxFamiglia { get; set; } = 0;
|
||||
public int IdxStato { get; set; } = 0;
|
||||
public int IdxTipo { get; set; } = 0;
|
||||
public int next_IdxStato { get; set; } = 0;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
[Table("TurniMacchina")]
|
||||
public partial class TurniMaccModel
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
[Key, MaxLength(50)]
|
||||
public string IdxMacchina { get; set; } = "NA";
|
||||
public bool T1 { get; set; } = false;
|
||||
public bool T2 { get; set; } = false;
|
||||
public bool T3 { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// Navigazione oggetto Machine
|
||||
/// </summary>
|
||||
[ForeignKey("IdxMacchina")]
|
||||
public virtual Macchine MachineNav { get; set; } = null!;
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
public partial class TurniOee
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
public string ClasseTempo { get; set; }
|
||||
public string CodArticolo { get; set; }
|
||||
public string CodMacchina { get; set; }
|
||||
public DateTime DataRif { get; set; }
|
||||
public string DescArticolo { get; set; }
|
||||
public string IdxMacchina { get; set; }
|
||||
|
||||
[NotMapped]
|
||||
[DisplayFormat(DataFormatString = "{0:N2}", ApplyFormatInEditMode = true)]
|
||||
public double OEE => (double)TotPeriodo / (double)TotTurno;
|
||||
|
||||
[DisplayFormat(DataFormatString = "{0:N2}", ApplyFormatInEditMode = true)]
|
||||
public decimal TotPeriodo { get; set; }
|
||||
|
||||
public int? TotPz { get; set; }
|
||||
|
||||
public int? TotTurno { get; set; } = 1;
|
||||
|
||||
public string Turno { get; set; }
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
public partial class UserActionLog
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
public string Azione { get; set; }
|
||||
public string CodArticolo { get; set; }
|
||||
public string CodMacchina { get; set; }
|
||||
public string Cognome { get; set; }
|
||||
public DateTime DataOraRif { get; set; }
|
||||
public string DescArticolo { get; set; } = "";
|
||||
public int IdxLog { 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 decimal Qta { get; set; }
|
||||
public string Valore { get; set; }
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
public partial class VExpInveSession
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
[Column("InveSessID")]
|
||||
public int InveSessId { get; set; }
|
||||
|
||||
public string Description { get; set; }
|
||||
|
||||
public string UserCrea { get; set; }
|
||||
|
||||
public DateTime DtStart { get; set; } = new DateTime(1900, 01, 01);
|
||||
|
||||
public DateTime DtEnd { get; set; } = new DateTime(2099, 12, 31);
|
||||
|
||||
public string CodMag { get; set; }
|
||||
|
||||
public string DescMag { get; set; }
|
||||
|
||||
[Column("ScanID")]
|
||||
public int ScanId { get; set; }
|
||||
|
||||
public DateTime DtScan { get; set; }
|
||||
|
||||
public string ScanValue { get; set; }
|
||||
|
||||
public string Lotto { get; set; }
|
||||
|
||||
public string CodArticolo { get; set; }
|
||||
|
||||
[MaxLength(250)]
|
||||
public string DescrArt { get; set; }
|
||||
|
||||
[MaxLength(50)]
|
||||
public string CodArtExt { get; set; }
|
||||
|
||||
[MaxLength(50)]
|
||||
public string CodStato { get; set; }
|
||||
|
||||
public decimal Qty { get; set; }
|
||||
|
||||
public string UserScan { get; set; }
|
||||
|
||||
public string Note { get; set; }
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
public partial class VMSFDModel
|
||||
{
|
||||
public string IdxMacchina { get; set; }
|
||||
public string Codmacchina { get; set; }
|
||||
public bool PalletChange { get; set; }
|
||||
public string CodArticoloA { get; set; }
|
||||
public string CodArticoloB { get; set; }
|
||||
public bool SimplePallet { get; set; }
|
||||
public bool InsEnabled { get; set; }
|
||||
public bool SLogEnabled { get; set; }
|
||||
public int IdxFamigliaIngresso { get; set; }
|
||||
public int Multi { get; set; }
|
||||
public int BitFilt { get; set; }
|
||||
public int MaxVal { get; set; }
|
||||
public int Bsr { get; set; }
|
||||
public bool ExplodeBit { get; set; }
|
||||
public int NumBit { get; set; }
|
||||
public int IdxMicroStato { get; set; }
|
||||
public int IdxFamiglia { get; set; }
|
||||
public int IdxStato { get; set; }
|
||||
public string LastVal { 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 CodMaccArticolo { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
[Table("Vocabolario")]
|
||||
public partial class VocabolarioModel
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
public string Lingua { get; set; }
|
||||
public string Lemma { get; set; }
|
||||
public string Traduzione { get; set; }
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
public partial class vSelCauScartoModel
|
||||
{
|
||||
[Key]
|
||||
public string value { get; set; } = "";
|
||||
public string label { get; set; } = "";
|
||||
public string cssClass { get; set; } = "";
|
||||
public string icona { get; set; } = "";
|
||||
public bool isEnabled { get; set; } = false;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
public class vSelEventiBCodeModel
|
||||
{
|
||||
[Key]
|
||||
public int value { get; set; } = 0;
|
||||
public string label { get; set; } = "";
|
||||
public bool EventoTablet { get; set; } = true;
|
||||
public string CssClass { get; set; } = "";
|
||||
public string Icon { get; set; } = "";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.Data.DbModels
|
||||
{
|
||||
public partial class vSelOdlModel
|
||||
{
|
||||
[Key]
|
||||
public int value { get; set; } = 0;
|
||||
public string label { get; set; } = "";
|
||||
public DateTime? conditio { get; set; } = DateTime.Now;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user