public PlanningElementWS(DateTime inDateDebut, DateTime inDateFin, EvenementWS inEvenement, LieuWS inLieu, int inNbPlacesReservees) { DateDebut = inDateDebut; DateFin = inDateFin; Evenement = inEvenement; Lieu = inLieu; NombresPlacesReservees = inNbPlacesReservees; }
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; }
public List<LieuWS> GetPlacesByEvent(EvenementWS ev) { List<Lieu> ll = BusinessManager.Instance.GetPlacesByEvent(ev.Guid); List<LieuWS> llWS = new List<LieuWS>(); foreach (Lieu l in ll) { llWS.Add(new LieuWS(l)); } return llWS; }
public List<PlanningElementWS> GetPlanningElementsByEvent(EvenementWS ev) { List<PlanningElement> lpl = BusinessManager.Instance.GetAllPlanningElement(); List<PlanningElementWS> resLpl = new List<PlanningElementWS>(); lpl.Where(pl => pl.MonEvenement.Guid == ev.Guid); foreach (PlanningElement p in lpl) { resLpl.Add(new PlanningElementWS(p)); } return resLpl; }
public static EvenementWS castFromEntitiesEvenements(EntitiesLayer.Evenement e) { EvenementWS ev; if (e is EntitiesLayer.Concert) { EntitiesLayer.Concert c = (EntitiesLayer.Concert)e; ev = new EvenementWS(c.Artistes, c.Description, c.Guid, c.Tarif, c.Titre, c.DispositionParticuliere, c.DureeEnMinutes, c.NombreLoges); } else { EntitiesLayer.Exposition ex = (EntitiesLayer.Exposition)e; ev = new EvenementWS(ex.NombreOeuvresExposees, ArtisteWS.castFromArtiste(ex.Artistes), ex.Description, ex.Guid, ex.Tarif, ex.Titre); } return ev; }