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();