|
@@ -72,35 +72,35 @@ public class XCJJMission : Entity
|
|
|
{
|
|
|
foreach (AircraftXCJJ aircraftEntity in aircrafts)
|
|
|
{
|
|
|
- string key = aircraftEntity.AircraftId;
|
|
|
- if (!aircraftSJDatas.ContainsKey(key))
|
|
|
- {
|
|
|
- aircraftSJDatas[key] = new Dictionary<string, List<string>>();
|
|
|
- }
|
|
|
- if (!aircraftSJDatas[key].ContainsKey("识别成功率"))
|
|
|
- aircraftSJDatas[key]["识别成功率"] = new List<string>();
|
|
|
- aircraftSJDatas[key]["识别成功率"].Add("0");
|
|
|
- if (!aircraftSJDatas[key].ContainsKey("识别数量"))
|
|
|
- aircraftSJDatas[key]["识别数量"] = new List<string>();
|
|
|
- aircraftSJDatas[key]["识别数量"].Add("0");
|
|
|
- if (!aircraftSJDatas[key].ContainsKey("人员数量"))
|
|
|
- aircraftSJDatas[key]["人员数量"] = new List<string>();
|
|
|
- aircraftSJDatas[key]["人员数量"].Add(aircraftEntity.targetCount.ToString());
|
|
|
- if (!aircraftSJDatas[key].ContainsKey("任务准备时间"))
|
|
|
- aircraftSJDatas[key]["任务准备时间"] = new List<string>();
|
|
|
- aircraftSJDatas[key]["任务准备时间"].Add(aircraftEntity.TaskReadyTime.ToString());
|
|
|
- if (!aircraftSJDatas[key].ContainsKey("平均搜索时间"))
|
|
|
- aircraftSJDatas[key]["平均搜索时间"] = new List<string>();
|
|
|
- aircraftSJDatas[key]["平均搜索时间"].Add("0");
|
|
|
- if (!aircraftSJDatas[key].ContainsKey("平均救助时间"))
|
|
|
- aircraftSJDatas[key]["平均救助时间"] = new List<string>();
|
|
|
- aircraftSJDatas[key]["平均救助时间"].Add(aircraftEntity.resulttime.ToString());
|
|
|
- if (!aircraftSJDatas[key].ContainsKey("总飞行时间"))
|
|
|
- aircraftSJDatas[key]["总飞行时间"] = new List<string>();
|
|
|
- aircraftSJDatas[key]["总飞行时间"].Add(aircraftEntity.TotalTime.ToString());
|
|
|
- if (!aircraftSJDatas[key].ContainsKey("人员存活率"))
|
|
|
- aircraftSJDatas[key]["人员存活率"] = new List<string>();
|
|
|
- aircraftSJDatas[key]["人员存活率"].Add(aircraftEntity.Success ? aircraftEntity.targetCount.ToString() : "0");
|
|
|
+ //string key = aircraftEntity.AircraftId;
|
|
|
+ //if (!aircraftSJDatas.ContainsKey(key))
|
|
|
+ //{
|
|
|
+ // aircraftSJDatas[key] = new Dictionary<string, List<string>>();
|
|
|
+ //}
|
|
|
+ //if (!aircraftSJDatas[key].ContainsKey("识别成功率"))
|
|
|
+ // aircraftSJDatas[key]["识别成功率"] = new List<string>();
|
|
|
+ //aircraftSJDatas[key]["识别成功率"].Add("0");
|
|
|
+ //if (!aircraftSJDatas[key].ContainsKey("识别数量"))
|
|
|
+ // aircraftSJDatas[key]["识别数量"] = new List<string>();
|
|
|
+ //aircraftSJDatas[key]["识别数量"].Add("0");
|
|
|
+ //if (!aircraftSJDatas[key].ContainsKey("人员数量"))
|
|
|
+ // aircraftSJDatas[key]["人员数量"] = new List<string>();
|
|
|
+ //aircraftSJDatas[key]["人员数量"].Add(aircraftEntity.targetCount.ToString());
|
|
|
+ //if (!aircraftSJDatas[key].ContainsKey("任务准备时间"))
|
|
|
+ // aircraftSJDatas[key]["任务准备时间"] = new List<string>();
|
|
|
+ //aircraftSJDatas[key]["任务准备时间"].Add(aircraftEntity.TaskReadyTime.ToString());
|
|
|
+ //if (!aircraftSJDatas[key].ContainsKey("平均搜索时间"))
|
|
|
+ // aircraftSJDatas[key]["平均搜索时间"] = new List<string>();
|
|
|
+ //aircraftSJDatas[key]["平均搜索时间"].Add("0");
|
|
|
+ //if (!aircraftSJDatas[key].ContainsKey("平均救助时间"))
|
|
|
+ // aircraftSJDatas[key]["平均救助时间"] = new List<string>();
|
|
|
+ //aircraftSJDatas[key]["平均救助时间"].Add(aircraftEntity.resulttime.ToString());
|
|
|
+ //if (!aircraftSJDatas[key].ContainsKey("总飞行时间"))
|
|
|
+ // aircraftSJDatas[key]["总飞行时间"] = new List<string>();
|
|
|
+ //aircraftSJDatas[key]["总飞行时间"].Add(aircraftEntity.TotalTime.ToString());
|
|
|
+ //if (!aircraftSJDatas[key].ContainsKey("人员存活率"))
|
|
|
+ // aircraftSJDatas[key]["人员存活率"] = new List<string>();
|
|
|
+ //aircraftSJDatas[key]["人员存活率"].Add(aircraftEntity.Success ? aircraftEntity.targetCount.ToString() : "0");
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -161,7 +161,6 @@ public class XCJJMission : Entity
|
|
|
|
|
|
public void ReportSJ()
|
|
|
{
|
|
|
- //string data = DateTime.Now.ToString("yyyy-MM-dd");
|
|
|
string path = $"Reports/{date}/{MissionId}";
|
|
|
if (!Directory.Exists(path)) Directory.CreateDirectory(path);
|
|
|
foreach (var kv in singleReport)
|