Example #1
0
 public Question(DCAnalyticsObject parent) : base(parent)
 {
     Conditions   = new SkipConditions(this);
     Dependencies = new Dependencies(this);
     Answers      = new Answers(this);
     QuestionText = string.Empty;
 }
        public override int CompareTo(DCAnalyticsObject other)
        {
            int result = 0;
            TransitionConditions conditions = other as TransitionConditions;

            if (_conditions.Count > 0 && conditions.Count > 0)
            {
                foreach (var condition in _conditions)
                {
                    var importedCondition = conditions.ByKey(condition.Key);
                    if (importedCondition != null)
                    {
                        if (importedCondition.CompareTo(condition) == 1)
                        {
                            result = 1;
                        }
                        else
                        {
                            result = 0;
                            break;
                        }
                    }
                }
            }
            else
            {
                result = 1;
            }
            return(result);
        }
Example #3
0
        public TransitionCondition(DCAnalyticsObject parent)
            : base(parent)
        {
            TargetDataObjectKey = string.Empty;

            SetOriginalValues();
        }
Example #4
0
 public virtual int CompareTo(DCAnalyticsObject other)
 {
     if (Key.Equals(other.Key))
     {
         return(1);
     }
     return(0);
 }
Example #5
0
 public Questionaire(DCAnalyticsObject parent) : base(parent)
 {
     Sections    = new Sections(this);
     Coordinates = new Coordinates(this);
     Categories  = new Categories();
     Category    = new Category(this);
     Region      = new Region(this);
     Regions     = new Regions();
     AddSystemSection();
 }
Example #6
0
        public override int CompareTo(DCAnalyticsObject other)
        {
            EnumListValue inItem = other as EnumListValue;

            if (this.Code.Equals(inItem.Code) && this.Description.Equals(inItem.Description))
            {
                return(1);
            }
            return(0);
        }
Example #7
0
        public UserRights(DCAnalyticsObject parent)
            : base(parent)
        {
            _rights = new List <UserRight>();

            if (parent is Configuration)
            {
                AddSystemUserRights();
            }
        }
Example #8
0
        public override int CompareTo(DCAnalyticsObject other)
        {
            SkipCondition condition     = this;
            SkipCondition condition1    = other as SkipCondition;
            var           sameName      = condition.AttributeKey.Equals(condition1.AttributeKey);
            var           sameQualifier = condition.Qualifier.Equals(condition1.Qualifier);

            //var sameAttributeValue = condition.AttributeValue.Equals(condition1.AttributeValue);
            return(sameName ? 1 : 0);
        }
Example #9
0
 public override int CompareTo(DCAnalyticsObject other)
 {
     if ((other as Roles).Count != this.Count)
     {
         return(1);
     }
     else
     {
         return(0);
     }
 }
Example #10
0
        public ConnectionSettings(DCAnalyticsObject parent)
            : base(parent)
        {
            Provider       = DataProviders.SQL;
            Authentication = Authentications.Database;
            Server         = "";
            Database       = "";
            UserName       = "";
            Password       = "";
            Path           = "";
            Port           = 0;
            Timeout        = 0;

            SetOriginalValues();
        }
Example #11
0
        public override int CompareTo(DCAnalyticsObject other)
        {
            int result = 0;
            ValidationCondition condition = other as ValidationCondition;

            if (Qualifier != condition.Qualifier && ValidationValue != condition.ValidationValue)
            {
                result = 0;
            }
            else
            {
                result = 1;
            }
            return(result);
        }
Example #12
0
 public DCAnalyticsObject(DCAnalyticsObject parent)
 {
     if (parent != null)
     {
         if (parent is Configuration)
         {
             Configuration = (Configuration)parent;
         }
         else
         {
             Configuration = parent.Configuration;
         }
     }
     Key    = Guid.NewGuid().ToString();
     Parent = parent;
 }
Example #13
0
        public override int CompareTo(DCAnalyticsObject other)
        {
            int result = 0;
            TransitionCondition condition = other as TransitionCondition;

            if (base.CompareTo(condition) == 1)
            {
                if (TransitionType != condition.TransitionType)
                {
                    result = 0;
                }
                else
                {
                    result = 1;
                }
            }
            else
            {
                result = 0;
            }
            return(result);
        }
Example #14
0
 public ChoiceQuestion(DCAnalyticsObject parent) : base(parent)
 {
     EnumList = new EnumList(this);
 }
Example #15
0
 public Trainings(DCAnalyticsObject parent) : base(parent)
 {
     _trainings = new List <Training>();
 }
Example #16
0
 public Trainee(DCAnalyticsObject parent) : base(parent)
 {
 }
Example #17
0
 public ClosedQuestion(DCAnalyticsObject parent) : base(parent)
 {
     SetOriginal();
 }
Example #18
0
 public Dependencies(DCAnalyticsObject parent) : base(parent)
 {
     _dependencies = new List <Dependency>();
 }
Example #19
0
 public SkipConditions(DCAnalyticsObject parent)
     : base(parent)
 {
     _conditions = new List <SkipCondition>();
 }
Example #20
0
 public UserPermissions(DCAnalyticsObject parent)
     : base(parent)
 {
     this._permissions = new List <UserPermission>();
 }
Example #21
0
 public LinkClass(DCAnalyticsObject parent) : base(parent)
 {
     Name = Question.Name + "X" + AnswerList.Name;
 }
Example #22
0
 public ValidationConditions(DCAnalyticsObject parent)
     : base(parent)
 {
     _conditions = new List <ValidationCondition>();
 }
Example #23
0
 public Dependency(DCAnalyticsObject parent) : base(parent)
 {
 }
 public TransitionConditions(DCAnalyticsObject parent)
     : base(parent)
 {
     _conditions = new List <TransitionCondition>();
 }
Example #25
0
 public Language(DCAnalyticsObject parent) : base(parent)
 {
 }
 public MultipleChoiceQuestion(DCAnalyticsObject parent) : base(parent)
 {
 }
Example #27
0
 public EnumListValues(DCAnalyticsObject parent) : base(parent)
 {
     _values = new List <EnumListValue>();
 }
Example #28
0
 public Product(DCAnalyticsObject parent) : base(parent)
 {
 }
Example #29
0
 public Category(DCAnalyticsObject parent) : base(parent)
 {
     Questionaires = new Questionaires();
 }
Example #30
0
 public Products(DCAnalyticsObject parent) : base(parent)
 {
     _products = new List <Product>();
 }