Save ProcessDataStandardFormat to EC_Metrology_Si

This commit is contained in:
2023-06-27 08:00:43 -07:00
parent 85338cd703
commit 632f213217
3 changed files with 16 additions and 8 deletions

View File

@ -43,13 +43,15 @@ public class WSRequest
public string UniqueId { get; set; }
public string Zone { get; set; }
public List<txt.Detail> Details { get; protected set; }
public string ProcessDataStandardFormat { get; set; }
[Obsolete("For json")] public WSRequest() { }
#pragma warning disable IDE0060
internal WSRequest(IFileRead fileRead, Logistics logistics, List<txt.Description> descriptions)
internal WSRequest(IFileRead fileRead, Logistics logistics, List<txt.Description> descriptions, string processDataStandardFormat = null)
#pragma warning restore IDE0060
{
ProcessDataStandardFormat = processDataStandardFormat;
Id = "-1";
CellName = logistics.MesEntity;
Details = new List<txt.Detail>();
@ -109,7 +111,7 @@ public class WSRequest
{
if (string.IsNullOrEmpty(json))
{
WSRequest wsRequest = new(fileRead, logistics, descriptions);
WSRequest wsRequest = new(fileRead, logistics, descriptions, string.Empty);
(json, WS.Results wsResults) = WS.SendData(openInsightMetrologyViewerAPI, wsRequest);
if (!wsResults.Success)
throw new Exception(wsResults.ToString());