去掉登录页面调连接"冰箱串口失败"的提示
This commit is contained in:
parent
b7a395871d
commit
97287feb39
|
@ -234,7 +234,7 @@ namespace DM_Weight
|
|||
// 调试页面
|
||||
containerRegistry.RegisterForNavigation<DebugWindow, DebugWindowViewModel>();
|
||||
//主设置页面
|
||||
//containerRegistry.RegisterForNavigation<SettingMainWindow, SettingMainWindowViewModel>();
|
||||
containerRegistry.RegisterForNavigation<SettingMainWindow, SettingMainWindowViewModel>();
|
||||
////冰箱抽屉设置页面
|
||||
//containerRegistry.RegisterForNavigation<FridgeWindow, FridgeWindowViewModel>();
|
||||
|
||||
|
|
|
@ -624,18 +624,20 @@ namespace DM_Weight.Port
|
|||
{
|
||||
logger.Error("条码枪串口打开错误" + e.Message);
|
||||
}
|
||||
try
|
||||
{
|
||||
string FridgePortPath = ConfigurationManager.AppSettings["FridgePortPath"];
|
||||
logger.Info($"打开冰箱串口【{FridgePortPath}】");
|
||||
fridgeSerial = new SerialPort(FridgePortPath, 9600, Parity.None, 8);
|
||||
fridgeSerial.Open();
|
||||
logger.Info($"冰箱串口打开结果【{fridgeSerial.IsOpen}】");
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
logger.Error("冰箱串口打开错误" + e.Message);
|
||||
}
|
||||
#region 湘潭毒麻柜无冰箱
|
||||
//try
|
||||
//{
|
||||
// string FridgePortPath = ConfigurationManager.AppSettings["FridgePortPath"];
|
||||
// logger.Info($"打开冰箱串口【{FridgePortPath}】");
|
||||
// fridgeSerial = new SerialPort(FridgePortPath, 9600, Parity.None, 8);
|
||||
// fridgeSerial.Open();
|
||||
// logger.Info($"冰箱串口打开结果【{fridgeSerial.IsOpen}】");
|
||||
//}
|
||||
//catch (Exception e)
|
||||
//{
|
||||
// logger.Error("冰箱串口打开错误" + e.Message);
|
||||
//}
|
||||
#endregion
|
||||
if (_canBusExsit)
|
||||
{
|
||||
try
|
||||
|
|
|
@ -91,10 +91,10 @@ namespace DM_Weight.ViewModels
|
|||
get => _fingerMsg;
|
||||
set => SetProperty(ref _fingerMsg, value);
|
||||
}
|
||||
public bool FridgePortMsg
|
||||
{
|
||||
get => !_portUtil.fridgeSerial.IsOpen;
|
||||
}
|
||||
//public bool FridgePortMsg
|
||||
//{
|
||||
// get => !_portUtil.fridgeSerial.IsOpen;
|
||||
//}
|
||||
//录像机登录状态
|
||||
private bool _hikMsg;
|
||||
public bool HIKMsg
|
||||
|
|
|
@ -199,7 +199,7 @@
|
|||
<TextBlock Visibility="{Binding CanBusPortMsg, Converter={StaticResource BooleanToVisibilityConverter}}" Text="can总线串口连接失败" />
|
||||
<TextBlock Visibility="{Binding FingerMsg, Converter={StaticResource BooleanToVisibilityConverter}}" Text="指纹机连接失败" />
|
||||
<TextBlock Visibility="{Binding HIKMsg, Converter={StaticResource BooleanToVisibilityConverter}}" Text="录像机登录失败" />
|
||||
<TextBlock Visibility="{Binding FridgePortMsg, Converter={StaticResource BooleanToVisibilityConverter}}" Text="冰箱串口连接失败" />
|
||||
<!--<TextBlock Visibility="{Binding FridgePortMsg, Converter={StaticResource BooleanToVisibilityConverter}}" Text="冰箱串口连接失败" />-->
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
|
|
Loading…
Reference in New Issue