using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GreenTree.Nachtragsmanagement.Core.Domain.Appendix { public class Appendix : BaseEntity { #region Fields /// /// Categories values related to the appendix /// private ICollection _categoryValues; /// /// Deviations related to the appendix /// private ICollection _deviations; /// /// Invoices related to the appendix /// private ICollection _invoices; #endregion /// /// Customized number for identification /// public string CustomNumber { get; set; } /// /// The lot /// public string Description { get; set; } /// /// Monetary value of all corresponding deviations /// public decimal? Value { get; set; } /// /// Percentage probalitity /// public decimal? Probability { get; set; } /// /// Number of corresponding offer /// public int? OfferingNumber { get; set; } /// /// Date when corresponding offer was created /// public DateTime? OfferingDate { get; set; } /// /// Date of negotiation /// public DateTime? NegotiationDate { get; set; } /// /// Value of negotiation /// public decimal? NegotiationValue { get; set; } /// /// Determines if protocol exists /// public bool ProtocolExists { get; set; } /// /// Determines if an order invoice has been created /// public bool OrderInvoiceCreated { get; set; } /// /// Number of the corresponding order /// public int? OrderNumber { get; set; } /// /// Date of the corresponding order /// public DateTime? OrderDate { get; set; } /// /// Editable comment /// public string Comment { get; set; } /// /// Id of corresponding state /// public int? StateId { get; set; } /// /// Corresponding site /// public State State { get; set; } /// /// Id of corresponding site /// public int? SiteId { get; set; } /// /// Corresponding site /// public Site.Site Site { get; set; } /// /// Category values related to the appendix /// public virtual ICollection CategoryValues { get { return _categoryValues ?? (_categoryValues = new List()); } protected set { _categoryValues = value; } } /// /// Deviations related to the appendix /// public virtual ICollection Deviations { get { return _deviations ?? ( _deviations = new List()); } protected set { _deviations = value; } } /// /// Invoices related to the appendix /// public virtual ICollection Invoices { get { return _invoices ?? (_invoices = new List()); } protected set { _invoices = value; } } } }