diff --git a/DM_Weight/App.config b/DM_Weight/App.config
index 11a94e6..d8b9827 100644
--- a/DM_Weight/App.config
+++ b/DM_Weight/App.config
@@ -54,9 +54,9 @@
-
+
-
+
diff --git a/DM_Weight/ViewModels/CheckStockWindowViewModel.cs b/DM_Weight/ViewModels/CheckStockWindowViewModel.cs
index 2e46b39..e91c9f8 100644
--- a/DM_Weight/ViewModels/CheckStockWindowViewModel.cs
+++ b/DM_Weight/ViewModels/CheckStockWindowViewModel.cs
@@ -141,7 +141,7 @@ namespace DM_Weight.ViewModels
// 完成按钮
public DelegateCommand TakeFinish
{
- get => new DelegateCommand(() =>
+ get => new DelegateCommand(async() =>
{
_isFinishClick = true;
List record = ChannelStocks.FindAll(it => it.Quantity != it.CheckQuantity).ToList();
@@ -206,7 +206,16 @@ namespace DM_Weight.ViewModels
_portUtil.WriteQuantity(it.DrawerNo, it.ColNo, it.CheckQuantity);
});
}
-
+ if ((singleChannels.Count > 0 ? singleChannels[0].BoardType : 1) == 35)
+ {
+ for (int i = 0; i < singleChannels.Count; i++)
+ {
+ await Task.Delay(200);
+ await _portUtil.WriteChannelInfoMethod(2, (singleChannels[i].CheckQuantity).ToString(), singleChannels[i].DrawerNo, singleChannels[i].ColNo);
+ await Task.Delay(200);
+ await _portUtil.ShowContentMethod(singleChannels[i].DrawerNo, singleChannels[i].ColNo);
+ }
+ }
RequestData();
AlertMsg alertMsg = new AlertMsg
{