Compare commits

...

2 Commits

Author SHA1 Message Date
maqiao adf92e852d 添加消息提示 2024-02-27 16:50:36 +08:00
maqiao 2d5dabf977 修改串口 2024-02-27 09:33:40 +08:00
2 changed files with 15 additions and 3 deletions

View File

@ -40,11 +40,11 @@
<!-- 抽屉串口使用的协议232或者485 --> <!-- 抽屉串口使用的协议232或者485 -->
<add key="DrawerProtocol" value="485" /> <add key="DrawerProtocol" value="485" />
<!-- 抽屉串口的串口号 --> <!-- 抽屉串口的串口号 -->
<add key="DrawerPortPath" value="COM3" /> <add key="DrawerPortPath" value="COM18" />
<!-- can总线串口的串口号 --> <!-- can总线串口的串口号 -->
<add key="CanBusPortPath" value="COM9" /> <add key="CanBusPortPath" value="COM17" />
<!-- 条码枪串口的串口号 --> <!-- 条码枪串口的串口号 -->
<add key="ScanCodePortPath" value="COM11" /> <add key="ScanCodePortPath" value="COM111" />
<!-- 抽屉串口的串口号 --><!-- <!-- 抽屉串口的串口号 --><!--
<add key="DrawerPortPath" value="COM11" /> <add key="DrawerPortPath" value="COM11" />
--><!-- can总线串口的串口号 --><!-- --><!-- can总线串口的串口号 --><!--
@ -61,6 +61,8 @@
<add key="fingerIp" value="192.168.50.201"/> <add key="fingerIp" value="192.168.50.201"/>
<!--一个抽屉对应标签数--> <!--一个抽屉对应标签数-->
<add key="labelCount" value="2"/> <add key="labelCount" value="2"/>
<!--库存盘点17号库位线程等待时间毫秒-->
<add key="CheckSleepMilliseconds" value="500"/>
</appSettings> </appSettings>
</configuration> </configuration>

View File

@ -546,10 +546,20 @@ namespace DM_Weight.ViewModels
_portUtil.WriteQuantity(item.DrawerNo, item.ColNo, item.totalCount); _portUtil.WriteQuantity(item.DrawerNo, item.ColNo, item.totalCount);
//await Task.Delay(200); //await Task.Delay(200);
} }
SnackbarBackground = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#00e676"));
SnackbarMessageQueue.Enqueue("标签渲染完成!");
return;
} }
}); });
//GetChannelsByDrawerNo(); //GetChannelsByDrawerNo();
} }
else
{
SnackbarBackground = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#b71c1c"));
SnackbarMessageQueue.Enqueue("请选择库位");
return;
}
}); });
} }
public DelegateCommand BtnCloseCommand public DelegateCommand BtnCloseCommand