Exemplo n.º 1
0
 public static bool HasPT(this ControllerModel c)
 {
     return(c.OVData.OVIngrepen.Any());
 }
Exemplo n.º 2
0
 public static bool HasHDKAR(this ControllerModel c)
 {
     return(c.OVData.HDIngrepen.Any(x => x.KAR));
 }
Exemplo n.º 3
0
 public static bool HasVecom(this ControllerModel c)
 {
     return(c.SelectieveDetectoren.Any(x => x.SdType == SelectieveDetectorTypeEnum.VECOM) &&
            c.OVData.OVIngrepen.Any(x => x.HasOVIngreepVecom()));
 }
Exemplo n.º 4
0
 public static bool HasVecomIO(this ControllerModel c)
 {
     return(c.GetAllDetectors(x => x.Type == DetectorTypeEnum.VecomDetector).Any() &&
            c.OVData.OVIngrepen.Any(x => x.HasOVIngreepVecomIO()));
 }
Exemplo n.º 5
0
 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));
 }
Exemplo n.º 6
0
 public static bool HasKAR(this ControllerModel c)
 {
     return(c.OVData.OVIngrepen.Any(x => x.HasOVIngreepKAR()) ||
            c.OVData.HDIngrepen.Any(x => x.KAR));
 }
Exemplo n.º 7
0
 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));
 }
Exemplo n.º 8
0
 public static IEnumerable <DetectorModel> GetAllDetectors(this ControllerModel c)
 {
     return(c.Fasen.SelectMany(x => x.Detectoren).Concat(c.Detectoren).Concat(c.SelectieveDetectoren));
 }
Exemplo n.º 9
0
 public static bool HasHDOpticom(this ControllerModel c)
 {
     return(c.OVData.HDIngrepen.Any(x => x.Opticom && !string.IsNullOrWhiteSpace(x.OpticomRelatedInput)));
 }
Exemplo n.º 10
0
 public static FaseCyclusModel GetFaseCyclus(this ControllerModel c, string naam)
 {
     return(c.Fasen.FirstOrDefault(x => x.Naam == naam));
 }
Exemplo n.º 11
0
 public static bool HasPTorHD(this ControllerModel c)
 {
     return(c.PrioData.PrioIngrepen.Any() ||
            c.PrioData.HDIngrepen.Any());
 }