This commit is contained in:
Roland Drabesch
2022-04-21 11:31:41 +02:00
parent 9f8d315b8f
commit ad752435c1
10 changed files with 295 additions and 271 deletions
@@ -149,6 +149,9 @@ namespace ProductionUiCordonel.ProductionProcesses.Actions
return;
}
reTrysLeft = reTrysLeft - 1;
currentProcessState = ProductionProcessState.Done;
return;
}
catch (Exception ex)
{
@@ -67,8 +67,8 @@ namespace ProductionUiCordonel.ProductionProcesses.Actions
{
try
{
//var url = $"http://localhost:56011/api/FinalCheck/GetProgrammingParameters?PcbID={base.Meter.PcbId}";
var url = $"{ServiceUrls.GenesisFinalCheckServiceUrl()}GetProgrammingParameters?PcbID={base.Meter.PcbId}";
var url = $"http://localhost:56011/api/FinalCheck/GetProgrammingParameters?PcbID={base.Meter.PcbId}";
//var url = $"{ServiceUrls.GenesisFinalCheckServiceUrl()}GetProgrammingParameters?PcbID={base.Meter.PcbId}";
var csdRet = LocalWebRequest.GetRequest(url, 80000);
return Newtonsoft.Json.JsonConvert.DeserializeObject<IList<ProgrammingParameters>>(csdRet);
@@ -237,7 +237,7 @@ namespace ProductionUiCordonel.ProductionProcesses.Actions
}
else
{
if (cTask.Result.Item1.ToLower() == "SENSUSRADIO_MetroRadioLifeTimeCounter".ToLower() || cTask.Result.Item1.ToLower() == "CUSTOMER_LeakFlowThreshold".ToLower() || cTask.Result.Item1.ToLower() == "CUSTOMER_ExcessFlowVolumeThreshold".ToLower())
if (cTask.Result.Item1.ToLower().Contains("Metersize".ToLower()) || cTask.Result.Item1.ToLower() == "SENSUSRADIO_MetroRadioLifeTimeCounter".ToLower() || cTask.Result.Item1.ToLower() == "CUSTOMER_LeakFlowThreshold".ToLower() || cTask.Result.Item1.ToLower() == "CUSTOMER_ExcessFlowVolumeThreshold".ToLower())
{
base.NewStatus($"Warnung!Schreiben des Parameter {cTask.Result.Item1} war nicht erfolgreich");
}
@@ -278,7 +278,7 @@ namespace ProductionUiCordonel.ProductionProcesses.Actions
else
{
base.currentProcessState = ProductionProcessState.Error;
reTrysLeft = 0;
reTrysLeft = -1;
base.NewStatus($"Warnung!Fehler beim laden des Parametersatzes");
}
@@ -261,15 +261,15 @@ namespace ProductionUiCordonel.ProductionProcesses.Actions
catch (Exception ex)
{
saveData.LimitId = 0;
RSSI_PAM_Min = 120;
RSSI_PAM_Min = 100;
RSSI_PAM_Max = 163;
RSSI_SEMI_Min = 150;
RSSI_SEMI_Max = 182;
RSSI_PAM_Max = 200;
RSSI_SEMI_Min = 100;
RSSI_SEMI_Max = 200;
// RSSI_PAM_Min RSSI_PAM_Max RSSI_SEMI_Min RSSI_SEMI_Max
//145 164 182
throw new Exception("Fehler in GetRssiMinMax()", ex);
// throw new Exception("Fehler in GetRssiMinMax()", ex);
}
}