泄漏量

dep_yangw
我叫锄头 11 months ago
parent cd5c0b67e0
commit 76a970041d

@ -1656,7 +1656,7 @@ namespace ProductionSystem.Forms
{ {
t.Electricity = GetPlcValue("D1202"); t.Electricity = GetPlcValue("D1202");
t.Voltage = GetPlcValue("D1200"); t.Voltage = GetPlcValue("D1200");
if (t.Electricity != "0.000" || t.Voltage != "0.000") if (t.Electricity.ToDouble()>0 && t.Voltage.ToDouble()>0)
{ {
_result2Service.AddTResult2(t); _result2Service.AddTResult2(t);
} }
@ -1667,7 +1667,7 @@ namespace ProductionSystem.Forms
{ {
t.Electricity = GetPlcValue("D1206"); t.Electricity = GetPlcValue("D1206");
t.Voltage = GetPlcValue("D1204"); t.Voltage = GetPlcValue("D1204");
if (t.Electricity != "0.000" || t.Voltage != "0.000") if (t.Electricity.ToDouble() > 0 && t.Voltage.ToDouble() > 0)
{ {
_result2Service.AddTResult2(t); _result2Service.AddTResult2(t);
} }
@ -1677,7 +1677,7 @@ namespace ProductionSystem.Forms
{ {
t.Electricity = GetPlcValue("D1210"); t.Electricity = GetPlcValue("D1210");
t.Voltage = GetPlcValue("D1208"); t.Voltage = GetPlcValue("D1208");
if (t.Electricity != "0.000" || t.Voltage != "0.000") if (t.Electricity.ToDouble() > 0 && t.Voltage.ToDouble() > 0)
{ {
_result2Service.AddTResult2(t); _result2Service.AddTResult2(t);
} }
@ -1687,7 +1687,7 @@ namespace ProductionSystem.Forms
{ {
t.Xll = GetPlcValue("D1224"); t.Xll = GetPlcValue("D1224");
t.Xllzt = GetPlcValue("D1226"); t.Xllzt = GetPlcValue("D1226");
if (t.Xll != "0.000" || t.Xllzt != "0.000") if (t.Xll.ToDouble()>0 )
{ {
_result2Service.AddTResult2(t); _result2Service.AddTResult2(t);
} }
@ -1700,7 +1700,7 @@ namespace ProductionSystem.Forms
t.Xll = GetPlcValue("D1214"); t.Xll = GetPlcValue("D1214");
t.Xllzt = GetPlcValue("D1114"); t.Xllzt = GetPlcValue("D1114");
if (t.Xll != "0.000" || t.Xllzt != "0.000") if (t.Xll.ToDouble() > 0 )
{ {
_result2Service.AddTResult2(t); _result2Service.AddTResult2(t);
} }
@ -1712,7 +1712,7 @@ namespace ProductionSystem.Forms
{ {
t.Xll = GetPlcValue("D1216"); t.Xll = GetPlcValue("D1216");
t.Xllzt = GetPlcValue("D1116"); t.Xllzt = GetPlcValue("D1116");
if (t.Xll != "0.000" || t.Xllzt != "0.000") if (t.Xll.ToDouble() > 0 )
{ {
_result2Service.AddTResult2(t); _result2Service.AddTResult2(t);
} }
@ -1722,7 +1722,7 @@ namespace ProductionSystem.Forms
{ {
t.Xll = GetPlcValue("D1212"); t.Xll = GetPlcValue("D1212");
t.Xllzt = GetPlcValue("D1112"); t.Xllzt = GetPlcValue("D1112");
if (t.Xll != "0.000" || t.Xllzt != "0.000") if (t.Xll.ToDouble() > 0)
{ {
_result2Service.AddTResult2(t); _result2Service.AddTResult2(t);
} }

Loading…
Cancel
Save