Beispiel #1
0
 public User()
 {
     this.active                = true;
     this.administrator         = false;
     rightsListChangeHandler    = new PersistentListChangeHandler <Right>();
     relationsListChangeHandler = new PersistentListChangeHandler <Relation>();
 }
Beispiel #2
0
 public PeriodName()
 {
     intervalListChangeHandler = new PersistentListChangeHandler <PeriodInterval>();
     childrenListChangeHandler = new PersistentListChangeHandler <PeriodName>();
     IsDefault        = false;
     this.defaultData = false;
 }
Beispiel #3
0
 public Target()
 {
     targetItemListChangeHandler = new PersistentListChangeHandler <TargetItem>();
     this.cardinality            = -1;
     this.visibleInShortcut      = true;
     this.defaultData            = false;
 }
Beispiel #4
0
 public Measure()
 {
     this.childrenListChangeHandler = new PersistentListChangeHandler <Measure>();
     IsDefault = false;
     this.visibleInShortcut = true;
     this.defaultData       = false;
 }
Beispiel #5
0
        public List <PeriodInterval> buildWeekPeriods()
        {
            List <PeriodInterval> periods = new List <PeriodInterval>(0);
            int      fromYear             = periodFromTime.Year;
            int      toYear     = periodToTime.Year;
            int      position   = 0;
            long     dateFrom   = periodFromTime.Ticks;
            long     dateTo     = periodToTime.Ticks;
            TimeSpan difference = periodToTime - periodFromTime;
            double   day        = difference.TotalDays;
            DateTime fromDate   = periodFromTime;
            double   d          = 0;

            if (this.intervalListChangeHandler == null)
            {
                this.intervalListChangeHandler = new PersistentListChangeHandler <PeriodInterval>();
            }
            while (d < day)
            {
                fromDate = periodFromTime.AddDays(d);
                string   name          = getWeekName(fromDate, Granularity.WEEK.name);
                DateTime from          = new DateTime(fromDate.Year, fromDate.Month, fromDate.Day);
                int      result        = (int)fromDate.DayOfWeek;
                double   diffToEndWeek = (7 - result);
                double   dayToAdd      = day <= diffToEndWeek ? day : diffToEndWeek;
                DateTime to            = fromDate.AddDays(dayToAdd);
                periods.Add(new PeriodInterval(position, name, from, to));
                this.intervalListChangeHandler.AddNew(new PeriodInterval(position, name, from, to));
                d += (dayToAdd + 1);
            }
            return(periods);
        }
Beispiel #6
0
 public Attribute()
 {
     this.related                   = false;
     this.incremental               = false;
     this.canUserModifyValues       = true;
     this.lastValue                 = 0;
     this.childrenListChangeHandler = new PersistentListChangeHandler <Attribute>();
     this.valueListChangeHandler    = new PersistentListChangeHandler <AttributeValue>();
     this.FilterAttributeValues     = new List <AttributeValue>(0);
     LoadValues = false;
     setAttributeToAttributeValue();
     IsDefault      = false;
     IsAddNewItem   = false;
     IsShowMoreItem = false;
     this.Items     = new ObservableCollection <Target>();
 }
Beispiel #7
0
        public PresentationSlide containsSlide(int position)
        {
            if (slideListChangeHandler == null)
            {
                slideListChangeHandler = new PersistentListChangeHandler <PresentationSlide>();
            }

            foreach (PresentationSlide item in slideListChangeHandler.Items)
            {
                if (position == item.position)
                {
                    return(item);
                }
            }
            return(null);
        }
