public ChangeOrderContract()
 {
     this.projectKey                          = null;
     this.number                              = 0;
     this.effectiveDate                       = DateTime.Now;
     this.contractor                          = null;
     this.description                         = string.Empty;
     this.originalConstructionCost            = 0;
     this.newConstructionCost                 = 0;
     this.currentProject                      = null;
     this.changeType                          = null;
     this.changeTypeDirection                 = ChangeDirectionContract.Unchanged;
     this.previousTimeChangedTotal            = null;
     this.previousAuthorizedChangeOrderAmount = null;
     this.amountChanged                       = 0;
     this.timeChangeDirection                 = ChangeDirectionContract.Unchanged;
     this.timeChanged                         = 0;
     this.dateOfSubstantialCompletion         = null;
     this.routingItems                        = new List <RoutingItemContract>();
     this.status                              = null;
     this.agencyApprovedDate                  = null;
     this.dateToField                         = null;
     this.ownerSignatureDate                  = null;
     this.architectSignatureDate              = null;
     this.contractorSignatureDate             = null;
 }
示例#2
0
 public ChangeOrderContract()
 {
     this.projectKey = null;
     this.number = 0;
     this.effectiveDate = DateTime.Now;
     this.contractor = null;
     this.description = string.Empty;
     this.originalConstructionCost = 0;
     this.newConstructionCost = 0;
     this.currentProject = null;
     this.changeType = null;
     this.changeTypeDirection = ChangeDirectionContract.Unchanged;
     this.previousTimeChangedTotal = null;
     this.previousAuthorizedChangeOrderAmount = null;
     this.amountChanged = 0;
     this.timeChangeDirection = ChangeDirectionContract.Unchanged;
     this.timeChanged = 0;
     this.dateOfSubstantialCompletion = null;
     this.routingItems = new List<RoutingItemContract>();
     this.status = null;
     this.agencyApprovedDate = null;
     this.dateToField = null;
     this.ownerSignatureDate = null;
     this.architectSignatureDate = null;
     this.contractorSignatureDate = null;
 }
示例#3
0
 public static Project ToProject(ProjectContract contract)
 {
     Project project = null;
     if (contract != null)
     {
         project = new Project(contract.Key, contract.Number, contract.Name);
         project.ActualCompletionDate = contract.ActualCompletionDate;
         project.Address = Converter.ToAddress(contract.Address);
         project.AeChangeOrderAmount = contract.AeChangeOrderAmount;
         project.AgencyApplicationNumber = contract.AgencyApplicationNumber;
         project.AgencyFileNumber = contract.AgencyFileNumber;
         foreach (AllowanceContract allowance in contract.Allowances)
         {
             project.Allowances.Add(Converter.ToAllowance(allowance));
         }
         project.ConstructionAdministrator = Converter.ToEmployee(contract.ConstructionAdministrator);
         foreach (ProjectContactContract contact in contract.Contacts)
         {
             project.Contacts.Add(Converter.ToProjectContact(contact));
         }
         project.ContingencyAllowanceAmount = contract.ContingencyAllowanceAmount;
         project.ContractDate = contract.ContractDate;
         project.ContractReason = contract.ContractReason;
         foreach (ProjectContractContract projectContract in contract.Contracts)
         {
             project.Contracts.Add(Converter.ToProjectContract(projectContract));
         }
         project.CurrentCompletionDate = contract.CurrentCompletionDate;
         project.EstimatedCompletionDate = contract.EstimatedCompletionDate;
         project.EstimatedStartDate = contract.EstimatedStartDate;
         project.OriginalConstructionCost = contract.OriginalConstructionCost;
         project.Owner = Converter.ToCompany(contract.Owner);
         project.PercentComplete = contract.PercentComplete;
         project.PrincipalInCharge = Converter.ToEmployee(contract.PrincipalInCharge);
         project.Remarks = contract.Remarks;
         project.Segment = Converter.ToMarketSegment(contract.Segment);
         project.TestingAllowanceAmount = contract.TestingAllowanceAmount;
         project.TotalSquareFeet = contract.TotalSquareFeet;
         project.UtilityAllowanceAmount = contract.UtilityAllowanceAmount;
     }
     return project;
 }