STATS:
- Update visualizzazione ODL ed Energy
This commit is contained in:
@@ -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; } = "";
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user