Beispiel #8
0
 public PresentationSlideItem containsShape(int position)
 {
     if (slideItemsListChangeHandler == null)
     {
         slideItemsListChangeHandler = new PersistentListChangeHandler <PresentationSlideItem>();
     }
     foreach (PresentationSlideItem item in slideItemsListChangeHandler.getItems())
     {
         if (item == null)
         {
             continue;
         }
         if (position == item.index)
         {
             return(item);
         }
     }
     return(null);
 }
        public TreeActionCondition()
        {
            conditionItems = new PersistentListChangeHandler <TreeActionConditionItem>();
            TreeActionConditionItem IfConditionItem = new TreeActionConditionItem();

            IfConditionItem.IfStatement = true;
            IfConditionItem.position    = 0;

            TreeActionConditionItem thenConditionItem = new TreeActionConditionItem();

            thenConditionItem.ThenStatement = true;
            IfConditionItem.position        = 1;

            TreeActionConditionItem ElseConditionItem = new TreeActionConditionItem();

            ElseConditionItem.ElseStatement = true;
            IfConditionItem.position        = 2;

            this.AddValue(IfConditionItem);
            this.AddValue(thenConditionItem);
            this.AddValue(ElseConditionItem);
        }
Beispiel #10
0
 public Presentation()
 {
     slideListChangeHandler = new PersistentListChangeHandler <PresentationSlide>();
 }
Beispiel #11
0
 public CombinedTransformationTree()
 {
     this.treeItemListChangeHandler = new PersistentListChangeHandler <CombinedTransformationTreeItem>();
     this.visibleInShortcut         = true;
 }
 public PresentationSlideItem()
 {
     childrenListChangeHandler = new PersistentListChangeHandler <PresentationSlideItem>();
 }
Beispiel #13
0
 /// <summary>
 /// Contructeur par défaut
 /// </summary>
 public PeriodInterval()
 {
     childrens = new ObservableCollection <PeriodInterval>();
     childrenListChangeHandler = new PersistentListChangeHandler <PeriodInterval>();
 }
 public DesignDimensionLine()
 {
     this.itemListChangeHandler = new PersistentListChangeHandler <LineItem>();
 }
Beispiel #15
0
 public StatementActionItem(string instruction, string name)
 {
     this.instruction             = instruction;
     this.transformationTableName = name;
     treeActionConditions         = new PersistentListChangeHandler <TreeActionCondition>();
 }
Beispiel #16
0
 public StatementActionItem()
 {
     treeActionConditions = new PersistentListChangeHandler <TreeActionCondition>();
 }
Beispiel #17
0
 public PresentationSlide()
 {
     slideItemsListChangeHandler = new PersistentListChangeHandler <PresentationSlideItem>();
 }
 public TreeActionConditionItem()
 {
     statementActionItems = new PersistentListChangeHandler <StatementActionItem>();
 }
Beispiel #19
0
 public DesignDimension()
 {
     lineListChangeHandler = new PersistentListChangeHandler <DesignDimensionLine>();
 }
 public AutomaticSourcingSheet(string _name, int _position, bool firstRow, string range, PersistentListChangeHandler <AutomaticSourcingColumn> listeColumns)
 {
     this.automaticSourcingColumnListChangeHandler = new PersistentListChangeHandler <AutomaticSourcingColumn>();
     this.Name           = _name;
     this.position       = _position;
     this.selectedRange  = range;
     this.firstRowColumn = firstRow;
     if (listeColumns != null)
     {
         this.automaticSourcingColumnListChangeHandler = listeColumns;
     }
 }
Beispiel #21
0
 public Profil()
 {
     this.rightsListChangeHandler = new PersistentListChangeHandler <Right>();
 }
Beispiel #22
0
 public Role()
 {
     this.childrenListChangeHandler = new PersistentListChangeHandler <Role>();
     IsDefault = false;
 }
Beispiel #23
0
 public WriteOffField()
 {
     writeOffFieldValueListChangeHandler = new PersistentListChangeHandler <WriteOffFieldValue>();
 }
Beispiel #24
0
 public void setRights(PersistentListChangeHandler <Right> listRights)
 {
     this.isRight = true;
     this.rightsListChangeHandler = listRights;
 }
Beispiel #25
0
 public Period()
 {
     itemListChangeHandler = new PersistentListChangeHandler <PeriodItem>();
 }
 public WriteOffConfiguration()
 {
     fieldListChangeHandler = new PersistentListChangeHandler <WriteOffField>();
 }
 /**
  * Constructor
  */
 public GrilleRelationship()
 {
     itemListChangeHandler = new PersistentListChangeHandler <GrilleRelationshipItem>();
 }