|
@@ -700,17 +700,7 @@ namespace PLCTool.ViewModels.BasicConfigViewModel
|
|
|
bas_plc_test_scheme schEntity = _mapper.Map<BasicPlcTestSchemeDto, bas_plc_test_scheme>(schDto);
|
|
|
_basicPlcTestSchemeService.Add(schEntity);
|
|
|
|
|
|
- //清空已填写的内容
|
|
|
- ScheduleName = string.Empty;
|
|
|
- DeviceKindName = string.Empty;
|
|
|
- SelectTest = string.Empty;
|
|
|
- TestName = string.Empty;
|
|
|
- BeforeSelectJudge = string.Empty;
|
|
|
- SelectLogic = string.Empty;
|
|
|
- SelectInJudge = string.Empty;
|
|
|
- InSelectLogic = string.Empty;
|
|
|
- SelectOutJudge = string.Empty;
|
|
|
- OutSelectLogic = string.Empty;
|
|
|
+
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -738,8 +728,23 @@ namespace PLCTool.ViewModels.BasicConfigViewModel
|
|
|
AddOrEditDetailsToDb(id);
|
|
|
|
|
|
}
|
|
|
- //gen'x'g
|
|
|
+ //更新已有的测试项
|
|
|
GetExistSchs();
|
|
|
+ //清空已填写的内容
|
|
|
+
|
|
|
+ DeviceKindName = string.Empty;
|
|
|
+ SelectTest = string.Empty;
|
|
|
+ TestName = string.Empty;
|
|
|
+ BeforeSelectJudge = string.Empty;
|
|
|
+
|
|
|
+ SelectLogic = string.Empty;
|
|
|
+ SelectInJudge = string.Empty;
|
|
|
+ InSelectLogic = string.Empty;
|
|
|
+ SelectOutJudge = string.Empty;
|
|
|
+ OutSelectLogic = string.Empty;
|
|
|
+ BeforeConList = null;
|
|
|
+ InConList = null;
|
|
|
+ OutConList = null;
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|