DecreasePaymentsDto.cs 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. using OASystem.Domain.Entities.Groups;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Diagnostics.CodeAnalysis;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace OASystem.Domain.Dtos.Groups
  9. {
  10. /// <summary>
  11. /// 团组增减款项Dto
  12. /// </summary>
  13. public class DecreasePaymentsDto
  14. {
  15. public int UserId { get; set; }
  16. public int CTId { get; set; }
  17. public int PageIndex { get; set; } = 1;
  18. public int PageSize { get; set; } = 10;
  19. }
  20. public class DecreasePaymentsListDto
  21. {
  22. public int UserId { get; set; }
  23. public int DiId { get; set; }
  24. public int IsPaySign { get; set; } = -1;
  25. }
  26. /// <summary>
  27. /// 团组增减款项操作
  28. /// </summary>
  29. public class DecreasePaymentsOpDto
  30. {
  31. /// <summary>
  32. /// 操作状态
  33. /// 1 添加
  34. /// 2 修改
  35. /// </summary>
  36. public int Status { get; set; }
  37. /// <summary>
  38. /// 支付方式
  39. /// </summary>
  40. public int PayDId { get; set; }
  41. /// <summary>
  42. /// 费用标识
  43. /// </summary>
  44. public int OrbitalPrivateTransfer { get; set; }
  45. /// <summary>
  46. /// 对方开户行
  47. /// </summary>
  48. public string OtherBankName { get; set; }
  49. /// <summary>
  50. /// 对方银行账号
  51. /// </summary>
  52. public string OtherSideNo { get; set; }
  53. /// <summary>
  54. /// 对方姓名
  55. /// </summary>
  56. public string OtherSideName
  57. {
  58. get; set;
  59. }
  60. /// <summary>
  61. /// 编号
  62. /// </summary>
  63. public int Id { get; set; }
  64. /// <summary>
  65. /// 团组外键编号
  66. /// </summary>
  67. public int DiId { get; set; }
  68. /// <summary>
  69. /// 供应商地区
  70. /// 1 国内(默认) 2 国外
  71. /// </summary>
  72. public int SupplierArea { get; set; } = 1;
  73. /// <summary>
  74. /// 供应商类型
  75. /// </summary>
  76. public int SupplierTypeId { get; set; } = 0;
  77. /// <summary>
  78. /// 供应商名称
  79. /// </summary>
  80. public string SupplierName { get; set; }
  81. /// <summary>
  82. /// 供应商联系人
  83. /// </summary>
  84. public string SupplierContact { get; set; }
  85. /// <summary>
  86. /// 供应商联系电话
  87. /// </summary>
  88. public string SupplierContactNumber { get; set; }
  89. /// <summary>
  90. /// 供应商社交账号
  91. /// </summary>
  92. public string SupplierSocialAccount { get; set; }
  93. /// <summary>
  94. /// 供应商邮箱
  95. /// </summary>
  96. public string SupplierEmail { get; set; }
  97. /// <summary>
  98. /// 供应商地址
  99. /// </summary>
  100. public string SupplierAddress { get; set; }
  101. /// <summary>
  102. /// 费用名称
  103. /// </summary>
  104. public string PriceName { get; set; }
  105. /// <summary>
  106. /// 单价
  107. /// </summary>
  108. public decimal Price { get; set; }
  109. /// <summary>
  110. /// 数量
  111. /// </summary>
  112. public decimal Quantity { get; set; }
  113. /// <summary>
  114. /// 费用总计
  115. /// </summary>
  116. public decimal FeeTotal { get; set; }
  117. /// <summary>
  118. /// 费用币种
  119. /// </summary>
  120. public int Currency { get; set; }
  121. /// <summary>
  122. /// 附件地址
  123. /// </summary>
  124. public string FilePath { get; set; }
  125. /// <summary>
  126. /// 创建者Id
  127. /// </summary>
  128. public int CreateUserId { get; set; }
  129. /// <summary>
  130. /// 备注
  131. /// </summary>
  132. public string Remark { get; set; }
  133. /// <summary>
  134. /// OTA订单号NO
  135. /// </summary>
  136. public string OTAOrderNo { get; set; }
  137. /// <summary>
  138. /// 是否为选择的费用
  139. /// </summary>
  140. public int IsSelect { get; set; }
  141. }
  142. public class DecreasePaymentsByIdDto
  143. {
  144. public int Id { get; set; }
  145. }
  146. public class DelFileDto
  147. {
  148. public string fileName { get; set; }
  149. public int Id { get; set; }
  150. }
  151. public class AssociateSupplierDto
  152. {
  153. public string param { get; set; }
  154. }
  155. public class ProductComparer : IEqualityComparer<Grp_DecreasePayments>
  156. {
  157. public bool Equals(Grp_DecreasePayments x, Grp_DecreasePayments y)
  158. {
  159. if (Object.ReferenceEquals(x,y))
  160. {
  161. return true;
  162. }
  163. var xStr =
  164. x.SupplierAddress +
  165. x.SupplierArea +
  166. x.SupplierContact +
  167. x.SupplierContactNumber +
  168. x.SupplierEmail +
  169. x.SupplierName +
  170. x.SupplierSocialAccount +
  171. x.SupplierTypeId;
  172. var yStr =
  173. y.SupplierAddress +
  174. y.SupplierArea +
  175. y.SupplierContact +
  176. y.SupplierContactNumber +
  177. y.SupplierEmail +
  178. y.SupplierName +
  179. y.SupplierSocialAccount +
  180. y.SupplierTypeId;
  181. if (xStr == yStr)
  182. {
  183. return true;
  184. }
  185. return false;
  186. }
  187. public int GetHashCode([DisallowNull] Grp_DecreasePayments product)
  188. {
  189. return 0;
  190. }
  191. }
  192. }