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.

238 lines
6.7 KiB

  1. using Entity.Sugar;
  2. using Entity.ViewModels;
  3. using Newtonsoft.Json;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace Entity.ShowEasyDtos
  10. {
  11. public class ONSiteBaseInfoDTO
  12. {
  13. public string ServiceID { get; set; }
  14. //服務編號
  15. public string ServiceNo { get; set; }
  16. //服務名稱
  17. public string ServiceName { get; set; }
  18. //費用説明
  19. public string ExpenseDescription { get; set; }
  20. //常見問題
  21. public List<FQADTO> FQAs { get; set; }
  22. //適用展會
  23. public string ExhibitionNames { get; set; }
  24. //訂單確認工作天
  25. public string ConfirmDays { get; set; }
  26. //服務適用地
  27. public string SuitPlaces { get; set; }
  28. //服務領取地
  29. public string ReceivinPlaces { get; set; }
  30. //適用展會ID
  31. public string ExhibitionID { get; set; }
  32. //服務特色 (服務名稱下方的)
  33. public string Features { get; set; }
  34. //服務説明
  35. public string Details { get; set; }
  36. //取消政策
  37. public string CancelPolicy { get; set; }
  38. public int? MinPrice { get; set; }
  39. //public string SupplierID { get; set; }
  40. //public string CurrencyID { get; set; }
  41. //public DateTime? LaunchDateS { get; set; }
  42. //public DateTime? LaunchDateE { get; set; }
  43. //public string PayType { get; set; }
  44. //public string CMode { get; set; }
  45. //public string SuitPlace { get; set; }
  46. //public string CancelPolicy { get; set; }
  47. //public string OrderMemo { get; set; }
  48. //public string SubCategoryID { get; set; }
  49. //public string ExhibitionID { get; set; }
  50. //public string OrderQuestions { get; set; }
  51. }
  52. public class ONSiteBaseListDTO
  53. {
  54. public string ServiceID { get; set; }
  55. //服務編號
  56. public string ServiceNo { get; set; }
  57. //服務名稱
  58. public string ServiceName { get; set; }
  59. //圖片
  60. public string PreviewFile { get; set; }
  61. public int? MinPrice { get; set; }
  62. //適用地區
  63. public string PlaceName { get; set; }
  64. //服務類別名稱
  65. public string ServiceCategoryName { get; set; }
  66. public string LangID { get; set; }
  67. }
  68. public class FQADTO
  69. {
  70. public string Question { get; set; }
  71. public string Answer { get; set; }
  72. }
  73. public class ServiceCategoryDTO
  74. {
  75. /// <summary>
  76. ///
  77. /// </summary>
  78. public string CategoryID { get; set; }
  79. /// <summary>
  80. ///
  81. /// </summary>
  82. public string CategoryName { get; set; }
  83. /// <summary>
  84. ///
  85. /// </summary>
  86. [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
  87. public List<ServiceCategoryDTO> SubCategoryList = new List<ServiceCategoryDTO>();
  88. [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
  89. public Dictionary<string, ServiceCategoryDTO> SubCategoryDic = new Dictionary<string, ServiceCategoryDTO>();
  90. }
  91. public class ServiceRegionDTO
  92. {
  93. /// <summary>
  94. ///
  95. /// </summary>
  96. public string RegionID { get; set; }
  97. /// <summary>
  98. ///
  99. /// </summary>
  100. public string RegionName { get; set; }
  101. [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
  102. public List<ServiceCountryDTO> CountryList = new List<ServiceCountryDTO>();
  103. [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
  104. public Dictionary<string, ServiceCountryDTO> CountryDic = new Dictionary<string, ServiceCountryDTO>();
  105. }
  106. public class ServiceCountryDTO
  107. {
  108. /// <summary>
  109. ///
  110. /// </summary>
  111. public string CountryID { get; set; }
  112. /// <summary>
  113. ///
  114. /// </summary>
  115. public string CountryName { get; set; }
  116. [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
  117. public List<CityDTO> CityList = new List<CityDTO>();
  118. [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
  119. public Dictionary<string, CityDTO> CityDic = new Dictionary<string, CityDTO>();
  120. }
  121. public class ONSiteItemDTO
  122. {
  123. /// <summary>
  124. ///
  125. /// </summary>
  126. public string Guid { get; set; }
  127. public string ItemType { get; set; }
  128. public string ItemName { get; set; }
  129. public string ExpensesMemo { get; set; }
  130. public string EscortFreeCityID { get; set; }
  131. public DateTime? CreateDate { get; set; }
  132. //堆高機費用規則
  133. [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
  134. public List<ServiceCostRulesDTO> StackerCostRules = new List<ServiceCostRulesDTO>();
  135. //卡車費用規則
  136. [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
  137. public List<ServiceTruckCostRulesDTO> TruckCostRules = new List<ServiceTruckCostRulesDTO>();
  138. //卡車假日加班費
  139. [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
  140. public List<ServiceTruckOtherCostDTO> TruckHolidayPay = new List<ServiceTruckOtherCostDTO>();
  141. //卡車車型加價
  142. [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
  143. public List<ServiceTruckOtherCostDTO> TruckMarkupByModel = new List<ServiceTruckOtherCostDTO>();
  144. //非卡車,堆高機費用規則
  145. [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
  146. public List<ONSiteOtherCostRulesDTO> OtherCostRules = new List<ONSiteOtherCostRulesDTO>();
  147. }
  148. //堆高機費用規則
  149. public class ServiceCostRulesDTO {
  150. public int Index { get; set; }
  151. public string Guid { get; set; }
  152. public string Weight_Min { get; set; }
  153. public string Weight_Max { get; set; }
  154. public int? Price { get; set; }
  155. public string PricingMode { get; set; }
  156. public string Memo { get; set; }
  157. public DateTime? CreateDate { get; set; }
  158. }
  159. //卡車費用規則
  160. public class ServiceTruckCostRulesDTO
  161. {
  162. public string TruckID { get; set; }
  163. public string CityID { get; set; }
  164. public int? Price { get; set; }
  165. }
  166. //卡車假日加班費 卡車車型加價
  167. public class ServiceTruckOtherCostDTO
  168. {
  169. public string TruckID { get; set; }
  170. public int? Price { get; set; }
  171. }
  172. //非卡車,堆高機費用規則
  173. public class ONSiteOtherCostRulesDTO
  174. {
  175. public string Guid { get; set; }
  176. public string PricingMode { get; set; }
  177. public int? Price { get; set; }
  178. public int? InterbankPrice { get; set; }
  179. public string Unit_Min { get; set; }
  180. }
  181. }