|
@@ -14,6 +14,7 @@ using XdCxRhDW.Entity;
|
|
|
using XdCxRhDW.Api;
|
|
|
using XdCxRhDw.Dto;
|
|
|
using XdCxRhDW.WebApi;
|
|
|
+using DPP_YH_Core.Extensions;
|
|
|
|
|
|
namespace XdCxRhDW.App.Controllers
|
|
|
{
|
|
@@ -68,6 +69,21 @@ namespace XdCxRhDW.App.Controllers
|
|
|
RefLon = dto.RefLon,
|
|
|
RefLat = dto.RefLat,
|
|
|
});
|
|
|
+ CheckRes CheckRes = null;
|
|
|
+ if (dto.CheckRes != null)
|
|
|
+ {
|
|
|
+ //var CheckRes = db.CheckRes.Add(dto.CheckRes.MapTo<Entity.CheckRes>());
|
|
|
+ CheckRes cres = new CheckRes();
|
|
|
+ cres.SigTime = dto.CheckRes.SigTime;
|
|
|
+ cres.FileName = dto.CheckRes.FileName;
|
|
|
+ cres.StartSamp = dto.CheckRes.StartSamp;
|
|
|
+ cres.SampCount = dto.CheckRes.SampCount;
|
|
|
+ if (dto.CheckRes.DetectionWay.HasValue)
|
|
|
+ cres.DetectionWay = (EnumDetectionWay)dto.CheckRes.DetectionWay;
|
|
|
+ else
|
|
|
+ cres.DetectionWay = null;
|
|
|
+ CheckRes = db.CheckRes.Add(cres);
|
|
|
+ }
|
|
|
|
|
|
var cgRes = db.CgRes.Add(new CgRes()
|
|
|
{
|
|
@@ -94,6 +110,7 @@ namespace XdCxRhDW.App.Controllers
|
|
|
|
|
|
var res = PosApi.X1D1_Pos(cgRes, StationRes, cxRes);
|
|
|
|
|
|
+ long? checkResId = null;
|
|
|
PosRes posRes = new PosRes()
|
|
|
{
|
|
|
FreqUpHz = (long)cgRes.TarFreqUp.Value,
|
|
@@ -101,6 +118,7 @@ namespace XdCxRhDW.App.Controllers
|
|
|
TaskInfoID = runTask.ID,
|
|
|
CxResID = cxRes.ID,
|
|
|
CgResID = cgRes.ID,
|
|
|
+ CheckResID = CheckRes == null ? checkResId : CheckRes.ID,
|
|
|
TarName = string.IsNullOrWhiteSpace(dto.TarName) ? "未知目标" : dto.TarName,
|
|
|
TsName = dto.TsName,
|
|
|
PosLon = res[0],
|
|
@@ -177,6 +195,21 @@ namespace XdCxRhDW.App.Controllers
|
|
|
RefLat = dto.RefLat,
|
|
|
});
|
|
|
|
|
|
+ CheckRes CheckRes = null;
|
|
|
+ if (dto.CheckRes != null)
|
|
|
+ {
|
|
|
+ CheckRes cres = new CheckRes();
|
|
|
+ cres.SigTime = dto.CheckRes.SigTime;
|
|
|
+ cres.FileName = dto.CheckRes.FileName;
|
|
|
+ cres.StartSamp = dto.CheckRes.StartSamp;
|
|
|
+ cres.SampCount = dto.CheckRes.SampCount;
|
|
|
+ if (dto.CheckRes.DetectionWay.HasValue)
|
|
|
+ cres.DetectionWay = (EnumDetectionWay)dto.CheckRes.DetectionWay;
|
|
|
+ else
|
|
|
+ cres.DetectionWay = null;
|
|
|
+ CheckRes = db.CheckRes.Add(cres);
|
|
|
+ }
|
|
|
+
|
|
|
var cgRes = db.CgRes.Add(new CgRes()
|
|
|
{
|
|
|
SigTime = dto.SigTime,
|
|
@@ -205,6 +238,7 @@ namespace XdCxRhDW.App.Controllers
|
|
|
|
|
|
var res = PosApi.X1D1_Pos(cgRes, StationRes, cxRes);
|
|
|
|
|
|
+ long? checkResId = null;
|
|
|
PosRes posRes = new PosRes()
|
|
|
{
|
|
|
FreqUpHz = (long)cgRes.TarFreqUp.Value,
|
|
@@ -212,6 +246,7 @@ namespace XdCxRhDW.App.Controllers
|
|
|
TaskInfoID = runTask.ID,
|
|
|
CgResID = cgRes.ID,
|
|
|
CxResID = cxRes.ID,
|
|
|
+ CheckResID = CheckRes == null ? checkResId : CheckRes.ID,
|
|
|
TarName = string.IsNullOrWhiteSpace(dto.TarName) ? "未知目标" : dto.TarName,
|
|
|
TsName = dto.TsName,
|
|
|
PosLon = res[0],
|
|
@@ -274,6 +309,21 @@ namespace XdCxRhDW.App.Controllers
|
|
|
RefLat = dto.RefLat,
|
|
|
});
|
|
|
|
|
|
+ CheckRes CheckRes = null;
|
|
|
+ if (dto.CheckRes != null)
|
|
|
+ {
|
|
|
+ CheckRes cres = new CheckRes();
|
|
|
+ cres.SigTime = dto.CheckRes.SigTime;
|
|
|
+ cres.FileName = dto.CheckRes.FileName;
|
|
|
+ cres.StartSamp = dto.CheckRes.StartSamp;
|
|
|
+ cres.SampCount = dto.CheckRes.SampCount;
|
|
|
+ if (dto.CheckRes.DetectionWay.HasValue)
|
|
|
+ cres.DetectionWay = (EnumDetectionWay)dto.CheckRes.DetectionWay;
|
|
|
+ else
|
|
|
+ cres.DetectionWay = null;
|
|
|
+ CheckRes = db.CheckRes.Add(cres);
|
|
|
+ }
|
|
|
+
|
|
|
var cgRes = db.CgRes.Add(new CgRes()
|
|
|
{
|
|
|
SigTime = dto.SigTime,
|
|
@@ -307,12 +357,14 @@ namespace XdCxRhDW.App.Controllers
|
|
|
|
|
|
var res = PosApi.X2D1_Pos(cgRes, StationRes);
|
|
|
|
|
|
+ long? checkResId = null;
|
|
|
PosRes posRes = new PosRes()
|
|
|
{
|
|
|
FreqUpHz = (long)cgRes.TarFreqUp.Value,
|
|
|
SigTime = cgRes.SigTime,
|
|
|
TaskInfoID = runTask.ID,
|
|
|
CgResID = cgRes.ID,
|
|
|
+ CheckResID = CheckRes == null ? checkResId : CheckRes.ID,
|
|
|
TarName = string.IsNullOrWhiteSpace(dto.TarName) ? "未知目标" : dto.TarName,
|
|
|
TsName = dto.TsName,
|
|
|
PosLon = res[0],
|
|
@@ -402,6 +454,21 @@ namespace XdCxRhDW.App.Controllers
|
|
|
RefLat = dto.RefLat,
|
|
|
});
|
|
|
|
|
|
+ CheckRes CheckRes = null;
|
|
|
+ if (dto.CheckRes != null)
|
|
|
+ {
|
|
|
+ CheckRes cres = new CheckRes();
|
|
|
+ cres.SigTime = dto.CheckRes.SigTime;
|
|
|
+ cres.FileName = dto.CheckRes.FileName;
|
|
|
+ cres.StartSamp = dto.CheckRes.StartSamp;
|
|
|
+ cres.SampCount = dto.CheckRes.SampCount;
|
|
|
+ if (dto.CheckRes.DetectionWay.HasValue)
|
|
|
+ cres.DetectionWay = (EnumDetectionWay)dto.CheckRes.DetectionWay;
|
|
|
+ else
|
|
|
+ cres.DetectionWay = null;
|
|
|
+ CheckRes = db.CheckRes.Add(cres);
|
|
|
+ }
|
|
|
+
|
|
|
var cgRes = db.CgRes.Add(new CgRes()
|
|
|
{
|
|
|
SigTime = dto.SigTime,
|
|
@@ -435,12 +502,14 @@ namespace XdCxRhDW.App.Controllers
|
|
|
|
|
|
var res = PosApi.X2D1_Pos(cgRes, StationRes);
|
|
|
|
|
|
+ long? checkResId = null;
|
|
|
PosRes posRes = new PosRes()
|
|
|
{
|
|
|
FreqUpHz = (long)cgRes.TarFreqUp.Value,
|
|
|
SigTime = dto.SigTime,
|
|
|
TaskInfoID = runTask.ID,
|
|
|
CgResID = cgRes.ID,
|
|
|
+ CheckResID = CheckRes == null ? checkResId : CheckRes.ID,
|
|
|
TarName = string.IsNullOrWhiteSpace(dto.TarName) ? "未知目标" : dto.TarName,
|
|
|
TsName = dto.TsName,
|
|
|
PosLon = res[0],
|
|
@@ -499,6 +568,22 @@ namespace XdCxRhDW.App.Controllers
|
|
|
CdbTxLon = dto.CdbTxLon,
|
|
|
CdbTxLat = dto.CdbTxLat,
|
|
|
});
|
|
|
+
|
|
|
+ CheckRes CheckRes = null;
|
|
|
+ if (dto.CheckRes != null)
|
|
|
+ {
|
|
|
+ CheckRes cres = new CheckRes();
|
|
|
+ cres.SigTime = dto.CheckRes.SigTime;
|
|
|
+ cres.FileName = dto.CheckRes.FileName;
|
|
|
+ cres.StartSamp = dto.CheckRes.StartSamp;
|
|
|
+ cres.SampCount = dto.CheckRes.SampCount;
|
|
|
+ if (dto.CheckRes.DetectionWay.HasValue)
|
|
|
+ cres.DetectionWay = (EnumDetectionWay)dto.CheckRes.DetectionWay;
|
|
|
+ else
|
|
|
+ cres.DetectionWay = null;
|
|
|
+ CheckRes = db.CheckRes.Add(cres);
|
|
|
+ }
|
|
|
+
|
|
|
var cgRes = db.CgRes.Add(new CgRes()
|
|
|
{
|
|
|
SigTime = dto.SigTime,
|
|
@@ -528,12 +613,15 @@ namespace XdCxRhDW.App.Controllers
|
|
|
TarFreqDown = dto.FreqDown,
|
|
|
});
|
|
|
var res = PosApi.X2D1_PosNoRef(cgRes, StationRes);
|
|
|
+
|
|
|
+ long? checkResId = null;
|
|
|
PosRes posRes = new PosRes()
|
|
|
{
|
|
|
FreqUpHz = (long)cgRes.TarFreqUp.Value,
|
|
|
SigTime = cgRes.SigTime,
|
|
|
TaskInfoID = runTask.ID,
|
|
|
CgResID = cgRes.ID,
|
|
|
+ CheckResID = CheckRes == null ? checkResId : CheckRes.ID,
|
|
|
TarName = string.IsNullOrWhiteSpace(dto.TarName) ? "未知目标" : dto.TarName,
|
|
|
TsName = dto.TsName,
|
|
|
PosLon = res[0],
|
|
@@ -621,6 +709,21 @@ namespace XdCxRhDW.App.Controllers
|
|
|
CdbTxLat = dto.CdbTxLat,
|
|
|
});
|
|
|
|
|
|
+ CheckRes CheckRes = null;
|
|
|
+ if (dto.CheckRes != null)
|
|
|
+ {
|
|
|
+ CheckRes cres = new CheckRes();
|
|
|
+ cres.SigTime = dto.CheckRes.SigTime;
|
|
|
+ cres.FileName = dto.CheckRes.FileName;
|
|
|
+ cres.StartSamp = dto.CheckRes.StartSamp;
|
|
|
+ cres.SampCount = dto.CheckRes.SampCount;
|
|
|
+ if (dto.CheckRes.DetectionWay.HasValue)
|
|
|
+ cres.DetectionWay = (EnumDetectionWay)dto.CheckRes.DetectionWay;
|
|
|
+ else
|
|
|
+ cres.DetectionWay = null;
|
|
|
+ CheckRes = db.CheckRes.Add(cres);
|
|
|
+ }
|
|
|
+
|
|
|
var cgRes = db.CgRes.Add(new CgRes()
|
|
|
{
|
|
|
SigTime = dto.SigTime,
|
|
@@ -652,12 +755,14 @@ namespace XdCxRhDW.App.Controllers
|
|
|
|
|
|
var res = PosApi.X2D1_PosNoRef(cgRes, StationRes);
|
|
|
|
|
|
+ long? checkResId = null;
|
|
|
PosRes posRes = new PosRes()
|
|
|
{
|
|
|
FreqUpHz = (long)cgRes.TarFreqUp.Value,
|
|
|
SigTime = dto.SigTime,
|
|
|
TaskInfoID = runTask.ID,
|
|
|
CgResID = cgRes.ID,
|
|
|
+ CheckResID = CheckRes == null ? checkResId : CheckRes.ID,
|
|
|
TarName = string.IsNullOrWhiteSpace(dto.TarName) ? "未知目标" : dto.TarName,
|
|
|
TsName = dto.TsName,
|
|
|
PosLon = res[0],
|
|
@@ -723,6 +828,21 @@ namespace XdCxRhDW.App.Controllers
|
|
|
RefLat = dto.RefLat,
|
|
|
});
|
|
|
|
|
|
+ CheckRes CheckRes = null;
|
|
|
+ if (dto.CheckRes != null)
|
|
|
+ {
|
|
|
+ CheckRes cres = new CheckRes();
|
|
|
+ cres.SigTime = dto.CheckRes.SigTime;
|
|
|
+ cres.FileName = dto.CheckRes.FileName;
|
|
|
+ cres.StartSamp = dto.CheckRes.StartSamp;
|
|
|
+ cres.SampCount = dto.CheckRes.SampCount;
|
|
|
+ if (dto.CheckRes.DetectionWay.HasValue)
|
|
|
+ cres.DetectionWay = (EnumDetectionWay)dto.CheckRes.DetectionWay;
|
|
|
+ else
|
|
|
+ cres.DetectionWay = null;
|
|
|
+ CheckRes = db.CheckRes.Add(cres);
|
|
|
+ }
|
|
|
+
|
|
|
var cgRes = db.CgRes.Add(new CgRes()
|
|
|
{
|
|
|
SigTime = dto.SigTime,
|
|
@@ -756,6 +876,7 @@ namespace XdCxRhDW.App.Controllers
|
|
|
|
|
|
var res = PosApi.RH_Pos(cgRes, StationRes, cxRes);
|
|
|
|
|
|
+ long? checkResId = null;
|
|
|
PosRes posRes = new PosRes()
|
|
|
{
|
|
|
FreqUpHz = (long)cgRes.TarFreqUp.Value,
|
|
@@ -763,6 +884,7 @@ namespace XdCxRhDW.App.Controllers
|
|
|
TaskInfoID = runTask.ID,
|
|
|
CxResID = cxRes.ID,
|
|
|
CgResID = cgRes.ID,
|
|
|
+ CheckResID = CheckRes == null ? checkResId : CheckRes.ID,
|
|
|
TarName = string.IsNullOrWhiteSpace(dto.TarName) ? "未知目标" : dto.TarName,
|
|
|
TsName = dto.TsName,
|
|
|
PosLon = res[0],
|
|
@@ -853,6 +975,22 @@ namespace XdCxRhDW.App.Controllers
|
|
|
RefLon = dto.RefLon,
|
|
|
RefLat = dto.RefLat,
|
|
|
});
|
|
|
+
|
|
|
+ CheckRes CheckRes = null;
|
|
|
+ if (dto.CheckRes != null)
|
|
|
+ {
|
|
|
+ CheckRes cres = new CheckRes();
|
|
|
+ cres.SigTime = dto.CheckRes.SigTime;
|
|
|
+ cres.FileName = dto.CheckRes.FileName;
|
|
|
+ cres.StartSamp = dto.CheckRes.StartSamp;
|
|
|
+ cres.SampCount = dto.CheckRes.SampCount;
|
|
|
+ if (dto.CheckRes.DetectionWay.HasValue)
|
|
|
+ cres.DetectionWay = (EnumDetectionWay)dto.CheckRes.DetectionWay;
|
|
|
+ else
|
|
|
+ cres.DetectionWay = null;
|
|
|
+ CheckRes = db.CheckRes.Add(cres);
|
|
|
+ }
|
|
|
+
|
|
|
var cgRes = db.CgRes.Add(new CgRes()
|
|
|
{
|
|
|
SigTime = dto.SigTime,
|
|
@@ -889,6 +1027,8 @@ namespace XdCxRhDW.App.Controllers
|
|
|
Fx = dto.CxRes,
|
|
|
});
|
|
|
var res = PosApi.RH_Pos(cgRes, StationRes, cxRes);
|
|
|
+
|
|
|
+ long? checkResId = null;
|
|
|
PosRes posRes = new PosRes()
|
|
|
{
|
|
|
FreqUpHz = (long)cgRes.TarFreqUp.Value,
|
|
@@ -896,6 +1036,7 @@ namespace XdCxRhDW.App.Controllers
|
|
|
TaskInfoID = runTask.ID,
|
|
|
CxResID = cxRes.ID,
|
|
|
CgResID = cgRes.ID,
|
|
|
+ CheckResID = CheckRes == null ? checkResId : CheckRes.ID,
|
|
|
TarName = string.IsNullOrWhiteSpace(dto.TarName) ? "未知目标" : dto.TarName,
|
|
|
TsName = dto.TsName,
|
|
|
PosLon = res[0],
|
|
@@ -957,6 +1098,21 @@ namespace XdCxRhDW.App.Controllers
|
|
|
RefLat = dto.RefLat,
|
|
|
});
|
|
|
|
|
|
+ CheckRes CheckRes = null;
|
|
|
+ if (dto.CheckRes != null)
|
|
|
+ {
|
|
|
+ CheckRes cres = new CheckRes();
|
|
|
+ cres.SigTime = dto.CheckRes.SigTime;
|
|
|
+ cres.FileName = dto.CheckRes.FileName;
|
|
|
+ cres.StartSamp = dto.CheckRes.StartSamp;
|
|
|
+ cres.SampCount = dto.CheckRes.SampCount;
|
|
|
+ if (dto.CheckRes.DetectionWay.HasValue)
|
|
|
+ cres.DetectionWay = (EnumDetectionWay)dto.CheckRes.DetectionWay;
|
|
|
+ else
|
|
|
+ cres.DetectionWay = null;
|
|
|
+ CheckRes = db.CheckRes.Add(cres);
|
|
|
+ }
|
|
|
+
|
|
|
var cgRes = db.CgRes.Add(new CgRes()
|
|
|
{
|
|
|
SigTime = dto.SigTime,
|
|
@@ -998,12 +1154,14 @@ namespace XdCxRhDW.App.Controllers
|
|
|
|
|
|
var res = PosApi.X3_Pos(cgRes, StationRes);
|
|
|
|
|
|
+ long? checkResId = null;
|
|
|
PosRes posRes = new PosRes()
|
|
|
{
|
|
|
FreqUpHz = (long)cgRes.TarFreqUp.Value,
|
|
|
SigTime = cgRes.SigTime,
|
|
|
TaskInfoID = runTask.ID,
|
|
|
CgResID = cgRes.ID,
|
|
|
+ CheckResID = CheckRes == null ? checkResId : CheckRes.ID,
|
|
|
TarName = string.IsNullOrWhiteSpace(dto.TarName) ? "未知目标" : dto.TarName,
|
|
|
TsName = dto.TsName,
|
|
|
PosLon = res[0],
|
|
@@ -1105,6 +1263,21 @@ namespace XdCxRhDW.App.Controllers
|
|
|
RefLat = dto.RefLat,
|
|
|
});
|
|
|
|
|
|
+ CheckRes CheckRes = null;
|
|
|
+ if (dto.CheckRes != null)
|
|
|
+ {
|
|
|
+ CheckRes cres = new CheckRes();
|
|
|
+ cres.SigTime = dto.CheckRes.SigTime;
|
|
|
+ cres.FileName = dto.CheckRes.FileName;
|
|
|
+ cres.StartSamp = dto.CheckRes.StartSamp;
|
|
|
+ cres.SampCount = dto.CheckRes.SampCount;
|
|
|
+ if (dto.CheckRes.DetectionWay.HasValue)
|
|
|
+ cres.DetectionWay = (EnumDetectionWay)dto.CheckRes.DetectionWay;
|
|
|
+ else
|
|
|
+ cres.DetectionWay = null;
|
|
|
+ CheckRes = db.CheckRes.Add(cres);
|
|
|
+ }
|
|
|
+
|
|
|
var cgRes = db.CgRes.Add(new CgRes()
|
|
|
{
|
|
|
SigTime = dto.SigTime,
|
|
@@ -1146,12 +1319,14 @@ namespace XdCxRhDW.App.Controllers
|
|
|
|
|
|
var res = PosApi.X3_Pos(cgRes, StationRes);
|
|
|
|
|
|
+ long? checkResId = null;
|
|
|
PosRes posRes = new PosRes()
|
|
|
{
|
|
|
FreqUpHz = (long)cgRes.TarFreqUp.Value,
|
|
|
SigTime = dto.SigTime,
|
|
|
TaskInfoID = runTask.ID,
|
|
|
CgResID = cgRes.ID,
|
|
|
+ CheckResID = CheckRes == null ? checkResId : CheckRes.ID,
|
|
|
TarName = string.IsNullOrWhiteSpace(dto.TarName) ? "未知目标" : dto.TarName,
|
|
|
TsName = dto.TsName,
|
|
|
PosLon = res[0],
|
|
@@ -1209,6 +1384,21 @@ namespace XdCxRhDW.App.Controllers
|
|
|
SatTxLat = dto.SatTxLat,
|
|
|
});
|
|
|
|
|
|
+ CheckRes CheckRes = null;
|
|
|
+ if (dto.CheckRes != null)
|
|
|
+ {
|
|
|
+ CheckRes cres = new CheckRes();
|
|
|
+ cres.SigTime = dto.CheckRes.SigTime;
|
|
|
+ cres.FileName = dto.CheckRes.FileName;
|
|
|
+ cres.StartSamp = dto.CheckRes.StartSamp;
|
|
|
+ cres.SampCount = dto.CheckRes.SampCount;
|
|
|
+ if (dto.CheckRes.DetectionWay.HasValue)
|
|
|
+ cres.DetectionWay = (EnumDetectionWay)dto.CheckRes.DetectionWay;
|
|
|
+ else
|
|
|
+ cres.DetectionWay = null;
|
|
|
+ CheckRes = db.CheckRes.Add(cres);
|
|
|
+ }
|
|
|
+
|
|
|
var cgRes = db.CgRes.Add(new CgRes()
|
|
|
{
|
|
|
SigTime = dto.SigTime,
|
|
@@ -1247,12 +1437,14 @@ namespace XdCxRhDW.App.Controllers
|
|
|
|
|
|
var res = PosApi.X3_PosNoRef(cgRes, StationRes);
|
|
|
|
|
|
+ long? checkResId = null;
|
|
|
PosRes posRes = new PosRes()
|
|
|
{
|
|
|
FreqUpHz = (long)cgRes.TarFreqUp.Value,
|
|
|
SigTime = cgRes.SigTime,
|
|
|
TaskInfoID = runTask.ID,
|
|
|
CgResID = cgRes.ID,
|
|
|
+ CheckResID = CheckRes == null ? checkResId : CheckRes.ID,
|
|
|
TarName = string.IsNullOrWhiteSpace(dto.TarName) ? "未知目标" : dto.TarName,
|
|
|
TsName = dto.TsName,
|
|
|
PosLon = res[0],
|
|
@@ -1352,6 +1544,21 @@ namespace XdCxRhDW.App.Controllers
|
|
|
SatTxLat = dto.SatTxLat,
|
|
|
});
|
|
|
|
|
|
+ CheckRes CheckRes = null;
|
|
|
+ if (dto.CheckRes != null)
|
|
|
+ {
|
|
|
+ CheckRes cres = new CheckRes();
|
|
|
+ cres.SigTime = dto.CheckRes.SigTime;
|
|
|
+ cres.FileName = dto.CheckRes.FileName;
|
|
|
+ cres.StartSamp = dto.CheckRes.StartSamp;
|
|
|
+ cres.SampCount = dto.CheckRes.SampCount;
|
|
|
+ if (dto.CheckRes.DetectionWay.HasValue)
|
|
|
+ cres.DetectionWay = (EnumDetectionWay)dto.CheckRes.DetectionWay;
|
|
|
+ else
|
|
|
+ cres.DetectionWay = null;
|
|
|
+ CheckRes = db.CheckRes.Add(cres);
|
|
|
+ }
|
|
|
+
|
|
|
var cgRes = db.CgRes.Add(new CgRes()
|
|
|
{
|
|
|
SigTime = dto.SigTime,
|
|
@@ -1390,12 +1597,14 @@ namespace XdCxRhDW.App.Controllers
|
|
|
|
|
|
var res = PosApi.X3_PosNoRef(cgRes, StationRes);
|
|
|
|
|
|
+ long? checkResId = null;
|
|
|
PosRes posRes = new PosRes()
|
|
|
{
|
|
|
FreqUpHz = (long)cgRes.TarFreqUp.Value,
|
|
|
SigTime = dto.SigTime,
|
|
|
TaskInfoID = runTask.ID,
|
|
|
CgResID = cgRes.ID,
|
|
|
+ CheckResID = CheckRes == null ? checkResId : CheckRes.ID,
|
|
|
TarName = string.IsNullOrWhiteSpace(dto.TarName) ? "未知目标" : dto.TarName,
|
|
|
TsName = dto.TsName,
|
|
|
PosLon = res[0],
|
|
@@ -1457,6 +1666,21 @@ namespace XdCxRhDW.App.Controllers
|
|
|
RefLat = dto.RefLat,
|
|
|
});
|
|
|
|
|
|
+ CheckRes CheckRes = null;
|
|
|
+ if (dto.CheckRes != null)
|
|
|
+ {
|
|
|
+ CheckRes cres = new CheckRes();
|
|
|
+ cres.SigTime = dto.CheckRes.SigTime;
|
|
|
+ cres.FileName = dto.CheckRes.FileName;
|
|
|
+ cres.StartSamp = dto.CheckRes.StartSamp;
|
|
|
+ cres.SampCount = dto.CheckRes.SampCount;
|
|
|
+ if (dto.CheckRes.DetectionWay.HasValue)
|
|
|
+ cres.DetectionWay = (EnumDetectionWay)dto.CheckRes.DetectionWay;
|
|
|
+ else
|
|
|
+ cres.DetectionWay = null;
|
|
|
+ CheckRes = db.CheckRes.Add(cres);
|
|
|
+ }
|
|
|
+
|
|
|
var cgRes = db.CgRes.Add(new CgRes()
|
|
|
{
|
|
|
SigTime = dto.SigTime,
|
|
@@ -1500,12 +1724,14 @@ namespace XdCxRhDW.App.Controllers
|
|
|
|
|
|
var res = PosApi.X3_PosTwoDfo(cgRes, StationRes);
|
|
|
|
|
|
+ long? checkResId = null;
|
|
|
PosRes posRes = new PosRes()
|
|
|
{
|
|
|
FreqUpHz = (long)cgRes.TarFreqUp.Value,
|
|
|
SigTime = cgRes.SigTime,
|
|
|
TaskInfoID = runTask.ID,
|
|
|
CgResID = cgRes.ID,
|
|
|
+ CheckResID = CheckRes == null ? checkResId : CheckRes.ID,
|
|
|
TarName = string.IsNullOrWhiteSpace(dto.TarName) ? "未知目标" : dto.TarName,
|
|
|
TsName = dto.TsName,
|
|
|
PosLon = res[0],
|
|
@@ -1607,6 +1833,21 @@ namespace XdCxRhDW.App.Controllers
|
|
|
RefLat = dto.RefLat,
|
|
|
});
|
|
|
|
|
|
+ CheckRes CheckRes = null;
|
|
|
+ if (dto.CheckRes != null)
|
|
|
+ {
|
|
|
+ CheckRes cres = new CheckRes();
|
|
|
+ cres.SigTime = dto.CheckRes.SigTime;
|
|
|
+ cres.FileName = dto.CheckRes.FileName;
|
|
|
+ cres.StartSamp = dto.CheckRes.StartSamp;
|
|
|
+ cres.SampCount = dto.CheckRes.SampCount;
|
|
|
+ if (dto.CheckRes.DetectionWay.HasValue)
|
|
|
+ cres.DetectionWay = (EnumDetectionWay)dto.CheckRes.DetectionWay;
|
|
|
+ else
|
|
|
+ cres.DetectionWay = null;
|
|
|
+ CheckRes = db.CheckRes.Add(cres);
|
|
|
+ }
|
|
|
+
|
|
|
var cgRes = db.CgRes.Add(new CgRes()
|
|
|
{
|
|
|
SigTime = dto.SigTime,
|
|
@@ -1650,12 +1891,14 @@ namespace XdCxRhDW.App.Controllers
|
|
|
|
|
|
var res = PosApi.X3_PosTwoDfo(cgRes, StationRes);
|
|
|
|
|
|
+ long? checkResId = null;
|
|
|
PosRes posRes = new PosRes()
|
|
|
{
|
|
|
FreqUpHz = (long)cgRes.TarFreqUp.Value,
|
|
|
SigTime = dto.SigTime,
|
|
|
TaskInfoID = runTask.ID,
|
|
|
CgResID = cgRes.ID,
|
|
|
+ CheckResID = CheckRes == null ? checkResId : CheckRes.ID,
|
|
|
TarName = string.IsNullOrWhiteSpace(dto.TarName) ? "未知目标" : dto.TarName,
|
|
|
TsName = dto.TsName,
|
|
|
PosLon = res[0],
|
|
@@ -1717,6 +1960,21 @@ namespace XdCxRhDW.App.Controllers
|
|
|
RefLat = dto.RefLat,
|
|
|
});
|
|
|
|
|
|
+ CheckRes CheckRes = null;
|
|
|
+ if (dto.CheckRes != null)
|
|
|
+ {
|
|
|
+ CheckRes cres = new CheckRes();
|
|
|
+ cres.SigTime = dto.CheckRes.SigTime;
|
|
|
+ cres.FileName = dto.CheckRes.FileName;
|
|
|
+ cres.StartSamp = dto.CheckRes.StartSamp;
|
|
|
+ cres.SampCount = dto.CheckRes.SampCount;
|
|
|
+ if (dto.CheckRes.DetectionWay.HasValue)
|
|
|
+ cres.DetectionWay = (EnumDetectionWay)dto.CheckRes.DetectionWay;
|
|
|
+ else
|
|
|
+ cres.DetectionWay = null;
|
|
|
+ CheckRes = db.CheckRes.Add(cres);
|
|
|
+ }
|
|
|
+
|
|
|
var cgRes = db.CgRes.Add(new CgRes()
|
|
|
{
|
|
|
SigTime = dto.SigTime,
|
|
@@ -1751,12 +2009,14 @@ namespace XdCxRhDW.App.Controllers
|
|
|
|
|
|
var res = PosApi.X2_PosDtoDfo(cgRes, StationRes);
|
|
|
|
|
|
+ long? checkResId = null;
|
|
|
PosRes posRes = new PosRes()
|
|
|
{
|
|
|
FreqUpHz = (long)cgRes.TarFreqUp.Value,
|
|
|
SigTime = cgRes.SigTime,
|
|
|
TaskInfoID = runTask.ID,
|
|
|
CgResID = cgRes.ID,
|
|
|
+ CheckResID = CheckRes == null ? checkResId : CheckRes.ID,
|
|
|
TarName = string.IsNullOrWhiteSpace(dto.TarName) ? "未知目标" : dto.TarName,
|
|
|
TsName = dto.TsName,
|
|
|
PosLon = res[0],
|
|
@@ -1844,6 +2104,21 @@ namespace XdCxRhDW.App.Controllers
|
|
|
RefLat = dto.RefLat,
|
|
|
});
|
|
|
|
|
|
+ CheckRes CheckRes = null;
|
|
|
+ if (dto.CheckRes != null)
|
|
|
+ {
|
|
|
+ CheckRes cres = new CheckRes();
|
|
|
+ cres.SigTime = dto.CheckRes.SigTime;
|
|
|
+ cres.FileName = dto.CheckRes.FileName;
|
|
|
+ cres.StartSamp = dto.CheckRes.StartSamp;
|
|
|
+ cres.SampCount = dto.CheckRes.SampCount;
|
|
|
+ if (dto.CheckRes.DetectionWay.HasValue)
|
|
|
+ cres.DetectionWay = (EnumDetectionWay)dto.CheckRes.DetectionWay;
|
|
|
+ else
|
|
|
+ cres.DetectionWay = null;
|
|
|
+ CheckRes = db.CheckRes.Add(cres);
|
|
|
+ }
|
|
|
+
|
|
|
var cgRes = db.CgRes.Add(new CgRes()
|
|
|
{
|
|
|
SigTime = dto.SigTime,
|
|
@@ -1877,13 +2152,14 @@ namespace XdCxRhDW.App.Controllers
|
|
|
});
|
|
|
|
|
|
var res = PosApi.X2_PosDtoDfo(cgRes, StationRes);
|
|
|
-
|
|
|
+ long? checkResId = null;
|
|
|
PosRes posRes = new PosRes()
|
|
|
{
|
|
|
FreqUpHz = (long)cgRes.TarFreqUp.Value,
|
|
|
SigTime = dto.SigTime,
|
|
|
TaskInfoID = runTask.ID,
|
|
|
CgResID = cgRes.ID,
|
|
|
+ CheckResID = CheckRes == null ? checkResId : CheckRes.ID,
|
|
|
TarName = string.IsNullOrWhiteSpace(dto.TarName) ? "未知目标" : dto.TarName,
|
|
|
TsName = dto.TsName,
|
|
|
PosLon = res[0],
|