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.

281 lines
8.1 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  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. //文字説明(非堆高機,非卡車)
  132. public string CostRuleText { get; set; }
  133. public string ExpensesMemo { get; set; }
  134. public string EscortFreeCityID { get; set; }
  135. public DateTime? CreateDate { get; set; }
  136. //堆高機費用規則
  137. [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
  138. public List<ServiceCostRulesDTO> StackerCostRules = new List<ServiceCostRulesDTO>();
  139. //卡車費用規則
  140. [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
  141. public List<ServiceTruckCostRulesDTO> TruckCostRules = new List<ServiceTruckCostRulesDTO>();
  142. //卡車假日加班費
  143. [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
  144. public List<ServiceTruckOtherCostDTO> TruckHolidayPay = new List<ServiceTruckOtherCostDTO>();
  145. //卡車車型加價
  146. [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
  147. public List<ServiceTruckOtherCostDTO> TruckMarkupByModel = new List<ServiceTruckOtherCostDTO>();
  148. //卡車押車費用規則
  149. [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
  150. public List<ServiceTruckCostRulesDTO> TruckEscortCostRules = new List<ServiceTruckCostRulesDTO>();
  151. //非卡車,堆高機費用規則
  152. [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
  153. public List<ONSiteOtherCostRulesDTO> OtherCostRules = new List<ONSiteOtherCostRulesDTO>();
  154. }
  155. //堆高機費用規則
  156. public class ServiceCostRulesDTO
  157. {
  158. public int Index { get; set; }
  159. public string Guid { get; set; }
  160. public string Weight_Min { get; set; }
  161. public string Weight_Max { get; set; }
  162. public int? Price { get; set; }
  163. public string PricingMode { get; set; }
  164. public string Memo { get; set; }
  165. public DateTime? CreateDate { get; set; }
  166. }
  167. //卡車費用規則
  168. public class ServiceTruckCostRulesDTO
  169. {
  170. public string TruckID { get; set; }
  171. public string CityID { get; set; }
  172. public int? Price { get; set; }
  173. }
  174. //卡車假日加班費 卡車車型加價
  175. public class ServiceTruckOtherCostDTO
  176. {
  177. public string TruckID { get; set; }
  178. public int? Price { get; set; }
  179. }
  180. //非卡車,堆高機費用規則
  181. public class ONSiteOtherCostRulesDTO
  182. {
  183. public string Guid { get; set; }
  184. public string PricingMode { get; set; }
  185. public int? Price { get; set; }
  186. public int? InterbankPrice { get; set; }
  187. public string Unit_Min { get; set; }
  188. }
  189. public class OrderQuestionDTO
  190. {
  191. public string ServiceID { get; set; }
  192. public int QuestionID { get; set; }
  193. //1:必填 0:非必填
  194. public string RequiredFlag { get; set; }
  195. public string LangID { get; set; }
  196. public string SurveyName { get; set; }
  197. public string AnswerType { get; set; }
  198. public string Answer { get; set; }
  199. }
  200. public class BookingOrderDTO
  201. {
  202. public string LangType { get; set; }
  203. public string ExhibitionID { get; set; }
  204. public string CurrencyID { get; set; }
  205. public string PayType { get; set; }
  206. public string ServiceID { get; set; }
  207. public string TotalPrice { get; set; }
  208. public List<string> BookingItem { get; set; }
  209. public List<string> OrderQuestion { get; set; }
  210. public string ServiceDateS { get; set; }
  211. public string ServiceDateE { get; set; }
  212. }
  213. }