Appendix.cs 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace GreenTree.Nachtragsmanagement.Core.Domain.Appendix
  7. {
  8. public class Appendix : BaseEntity
  9. {
  10. #region Fields
  11. /// <summary>
  12. /// Categories related to the appendix
  13. /// </summary>
  14. private ICollection<Category> _categories;
  15. /// <summary>
  16. /// Deviations related to the appendix
  17. /// </summary>
  18. private ICollection<Deviation.Deviation> _deviations;
  19. /// <summary>
  20. /// Invoices related to the appendix
  21. /// </summary>
  22. private ICollection<Invoice.Invoice> _invoices;
  23. #endregion
  24. /// <summary>
  25. /// Customized number for identification
  26. /// </summary>
  27. public string CustomNumber { get; set; }
  28. /// <summary>
  29. /// The lot
  30. /// </summary>
  31. public string Lot { get; set; }
  32. /// <summary>
  33. /// Monetary value of all corresponding deviations
  34. /// </summary>
  35. public decimal? Value { get; set; }
  36. /// <summary>
  37. /// Percentage probalitity
  38. /// </summary>
  39. public decimal? Probability { get; set; }
  40. /// <summary>
  41. /// Number of corresponding offer
  42. /// </summary>
  43. public int? OfferingNumber { get; set; }
  44. /// <summary>
  45. /// Date when corresponding offer was created
  46. /// </summary>
  47. public DateTime OfferingDate { get; set; }
  48. /// <summary>
  49. /// Date of negotiation
  50. /// </summary>
  51. public DateTime NegotiationDate { get; set; }
  52. /// <summary>
  53. /// Value of negotiation
  54. /// </summary>
  55. public decimal? NegotiationValue { get; set; }
  56. /// <summary>
  57. /// Determines if protocol exists
  58. /// </summary>
  59. public bool ProtocolExists { get; set; }
  60. /// <summary>
  61. /// Number of the corresponding order
  62. /// </summary>
  63. public int? OrderNumber { get; set; }
  64. /// <summary>
  65. /// Date of the corresponding order
  66. /// </summary>
  67. public DateTime OrderDate { get; set; }
  68. /// <summary>
  69. /// Editable comment
  70. /// </summary>
  71. public string Comment { get; set; }
  72. /// <summary>
  73. /// Id of corresponding site
  74. /// </summary>
  75. public int? SiteId { get; set; }
  76. /// <summary>
  77. /// Corresponding site
  78. /// </summary>
  79. public Site.Site Site { get; set; }
  80. /// <summary>
  81. /// Categories related to the appendix
  82. /// </summary>
  83. public virtual ICollection<Category> Categories
  84. {
  85. get { return _categories ?? ( _categories = new List<Category>()); }
  86. protected set { _categories = value; }
  87. }
  88. /// <summary>
  89. /// Deviations related to the appendix
  90. /// </summary>
  91. public virtual ICollection<Deviation.Deviation> Deviations
  92. {
  93. get { return _deviations ?? ( _deviations = new List<Deviation.Deviation>()); }
  94. protected set { _deviations = value; }
  95. }
  96. /// <summary>
  97. /// Invoices related to the appendix
  98. /// </summary>
  99. public virtual ICollection<Invoice.Invoice> Invoices
  100. {
  101. get { return _invoices ?? (_invoices = new List<Invoice.Invoice>()); }
  102. protected set { _invoices = value; }
  103. }
  104. }
  105. }