Files
marco.locatelli@steamware.net a8b04afc04 gestione venduto ieri+oggi
2022-02-01 17:36:45 +01:00

83 lines
2.3 KiB
C#

using System;
using System.Collections.Generic;
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 GWMS.Data.DTO
{
public class PlantDTO
{
#region Public Properties
public int PlantId { get; set; }
public string PlantCode { get; set; } = "";
public string PlantDesc { get; set; } = "";
public DateTime LastUpdate { get; set; } = DateTime.Today.AddYears(-10);
public double LevelMax { get; set; } = 99999;
public double LevelAct { get; set; } = 0;
public double LevelReorder { get; set; } = 0;
public double OrderQtyStd { get; set; } = 0;
public double MidnightQty { get; set; } = 0;
public int LevelRatio
{
get
{
int answ = 0;
double denom = LevelMax == 0 ? 1 : LevelMax;
answ = (int)(LevelAct * 100 / denom);
return answ;
}
}
public double ReorderRatio
{
get
{
double answ = 0;
double denom = LevelMax == 0 ? 1 : LevelMax;
answ = Math.Round((double)(LevelReorder * 100 / denom), 2);
return answ;
}
set
{
LevelReorder = value * LevelMax / 100;
}
}
/// <summary>
/// Storico Livelli
/// </summary>
public List<TSData> LevelTS { get; set; } = new List<TSData>();
/// <summary>
/// Storico Ordini
/// </summary>
public List<TSData> OrderTS { get; set; } = new List<TSData>();
/// <summary>
/// Storico Vendite
/// </summary>
public List<TSData> SoldTS { get; set; } = new List<TSData>();
public double TempMax { get; set; } = 40;
public double TempAct { get; set; } = 0;
public List<TSData> TempTS { get; set; } = new List<TSData>();
public Dictionary<string, double> PressAct { get; set; } = new Dictionary<string, double>();
public Dictionary<string, List<TSData>> PressTS { get; set; } = new Dictionary<string, List<TSData>>();
#endregion Public Properties
}
}