|
|
@@ -67,7 +67,7 @@ namespace BPASmartClient.JXJFoodSmallStation.ViewModel |
|
|
|
|
|
|
|
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); |
|
|
|
//NoticeDemoViewModel.OpenMsg(EnumPromptType.Success, App.MainWindow, "提示", $"{o.ToString()}:原料删除成功!"); |
|
|
|
}); |
|
|
|