From 21827fdf9c9e011b6c7ab3253ecc5269d268ce52 Mon Sep 17 00:00:00 2001 From: wugang <425674808@qq.com> Date: Fri, 30 Mar 2018 18:09:00 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9C=80=E6=B1=82=E5=8D=95No.139297?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BWP.B3_YunKen/BLActions/SaleForecastEmpIsSame.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/BWP.B3_YunKen/BLActions/SaleForecastEmpIsSame.cs b/BWP.B3_YunKen/BLActions/SaleForecastEmpIsSame.cs index 656e191..1895060 100644 --- a/BWP.B3_YunKen/BLActions/SaleForecastEmpIsSame.cs +++ b/BWP.B3_YunKen/BLActions/SaleForecastEmpIsSame.cs @@ -25,6 +25,13 @@ namespace BWP.B3_YunKen.BLActions public void Execute(IDmoContext context, object dmo, object parameter) { var forecast = dmo as SaleForecast; + if (parameter != null) { + var list = parameter.ToString().Split(',').ToList(); + if (list.Contains(BLContext.Current.User.Name)) { + return; + } + } + if (forecast.Employee_ID != null) { var empId = InnerBLUtil.GetDmoProperty(context.Session, "Employee_ID", new Tuple("User_ID", BLContext.Current.User.ID)); if (empId != null && empId != forecast.Employee_ID)