Ver Fonte

医疗输出报告参数关联新的数据库参数

liyang há 3 meses atrás
pai
commit
a729083863

+ 2 - 2
Models/SimulationCommon/AircraftDB.cs

@@ -14,7 +14,7 @@ public class AircraftDB
     public object fjysj;
     public object fjssj;
 
-    public object f_zdqfzl; // 最大起飞重量
+    public object fzdqfzl; // 最大起飞重量
     public object f_zdzkl; // 最大载客数量
     public object f_fjzh; // 飞机载荷
     public object f_gyfjzh; // 高原飞机载荷
@@ -25,7 +25,7 @@ public class AircraftDB
     public object fzdnz;
     public object fzdwgz;
     //public float fzdqfzl;
-    // public float ffjkz;
+    public float ffjkz;
     public float fzdhc;
     // public float fxhsj;
     public object fqfpdc;

+ 21 - 21
SimulationServer/Component/SJStaticCapacityComponent.cs

@@ -308,8 +308,8 @@ public class SJStaticCapacityComponent : Component
         SJStaticCapacity.最大飞行速度 = db.fzdss == null ? "0" : db.fzdss.ToString();
         SJStaticCapacity.最大航程 = db.fzdhc == null ? "0" : db.fzdhc.ToString();
         SJStaticCapacity.设备可靠性 = "0.98";
-        SJStaticCapacity.信号覆盖范围 = db.f_xhfw == null ? "0" : db.f_xhfw.ToString();
-        SJStaticCapacity.导航精度 = db.f_dhjd == null ? "0" : db.f_dhjd.ToString();
+        SJStaticCapacity.信号覆盖范围 = "1";//db.f_xhfw == null ? "0" : db.f_xhfw.ToString();
+        SJStaticCapacity.导航精度 = "1";//db.f_dhjd == null ? "0" : db.f_dhjd.ToString();
         SJStaticCapacity.紧急着陆能力 = "可以着陆";
         SJStaticCapacity.抗风险能力 = db.fzdkcf == null ? "0" : db.fzdkcf.ToString();
 
@@ -328,11 +328,11 @@ public class SJStaticCapacityComponent : Component
         SJStaticCapacity.燃油效率 = (Convert.ToDouble(reportInfo["单机导航使用情况"]) / Convert.ToDouble(reportInfo["单机总油耗"])).ToString(); // 公里数/耗油量(L)
         SJStaticCapacity.存活率 = reportInfo["存活率"];
         SJStaticCapacity.环境适应性 = "当前环境下可以执行任务";
-        SJStaticCapacity.固定翼飞机空重等 = "";
-        SJStaticCapacity.发动机类型 = db.f_fdjlx == null ? "" : db.f_fdjlx.ToString();
+        SJStaticCapacity.固定翼飞机空重等 = db.ffjkz == null ? "0" : db.ffjkz.ToString();
+        SJStaticCapacity.发动机类型 = "涡轴发动机";//db.f_fdjlx == null ? "" : db.f_fdjlx.ToString();
         SJStaticCapacity.无人机翼展等 = "";
         SJStaticCapacity.旋翼直径 = db.fyzxyzj == null ? "0" : db.fyzxyzj.ToString();
-        SJStaticCapacity.固定翼飞机最大起飞重量等 = "";
+        SJStaticCapacity.固定翼飞机最大起飞重量等 = db.fzdqfzl == null ? "0" : db.fzdqfzl.ToString();
         SJStaticCapacity.无人机空重等 = "";
 
         SJStaticCapacity.执行任务飞机型号 = reportInfo["执行任务飞机型号"];
@@ -358,8 +358,8 @@ public class SJStaticCapacityComponent : Component
         SJStaticCapacity.最大飞行速度 = db.fzdss == null ? "0" : db.fzdss.ToString();
         SJStaticCapacity.最大航程 = db.fzdhc == null ? "0" : db.fzdhc.ToString();
         SJStaticCapacity.设备可靠性 = "0.98";
