public Project(object key, string number, string name) : base(key) { this.number = number; this.name = name; this.address = null; this.owner = null; this.constructionAdministrator = null; this.principal = null; this.contractDate = null; this.estimatedStartDate = null; this.estimatedCompletionDate = null; this.currentCompletionDate = null; this.actualCompletionDate = null; this.contingencyAllowanceAmount = 0; this.testingAllowanceAmount = 0; this.utilityAllowanceAmount = 0; this.originalConstructionCost = 0; this.totalChangeOrderDays = 0; this.adjustedConstructionCost = 0; this.totalChangeOrdersAmount = 0; this.totalSquareFeet = 0; this.percentComplete = 0; this.remarks = string.Empty; this.aeChangeOrderAmount = 0; this.contractReason = string.Empty; this.agencyApplicationNumber = string.Empty; this.agencyFileNumber = string.Empty; this.segment = null; this.allowances = new List<Allowance>(); }
public Project(object key, string number, string name) : base(key) { this.number = number; this.name = name; this.address = null; this.owner = new Company(); this.constructionAdministrator = null; this.principalInCharge = null; this.contractDate = null; this.estimatedStartDate = null; this.estimatedCompletionDate = null; this.adjustedCompletionDate = null; this.currentCompletionDate = null; this.actualCompletionDate = null; this.contingencyAllowanceAmount = 0; this.testingAllowanceAmount = 0; this.utilityAllowanceAmount = 0; this.originalConstructionCost = 0; this.totalChangeOrderDays = 0; this.adjustedConstructionCost = 0; this.totalChangeOrdersAmount = 0; this.totalSquareFeet = 0; this.percentComplete = 0; this.remarks = string.Empty; this.aeChangeOrderAmount = 0; this.contractReason = string.Empty; this.agencyApplicationNumber = string.Empty; this.agencyFileNumber = string.Empty; this.segment = null; this.allowances = new List <Allowance>(); this.contracts = new List <Contract>(); this.contacts = new List <ProjectContact>(); }
public static MarketSegmentContract ToMarketSegmentContract(MarketSegment segment) { MarketSegmentContract contract = null; if (segment != null) { contract = new MarketSegmentContract(); contract.Key = segment.Key; contract.Code = segment.Code; contract.Name = segment.Name; contract.ParentSector = Converter.ToMarketSectorContract(segment.ParentSector); } return contract; }