Exemple #1
0
 /// <summary>
 ///     报警组数据加载
 /// </summary>
 public void Load()
 {
     RealTimeRepositoryBase.RtDbContext.AlarmGroupSet.Load();
     RealTimeRepositoryBase.RtDbContext.AlarmSet.Load();
     foreach (AlarmBase alarm in RealTimeRepositoryBase.RtDbContext.AlarmSet.Local)
     {
         alarm.Variable = _iVariableRepository.FindVariableByPath(alarm.AbsolutePath);
     }
 }
 /// <summary>
 /// 根据变量Id提供的路径信息,遍历树查找变量
 /// </summary>
 /// <param name="absolutePath">变量全路径</param>
 /// <returns>返回变量对象,未找到返回null</returns>
 public VariableBase FindVariableByPath(string absolutePath)
 {
     return(_variableRepository.FindVariableByPath(absolutePath));
 }