Updated azure-pipelines-server.yml
Changed to thunderclient to messa017 Nuget Bump Scan Helper
This commit is contained in:
41
Shared/DataModels/WorkMaterial.cs
Normal file
41
Shared/DataModels/WorkMaterial.cs
Normal file
@ -0,0 +1,41 @@
|
||||
namespace OI.Metrology.Shared.DataModels;
|
||||
|
||||
public record WorkMaterial(int SLOT_NO,
|
||||
string RDS_NO,
|
||||
int REACTOR,
|
||||
string POCKET_NO,
|
||||
string ZONE,
|
||||
string PS_NO,
|
||||
string RECIPE_NAME,
|
||||
int RECIPE_NO,
|
||||
string SPEC_TYPE)
|
||||
{
|
||||
|
||||
public static WorkMaterialV2[] Convert(List<WorkMaterial> collection)
|
||||
{
|
||||
List<WorkMaterialV2> results = new();
|
||||
foreach (WorkMaterial item in collection)
|
||||
results.Add(Map(item));
|
||||
return results.ToArray();
|
||||
}
|
||||
|
||||
public static WorkMaterialV2 Map(WorkMaterial item)
|
||||
{
|
||||
WorkMaterialV2 result = new(item.SLOT_NO,
|
||||
item.RDS_NO,
|
||||
item.REACTOR,
|
||||
item.POCKET_NO,
|
||||
item.ZONE,
|
||||
item.PS_NO);
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public record WorkMaterialV2(int SlotNumber,
|
||||
string RunDataSheet,
|
||||
int Reactor,
|
||||
string Pocket,
|
||||
string Zone,
|
||||
string PSN)
|
||||
{ }
|
16
Shared/DataModels/WorkMaterialOut.cs
Normal file
16
Shared/DataModels/WorkMaterialOut.cs
Normal file
@ -0,0 +1,16 @@
|
||||
namespace OI.Metrology.Shared.DataModels;
|
||||
|
||||
public class WorkMaterialOut
|
||||
{
|
||||
|
||||
public string? Layer { get; set; }
|
||||
public string? PSN { get; set; }
|
||||
public string? Pocket { get; set; }
|
||||
public int? Reactor { get; set; }
|
||||
public string? RunDataSheet { get; set; }
|
||||
public string? Scan { get; set; }
|
||||
public int? SlotNumber { get; set; }
|
||||
public string? Username { get; set; }
|
||||
public string? Zone { get; set; }
|
||||
|
||||
}
|
14
Shared/Models/Stateless/IReactorsController.cs
Normal file
14
Shared/Models/Stateless/IReactorsController.cs
Normal file
@ -0,0 +1,14 @@
|
||||
namespace OI.Metrology.Shared.Models.Stateless;
|
||||
|
||||
public interface IReactorsController<T>
|
||||
{
|
||||
|
||||
enum Action : int
|
||||
{
|
||||
Get = 0
|
||||
}
|
||||
|
||||
static string GetRouteName() => nameof(IReactorsController<T>)[1..^10];
|
||||
T Get(bool even);
|
||||
|
||||
}
|
12
Shared/Models/Stateless/IReactorsRepository.cs
Normal file
12
Shared/Models/Stateless/IReactorsRepository.cs
Normal file
@ -0,0 +1,12 @@
|
||||
|
||||
using OI.Metrology.Shared.DataModels;
|
||||
|
||||
namespace OI.Metrology.Shared.Models.Stateless;
|
||||
|
||||
public interface IReactorsRepository
|
||||
{
|
||||
|
||||
Result<int[]> EvenReactors();
|
||||
Result<int[]> OddReactors();
|
||||
|
||||
}
|
14
Shared/Models/Stateless/IWorkMaterialController.cs
Normal file
14
Shared/Models/Stateless/IWorkMaterialController.cs
Normal file
@ -0,0 +1,14 @@
|
||||
namespace OI.Metrology.Shared.Models.Stateless;
|
||||
|
||||
public interface IWorkMaterialController<T>
|
||||
{
|
||||
|
||||
enum Action : int
|
||||
{
|
||||
Get = 0
|
||||
}
|
||||
|
||||
static string GetRouteName() => nameof(IWorkMaterialController<T>)[1..^10];
|
||||
T GetCassette(string mid);
|
||||
|
||||
}
|
12
Shared/Models/Stateless/IWorkMaterialRepository.cs
Normal file
12
Shared/Models/Stateless/IWorkMaterialRepository.cs
Normal file
@ -0,0 +1,12 @@
|
||||
|
||||
using OI.Metrology.Shared.DataModels;
|
||||
|
||||
namespace OI.Metrology.Shared.Models.Stateless;
|
||||
|
||||
public interface IWorkMaterialRepository
|
||||
{
|
||||
|
||||
string GetCommandText(int? workOrderNumber, int? workOrderStep, int? workOrderCassette);
|
||||
Result<WorkMaterialV2[]> GetCassette(string mid);
|
||||
|
||||
}
|
@ -4,5 +4,5 @@ namespace OI.Metrology.Shared.Repositories;
|
||||
|
||||
public interface IDbConnectionFactory
|
||||
{
|
||||
DbConnection GetDbConnection();
|
||||
DbConnection GetDbConnection(bool? useOI2Sql = null);
|
||||
}
|
Reference in New Issue
Block a user