- Update visualizzazione ODL ed Energy
This commit is contained in:
Samuele Locatelli
2025-02-18 11:57:06 +01:00
parent 5bef1602cb
commit 43aae08d1e
28 changed files with 1523 additions and 192 deletions
@@ -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.DatabaseModels
{
[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; } = "";
}
}
+23
View File
@@ -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.DatabaseModels
{
[Table("Lingue")]
public partial class LingueModel
{
#region Public Properties
[Key]
public string Lingua { get; set; } = "";
public string DescrizioneLingua { get; set; } = "";
#endregion Public Properties
}
}
+24 -2
View File
@@ -19,10 +19,32 @@ namespace MP.Data.DatabaseModels
public string DescArticolo { get; set; } = "";
public decimal TCAssegnato { get; set; }
public string IdxMacchina { get; set; }
public DateTime? DataInizio { get; set; }
public DateTime DataInizio { get; set; } = DateTime.MinValue;
public DateTime? DataFine { get; set; }
public decimal TotCount { get; set; } = 0;
public decimal TotWatt { 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;
}
}
}
}
+14
View File
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
#nullable disable
@@ -29,6 +30,19 @@ namespace MP.Data.DatabaseModels
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
}
}