-        SJStaticCapacity.信号覆盖范围 = db.f_xhfw == null ? "0" : db.f_xhfw.ToString();
-        SJStaticCapacity.导航精度 = db.f_dhjd == null ? "0" : db.f_dhjd.ToString();
+        SJStaticCapacity.信号覆盖范围 = "1";//db.f_xhfw == null ? "0" : db.f_xhfw.ToString();
+        SJStaticCapacity.导航精度 = "1";//db.f_dhjd == null ? "0" : db.f_dhjd.ToString();
         SJStaticCapacity.紧急着陆能力 = "可以着陆";
         SJStaticCapacity.抗风险能力 = db.fzdkcf == null ? "0" : db.fzdkcf.ToString();
 
@@ -377,11 +377,11 @@ public class SJStaticCapacityComponent : Component
             SJStaticCapacity.航程利用率 = "0";
         SJStaticCapacity.燃油效率 = (Convert.ToDouble(reportInfo["单机导航使用情况"]) / Convert.ToDouble(reportInfo["单机总油耗"])).ToString(); // 公里数/耗油量(L)
         SJStaticCapacity.环境适应性 = "当前环境下可以执行任务";
-        SJStaticCapacity.固定翼飞机空重等 = "";
-        SJStaticCapacity.发动机类型 = db.f_fdjlx == null ? "" : db.f_fdjlx.ToString();
+        SJStaticCapacity.固定翼飞机空重等 = db.ffjkz == null ? "0" : db.ffjkz.ToString();
+        SJStaticCapacity.发动机类型 = "涡轴发动机";//db.f_fdjlx == null ? "" : db.f_fdjlx.ToString();
         SJStaticCapacity.无人机翼展等 = "";
         SJStaticCapacity.旋翼直径 = db.fyzxyzj == null ? "0" : db.fyzxyzj.ToString();
-        SJStaticCapacity.固定翼飞机最大起飞重量等 = "";
+        SJStaticCapacity.固定翼飞机最大起飞重量等 = db.fzdqfzl == null ? "0" : db.fzdqfzl.ToString();
         SJStaticCapacity.无人机空重等 = "";
 
         SJStaticCapacity.执行任务飞机型号 = reportInfo["执行任务飞机型号"];
@@ -407,8 +407,8 @@ public class SJStaticCapacityComponent : Component
         SJStaticCapacity.最大飞行速度 = db.fzdss == null ? "0" : db.fzdss.ToString();
         SJStaticCapacity.最大航程 = db.fzdhc == null ? "0" : db.fzdhc.ToString();
         SJStaticCapacity.设备可靠性 = "0.98";
-        SJStaticCapacity.信号覆盖范围 = db.f_xhfw == null ? "0" : db.f_xhfw.ToString();
-        SJStaticCapacity.导航精度 = db.f_dhjd == null ? "0" : db.f_dhjd.ToString();
+        SJStaticCapacity.信号覆盖范围 = "1";//db.f_xhfw == null ? "0" : db.f_xhfw.ToString();
+        SJStaticCapacity.导航精度 = "1";//db.f_dhjd == null ? "0" : db.f_dhjd.ToString();
         SJStaticCapacity.紧急着陆能力 = "可以着陆";
         SJStaticCapacity.抗风险能力 = db.fzdkcf == null ? "0" : db.fzdkcf.ToString();
 
@@ -426,11 +426,11 @@ public class SJStaticCapacityComponent : Component
             SJStaticCapacity.航程利用率 = "0";
         SJStaticCapacity.燃油效率 = (Convert.ToDouble(reportInfo["单机导航使用情况"]) / Convert.ToDouble(reportInfo["单机总油耗"])).ToString(); // 公里数/耗油量(L)
         SJStaticCapacity.环境适应性 = "当前环境下可以执行任务";
-        SJStaticCapacity.固定翼飞机空重等 = "";
-        SJStaticCapacity.发动机类型 = db.f_fdjlx == null ? "" : db.f_fdjlx.ToString();
+        SJStaticCapacity.固定翼飞机空重等 = db.ffjkz == null ? "0" : db.ffjkz.ToString();
+        SJStaticCapacity.发动机类型 = "喷气发动机";//db.f_fdjlx == null ? "" : db.f_fdjlx.ToString();
         SJStaticCapacity.无人机翼展等 = "";
         SJStaticCapacity.旋翼直径 = db.fyzxyzj == null ? "0" : db.fyzxyzj.ToString();
-        SJStaticCapacity.固定翼飞机最大起飞重量等 = "";
+        SJStaticCapacity.固定翼飞机最大起飞重量等 = db.fzdqfzl == null ? "0" : db.fzdqfzl.ToString();
         SJStaticCapacity.无人机空重等 = "";
 
         SJStaticCapacity.执行任务飞机型号 = reportInfo["执行任务飞机型号"];
