Added View, Recipe Paramaters and Export
This commit is contained in:
22
Shared/Models/Stateless/IExportController.cs
Normal file
22
Shared/Models/Stateless/IExportController.cs
Normal file
@ -0,0 +1,22 @@
|
||||
using OI.Metrology.Shared.DataModels;
|
||||
|
||||
namespace OI.Metrology.Shared.Models.Stateless;
|
||||
|
||||
public interface IExportController<T>
|
||||
{
|
||||
|
||||
enum Action : int
|
||||
{
|
||||
Index = 0,
|
||||
Export = 1,
|
||||
Headers = 2,
|
||||
Logistics = 3
|
||||
}
|
||||
|
||||
static string GetRouteName() => nameof(IExportController<T>)[1..^10];
|
||||
T GetExport(HeaderCommon headerCommon);
|
||||
T GetHeaders(HeaderCommon headerCommon);
|
||||
T GetLogistics(HeaderCommon headerCommon);
|
||||
T GetProcessDataStandardFormat(HeaderCommon headerCommon);
|
||||
|
||||
}
|
13
Shared/Models/Stateless/IExportRepository.cs
Normal file
13
Shared/Models/Stateless/IExportRepository.cs
Normal file
@ -0,0 +1,13 @@
|
||||
using OI.Metrology.Shared.DataModels;
|
||||
|
||||
namespace OI.Metrology.Shared.Models.Stateless;
|
||||
|
||||
public interface IExportRepository
|
||||
{
|
||||
|
||||
string GetExport(HeaderCommon headerCommon);
|
||||
Result<HeaderCommon[]> GetHeaders(HeaderCommon headerCommon);
|
||||
Result<HeaderCommon[]> GetLogistics(HeaderCommon headerCommon);
|
||||
string GetProcessDataStandardFormat(HeaderCommon headerCommon);
|
||||
|
||||
}
|
@ -11,7 +11,7 @@ public interface IInboundController<T>
|
||||
}
|
||||
|
||||
static string GetRouteName() => nameof(IInboundController<T>)[1..^10];
|
||||
T Data(string tooltype, JToken jsonbody);
|
||||
T Post(string tooltype, JToken jsonbody);
|
||||
T AttachFile(string tooltype, long headerid, string datauniqueid = "");
|
||||
|
||||
}
|
Reference in New Issue
Block a user