|
@@ -99,21 +99,7 @@ namespace XdCxRhDW.App.WebAPI
|
|
|
return Success(Map(posRes));
|
|
|
}
|
|
|
}
|
|
|
- private PosResDto Map(PosRes res)
|
|
|
- {
|
|
|
- return new PosResDto()
|
|
|
- {
|
|
|
- ID = res.ID,
|
|
|
- SigTime = res.SigTime,
|
|
|
- TaskInfoID = res.TaskInfoID,
|
|
|
- TarName = string.IsNullOrWhiteSpace(res.TarName) ? "未知目标" : res.TarName,
|
|
|
- PosLon = res.PosLon,
|
|
|
- PosLat = res.PosLat,
|
|
|
- MirrLon = res.MirrLon,
|
|
|
- MirrLat = res.MirrLat,
|
|
|
- PosResType = (EnumPosResTypeDto)((int)res.PosResType)
|
|
|
- };
|
|
|
- }
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 一星一地测向带参定位(无星历)
|
|
|
/// </summary>
|
|
@@ -151,6 +137,10 @@ namespace XdCxRhDW.App.WebAPI
|
|
|
var content = await response.Content.ReadAsStringAsync();
|
|
|
var ephMain = JsonConvert.DeserializeObject<AjaxResult<SatEphDto>>(content).data;
|
|
|
|
|
|
+ //string url = string.Format("http://{0}:{1}/Api/Xl/Calc", IpHelper.GetLocalIp(), settings.HttpPort);
|
|
|
+ //var content = new StringContent(JsonConvert.SerializeObject(dto), System.Text.Encoding.UTF8, "application/json");
|
|
|
+ //var dmcResult = HttpHelper.PostRequest<IEnumerable<DetectResDto>>(uploadUri, content);
|
|
|
+
|
|
|
var StationRes = db.StationRes.Add(new StationRes()
|
|
|
{
|
|
|
SatTxLon = dto.SatTxLon,
|
|
@@ -1569,6 +1559,22 @@ namespace XdCxRhDW.App.WebAPI
|
|
|
}
|
|
|
#endregion
|
|
|
|
|
|
+ private PosResDto Map(PosRes res)
|
|
|
+ {
|
|
|
+ return new PosResDto()
|
|
|
+ {
|
|
|
+ ID = res.ID,
|
|
|
+ SigTime = res.SigTime,
|
|
|
+ TaskInfoID = res.TaskInfoID,
|
|
|
+ TarName = string.IsNullOrWhiteSpace(res.TarName) ? "未知目标" : res.TarName,
|
|
|
+ PosLon = res.PosLon,
|
|
|
+ PosLat = res.PosLat,
|
|
|
+ MirrLon = res.MirrLon,
|
|
|
+ MirrLat = res.MirrLat,
|
|
|
+ PosResType = (EnumPosResTypeDto)((int)res.PosResType)
|
|
|
+ };
|
|
|
+ }
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 查询定位结果(暂未实现)
|
|
|
/// </summary>
|