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.

252 lines
7.2 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 CurrencyID { get; set; }
  40. //public string SupplierID { get; set; }
  41. //public string CurrencyID { get; set; }
  42. //public DateTime? LaunchDateS { get; set; }
  43. //public DateTime? LaunchDateE { get; set; }
  44. //public string PayType { get; set; }
  45. //public string CMode { get; set; }
  46. //public string SuitPlace { get; set; }
  47. //public string CancelPolicy { get; set; }
  48. //public string OrderMemo { get; set; }
  49. //public string SubCategoryID { get; set; }
  50. //public string ExhibitionID { get; set; }
  51. //public string OrderQuestions { get; set; }
  52. }
  53. public class ONSiteBaseListDTO
  54. {
  55. public string ServiceID { get; set; }
  56. //服務編號
  57. public string ServiceNo { get; set; }
  58. //服務名稱
  59. public string ServiceName { get; set; }
  60. //圖片
  61. public string PreviewFile { get; set; }
  62. public int? MinPrice { get; set; }
  63. //適用地區
  64. public string PlaceName { get; set; }
  65. //服務類別名稱
  66. public string ServiceCategoryName { get; set; }
  67. public string LangID { get; set; }
  68. public string CurrencyID { get; set; }
  69. }
  70. public class FQADTO
  71. {
  72. public string Question { get; set; }
  73. public string Answer { get; set; }
  74. }
  75. public class ServiceCategoryDTO
  76. {
  77. /// <summary>
  78. ///
  79. /// </summary>
  80. public string CategoryID { get; set; }
  81. /// <summary>
  82. ///
  83. /// </summary>
  84. public string CategoryName { get; set; }
  85. /// <summary>
  86. ///
  87. /// </summary>
  88. [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
  89. public List<ServiceCategoryDTO> SubCategoryList = new List<ServiceCategoryDTO>();
  90. [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
  91. public Dictionary<string, ServiceCategoryDTO> SubCategoryDic = new Dictionary<string, ServiceCategoryDTO>();
  92. }
  93. public class ServiceRegionDTO
  94. {
  95. /// <summary>
  96. ///
  97. /// </summary>
  98. public string RegionID { get; set; }
  99. /// <summary>
  100. ///
  101. /// </summary>
  102. public string RegionName { get; set; }
  103. [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
  104. public List<ServiceCountryDTO> CountryList = new List<ServiceCountryDTO>();
  105. [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
  106. public Dictionary<string, ServiceCountryDTO> CountryDic = new Dictionary<string, ServiceCountryDTO>();
  107. }
  108. public class ServiceCountryDTO
  109. {
  110. /// <summary>
  111. ///
  112. /// </summary>
  113. public string CountryID { get; set; }
  114. /// <summary>
  115. ///
  116. /// </summary>
  117. public string CountryName { get; set; }
  118. [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
  119. public List<CityDTO> CityList = new List<CityDTO>();
  120. [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
  121. public Dictionary<string, CityDTO> CityDic = new Dictionary<string, CityDTO>();
  122. }
  123. public class ONSiteItemDTO
  124. {
  125. /// <summary>
  126. ///
  127. /// </summary>
  128. public string Guid { get; set; }
  129. public string ItemType { get; set; }
  130. public string ItemName { get; set; }
  131. public string ExpensesMemo { get; set; }
  132. public string EscortFreeCityID { get; set; }
  133. public DateTime? CreateDate { get; set; }
  134. //堆高機費用規則
  135. [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
  136. public List<ServiceCostRulesDTO> StackerCostRules = new List<ServiceCostRulesDTO>();
  137. //卡車費用規則
  138. [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
  139. public List<ServiceTruckCostRulesDTO> TruckCostRules = new List<ServiceTruckCostRulesDTO>();
  140. //卡車假日加班費
  141. [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
  142. public List<ServiceTruckOtherCostDTO> TruckHolidayPay = new List<ServiceTruckOtherCostDTO>();
  143. //卡車車型加價
  144. [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
  145. public List<ServiceTruckOtherCostDTO> TruckMarkupByModel = new List<ServiceTruckOtherCostDTO>();
  146. //非卡車,堆高機費用規則
  147. [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
  148. public List<ONSiteOtherCostRulesDTO> OtherCostRules = new List<ONSiteOtherCostRulesDTO>();
  149. }
  150. //堆高機費用規則
  151. public class ServiceCostRulesDTO {
  152. public int Index { get; set; }
  153. public string Guid { get; set; }
  154. public string Weight_Min { get; set; }
  155. public string Weight_Max { get; set; }
  156. public int? Price { get; set; }
  157. public string PricingMode { get; set; }
  158. public string Memo { get; set; }
  159. public DateTime? CreateDate { get; set; }
  160. }
  161. //卡車費用規則
  162. public class ServiceTruckCostRulesDTO
  163. {
  164. public string TruckID { get; set; }
  165. public string CityID { get; set; }
  166. public int? Price { get; set; }
  167. }
  168. //卡車假日加班費 卡車車型加價
  169. public class ServiceTruckOtherCostDTO
  170. {
  171. public string TruckID { get; set; }
  172. public int? Price { get; set; }
  173. }
  174. //非卡車,堆高機費用規則
  175. public class ONSiteOtherCostRulesDTO
  176. {
  177. public string Guid { get; set; }
  178. public string PricingMode { get; set; }
  179. public int? Price { get; set; }
  180. public int? InterbankPrice { get; set; }
  181. public string Unit_Min { get; set; }
  182. }
  183. public class OrderQuestionDTO
  184. {
  185. public string ServiceID { get; set; }
  186. public int QuestionID { get; set; }
  187. //1:必填 0:非必填
  188. public string RequiredFlag { get; set; }
  189. public string LangID { get; set; }
  190. public string SurveyName { get; set; }
  191. public string AnswerType { get; set; }
  192. public string Answer { get; set; }
  193. }
  194. }