Bug fixed:

- Disable all the functions when Nc is disconnected.
- Areas config allowexternalBrowser
- IsRunning when Nc is in HOLD
This commit is contained in:
Lucio Maranta
2018-02-26 17:42:11 +01:00
parent 856a80f3fe
commit 14888e5a8a
6 changed files with 27 additions and 8 deletions
@@ -55,6 +55,20 @@ namespace Step.Database.Controllers
.ToList();
}
public List<DTORuntimeFunctionalityModel> FindAllFunctionsAndDisableAll()
{
return dbCtx
.FunctionsAccess
.Select( x => new DTORuntimeFunctionalityModel()
{
Id = x.FunctionAccessId,
Area = x.Area,
Name = x.Name,
Enabled = false
})
.ToList();
}
public List<DTORuntimeFunctionalityModel> GetFunctionsMappedWithPlc(List<FunctionalityModel> functionalityList)
{
return FunctionsAccessConfig // Find all function access