|
@@ -115,8 +115,8 @@ namespace PLCTool.ViewModels.BasicConfigViewModel
|
|
|
{
|
|
|
//重新读取PLC
|
|
|
GetPprojectConfig();
|
|
|
- _logger.LogInformation($"修改项目成功");
|
|
|
- MessageBox.Show("修改项目成功", "确认", MessageBoxButton.OK, MessageBoxImage.Information);
|
|
|
+ _logger.LogInformation($"修改设备类型成功");
|
|
|
+ MessageBox.Show("修改设备类型成功", "确认", MessageBoxButton.OK, MessageBoxImage.Information);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -220,7 +220,7 @@ namespace PLCTool.ViewModels.BasicConfigViewModel
|
|
|
var findPlc = allDeviceKindList.FirstOrDefault(x => (x.DeviceKindName == returnValue.DeviceKindName) || (x.DeviceKindNo == returnValue.DeviceKindNo));
|
|
|
if (findPlc != null)
|
|
|
{
|
|
|
- MessageBox.Show("已有此项目名称或编号,请更改!", "提示", MessageBoxButton.OKCancel, MessageBoxImage.Warning);
|
|
|
+ MessageBox.Show("已有此设备类型名称或编号,请更改!", "提示", MessageBoxButton.OKCancel, MessageBoxImage.Warning);
|
|
|
return;
|
|
|
}
|
|
|
bool isSucc = _iBasicDeviceKindService.Add(deviceKindCon);
|
|
@@ -228,8 +228,8 @@ namespace PLCTool.ViewModels.BasicConfigViewModel
|
|
|
{
|
|
|
//重新读取PLC
|
|
|
GetPprojectConfig();
|
|
|
- _logger.LogInformation($"添加项目成功");
|
|
|
- MessageBox.Show("添加项目成功!", "确认", MessageBoxButton.OK, MessageBoxImage.Information);
|
|
|
+ _logger.LogInformation($"添加设备类型成功");
|
|
|
+ MessageBox.Show("添加设备类型成功!", "确认", MessageBoxButton.OK, MessageBoxImage.Information);
|
|
|
}
|
|
|
}
|
|
|
}
|