Ejemplo n.º 1
0
        public override void SetAlternateVersion(IBusinessObject alternate)
        {
            base.SetAlternateVersion(alternate);

            InventorySheet alternateDocument = (InventorySheet)alternate;

            if (this.Lines != null && !this.SkipLinesSave)
            {
                this.Lines.SetAlternateVersion(alternateDocument.Lines);
            }
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        }                                                                     //for save object reflection purposes

        public InventorySheetLine(InventorySheet parent)
            : base(parent, BusinessObjectType.InventorySheetLine)
        {
            this.UnitId = new Guid("2EC9C7C6-C250-41A6-818A-0C1B2B7D0A6C");
        }
Ejemplo n.º 4
0
 public InventorySheetLines(InventorySheet parent)
     : base(parent, "line")
 {
 }