|
@@ -56,12 +56,7 @@ namespace PLCTool.ViewModels.BasicConfigViewModel
|
|
|
if (returnValue != null)
|
|
|
{
|
|
|
var plcCon = _mapper.Map<BasPlcItemConfigDto, bas_plc_item_config>(returnValue);
|
|
|
- var findPlc = allPLCConfigList.FirstOrDefault(x => (x.PlcAddress == returnValue.PlcAddress) || (x.PlcItem == returnValue.PlcAddress));
|
|
|
- if (findPlc != null)
|
|
|
- {
|
|
|
- MessageBox.Show("已有此PLC变量地址或名称,请更改名称!", "提示", MessageBoxButton.OKCancel, MessageBoxImage.Warning);
|
|
|
- return;
|
|
|
- }
|
|
|
+
|
|
|
//修改
|
|
|
plcCon.id = id;
|
|
|
bool isSucc = _iBasPlcItemConfigService.Edit(plcCon);
|