From efd7e7815243f7ccba77ee077acfd3d22986c99c Mon Sep 17 00:00:00 2001 From: maqiao <625215135@qq.com> Date: Fri, 23 Aug 2024 09:39:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=BD=E5=B1=89=E5=8F=96=E8=8D=AF=E4=B8=AD?= =?UTF-8?q?=E6=89=93=E5=BC=80=E6=8A=BD=E5=B1=89=E6=97=B6ColNos=E4=B8=BA?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=95=B0=E9=87=8F=E7=9A=84=E5=BA=93=E4=BD=8D?= =?UTF-8?q?=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DM_Weight/ViewModels/DrawerTakeDrugWindowViewModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DM_Weight/ViewModels/DrawerTakeDrugWindowViewModel.cs b/DM_Weight/ViewModels/DrawerTakeDrugWindowViewModel.cs index ed47f23..a85cb36 100644 --- a/DM_Weight/ViewModels/DrawerTakeDrugWindowViewModel.cs +++ b/DM_Weight/ViewModels/DrawerTakeDrugWindowViewModel.cs @@ -143,7 +143,7 @@ namespace DM_Weight.ViewModels _portUtil.WindowName = "DrawerTakeDrugWindow"; _portUtil.BoardType = singleChannels.Count > 0 ? singleChannels[0].BoardType : 1; - _portUtil.ColNos = singleChannels.Select(it => it.ColNo).ToArray(); + _portUtil.ColNos = singleChannels.Where(it => it.TakeQuantity > 0).Select(it => it.ColNo).ToArray(); _portUtil.DrawerNo = DrawerNo; Dispatcher.CurrentDispatcher.BeginInvoke(DispatcherPriority.Normal, () => _portUtil.Start()) ;