API
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

TimeshareWeek.cs 4.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations.Schema;
  4. using UnivateProperties_API.Containers.Timeshare;
  5. using UnivateProperties_API.Model.ProcessFlow;
  6. using UnivateProperties_API.Model.Region;
  7. using UnivateProperties_API.Model.Users;
  8. namespace UnivateProperties_API.Model.Timeshare
  9. {
  10. public class TimeshareWeek : BaseEntity
  11. {
  12. public TimeshareWeek()
  13. {
  14. }
  15. public TimeshareWeek(bool referedByAgent, int? agentId, int? agencyId, int ownerId, bool agentAsRep, bool otherResort, string otherResortName, string resortCode, string resortName, int regionId, string season, string module, int bedrooms, int maxSleep, string unitNumber, string weekNumber, double levyAmount, bool currentYearBanked, string bankedWith, bool leviesPaidInFull, bool weekPlacedForRental, double originalPurchasePrice, DateTime originalPurchaseDate, DateTime arrivalDate, DateTime departureDate, double sellPrice, double agentCommision, bool mandate, int statusId, Status status, Province region, Individual owner, Agent agent, Agency agency, ICollection<BidItem> bidItems, ICollection<ProcessFlow.ProcessFlow> processFlows)
  16. {
  17. ReferedByAgent = referedByAgent;
  18. AgentId = agentId;
  19. AgencyId = agencyId;
  20. OwnerId = ownerId;
  21. AgentAsRep = agentAsRep;
  22. OtherResort = otherResort;
  23. OtherResortName = otherResortName;
  24. ResortCode = resortCode;
  25. ResortName = resortName;
  26. RegionId = regionId;
  27. Season = season;
  28. Module = module;
  29. Bedrooms = bedrooms;
  30. MaxSleep = maxSleep;
  31. UnitNumber = unitNumber;
  32. WeekNumber = weekNumber;
  33. LevyAmount = levyAmount;
  34. CurrentYearBanked = currentYearBanked;
  35. BankedWith = bankedWith;
  36. LeviesPaidInFull = leviesPaidInFull;
  37. WeekPlacedForRental = weekPlacedForRental;
  38. OriginalPurchasePrice = originalPurchasePrice;
  39. OriginalPurchaseDate = originalPurchaseDate;
  40. ArrivalDate = arrivalDate;
  41. DepartureDate = departureDate;
  42. SellPrice = sellPrice;
  43. AgentCommision = agentCommision;
  44. Mandate = mandate;
  45. StatusId = statusId;
  46. Status = status;
  47. Region = region;
  48. Owner = owner;
  49. Agent = agent;
  50. Agency = agency;
  51. BidItems = bidItems;
  52. ProcessFlows = processFlows;
  53. }
  54. #region Properties
  55. public bool ReferedByAgent { get; set; }
  56. [ForeignKey("Agent")]
  57. public int? AgentId { get; set; }
  58. [ForeignKey("Agency")]
  59. public int? AgencyId { get; set; }
  60. [ForeignKey("Owner")]
  61. public int OwnerId { get; set; }
  62. public bool AgentAsRep { get; set; }
  63. public bool OtherResort { get; set; }
  64. public string OtherResortName { get; set; }
  65. public string ResortCode { get; set; }
  66. public string ResortName { get; set; }
  67. [ForeignKey("Region")]
  68. public int RegionId { get; set; }
  69. public string Season { get; set; }
  70. public string Module { get; set; }
  71. public int Bedrooms { get; set; }
  72. public int MaxSleep { get; set; }
  73. public string UnitNumber { get; set; }
  74. public string WeekNumber { get; set; }
  75. public double LevyAmount { get; set; }
  76. public bool CurrentYearBanked { get; set; }
  77. public string BankedWith { get; set; }
  78. public bool LeviesPaidInFull { get; set; }
  79. public bool WeekPlacedForRental { get; set; }
  80. public double OriginalPurchasePrice { get; set; }
  81. public DateTime OriginalPurchaseDate { get; set; }
  82. public DateTime ArrivalDate { get; set; }
  83. public DateTime DepartureDate { get; set; }
  84. public double SellPrice { get; set; }
  85. public double AgentCommision { get; set; }
  86. public bool Mandate { get; set; }
  87. public DateTime DateMandated { get; set; }
  88. [ForeignKey("Status")]
  89. public int StatusId { get; set; }
  90. public WeekType WeekType { get; set; }
  91. #endregion
  92. #region Navigation
  93. public virtual Status Status { get; set; }
  94. public virtual Province Region { get; set; }
  95. public virtual Individual Owner { get; set; }
  96. public virtual Agent Agent { get; set; }
  97. public virtual Agency Agency { get; set; }
  98. public virtual ICollection<BidItem> BidItems { get; set; }
  99. public virtual ICollection<ProcessFlow.ProcessFlow> ProcessFlows { get; set; }
  100. #endregion Navigation
  101. }
  102. }