|
@@ -54,7 +54,7 @@ namespace BPASmartClient.JXJFoodSmallStation.ViewModel |
|
|
}), "LocalRecipeEdit", true); |
|
|
}), "LocalRecipeEdit", true); |
|
|
RemoveCommand = new RelayCommand<object>((o) => |
|
|
RemoveCommand = new RelayCommand<object>((o) => |
|
|
{ |
|
|
{ |
|
|
var res = AllRawMaterial.FirstOrDefault(p => p.RawMaterialLocation == (int)o); |
|
|
|
|
|
|
|
|
var res = AllRawMaterial.FirstOrDefault(p => p.RawMaterialName == o.ToString()); |
|
|
if (res != null) AllRawMaterial.Remove(res); |
|
|
if (res != null) AllRawMaterial.Remove(res); |
|
|
//NoticeDemoViewModel.OpenMsg(EnumPromptType.Success, App.MainWindow, "提示", $"{o.ToString()}:原料删除成功!"); |
|
|
//NoticeDemoViewModel.OpenMsg(EnumPromptType.Success, App.MainWindow, "提示", $"{o.ToString()}:原料删除成功!"); |
|
|
}); |
|
|
}); |
|
|