@@ -508,8 +508,8 @@ public class SJStaticCapacityComponent : Component
         }
         else if (aricraftTpe == "固定翼")
         {
-            report["静态能力"].Add("固定翼飞机空重", SJStaticCapacity.固定翼飞机空重等.ToString());
-            report["静态能力"].Add("固定翼飞机最大起飞重量", SJStaticCapacity.固定翼飞机最大起飞重量等.ToString());
+            report["静态能力"].Add("固定翼飞机空重", SJStaticCapacity.固定翼飞机空重等.ToString());
+            report["静态能力"].Add("固定翼飞机最大起飞重量", SJStaticCapacity.固定翼飞机最大起飞重量等.ToString());
         }
         //else if (aricraftTpe == "无人机")
         //{
@@ -596,8 +596,8 @@ public class SJStaticCapacityComponent : Component
         }
         else if (aricraftTpe == "固定翼")
         {
-            report["静态能力"].Add("固定翼飞机空重", SJStaticCapacity.固定翼飞机空重等.ToString());
-            report["静态能力"].Add("固定翼飞机最大起飞重量", SJStaticCapacity.固定翼飞机最大起飞重量等.ToString());
+            report["静态能力"].Add("固定翼飞机空重", SJStaticCapacity.固定翼飞机空重等.ToString());
+            report["静态能力"].Add("固定翼飞机最大起飞重量", SJStaticCapacity.固定翼飞机最大起飞重量等.ToString());
         }
         //else if (aricraftTpe == "无人机")
         //{
@@ -691,8 +691,8 @@ public class SJStaticCapacityComponent : Component
         }
         else if (aricraftTpe == "固定翼")
         {
-            report["静态能力"].Add("固定翼飞机空重", SJStaticCapacity.固定翼飞机空重等.ToString());
-            report["静态能力"].Add("固定翼飞机最大起飞重量", SJStaticCapacity.固定翼飞机最大起飞重量等.ToString());
+            report["静态能力"].Add("固定翼飞机空重", SJStaticCapacity.固定翼飞机空重等.ToString());
+            report["静态能力"].Add("固定翼飞机最大起飞重量", SJStaticCapacity.固定翼飞机最大起飞重量等.ToString());
         }
         //else if (aricraftTpe == "无人机")
         //{

+ 2 - 2
SimulationServer/Entity/AircraftEntity.cs

@@ -42,8 +42,8 @@ public class AircraftEntity : Entity
         //Console.WriteLine("AircraftID:" + FlightPlanEditor.aircraftparameter.AircraftID);
         Db = Util.GetAircraftDefine(FlightPlanEditor.aircraftparameter.AircraftType, FlightPlanEditor.aircraftparameter.AircraftSubType, FlightPlanEditor.aircraftparameter.AircraftID);
 
-        if (Db.f_zdqfzl != null)
-            FlightPlanEditor.aircraftparameter.MaxTakeoffWeight = double.Parse(Db.f_zdqfzl.ToString());
+        if (Db.fzdqfzl != null)
+            FlightPlanEditor.aircraftparameter.MaxTakeoffWeight = double.Parse(Db.fzdqfzl.ToString());
         else
             FlightPlanEditor.aircraftparameter.MaxTakeoffWeight = 8000;
         if (Db.f_zdzkl != null)

+ 1 - 1
SimulationServer/Utils/Util.cs

@@ -52,7 +52,7 @@ public class Util
         {
             aircraftType,aircraftSubType,aircraftID,"1"
         });
-
+        //Console.WriteLine("飞机数据:" + content);
         //Log.Debug($"Type = {aircraftType}, SubType = {aircraftSubType}, ID = {aircraftID}");
         var define = JsonHelper.FromJson<AircraftDefine>(content);
 

BIN
SimulationServer/bin/Debug/net7.0/SimulationCommon.dll


BIN
SimulationServer/bin/Debug/net7.0/SimulationCommon.pdb


BIN
SimulationServer/bin/Debug/net7.0/SimulationServer.dll


BIN
SimulationServer/bin/Debug/net7.0/SimulationServer.exe


BIN
SimulationServer/bin/Debug/net7.0/SimulationServer.pdb