Commit f4854af3 张东亮

上报添加小车类型

1 个父辈 8ba67d1d
...@@ -4,6 +4,6 @@ ...@@ -4,6 +4,6 @@
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" /> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
</startup> </startup>
<appSettings> <appSettings>
<add key="ProName" value="AGVDispatch-任务中断问题修复" /> <add key="ProName" value="AGVDispatch-上报添加小车类型" />
</appSettings> </appSettings>
</configuration> </configuration>
\ No newline at end of file \ No newline at end of file
...@@ -286,6 +286,10 @@ namespace DeviceLib.BLL ...@@ -286,6 +286,10 @@ namespace DeviceLib.BLL
/// </summary> /// </summary>
public string loc { get; set; } public string loc { get; set; }
/// <summary> /// <summary>
/// 小车类型
/// </summary>
public int type { get; set; }
/// <summary>
/// 错误消息 /// 错误消息
/// </summary> /// </summary>
public string message { get; set; } public string message { get; set; }
......
...@@ -137,6 +137,7 @@ namespace DeviceLib.BLL ...@@ -137,6 +137,7 @@ namespace DeviceLib.BLL
{ {
name = robot.name, name = robot.name,
elec = robot?.status?.battery_percentage.ToString("f2"), elec = robot?.status?.battery_percentage.ToString("f2"),
type= robot.id
}; };
if(robot.job!=null) if(robot.job!=null)
{ {
...@@ -154,7 +155,7 @@ namespace DeviceLib.BLL ...@@ -154,7 +155,7 @@ namespace DeviceLib.BLL
} }
else else
{ {
agv.loc = "STANDBY"; agv.loc = "";
} }
} }
else else
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!