Esempio n. 1
0
        public override bool SelectPodlaId(object paIdEntity)
        {
            Stlp   = new SStlp();
            Sluzba = new SSluzba();
            bool b1 = base.SelectPodlaId(paIdEntity);
            bool b2 = Stlp.SelectPodlaId(Cislo);
            bool b3 = Sluzba.SelectPodlaId(IdSluzby);

            return(b1 && b2 && b3);
        }
        public override bool SelectPodlaId(object paIdEntity)
        {
            Sluzba       = new SSluzba();
            LampaNaStlpe = new SLampaNaStlpe();
            bool b1 = base.SelectPodlaId(paIdEntity);
            bool b2 = Sluzba.SelectPodlaId(IdSluzby);
            bool b3 = LampaNaStlpe.SelectPodlaId(IdLampy);

            return(b1 && b2 && b3);
        }
Esempio n. 3
0
 public override bool SelectPodlaId(object paIdEntity)
 {
     Sluzba       = new SSluzba();
     ObsluhaLampy = new SObsluhaLampy();
     ObsluhaStlpu = new SObsluhaStlpu();
     if (base.SelectPodlaId(paIdEntity) && Sluzba.SelectPodlaId(IdSluzby) == false)
     {
         return(false);
     }
     ObsluhaLampy = ObsluhaLampy.SelectPodlaId(IdSluzby) ? ObsluhaLampy : null;
     ObsluhaStlpu = ObsluhaStlpu.SelectPodlaId(IdSluzby) ? ObsluhaStlpu : null;
     return(ObsluhaStlpu != null || ObsluhaLampy != null);
 }