98 lines
2.2 KiB
C#
98 lines
2.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace AppData
|
|
{
|
|
public class chartJsTSerie
|
|
{
|
|
#region Public Properties
|
|
|
|
public string label { get; set; } = "";
|
|
public DateTime x { get; set; }
|
|
public decimal y { get; set; }
|
|
|
|
#endregion Public Properties
|
|
}
|
|
|
|
public class chartJsTVal
|
|
{
|
|
#region Public Properties
|
|
|
|
public string x { get; set; }
|
|
public decimal y { get; set; }
|
|
|
|
#endregion Public Properties
|
|
}
|
|
|
|
public class chartJsXY
|
|
{
|
|
#region Public Properties
|
|
|
|
public decimal x { get; set; }
|
|
public decimal y { get; set; }
|
|
|
|
#endregion Public Properties
|
|
}
|
|
// <Auto-Generated>
|
|
// This is here so CodeMaid doesn't reorganize this document
|
|
// </Auto-Generated>
|
|
|
|
public class FileBatchStats
|
|
{
|
|
public string FileCsv { get; set; } = "";
|
|
public double Yeld { get; set; } = 0;
|
|
public int NumMaterials { get; set; } = 0;
|
|
public int NumSheets { get; set; } = 0;
|
|
public int NumModels { get; set; } = 0;
|
|
public int NumKit { get; set; } = 0;
|
|
public int NumParts { get; set; } = 0;
|
|
public int NumPainted { get; set; } = 0;
|
|
}
|
|
|
|
// <Auto-Generated>
|
|
// This is here so CodeMaid doesn't reorganize this document
|
|
// </Auto-Generated>
|
|
|
|
public class DayStats
|
|
{
|
|
#region Public Properties
|
|
|
|
public DateTime DTime { get; set; }
|
|
|
|
public string Machine { get; set; } = "";
|
|
|
|
public double OEE
|
|
{
|
|
get
|
|
{
|
|
var denom = AvailTime > 0 ? AvailTime : 1;
|
|
return RunTime / denom;
|
|
}
|
|
}
|
|
|
|
public double AvgPartHour
|
|
{
|
|
get
|
|
{
|
|
var denom = RunTime > 0 ? RunTime : 1;
|
|
return PartProd / denom;
|
|
}
|
|
}
|
|
|
|
public double RunTime { get; set; } = 0;
|
|
|
|
public double AvailTime { get; set; } = 0;
|
|
|
|
|
|
public int PartProd { get; set; } = 0;
|
|
|
|
public int PartScrap { get; set; } = 0;
|
|
|
|
#endregion Public Properties
|
|
}
|
|
|
|
|
|
} |