示例#1
0
 public static bool HasPT(this ControllerModel c)
 {
     return(c.OVData.OVIngrepen.Any());
 }
示例#2
0
 public static bool HasHDKAR(this ControllerModel c)
 {
     return(c.OVData.HDIngrepen.Any(x => x.KAR));
 }
示例#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()));
 }
示例#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()));
 }
示例#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));
 }
示例#6
0
 public static bool HasKAR(this ControllerModel c)
 {
     return(c.OVData.OVIngrepen.Any(x => x.HasOVIngreepKAR()) ||
            c.OVData.HDIngrepen.Any(x => x.KAR));
 }
示例#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));
 }
示例#8
0
 public static IEnumerable <DetectorModel> GetAllDetectors(this ControllerModel c)
 {
     return(c.Fasen.SelectMany(x => x.Detectoren).Concat(c.Detectoren).Concat(c.SelectieveDetectoren));
 }
示例#9
0
 public static bool HasHDOpticom(this ControllerModel c)
 {
     return(c.OVData.HDIngrepen.Any(x => x.Opticom && !string.IsNullOrWhiteSpace(x.OpticomRelatedInput)));
 }
示例#10
0
 public static FaseCyclusModel GetFaseCyclus(this ControllerModel c, string naam)
 {
     return(c.Fasen.FirstOrDefault(x => x.Naam == naam));
 }
示例#11
0
 public static bool HasPTorHD(this ControllerModel c)
 {
     return(c.PrioData.PrioIngrepen.Any() ||
            c.PrioData.HDIngrepen.Any());
 }