12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- using KYFramework;
- using Model;
- namespace SimulationServer;
- public class Economical
- {
- //单机飞行员人数
- public string 单机飞行员人数;
- // 单机飞行工程师人数
- public string 单机飞行工程师人数;
- //单机地面保障人数
- public string 单机地面保障人数;
- // 机场情况
- public string 机场情况;
- //水库情况
- public string 水库情况;
- // 阻燃剂用量
- public string 阻燃剂用量;
- //泡沫用量
- public string 泡沫用量;
- // 单机总油耗
- public string 单机总油耗;
- //单机机场使用情况
- public string 单机机场使用情况;
- // 单机导航使用情况
- public string 单机导航使用情况;
- }
- public class EconomicalComponent : Component
- {
- public Economical Economical = new Economical();
-
- public void FillData()
- {
- Economical.单机飞行员人数 = "1";
- Economical.单机飞行工程师人数 = "1";
- Economical.单机地面保障人数 = "2";
- Economical.机场情况 = "自有";
- Economical.水库情况 = "自有";
- Economical.阻燃剂用量 = "0";
- Economical.泡沫用量 = "0";
- Economical.单机总油耗 = GetParent<AircraftMH>().TotalFuelConsumption.ToString("#0.00");
- Economical.单机机场使用情况 = GetParent<AircraftMH>().Airport;
- Economical.单机导航使用情况 = "0";
- }
-
- public Dictionary<string, Dictionary<string, string>> GetReport()
- {
- Dictionary<string, Dictionary<string, string>> report = new Dictionary<string, Dictionary<string, string>>();
- report["经济性"] = new Dictionary<string, string>
- {
- { "单机飞行员人数/人", Economical.单机飞行员人数.ToString() },
- { "单机飞行工程师人数/人", Economical.单机飞行工程师人数.ToString() },
- { "单机地面保障人数/人", Economical.单机地面保障人数.ToString() },
- { "机场情况/-", Economical.机场情况.ToString() },
- { "水库情况/-", Economical.水库情况.ToString() },
- { "阻燃剂用量/-", Economical.阻燃剂用量.ToString() },
- { "泡沫用量/-", Economical.泡沫用量.ToString() },
- { "单机总油耗/kg", Economical.单机总油耗.ToString() },
- { "单机机场使用情况/-", Economical.单机机场使用情况.ToString() },
- { "单机导航使用情况/-", Economical.单机导航使用情况.ToString() }
- };
- return report;
- }
- }
|