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(); }
/// <summary> /// Overloaded constructor. /// </summary> /// <param name="key">An <see cref="System.Object"/> that /// represents the primary identifier value for the /// class.</param> protected EntityBase(object key) { this.key = key; if (this.key == null) { this.key = EntityBase.NewKey(); } this.brokenRules = new List <BrokenRule>(); this.brokenRuleMessages = this.GetBrokenRuleMessages(); }
/// <summary> /// Overloaded constructor. /// </summary> /// <param name="key">An <see cref="System.Object"/> that /// represents the primary identifier value for the /// class.</param> protected EntityBase(object key) { this.key = key; if (this.key == null) { this.key = EntityBase.NewKey(); } this.brokenRules = new List<BrokenRule>(); this.brokenRuleMessages = this.GetBrokenRuleMessages(); }