Exemplo n.º 1
0
 public Question(DCAnalyticsObject parent) : base(parent)
 {
     Conditions   = new SkipConditions(this);
     Dependencies = new Dependencies(this);
     Answers      = new Answers(this);
     QuestionText = string.Empty;
 }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        public TransitionCondition(DCAnalyticsObject parent)
            : base(parent)
        {
            TargetDataObjectKey = string.Empty;

            SetOriginalValues();
        }
Exemplo n.º 4
0
 public virtual int CompareTo(DCAnalyticsObject other)
 {
     if (Key.Equals(other.Key))
     {
         return(1);
     }
     return(0);
 }
Exemplo n.º 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();
 }
Exemplo n.º 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);
        }
Exemplo n.º 7
0
        public UserRights(DCAnalyticsObject parent)
            : base(parent)
        {
            _rights = new List <UserRight>();

            if (parent is Configuration)
            {
                AddSystemUserRights();
            }
        }
Exemplo n.º 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);
        }
Exemplo n.º 9
0
 public override int CompareTo(DCAnalyticsObject other)
 {
     if ((other as Roles).Count != this.Count)
     {
         return(1);
     }
     else
     {
         return(0);
     }
 }
Exemplo n.º 10
0
        public ConnectionSettings(DCAnalyticsObject parent)
            : base(parent)
        {
            Provider       = DataProviders.SQL;
            Authentication = Authentications.Database;
            Server         = "";
            Database       = "";
            UserName       = "";
            Password       = "";
            Path           = "";
            Port           = 0;
            Timeout        = 0;

            SetOriginalValues();
        }
Exemplo n.º 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);
        }
Exemplo n.º 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;
 }
Exemplo n.º 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);
        }
Exemplo n.º 14
0
 public ChoiceQuestion(DCAnalyticsObject parent) : base(parent)
 {
     EnumList = new EnumList(this);
 }
Exemplo n.º 15
0
 public Trainings(DCAnalyticsObject parent) : base(parent)
 {
     _trainings = new List <Training>();
 }
Exemplo n.º 16
0
 public Trainee(DCAnalyticsObject parent) : base(parent)
 {
 }
Exemplo n.º 17
0
 public ClosedQuestion(DCAnalyticsObject parent) : base(parent)
 {
     SetOriginal();
 }
Exemplo n.º 18
0
 public Dependencies(DCAnalyticsObject parent) : base(parent)
 {
     _dependencies = new List <Dependency>();
 }
Exemplo n.º 19
0
 public SkipConditions(DCAnalyticsObject parent)
     : base(parent)
 {
     _conditions = new List <SkipCondition>();
 }
Exemplo n.º 20
0
 public UserPermissions(DCAnalyticsObject parent)
     : base(parent)
 {
     this._permissions = new List <UserPermission>();
 }
Exemplo n.º 21
0
 public LinkClass(DCAnalyticsObject parent) : base(parent)
 {
     Name = Question.Name + "X" + AnswerList.Name;
 }
Exemplo n.º 22
0
 public ValidationConditions(DCAnalyticsObject parent)
     : base(parent)
 {
     _conditions = new List <ValidationCondition>();
 }
Exemplo n.º 23
0
 public Dependency(DCAnalyticsObject parent) : base(parent)
 {
 }
Exemplo n.º 24
0
 public TransitionConditions(DCAnalyticsObject parent)
     : base(parent)
 {
     _conditions = new List <TransitionCondition>();
 }
Exemplo n.º 25
0
 public Language(DCAnalyticsObject parent) : base(parent)
 {
 }
Exemplo n.º 26
0
 public MultipleChoiceQuestion(DCAnalyticsObject parent) : base(parent)
 {
 }
Exemplo n.º 27
0
 public EnumListValues(DCAnalyticsObject parent) : base(parent)
 {
     _values = new List <EnumListValue>();
 }
Exemplo n.º 28
0
 public Product(DCAnalyticsObject parent) : base(parent)
 {
 }
Exemplo n.º 29
0
 public Category(DCAnalyticsObject parent) : base(parent)
 {
     Questionaires = new Questionaires();
 }
Exemplo n.º 30
0
 public Products(DCAnalyticsObject parent) : base(parent)
 {
     _products = new List <Product>();
 }