|
@@ -79,7 +79,7 @@ namespace XdCxRhDW.App.Controllers
|
|
|
ModRate = dto.CheckRes?.ModRate,
|
|
|
ModType = dto.CheckRes?.ModType,
|
|
|
UserName = dto.CheckRes?.UserName,
|
|
|
- FfcHz= dto.CheckRes?.FfcHz,
|
|
|
+ FfcHz = dto.CheckRes?.FfcHz,
|
|
|
};
|
|
|
db.CheckRes.Add(ckRes);
|
|
|
|
|
@@ -355,7 +355,7 @@ namespace XdCxRhDW.App.Controllers
|
|
|
Confidence = (int)res[6],
|
|
|
PosResType = EnumPosResType.X2D1,
|
|
|
};
|
|
|
- if (dto.TheoryDfoCalc)
|
|
|
+ if (dto.TheoryDfoCalc && posRes.PosLon != 999)
|
|
|
posRes.TargetState = TheoryDtoDfoApi.TheoryDfo(cgRes, StationRes, posRes, SysConfig.Config.YDPZThreshold);
|
|
|
if (dto.CalcConfidence)
|
|
|
{
|
|
@@ -500,7 +500,7 @@ namespace XdCxRhDW.App.Controllers
|
|
|
Confidence = (int)res[6],
|
|
|
PosResType = EnumPosResType.X2D1,
|
|
|
};
|
|
|
- if (dto.TheoryDfoCalc)
|
|
|
+ if (dto.TheoryDfoCalc && posRes.PosLon != 999)
|
|
|
posRes.TargetState = TheoryDtoDfoApi.TheoryDfo(cgRes, StationRes, posRes, SysConfig.Config.YDPZThreshold);
|
|
|
posRes = db.PosRes.Add(posRes);
|
|
|
await db.SaveChangesAsync();
|
|
@@ -607,7 +607,7 @@ namespace XdCxRhDW.App.Controllers
|
|
|
Confidence = (int)res[6],
|
|
|
PosResType = EnumPosResType.X2D1NoRef,
|
|
|
};
|
|
|
- if (dto.TheoryDfoCalc)
|
|
|
+ if (dto.TheoryDfoCalc && posRes.PosLon != 999)
|
|
|
posRes.TargetState = TheoryDtoDfoApi.TheoryDfo(cgRes, StationRes, posRes, SysConfig.Config.YDPZThreshold);
|
|
|
posRes = db.PosRes.Add(posRes);
|
|
|
await db.SaveChangesAsync();
|
|
@@ -744,7 +744,7 @@ namespace XdCxRhDW.App.Controllers
|
|
|
Confidence = (int)res[6],
|
|
|
PosResType = EnumPosResType.X2D1NoRef,
|
|
|
};
|
|
|
- if (dto.TheoryDfoCalc)
|
|
|
+ if (dto.TheoryDfoCalc && posRes.PosLon != 999)
|
|
|
posRes.TargetState = TheoryDtoDfoApi.TheoryDfo(cgRes, StationRes, posRes, SysConfig.Config.YDPZThreshold);
|
|
|
posRes = db.PosRes.Add(posRes);
|
|
|
await db.SaveChangesAsync();
|
|
@@ -861,7 +861,7 @@ namespace XdCxRhDW.App.Controllers
|
|
|
Confidence = (int)res[6],
|
|
|
PosResType = EnumPosResType.RH,
|
|
|
};
|
|
|
- if (dto.TheoryDfoCalc)
|
|
|
+ if (dto.TheoryDfoCalc && posRes.PosLon != 999)
|
|
|
posRes.TargetState = TheoryDtoDfoApi.TheoryDfo(cgRes, StationRes, posRes, SysConfig.Config.YDPZThreshold);
|
|
|
posRes = db.PosRes.Add(posRes);
|
|
|
await db.SaveChangesAsync();
|
|
@@ -1009,7 +1009,7 @@ namespace XdCxRhDW.App.Controllers
|
|
|
Confidence = (int)res[6],
|
|
|
PosResType = EnumPosResType.RH,
|
|
|
};
|
|
|
- if (dto.TheoryDfoCalc)
|
|
|
+ if (dto.TheoryDfoCalc && posRes.PosLon != 999)
|
|
|
posRes.TargetState = TheoryDtoDfoApi.TheoryDfo(cgRes, StationRes, posRes, SysConfig.Config.YDPZThreshold);
|
|
|
posRes = db.PosRes.Add(posRes);
|
|
|
await db.SaveChangesAsync();
|
|
@@ -1129,7 +1129,7 @@ namespace XdCxRhDW.App.Controllers
|
|
|
Confidence = (int)res[6],
|
|
|
PosResType = EnumPosResType.X3,
|
|
|
};
|
|
|
- if (dto.TheoryDfoCalc)
|
|
|
+ if (dto.TheoryDfoCalc && posRes.PosLon != 999)
|
|
|
posRes.TargetState = TheoryDtoDfoApi.TheoryDfo(cgRes, StationRes, posRes, SysConfig.Config.YDPZThreshold);
|
|
|
posRes = db.PosRes.Add(posRes);
|
|
|
await db.SaveChangesAsync();
|
|
@@ -1291,7 +1291,7 @@ namespace XdCxRhDW.App.Controllers
|
|
|
Confidence = (int)res[6],
|
|
|
PosResType = EnumPosResType.X3,
|
|
|
};
|
|
|
- if (dto.TheoryDfoCalc)
|
|
|
+ if (dto.TheoryDfoCalc && posRes.PosLon != 999)
|
|
|
posRes.TargetState = TheoryDtoDfoApi.TheoryDfo(cgRes, StationRes, posRes, SysConfig.Config.YDPZThreshold);
|
|
|
posRes = db.PosRes.Add(posRes);
|
|
|
await db.SaveChangesAsync();
|
|
@@ -1403,7 +1403,7 @@ namespace XdCxRhDW.App.Controllers
|
|
|
Confidence = (int)res[6],
|
|
|
PosResType = EnumPosResType.X3NoRef,
|
|
|
};
|
|
|
- if (dto.TheoryDfoCalc)
|
|
|
+ if (dto.TheoryDfoCalc && posRes.PosLon != 999)
|
|
|
posRes.TargetState = TheoryDtoDfoApi.TheoryDfo(cgRes, StationRes, posRes, SysConfig.Config.YDPZThreshold);
|
|
|
posRes = db.PosRes.Add(posRes);
|
|
|
await db.SaveChangesAsync();
|
|
@@ -1560,7 +1560,7 @@ namespace XdCxRhDW.App.Controllers
|
|
|
Confidence = (int)res[6],
|
|
|
PosResType = EnumPosResType.X3NoRef,
|
|
|
};
|
|
|
- if (dto.TheoryDfoCalc)
|
|
|
+ if (dto.TheoryDfoCalc && posRes.PosLon != 999)
|
|
|
posRes.TargetState = TheoryDtoDfoApi.TheoryDfo(cgRes, StationRes, posRes, SysConfig.Config.YDPZThreshold);
|
|
|
posRes = db.PosRes.Add(posRes);
|
|
|
await db.SaveChangesAsync();
|
|
@@ -1682,7 +1682,7 @@ namespace XdCxRhDW.App.Controllers
|
|
|
Confidence = (int)res[6],
|
|
|
PosResType = EnumPosResType.X3TwoDfo,
|
|
|
};
|
|
|
- if (dto.TheoryDfoCalc)
|
|
|
+ if (dto.TheoryDfoCalc && posRes.PosLon != 999)
|
|
|
posRes.TargetState = TheoryDtoDfoApi.TheoryDfo(cgRes, StationRes, posRes, SysConfig.Config.YDPZThreshold);
|
|
|
posRes = db.PosRes.Add(posRes);
|
|
|
await db.SaveChangesAsync();
|
|
@@ -1846,7 +1846,7 @@ namespace XdCxRhDW.App.Controllers
|
|
|
Confidence = (int)res[6],
|
|
|
PosResType = EnumPosResType.X3TwoDfo,
|
|
|
};
|
|
|
- if (dto.TheoryDfoCalc)
|
|
|
+ if (dto.TheoryDfoCalc && posRes.PosLon != 999)
|
|
|
posRes.TargetState = TheoryDtoDfoApi.TheoryDfo(cgRes, StationRes, posRes, SysConfig.Config.YDPZThreshold);
|
|
|
posRes = db.PosRes.Add(posRes);
|
|
|
await db.SaveChangesAsync();
|
|
@@ -1961,7 +1961,7 @@ namespace XdCxRhDW.App.Controllers
|
|
|
Confidence = (int)res[6],
|
|
|
PosResType = EnumPosResType.X2Dfo,
|
|
|
};
|
|
|
- if (dto.TheoryDfoCalc)
|
|
|
+ if (dto.TheoryDfoCalc && posRes.PosLon != 999)
|
|
|
posRes.TargetState = TheoryDtoDfoApi.TheoryDfo(cgRes, StationRes, posRes, SysConfig.Config.YDPZThreshold);
|
|
|
posRes = db.PosRes.Add(posRes);
|
|
|
await db.SaveChangesAsync();
|
|
@@ -2100,7 +2100,7 @@ namespace XdCxRhDW.App.Controllers
|
|
|
Confidence = (int)res[6],
|
|
|
PosResType = EnumPosResType.X2Dfo,
|
|
|
};
|
|
|
- if (dto.TheoryDfoCalc)
|
|
|
+ if (dto.TheoryDfoCalc && posRes.PosLon != 999)
|
|
|
posRes.TargetState = TheoryDtoDfoApi.TheoryDfo(cgRes, StationRes, posRes, SysConfig.Config.YDPZThreshold);
|
|
|
posRes = db.PosRes.Add(posRes);
|
|
|
await db.SaveChangesAsync();
|