public static bool HasPT(this ControllerModel c) { return(c.OVData.OVIngrepen.Any()); }
public static bool HasHDKAR(this ControllerModel c) { return(c.OVData.HDIngrepen.Any(x => x.KAR)); }
public static bool HasVecom(this ControllerModel c) { return(c.SelectieveDetectoren.Any(x => x.SdType == SelectieveDetectorTypeEnum.VECOM) && c.OVData.OVIngrepen.Any(x => x.HasOVIngreepVecom())); }
public static bool HasVecomIO(this ControllerModel c) { return(c.GetAllDetectors(x => x.Type == DetectorTypeEnum.VecomDetector).Any() && c.OVData.OVIngrepen.Any(x => x.HasOVIngreepVecomIO())); }
public static bool HasDSI(this ControllerModel c) { return(c.OVData.OVIngrepen.Any(x => x.HasOVIngreepDSI()) || c.OVData.HDIngrepen.Any(x => x.KAR) || c.SelectieveDetectoren.Any(x => x.SdType == SelectieveDetectorTypeEnum.VECOM)); }
public static bool HasKAR(this ControllerModel c) { return(c.OVData.OVIngrepen.Any(x => x.HasOVIngreepKAR()) || c.OVData.HDIngrepen.Any(x => x.KAR)); }
public static IEnumerable <DetectorModel> GetAllDetectors(this ControllerModel c, Func <DetectorModel, bool> predicate) { return(c.Fasen.SelectMany(x => x.Detectoren).Concat(c.Detectoren).Concat(c.SelectieveDetectoren).Where(predicate)); }
public static IEnumerable <DetectorModel> GetAllDetectors(this ControllerModel c) { return(c.Fasen.SelectMany(x => x.Detectoren).Concat(c.Detectoren).Concat(c.SelectieveDetectoren)); }
public static bool HasHDOpticom(this ControllerModel c) { return(c.OVData.HDIngrepen.Any(x => x.Opticom && !string.IsNullOrWhiteSpace(x.OpticomRelatedInput))); }
public static FaseCyclusModel GetFaseCyclus(this ControllerModel c, string naam) { return(c.Fasen.FirstOrDefault(x => x.Naam == naam)); }
public static bool HasPTorHD(this ControllerModel c) { return(c.PrioData.PrioIngrepen.Any() || c.PrioData.HDIngrepen.Any()); }