/// <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); } }
public Shift(ShiftTransaction parent) : base(parent) { if (parent != null) { this.ShiftTransactionId = parent.Id.Value; } this.Attributes = new ShiftAttrValues(this); this.ShiftStatus = 40; }
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); }
public Shifts(ShiftTransaction parent) : base(parent, "shift") { }
public ContainerShift(ShiftTransaction parent) : base(parent) { }
public ContainerShifts(ShiftTransaction parent) : base(parent, "shift") { }