Exemple #1
0
 public bool CanAddRemove(FieldActivity item)
 {
     if (item != null)
     {
         return(this.CanAddRemove() && FieldActivityManager.Instance.GetFieldActivityProvider(this.Context).CanUpdate(item));
     }
     return(false);
 }
Exemple #2
0
 public bool Equals(FieldActivity other)
 {
     if (other != null)
     {
         return(this.Identity.Equals(other.Identity));
     }
     return(false);
 }
 public FieldTrip Create(string name, FieldActivity activity, CompoundIdentity principalOrgId, ValueRange <DateTime> dateRange, string description)
 {
     if (activity != null)
     {
         return(Create(name, activity.Identity, principalOrgId, dateRange, null));
     }
     else
     {
         return(null);
     }
 }
Exemple #4
0
 public abstract bool Delete(FieldActivity item);
Exemple #5
0
 public abstract bool Update(FieldActivity item);
Exemple #6
0
 public abstract bool Remove(FieldTeam team, FieldActivity item);
Exemple #7
0
 public abstract bool Add(FieldTeam team, FieldActivity item);
Exemple #8
0
 public abstract bool Contains(FieldTeam team, FieldActivity item);
Exemple #9
0
 public abstract IEnumerable <FieldTeam> Get(FieldActivity item);
 public abstract bool ExistsForActivity(FieldActivity activity);
 public abstract IEnumerable <FieldTrip> GetForActivity(FieldActivity activity);
 public FieldTrip Create(string name, FieldActivity activity, CompoundIdentity principalOrgId, DateTime startDate, string description)
 {
     return(Create(name, activity, principalOrgId, new ValueRange <DateTime>(startDate, DateTime.MaxValue), description));
 }
 public FieldTrip Create(string name, FieldActivity activity, CompoundIdentity principalOrgId, string description)
 {
     return(Create(name, activity, principalOrgId, null, description));
 }
 public FieldTrip Create(string name, FieldActivity activity, CompoundIdentity principalOrgId, ValueRange <DateTime> dateRange)
 {
     return(Create(name, activity, principalOrgId, dateRange, null));
 }