tailieunhanh - NET Domain-Driven Design with C#P roblem – Design – Solution phần 7

Các mối quan hệ với lớp "Từ" đại diện cho người mà Yêu cầu Đề xuất, và với nhà thầu mà nó có liên quan. Lớp "To" đại diện cho những gì Dự án Liên hệ Yêu cầu đề xuất là dự định. Cũng như với các uẩn Chuyển phát đệ trình và RFI, có một Copy To mối quan hệ từ một yêu cầu đề xuất | Chapter 7 Proposal Requests The relationship to the From class represents from whom the Proposal Request came and with which Contractor it is associated. The To class represents for what Project Contact the Proposal Request is intended. Just as with the Submittal Transmittal and RFI Aggregates there is a Copy To relationship from a Proposal Request which represents the list of Recipients who need to be copied on all correspondence having to do with the Proposal Request. Designing the Proposal Request Aggregate You may have expected this but as I was analyzing the Proposal Request class from Figure I noticed that it had a lot of the same properties as the RequestForInformation and Submittal classes. Namely all of the properties that make up the iTransmittal interface that I introduced in the last chapter. Instead of having all of these classes implement the iTransmittal interface and have all of that duplicate code I decided to refactor the common code into a new abstract class the Transmittal class. ITransmittal 2 ----------- Interface ._ ITransmittal Properties __T CopyToList ziF DeliveryMethod Final ES1 OtherDeliveryMethod __T PhaseNumber ziF ProjectKey Eẩ Rembursable TotalPage Ể TransmittaỉDate ziF TransmittalRemarks -I Transmittal Abstractclass I - EntityBase i HFields s Properties ẼĨ1 Final ị ẽS1 OtherDeliveryMethod PhaseNumber ProjectKey Rembursable eS TotalPage i sS TransmittalDate i EỄP TransmittalRemarks Methods Ễ CopyToList CopyTo ------- ------ Class DeliveryMethod Delivery Enum ProposalReuestDescriptionSpecification Class -- Specification ProposalRequest Methods IsSatisfiedBy Descriptionspecification c----------- ------------------ ProposalReauest Class - Transmittal V Fields DefaultExpectedContractorReturnDays Properties sS1 Attachment EỄ 1 Cause Ể Description Ế ExpectedContractorReturnDate Initiator Ể IssueDate E51 Number Ế Origin Reason Remarks Methods GetExpectedContractorReturnDays ProposalRequest 1 overload Qi Validate .

TỪ KHÓA LIÊN QUAN