示例#1
0
        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);
        }
示例#2
0
 protected override RequestForInformation BuildNewEntity()
 {
     return(NumberedProjectChildFactory.CreateNumberedProjectChild
            <RequestForInformation>(UserSession.CurrentProject));
 }
示例#3
0
 protected override ChangeOrder BuildNewEntity()
 {
     this.routingItemsViewModel.ClearBoundRoutingItems();
     return(NumberedProjectChildFactory.CreateNumberedProjectChild <ChangeOrder>(UserSession.CurrentProject));
 }
示例#4
0
 protected override ConstructionChangeDirective BuildNewEntity()
 {
     return(NumberedProjectChildFactory.CreateNumberedProjectChild
            <ConstructionChangeDirective>(UserSession.CurrentProject));
 }
 protected override ProposalRequest BuildNewEntity()
 {
     return(NumberedProjectChildFactory.CreateNumberedProjectChild
            <ProposalRequest>(UserSession.CurrentProject));
 }