Ejemplo n.º 1
0
        public InventorySheet(InventoryDocument parent)
            : base(parent, BusinessObjectType.InventorySheet)
        {
            this.Lines = new InventorySheetLines(this);

            this.CreationDate = SessionManager.VolatileElements.CurrentDateTime;
            this.CreationApplicationUserId = SessionManager.User.UserId;
            this.DocumentStatus            = DocumentStatus.Saved;
        }
Ejemplo n.º 2
0
        public override void SetAlternateVersion(IBusinessObject alternate)
        {
            base.SetAlternateVersion(alternate);

            InventoryDocument alternateDocument = (InventoryDocument)alternate;

            if (this.Sheets != null)
            {
                this.Sheets.SetAlternateVersion(alternateDocument.Sheets);
            }
        }