|
|
|
@ -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<User_Employee, long?>(context.Session, "Employee_ID", new Tuple<string, object>("User_ID", BLContext.Current.User.ID)); |
|
|
|
if (empId != null && empId != forecast.Employee_ID) |
|
|
|
|