public RequestForInformation(object key, object projectKey, int number) : base(key, projectKey) { this.number = number; this.from = null; this.dateReceived = null; this.dateRequestedBy = null; this.contractor = null; this.specSection = null; this.question = string.Empty; this.description = string.Empty; this.contractorProposedSolution = string.Empty; this.change = false; this.cause = 0; this.origin = 0; this.status = null; this.dateToField = null; this.shortAnswer = string.Empty; this.longAnswer = string.Empty; this.remarks = string.Empty; this.numberSpecification = new NumberSpecification<RequestForInformation>(); this.dateToFieldSpecification = new RequestForInformationDateSpecification(); this.questionAnswerSpecification = new RequestForInformationQuestionAnswerSpecification(); this.ValidateInitialization(); }
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 ProposalRequest(object key, object projectKey, int number) : base(key, projectKey) { this.number = number; this.to = null; this.from = null; this.issueDate = null; this.GetExpectedContractorReturnDays(); this.expectedContractorReturnDate = this.TransmittalDate.AddDays(this.expectedContractorReturnDays); this.contractor = null; this.description = string.Empty; this.attachment = string.Empty; this.reason = string.Empty; this.initiator = string.Empty; this.cause = 0; this.origin = 0; this.remarks = string.Empty; this.numberSpecification = new NumberSpecification<ProposalRequest>(); this.descriptionSpecification = new DescriptionSpecification<ProposalRequest>(); this.ValidateInitialization(); this.brokenRuleMessages = new ProposalRequestRuleMessages(); }
public ConstructionChangeDirective(object key, object projectKey, int number) : base(key, projectKey) { this.number = number; this.to = null; this.from = null; this.issueDate = null; this.contractor = null; this.description = string.Empty; this.attachment = string.Empty; this.reason = string.Empty; this.initiator = string.Empty; this.cause = 0; this.origin = 0; this.remarks = string.Empty; this.changeType = null; this.priceChangeDirection = ChangeDirection.Unchanged; this.amountChanged = 0; this.timeChangeDirection = ChangeDirection.Unchanged; this.timeChanged = 0; this.ownerSignatureDate = null; this.architectSignatureDate = null; this.contractorSignatureDate = null; this.numberSpecification = new NumberSpecification<ConstructionChangeDirective>(); this.descriptionSpecification = new DescriptionSpecification<ConstructionChangeDirective>(); this.changeOrderKey = null; this.ValidateInitialization(); this.brokenRuleMessages = new ConstructionChangeDirectiveRuleMessages(); }
public ChangeOrder(object key, object projectKey, int number) : base(key) { this.projectKey = projectKey; this.number = number; this.effectiveDate = DateTime.Now; this.contractor = null; this.description = string.Empty; this.changeType = null; this.priceChangeDirection = ChangeDirection.Unchanged; this.previousAuthorizedAmount = null; this.previousTimeChangedTotal = null; this.amountChanged = 0; this.timeChangeDirection = ChangeDirection.Unchanged; this.timeChanged = 0; this.routingItems = new List<RoutingItem>(); this.status = null; this.agencyApprovedDate = null; this.dateToField = null; this.ownerSignatureDate = null; this.architectSignatureDate = null; this.contractorSignatureDate = null; this.numberSpecification = new NumberSpecification<ChangeOrder>(); this.descriptionSpecification = new DescriptionSpecification<ChangeOrder>(); this.ValidateInitialization(); }
public Contract(object key) : base(key) { this.contractor = new Company(); this.scopeOfWork = string.Empty; this.bidPackageNumber = string.Empty; this.contractAmount = 0; }
public void SqlCeClientTransactionRepositoryAddTest() { SqlCeClientTransactionRepository target = new SqlCeClientTransactionRepository(); TransactionType type = TransactionType.Insert; Company entity = new Company(); entity.Name = "Test 123"; object unitOfWorkKey = Guid.NewGuid(); target.Add(new ClientTransaction(unitOfWorkKey, type, entity)); }
public void SynchronizeTest() { // Create a transaction Company company = new Company(); company.Name = "Test 123"; company.HeadquartersAddress = new Address("123 22nd Street", "San Diego", "CA", "92126"); CompanyService.SaveCompany(company); // Synchronize with the server Synchronizer.Synchronize(); }
public Contact(object key, string firstName, string lastName) : base(key, firstName, lastName) { this.jobTitle = string.Empty; this.email = string.Empty; this.phoneNumber = string.Empty; this.mobilePhoneNumber = string.Empty; this.faxNumber = string.Empty; this.remarks = string.Empty; this.currentCompany = null; this.addresses = new List<Address>(); }
public static Company ToCompany(CompanyContract contract) { Company company = null; if (contract != null) { company = new Company(contract.Key); company.Abbreviation = contract.Abbreviation; foreach (AddressContract address in contract.Addresses) { company.Addresses.Add(Converter.ToAddress(address)); } company.FaxNumber = contract.FaxNumber; company.HeadquartersAddress = Converter.ToAddress(contract.HeadquartersAddress); company.Name = contract.Name; company.PhoneNumber = contract.PhoneNumber; company.Remarks = contract.Remarks; company.Url = contract.Url; } return company; }
public static void SaveCompany(Company company) { CompanyService.repository[company.Key] = company; CompanyService.unitOfWork.Commit(); }