API
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

TimeshareWeek.cs 5.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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, string 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 askingPrice, double agentCommision, bool mandate, int statusId, Status status, Province region, Individual owner, Agent agent, Agency agency, ICollection<BidItem> bidItems, ICollection<ProcessFlow.ProcessFlow> processFlows, string weekStatus, DateTime datePublished, bool published, string displayOwner, bool customOwner)
  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. AskingPrice = askingPrice;
  44. AgentCommision = agentCommision;
  45. Mandate = mandate;
  46. StatusId = statusId;
  47. Status = status;
  48. Region = region;
  49. Owner = owner;
  50. Agent = agent;
  51. Agency = agency;
  52. BidItems = bidItems;
  53. ProcessFlows = processFlows;
  54. WeekStatus = weekStatus;
  55. Publish = published;
  56. PulbishedDate = datePublished;
  57. DisplayOwner = displayOwner;
  58. CustomOwner = customOwner;
  59. }
  60. #region Properties
  61. public bool ReferedByAgent { get; set; }
  62. [ForeignKey("Agent")]
  63. public int? AgentId { get; set; }
  64. [ForeignKey("Agency")]
  65. public int? AgencyId { get; set; }
  66. [ForeignKey("Owner")]
  67. public int OwnerId { get; set; }
  68. public bool CustomOwner { get; set; }
  69. public bool AgentAsRep { get; set; }
  70. public bool OtherResort { get; set; }
  71. public string OtherResortName { get; set; }
  72. public string ResortCode { get; set; }
  73. public string ResortName { get; set; }
  74. [ForeignKey("Region")]
  75. public int RegionId { get; set; }
  76. public string Season { get; set; }
  77. public string Module { get; set; }
  78. public string Bedrooms { get; set; }
  79. public int MaxSleep { get; set; }
  80. public string UnitNumber { get; set; }
  81. public string WeekNumber { get; set; }
  82. public double LevyAmount { get; set; }
  83. public string DisplayOwner { get; set; }
  84. public bool CurrentYearBanked { get; set; }
  85. public string BankedWith { get; set; }
  86. public bool LeviesPaidInFull { get; set; }
  87. public bool WeekPlacedForRental { get; set; }
  88. public double OriginalPurchasePrice { get; set; }
  89. public DateTime OriginalPurchaseDate { get; set; }
  90. public DateTime ArrivalDate { get; set; }
  91. public DateTime DepartureDate { get; set; }
  92. public double SellPrice { get; set; }
  93. public double AskingPrice { get; set; }
  94. public double AgentCommision { get; set; }
  95. public bool Mandate { get; set; }
  96. public DateTime DateMandated { get; set; }
  97. [ForeignKey("Status")]
  98. public int StatusId { get; set; }
  99. public WeekType WeekType { get; set; }
  100. public string WeekStatus { get; set; }
  101. public bool Publish { get; set; }
  102. public DateTime PulbishedDate { get; set; }
  103. #endregion
  104. #region Navigation
  105. public virtual Status Status { get; set; }
  106. public virtual Province Region { get; set; }
  107. public virtual Individual Owner { get; set; }
  108. public virtual Agent Agent { get; set; }
  109. public virtual Agency Agency { get; set; }
  110. public virtual ICollection<BidItem> BidItems { get; set; }
  111. public virtual ICollection<ProcessFlow.ProcessFlow> ProcessFlows { get; set; }
  112. #endregion Navigation
  113. }
  114. }