fyf преди 2 години
родител
ревизия
c0be26589c
променени са 3 файла, в които са добавени 23 реда и са изтрити 1 реда
  1. +17
    -0
      BPASmartClient.IoT/DataVClient.cs
  2. +3
    -1
      BPASmartClient/Control/DataVView.xaml
  3. +3
    -0
      BPASmartClient/Control/DataVView.xaml.cs

+ 17
- 0
BPASmartClient.IoT/DataVClient.cs Целия файл

@@ -91,6 +91,23 @@ namespace BPASmartClient.IoT

#region API调用
/// <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>
/// <param name="alarmTable"></param>


+ 3
- 1
BPASmartClient/Control/DataVView.xaml Целия файл

@@ -85,7 +85,9 @@
<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>
</StackPanel>

<StackPanel Orientation="Horizontal" Margin="0,20,0,0" >
<Button Margin="80,0,0,0" Tag="刷新" Click="Button_Click" >刷新大屏列表</Button>
</StackPanel>
</StackPanel>

<Grid Grid.Column="1" Margin="10">


+ 3
- 0
BPASmartClient/Control/DataVView.xaml.cs Целия файл

@@ -134,6 +134,9 @@ namespace BPASmartClient.Control
else
NoticeDemoViewModel.OpenMsg(EnumPromptType.Warn, MainViewModel.GetInstance().window, "提示", $"密码输入错误!");
break;
case "刷新":
DataVClient.GetInstance().RefreshTheListOfStores();
break;
}
}
}


Зареждане…
Отказ
Запис