Updated azure-pipelines-server.yml

Changed to thunderclient to messa017
Nuget Bump
Scan Helper
This commit is contained in:
2023-04-17 14:23:46 -07:00
parent 72b648589e
commit 70c1e1a52a
37 changed files with 1443 additions and 762 deletions

View 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)
{ }

View 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; }
}

View 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);
}

View 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();
}

View 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);
}

View 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);
}

View File

@ -4,5 +4,5 @@ namespace OI.Metrology.Shared.Repositories;
public interface IDbConnectionFactory
{
DbConnection GetDbConnection();
DbConnection GetDbConnection(bool? useOI2Sql = null);
}