public ChangeOrder TransformToChangeOrder() { ChangeOrder co = null; // See if it has already been transformed into a // Change Order...it can only be changed once! if (!this.HasBeenTransformedToChangeOrder) { Project project = ProjectService.GetProject(this.ProjectKey); co = NumberedProjectChildFactory.CreateNumberedProjectChild <ChangeOrder>(project); co.AmountChanged = this.amountChanged; co.ArchitectSignatureDate = this.architectSignatureDate; co.ChangeType = this.changeType; co.Contractor = this.contractor; co.ContractorSignatureDate = this.contractorSignatureDate; co.Description = this.description; co.OwnerSignatureDate = this.ownerSignatureDate; co.PriceChangeDirection = this.priceChangeDirection; co.TimeChanged = this.timeChanged; co.TimeChangeDirection = this.timeChangeDirection; } else { // It was already changed, so get the Change Order that it was // changed into co = ChangeOrderService.GetChangeOrder(this.changeOrderKey); } // Get the key of the Change Order this.changeOrderKey = co.Key; // Return the instance return(co); }
protected override RequestForInformation BuildNewEntity() { return(NumberedProjectChildFactory.CreateNumberedProjectChild <RequestForInformation>(UserSession.CurrentProject)); }
protected override ChangeOrder BuildNewEntity() { this.routingItemsViewModel.ClearBoundRoutingItems(); return(NumberedProjectChildFactory.CreateNumberedProjectChild <ChangeOrder>(UserSession.CurrentProject)); }
protected override ConstructionChangeDirective BuildNewEntity() { return(NumberedProjectChildFactory.CreateNumberedProjectChild <ConstructionChangeDirective>(UserSession.CurrentProject)); }
protected override ProposalRequest BuildNewEntity() { return(NumberedProjectChildFactory.CreateNumberedProjectChild <ProposalRequest>(UserSession.CurrentProject)); }