Browse Source

需求单No.139297

master
wugang 7 years ago
parent
commit
21827fdf9c
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      BWP.B3_YunKen/BLActions/SaleForecastEmpIsSame.cs

+ 7
- 0
BWP.B3_YunKen/BLActions/SaleForecastEmpIsSame.cs View File

@ -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)


Loading…
Cancel
Save