Пример #1
0
        /// <summary>
        /// Sets the alternate version of the <see cref="BusinessObject"/>.
        /// </summary>
        /// <param name="alternate"><see cref="BusinessObject"/> that is to be considered as the alternate one.</param>
        public override void SetAlternateVersion(IBusinessObject alternate)
        {
            base.SetAlternateVersion(alternate);

            ShiftTransaction alternateDocument = (ShiftTransaction)alternate;

            if (this.Shifts != null && alternateDocument != null)
            {
                this.Shifts.SetAlternateVersion(alternateDocument.Shifts);
            }
        }
Пример #2
0
        public Shift(ShiftTransaction parent)
            : base(parent)
        {
            if (parent != null)
            {
                this.ShiftTransactionId = parent.Id.Value;
            }

            this.Attributes = new ShiftAttrValues(this);

            this.ShiftStatus = 40;
        }
Пример #3
0
        public override Shift CreateNew()
        {
            ShiftTransaction parent = (ShiftTransaction)this.Parent;

            //create new object and attach it to the element
            Shift line = new Shift(parent);

            line.Order = this.Children.Count + 1;

            //add object to the collection
            this.Children.Add(line);

            return(line);
        }
Пример #4
0
 public Shifts(ShiftTransaction parent)
     : base(parent, "shift")
 {
 }
Пример #5
0
 public ContainerShift(ShiftTransaction parent)
     : base(parent)
 {
 }
Пример #6
0
 public ContainerShifts(ShiftTransaction parent)
     : base(parent, "shift")
 {
 }