CorporateProfitViews.cs 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. using OASystem.Domain.Entities.Financial;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace OASystem.Domain.ViewModels.Statistics
  8. {
  9. public class CorporateProfitViews
  10. {
  11. }
  12. public class CorporateProfitInfosView
  13. {
  14. public CorporateProfitInfo[] GroupItems { get; set; }
  15. public DailyInfo[] DailyItems { get; set; }
  16. }
  17. public class DailyInfo
  18. {
  19. public int Id { get; set; }
  20. public int PriceParentTypeId { get; set; }
  21. public string PriceParentTypeName { get; set; }
  22. public int PriceTypeId { get; set; }
  23. public string PriceTypeName { get; set; }
  24. public string CompanyName { get; set; }
  25. public string Instructions { get; set; }
  26. public decimal CNYTotal { get; set; }
  27. public List<Fin_DailyFeePaymentContent> PriceInfos { get; set; }
  28. }
  29. public class DailyPriceInfo
  30. {
  31. public int Id { get; set; }
  32. public int DFPId { get; set; }
  33. public string PriceName { get; set; }
  34. public decimal Quantity { get; set; }
  35. public decimal Price { get; set; }
  36. public decimal ItemTotal { get; set; }
  37. public string Remark { get; set; }
  38. }
  39. public class CorporateProfitInfo
  40. {
  41. public int RowIndex { get; set; }
  42. public int Id { get; set; }
  43. public string ClientName { get; set; }
  44. public string TeamName { get; set; }
  45. public int TeamDid { get; set; }
  46. public string GroupTypeName { get; set; }
  47. public DateTime VisitDate { get; set; }
  48. public int VisitPNumber { get; set; }
  49. /// <summary>
  50. /// 应收金额
  51. /// </summary>
  52. public decimal ReceivableAmount { get; set; }
  53. /// <summary>
  54. /// 已收金额
  55. /// </summary>
  56. public decimal ReceivedAmount { get; set; }
  57. /// <summary>
  58. /// 收款退还金额
  59. /// </summary>
  60. public decimal RefundedAmount { get; set; }
  61. /// <summary>
  62. /// 酒店金额
  63. /// </summary>
  64. public decimal HotelAmount { get; set; }
  65. /// <summary>
  66. /// 地接金额
  67. /// </summary>
  68. public decimal LocalGuideAmount { get; set; }
  69. /// <summary>
  70. /// 机票金额
  71. /// </summary>
  72. public decimal AirTicketAmount { get; set; }
  73. /// <summary>
  74. /// 签证金额
  75. /// </summary>
  76. public decimal VisaAmount { get; set; }
  77. /// <summary>
  78. /// 商邀金额
  79. /// </summary>
  80. public decimal OAAmount { get; set; }
  81. /// <summary>
  82. /// 保险金额
  83. /// </summary>
  84. public decimal InsureAmount { get; set; }
  85. /// <summary>
  86. /// 其他金额
  87. /// </summary>
  88. public decimal OtherAmount { get; set; }
  89. /// <summary>
  90. /// 收款合计
  91. /// </summary>
  92. public decimal CollectionTotal { get { return ReceivedAmount - RefundedAmount; } }
  93. /// <summary>
  94. /// 成本合计
  95. /// </summary>
  96. public decimal CostTotal { get { return HotelAmount + LocalGuideAmount + AirTicketAmount + VisaAmount + OAAmount + InsureAmount + OtherAmount; } }
  97. /// <summary>
  98. /// 利润合计
  99. /// </summary>
  100. public decimal ProfitTotal { get { return CollectionTotal - CostTotal; } }
  101. }
  102. public class CorporateProfitItem
  103. {
  104. public int RowIndex { get; set; }
  105. public int Id { get; set; }
  106. public string ClientName { get; set; }
  107. public string TeamName { get; set; }
  108. public DateTime VisitDate { get; set; }
  109. /// <summary>
  110. /// 收款合计
  111. /// </summary>
  112. public decimal CollectionTotal { get; set; }
  113. /// <summary>
  114. /// 成本合计
  115. /// </summary>
  116. public decimal CostTotal { get; set; }
  117. /// <summary>
  118. /// 利润合计
  119. /// </summary>
  120. public decimal ProfitTotal { get; set; }
  121. }
  122. public class CorporateProfitItemView
  123. {
  124. public CorporateProfitItem[] Items { get; set; }
  125. public string Label { get; set; }
  126. }
  127. }