public override void SetAlternateVersion(IBusinessObject alternate) { base.SetAlternateVersion(alternate); InventorySheet alternateDocument = (InventorySheet)alternate; if (this.Lines != null && !this.SkipLinesSave) { this.Lines.SetAlternateVersion(alternateDocument.Lines); } }
public override InventorySheetLine CreateNew() { InventorySheet parent = (InventorySheet)this.Parent; //create new object and attach it to the element InventorySheetLine line = new InventorySheetLine(parent); line.Order = this.Children.Count + 1; //add object to the collection this.Children.Add(line); return(line); }
} //for save object reflection purposes public InventorySheetLine(InventorySheet parent) : base(parent, BusinessObjectType.InventorySheetLine) { this.UnitId = new Guid("2EC9C7C6-C250-41A6-818A-0C1B2B7D0A6C"); }
public InventorySheetLines(InventorySheet parent) : base(parent, "line") { }