@@ -91,6 +91,23 @@ namespace BPASmartClient.IoT | |||||
#region API调用 | #region API调用 | ||||
/// <summary> | /// <summary> | ||||
/// 刷新店铺列表 | |||||
/// </summary> | |||||
public void RefreshTheListOfStores() | |||||
{ | |||||
try | |||||
{ | |||||
if (DeviceDataV != null && DeviceDataV.GetIsConnected() && DeviceDataV.deviceTable != null) | |||||
{ | |||||
DeviceDataV.IOT_Publish(BroadcastPubTopic, Tools.JsonConvertTools("刷新店铺列表")); | |||||
} | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
MessageLog.GetInstance.Show(ex.Message); | |||||
} | |||||
} | |||||
/// <summary> | |||||
/// 增加告警信息 | /// 增加告警信息 | ||||
/// </summary> | /// </summary> | ||||
/// <param name="alarmTable"></param> | /// <param name="alarmTable"></param> | ||||
@@ -85,7 +85,9 @@ | |||||
<Button Margin="80,0,0,0" Tag="Save" Click="Button_Click" >保存text</Button> | <Button Margin="80,0,0,0" Tag="Save" Click="Button_Click" >保存text</Button> | ||||
<Button Margin="20,0,0,0" Tag="Insert" Click="Button_Click" >导入text</Button> | <Button Margin="20,0,0,0" Tag="Insert" Click="Button_Click" >导入text</Button> | ||||
</StackPanel> | </StackPanel> | ||||
<StackPanel Orientation="Horizontal" Margin="0,20,0,0" > | |||||
<Button Margin="80,0,0,0" Tag="刷新" Click="Button_Click" >刷新大屏列表</Button> | |||||
</StackPanel> | |||||
</StackPanel> | </StackPanel> | ||||
<Grid Grid.Column="1" Margin="10"> | <Grid Grid.Column="1" Margin="10"> | ||||
@@ -134,6 +134,9 @@ namespace BPASmartClient.Control | |||||
else | else | ||||
NoticeDemoViewModel.OpenMsg(EnumPromptType.Warn, MainViewModel.GetInstance().window, "提示", $"密码输入错误!"); | NoticeDemoViewModel.OpenMsg(EnumPromptType.Warn, MainViewModel.GetInstance().window, "提示", $"密码输入错误!"); | ||||
break; | break; | ||||
case "刷新": | |||||
DataVClient.GetInstance().RefreshTheListOfStores(); | |||||
break; | |||||
} | } | ||||
} | } | ||||
} | } | ||||