Added backend API project to segregate responsibilites - Data is now handled in API project and business is all handled in UI project.

This commit is contained in:
Daniel Wathen
2023-01-04 14:19:59 -07:00
parent 80696e5fe6
commit 1adb303d99
33 changed files with 762 additions and 95 deletions

View File

@ -1,8 +1,12 @@
namespace ReportingServices.Shared.Models.ProductionReport
using System.Text.Json.Serialization;
namespace ReportingServices.Shared.Models.ProductionReport
{
public class EquipmentStateByDay
{
[JsonPropertyName("StartTime")]
public string StartTime { get; set; }
[JsonPropertyName("AvailablePct")]
public string AvailablePct { get; set; }
}
}

View File

@ -1,10 +1,16 @@
namespace ReportingServices.Shared.Models.ProductionReport
using System.Text.Json.Serialization;
namespace ReportingServices.Shared.Models.ProductionReport
{
public class QuarterlyTargets
{
[JsonPropertyName("Reactor_Outs")]
public int Reactor_Outs { get; set; }
[JsonPropertyName("Yield_Outs")]
public int Yield_Outs { get; set; }
[JsonPropertyName("IFX_Scrap")]
public int IFX_Scrap { get; set; }
[JsonPropertyName("Yield")]
public float Yield { get; set; }
}
}

View File

@ -1,11 +1,18 @@
namespace ReportingServices.Shared.Models.ProductionReport
using System.Text.Json.Serialization;
namespace ReportingServices.Shared.Models.ProductionReport
{
public class RDS
{
[JsonPropertyName("Reactor")]
public int Reactor { get; set; }
[JsonPropertyName("ReactorType")]
public string ReactorType { get; set; }
[JsonPropertyName("DateOut")]
public DateTime DateOut { get; set; }
[JsonPropertyName("UnloadTemp")]
public int UnloadTemp { get; set; }
[JsonPropertyName("LayerType")]
public string LayerType { get; set; }
}
}

View File

@ -1,10 +1,16 @@
namespace ReportingServices.Shared.Models.ProductionReport
using System.Text.Json.Serialization;
namespace ReportingServices.Shared.Models.ProductionReport
{
public class Reactor
{
[JsonPropertyName("ReactorNumber")]
public int ReactorNumber { get; set; }
[JsonPropertyName("Type")]
public string Type { get; set; }
[JsonPropertyName("PocketSize")]
public string PocketSize { get; set; }
[JsonPropertyName("HasDisabledLoadLock")]
public bool HasDisabledLoadlock { get; set; }
}
}

View File

@ -1,9 +1,14 @@
namespace ReportingServices.Shared.Models.ProductionReport
using System.Text.Json.Serialization;
namespace ReportingServices.Shared.Models.ProductionReport
{
public class ReactorOutsByRDS
{
[JsonPropertyName("RDS_NO")]
public string RDS_NO { get; set; }
[JsonPropertyName("Units")]
public string Units { get; set; }
[JsonPropertyName("EndProcessTime")]
public string EndProcessTime { get; set; }
}
}

View File

@ -1,11 +1,18 @@
namespace ReportingServices.Shared.Models.ProductionReport
using System.Text.Json.Serialization;
namespace ReportingServices.Shared.Models.ProductionReport
{
public class ScrapByDay
{
[JsonPropertyName("StartDate")]
public string StartDate { get; set; }
[JsonPropertyName("TW_PROD")]
public int TW_PROD { get; set; }
[JsonPropertyName("TOT_REJ_CUST")]
public int TOT_REJ_CUST { get; set; }
[JsonPropertyName("TOT_REJ_MANU")]
public int TOT_REJ_MANU { get; set; }
[JsonPropertyName("TOT_REJ_WFRS")]
public int TOT_REJ_WFRS { get; set; }
}
}

View File

@ -1,14 +1,24 @@
namespace ReportingServices.Shared.Models.ProductionReport
using System.Text.Json.Serialization;
namespace ReportingServices.Shared.Models.ProductionReport
{
public class ToolStateCurrent
{
[JsonPropertyName("Tool")]
public string Tool { get; set; }
[JsonPropertyName("TranTime")]
public string TranTime { get; set; }
[JsonPropertyName("GanttEndTime")]
public string GanttEndTime { get; set; }
[JsonPropertyName("GanttElapsedHours")]
public string GanttElapsedHours { get; set; }
[JsonPropertyName("BasicStateDescription")]
public string BasicStateDescription { get; set; }
[JsonPropertyName("SubState")]
public string SubState { get; set; }
[JsonPropertyName("ReactorStatus")]
public string ReactorStatus { get; set; }
[JsonPropertyName("Comment")]
public string Comment { get; set; }
}

View File

@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
namespace ReportingServices.Shared.Models.ProductionReport
{
public class YieldInformation
{
[JsonPropertyName("Outs")]
public List<ReactorOutsByRDS> Outs { get; set; }
[JsonPropertyName("Scrap")]
public List<ScrapByDay> Scrap { get; set; }
}
}