diff --git a/DM_Weight/ViewModels/AddToJiaoJieDialogViewModel.cs b/DM_Weight/ViewModels/AddToJiaoJieDialogViewModel.cs index 2a7e9a0..87fcc4f 100644 --- a/DM_Weight/ViewModels/AddToJiaoJieDialogViewModel.cs +++ b/DM_Weight/ViewModels/AddToJiaoJieDialogViewModel.cs @@ -264,7 +264,7 @@ namespace DM_Weight.ViewModels if (HomeWindowViewModel.Operator.Role != null && HomeWindowViewModel.Operator.Role.RoleName != "管理员") { //查看当前用户是否有所在药品抽屉的权限;1-2层所有人能开,其他6层管理员才能开 - bool bDrawer = ChannelStocks.Select(it => it.DrawerNo).Where(n => n > 2).Any(); + bool bDrawer = ChannelStocks.Select(it => it.DrawerNo).Where(n => n > 3).Any(); if (bDrawer) { AlertMsg alertMsg = new AlertMsg diff --git a/DM_Weight/ViewModels/ApplyInStockWindowViewModel.cs b/DM_Weight/ViewModels/ApplyInStockWindowViewModel.cs index 87408ac..0220bab 100644 --- a/DM_Weight/ViewModels/ApplyInStockWindowViewModel.cs +++ b/DM_Weight/ViewModels/ApplyInStockWindowViewModel.cs @@ -511,7 +511,7 @@ namespace DM_Weight.ViewModels if (HomeWindowViewModel.Operator.Role != null && HomeWindowViewModel.Operator.Role.RoleName != "管理员") { //查看当前用户是否有所在药品抽屉的权限;1-2层所有人能开,其他6层管理员才能开 - bool bDrawer = ChannelStocks.Select(it => it.DrawerNo).Where(n => n > 2).Any(); + bool bDrawer = ChannelStocks.Select(it => it.DrawerNo).Where(n => n > 3).Any(); if (bDrawer) { AlertMsg alertMsg = new AlertMsg diff --git a/DM_Weight/ViewModels/CheckStockWindowViewModel.cs b/DM_Weight/ViewModels/CheckStockWindowViewModel.cs index 08db0f2..4f40a7a 100644 --- a/DM_Weight/ViewModels/CheckStockWindowViewModel.cs +++ b/DM_Weight/ViewModels/CheckStockWindowViewModel.cs @@ -111,7 +111,7 @@ namespace DM_Weight.ViewModels if (HomeWindowViewModel.Operator.Role != null && HomeWindowViewModel.Operator.Role.RoleName != "管理员") { //查看当前用户是否有所在药品抽屉的权限;1-2层所有人能开,其他6层管理员才能开 - if (Convert.ToInt32(DrawerNo) > 2) + if (Convert.ToInt32(DrawerNo) > 3) { AlertMsg alertMsg = new AlertMsg { diff --git a/DM_Weight/ViewModels/DestoryEmptyDialogViewModel.cs b/DM_Weight/ViewModels/DestoryEmptyDialogViewModel.cs index e7e490b..2270c4d 100644 --- a/DM_Weight/ViewModels/DestoryEmptyDialogViewModel.cs +++ b/DM_Weight/ViewModels/DestoryEmptyDialogViewModel.cs @@ -202,7 +202,7 @@ namespace DM_Weight.ViewModels if (HomeWindowViewModel.Operator.Role != null && HomeWindowViewModel.Operator.Role.RoleName != "管理员") { //查看当前用户是否有所在药品抽屉的权限;1-2层所有人能开,其他6层管理员才能开 - if (_ChannelStock.DrawerNo>2) + if (_ChannelStock.DrawerNo>3) { AlertMsg alertMsg = new AlertMsg { diff --git a/DM_Weight/ViewModels/DrawerAddDrugWindowViewModel.cs b/DM_Weight/ViewModels/DrawerAddDrugWindowViewModel.cs index 5178512..ad587ec 100644 --- a/DM_Weight/ViewModels/DrawerAddDrugWindowViewModel.cs +++ b/DM_Weight/ViewModels/DrawerAddDrugWindowViewModel.cs @@ -128,7 +128,7 @@ namespace DM_Weight.ViewModels if (HomeWindowViewModel.Operator.Role != null && HomeWindowViewModel.Operator.Role.RoleName != "管理员") { //查看当前用户是否有所在药品抽屉的权限;1-2层所有人能开,其他6层管理员才能开 - if (DrawerNo>2) + if (DrawerNo>3) { AlertMsg alertMsg = new AlertMsg { diff --git a/DM_Weight/ViewModels/DrawerTakeDrugWindowViewModel.cs b/DM_Weight/ViewModels/DrawerTakeDrugWindowViewModel.cs index bc679c8..e97606e 100644 --- a/DM_Weight/ViewModels/DrawerTakeDrugWindowViewModel.cs +++ b/DM_Weight/ViewModels/DrawerTakeDrugWindowViewModel.cs @@ -138,7 +138,7 @@ namespace DM_Weight.ViewModels if (HomeWindowViewModel.Operator.Role != null && HomeWindowViewModel.Operator.Role.RoleName != "管理员") { //查看当前用户是否有所在药品抽屉的权限;1-2层所有人能开,其他6层管理员才能开 - if (DrawerNo>2) + if (DrawerNo>3) { AlertMsg alertMsg = new AlertMsg { diff --git a/DM_Weight/ViewModels/InvoiceAddDialogViewModel.cs b/DM_Weight/ViewModels/InvoiceAddDialogViewModel.cs index 6a41ccc..6a43716 100644 --- a/DM_Weight/ViewModels/InvoiceAddDialogViewModel.cs +++ b/DM_Weight/ViewModels/InvoiceAddDialogViewModel.cs @@ -178,7 +178,7 @@ namespace DM_Weight.ViewModels if (HomeWindowViewModel.Operator.Role != null && HomeWindowViewModel.Operator.Role.RoleName != "管理员") { //查看当前用户是否有所在药品抽屉的权限;1-2层所有人能开,其他6层管理员才能开 - bool bDrawer = ChannelStocks.Select(it => it.DrawerNo).Where(n => n > 2).Any(); + bool bDrawer = ChannelStocks.Select(it => it.DrawerNo).Where(n => n > 3).Any(); if (bDrawer) { AlertMsg alertMsg = new AlertMsg diff --git a/DM_Weight/ViewModels/InvoiceTakeDialogViewModel.cs b/DM_Weight/ViewModels/InvoiceTakeDialogViewModel.cs index 744790d..4cc90ad 100644 --- a/DM_Weight/ViewModels/InvoiceTakeDialogViewModel.cs +++ b/DM_Weight/ViewModels/InvoiceTakeDialogViewModel.cs @@ -253,7 +253,7 @@ namespace DM_Weight.ViewModels if (HomeWindowViewModel.Operator.Role != null && HomeWindowViewModel.Operator.Role.RoleName != "管理员") { //查看当前用户是否有所在药品抽屉的权限;1-2层所有人能开,其他6层管理员才能开 - bool bDrawer = ChannelStocks.Select(it => it.DrawerNo).Where(n => n > 2).Any(); + bool bDrawer = ChannelStocks.Select(it => it.DrawerNo).Where(n => n > 3).Any(); if (bDrawer) { AlertMsg alertMsg = new AlertMsg diff --git a/DM_Weight/ViewModels/OrderReturnDialogViewModel.cs b/DM_Weight/ViewModels/OrderReturnDialogViewModel.cs index e8be25e..97420d5 100644 --- a/DM_Weight/ViewModels/OrderReturnDialogViewModel.cs +++ b/DM_Weight/ViewModels/OrderReturnDialogViewModel.cs @@ -248,7 +248,7 @@ namespace DM_Weight.ViewModels if (HomeWindowViewModel.Operator.Role != null && HomeWindowViewModel.Operator.Role.RoleName != "管理员") { //查看当前用户是否有所在药品抽屉的权限;1-2层所有人能开,其他6层管理员才能开 - bool bDrawer = ChannelStocks.Select(it => it.DrawerNo).Where(n => n > 2).Any(); + bool bDrawer = ChannelStocks.Select(it => it.DrawerNo).Where(n => n > 3).Any(); if (bDrawer) { AlertMsg alertMsg = new AlertMsg diff --git a/DM_Weight/ViewModels/OrderTakeDialogViewModel.cs b/DM_Weight/ViewModels/OrderTakeDialogViewModel.cs index 5e1cfe4..0074927 100644 --- a/DM_Weight/ViewModels/OrderTakeDialogViewModel.cs +++ b/DM_Weight/ViewModels/OrderTakeDialogViewModel.cs @@ -251,7 +251,7 @@ namespace DM_Weight.ViewModels if (HomeWindowViewModel.Operator.Role != null && HomeWindowViewModel.Operator.Role.RoleName != "管理员") { //查看当前用户是否有所在药品抽屉的权限;1-2层所有人能开,其他6层管理员才能开 - bool bDrawer = ChannelStocks.Select(it => it.DrawerNo).Where(n => n > 2).Any(); + bool bDrawer = ChannelStocks.Select(it => it.DrawerNo).Where(n => n > 3).Any(); if (bDrawer) { AlertMsg alertMsg = new AlertMsg diff --git a/DM_Weight/ViewModels/ReturnDrugDialogViewModel.cs b/DM_Weight/ViewModels/ReturnDrugDialogViewModel.cs index 463c906..62dce20 100644 --- a/DM_Weight/ViewModels/ReturnDrugDialogViewModel.cs +++ b/DM_Weight/ViewModels/ReturnDrugDialogViewModel.cs @@ -194,7 +194,7 @@ namespace DM_Weight.ViewModels if (HomeWindowViewModel.Operator.Role != null && HomeWindowViewModel.Operator.Role.RoleName != "管理员") { //查看当前用户是否有所在药品抽屉的权限;1-2层所有人能开,其他6层管理员才能开 - bool bDrawer = ChannelStocks.Select(it => it.DrawerNo).Where(n => n > 2).Any(); + bool bDrawer = ChannelStocks.Select(it => it.DrawerNo).Where(n => n > 3).Any(); if (bDrawer) { AlertMsg alertMsg = new AlertMsg diff --git a/DM_Weight/ViewModels/ReturnEmptyDialogViewModel.cs b/DM_Weight/ViewModels/ReturnEmptyDialogViewModel.cs index 55e5830..6ef6eea 100644 --- a/DM_Weight/ViewModels/ReturnEmptyDialogViewModel.cs +++ b/DM_Weight/ViewModels/ReturnEmptyDialogViewModel.cs @@ -214,7 +214,7 @@ namespace DM_Weight.ViewModels if (HomeWindowViewModel.Operator.Role != null && HomeWindowViewModel.Operator.Role.RoleName != "管理员") { //查看当前用户是否有所在药品抽屉的权限;1-2层所有人能开,其他6层管理员才能开 - if (ChannelStock.DrawerNo>2) + if (ChannelStock.DrawerNo>3) { AlertMsg alertMsg = new AlertMsg { diff --git a/DM_Weight/ViewModels/SelfAddDialogViewModel.cs b/DM_Weight/ViewModels/SelfAddDialogViewModel.cs index 40aab68..8fcc929 100644 --- a/DM_Weight/ViewModels/SelfAddDialogViewModel.cs +++ b/DM_Weight/ViewModels/SelfAddDialogViewModel.cs @@ -172,7 +172,7 @@ namespace DM_Weight.ViewModels if (HomeWindowViewModel.Operator.Role != null && HomeWindowViewModel.Operator.Role.RoleName != "管理员") { //查看当前用户是否有所在药品抽屉的权限;1-2层所有人能开,其他6层管理员才能开 - bool bDrawer = ChannelStocks.Select(it => it.DrawerNo).Where(n => n > 2).Any(); + bool bDrawer = ChannelStocks.Select(it => it.DrawerNo).Where(n => n > 3).Any(); if (bDrawer) { AlertMsg alertMsg = new AlertMsg diff --git a/DM_Weight/ViewModels/SelfTakeDialogViewModel.cs b/DM_Weight/ViewModels/SelfTakeDialogViewModel.cs index 08a0a5a..3e9896e 100644 --- a/DM_Weight/ViewModels/SelfTakeDialogViewModel.cs +++ b/DM_Weight/ViewModels/SelfTakeDialogViewModel.cs @@ -168,7 +168,7 @@ namespace DM_Weight.ViewModels if (HomeWindowViewModel.Operator.Role != null && HomeWindowViewModel.Operator.Role.RoleName != "管理员") { //查看当前用户是否有所在药品抽屉的权限;1-2层所有人能开,其他6层管理员才能开 - bool bDrawer = ChannelStocks.Select(it => it.DrawerNo).Where(n => n > 2).Any(); + bool bDrawer = ChannelStocks.Select(it => it.DrawerNo).Where(n => n > 3).Any(); if (bDrawer) { AlertMsg alertMsg = new AlertMsg