Exemple #1
0
        public ActivityThreshold Copy()
        {
            Server.Application.ActivityThreshold serverObject = (Server.Application.ActivityThreshold)ToServerObject();

            ActivityThreshold copiedActivityThreshold = new ActivityThreshold(application, serverObject);

            return(copiedActivityThreshold);
        }
Exemple #2
0
        public void BaseConstructor(Application applicationReference, Mercury.Server.Application.Activity serverObject)
        {
            BaseConstructor(applicationReference, ((Server.Application.CoreObject)serverObject));


            activityType = serverObject.ActivityType;

            initialAnchorDate = serverObject.InitialAnchorDate;

            anchorDate = serverObject.AnchorDate;

            scheduleType = serverObject.ScheduleType;

            scheduleValue = serverObject.ScheduleValue;

            scheduleQualifier = serverObject.ScheduleQualifier;

            constraintValue = serverObject.ConstraintValue;

            constraintQualifier = serverObject.ConstraintQualifier;

            reoccurring = serverObject.Reoccurring;

            performActionDate = serverObject.PerformActionDate;


            action = null;

            if (serverObject.Action != null)
            {
                action = new Action.Action(applicationReference, serverObject.Action);
            }


            foreach (Server.Application.ActivityThreshold currentServerThreshold in serverObject.Thresholds)
            {
                ActivityThreshold activityThreshold = new ActivityThreshold(applicationReference, currentServerThreshold);

                thresholds.Add(activityThreshold);
            }

            return;
        }
Exemple #3
0
        public Boolean IsEqual(ActivityThreshold compareObject)
        {
            Boolean isEqual = base.IsEqual((CoreObject)compareObject);


            isEqual &= (relativeDateValue == compareObject.RelativeDateValue);

            isEqual &= (relativeDateQualifier == compareObject.RelativeDateQualifier);

            isEqual &= (status == compareObject.Status);


            isEqual &= (((action != null) && (compareObject.Action != null)) || ((action == null) && (compareObject.Action == null)));

            if ((action != null) && (compareObject.Action != null))
            {
                isEqual &= action.IsEqual(compareObject.Action);
            }

            return(isEqual);
        }