Пример #1
0
 public PlanningElementWS(DateTime inDateDebut, DateTime inDateFin, EvenementWS inEvenement, LieuWS inLieu, int inNbPlacesReservees)
 {
     DateDebut = inDateDebut;
     DateFin = inDateFin;
     Evenement = inEvenement;
     Lieu = inLieu;
     NombresPlacesReservees = inNbPlacesReservees;
 }
Пример #2
0
 public PlanningElementWS(PlanningElement pe)
 {
     DateDebut = pe.DateDebut;
     DateFin = pe.DateFin;
     Guid = pe.Guid;
     MonEvenement = new EvenementWS(pe.MonEvenement);
     MonLieu = new LieuWS(pe.MonLieu);
     NombrePlacesReservees = pe.NombrePlacesReservees;
 }
Пример #3
0
        public List<PlanningElementWS> GetPlanningElementsByPlace(LieuWS l)
        {
            List<PlanningElement> lpl = BusinessManager.Instance.GetAllPlanningElement();
            List<PlanningElementWS> resLpl = new List<PlanningElementWS>();

            lpl.Where(pl => pl.MonLieu.Guid == l.Guid);

            foreach (PlanningElement p in lpl)
            {
                resLpl.Add(new PlanningElementWS(p));
            }

            return resLpl;
        }