From e48cafb7488475e57cf68108e98f5d5f336e2f8e Mon Sep 17 00:00:00 2001 From: maqiao <625215135@qq.com> Date: Tue, 20 Aug 2024 14:00:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A0=B8=E9=94=80=E5=A4=84?= =?UTF-8?q?=E6=96=B9=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DM_Weight/ViewModels/CheckOrderNewWindowViewModel.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/DM_Weight/ViewModels/CheckOrderNewWindowViewModel.cs b/DM_Weight/ViewModels/CheckOrderNewWindowViewModel.cs index 361ff65..8292a9e 100644 --- a/DM_Weight/ViewModels/CheckOrderNewWindowViewModel.cs +++ b/DM_Weight/ViewModels/CheckOrderNewWindowViewModel.cs @@ -95,8 +95,8 @@ namespace DM_Weight.ViewModels RequestData(); } } - private Visibility _isEnableList = Visibility.Collapsed; - public Visibility IsEnableList { get => _isEnableList; set => SetProperty(ref _isEnableList, value); } + private bool _isEnable = true; + public bool IsEnable { get => _isEnable; set => SetProperty(ref _isEnable, value); } private int _status = 0; public int Status { get => _status; set { SetProperty(ref _status, value); } } @@ -148,7 +148,6 @@ namespace DM_Weight.ViewModels int totalCount = 0; if (DrawerNo >= 0) { - IsEnableList = Visibility.Visible; //查询当前药箱归属的药师 string currentDrawerUser = SqlSugarHelper.Db.Queryable().Where(cl => cl.DrawerNo == DrawerNo + 1 && cl.MachineId == "DM5").Select(cl => cl.BelongUser).First();