public bool ExistsForTrip(FieldTrip trip)
 {
     if (trip != null)
     {
         return(ExistsForTrip(trip.Identity));
     }
     return(false);
 }
 public SamplingEvent Create(string name, FieldTrip trip, CompoundIdentity principalOrgId, ValueRange <DateTime> dateRange, string description)
 {
     if (trip != null)
     {
         return(Create(name, trip.Identity, principalOrgId, dateRange, description));
     }
     return(null);
 }
 public IEnumerable <SamplingEvent> GetForTrip(FieldTrip trip)
 {
     if (trip != null)
     {
         return(GetForTrip(trip.Identity));
     }
     return(null);
 }
Exemplo n.º 4
0
 public bool CanAddRemove(FieldTrip item)
 {
     if (item != null)
     {
         return(this.CanAddRemove() && FieldActivityManager.Instance.GetFieldTripProvider(this.Context).CanUpdate(item));
     }
     return(false);
 }
Exemplo n.º 5
0
 public bool Equals(FieldTrip other)
 {
     if (other != null)
     {
         return(this.Identity.Equals(other.Identity));
     }
     return(false);
 }
 public SamplingEvent Create(string name, FieldTrip trip, CompoundIdentity principalOrgId, DateTime startDate, string description)
 {
     return(Create(name, trip, principalOrgId, new ValueRange <DateTime>(startDate, DateTime.MaxValue), description));
 }
 public SamplingEvent Create(string name, FieldTrip trip, CompoundIdentity principalOrgId, string description)
 {
     return(Create(name, trip, principalOrgId, null, description));
 }
 public SamplingEvent Create(string name, FieldTrip trip, CompoundIdentity principalOrgId, ValueRange <DateTime> dateRange)
 {
     return(Create(name, trip, principalOrgId, dateRange, null));
 }
Exemplo n.º 9
0
 public abstract bool Remove(FieldTeam team, FieldTrip item);
Exemplo n.º 10
0
 public abstract bool Add(FieldTeam team, FieldTrip item);
Exemplo n.º 11
0
 public abstract bool Contains(FieldTeam team, FieldTrip item);
Exemplo n.º 12
0
 public abstract IEnumerable <FieldTeam> Get(FieldTrip item);
Exemplo n.º 13
0
 public abstract bool Delete(FieldTrip item);
Exemplo n.º 14
0
 public abstract bool Update(FieldTrip item);