|
@@ -98,15 +98,54 @@ namespace OASystem.Domain.ViewModels.Statistics
|
|
|
/// <summary>
|
|
|
/// 收款合计
|
|
|
/// </summary>
|
|
|
- public decimal CollectionTotal { get { return ReceivedAmount - RefundedAmount; } }
|
|
|
+ public decimal CollectionTotal
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ var total = ReceivedAmount - RefundedAmount;
|
|
|
+ var totalInt = (int)(total * 100);
|
|
|
+
|
|
|
+ var total1 = new decimal(0, 0, 0, false, 2);
|
|
|
+ if (total > 0) total1 = new decimal(totalInt, 0, 0, false, 2);
|
|
|
+ else if (total < 0) total1 = new decimal(totalInt, 0, 0, true, 2);
|
|
|
+
|
|
|
+ return total1;
|
|
|
+ }
|
|
|
+ }
|
|
|
/// <summary>
|
|
|
/// 成本合计
|
|
|
/// </summary>
|
|
|
- public decimal CostTotal { get { return HotelAmount + LocalGuideAmount + AirTicketAmount + VisaAmount + OAAmount + InsureAmount + OtherAmount; } }
|
|
|
+ public decimal CostTotal
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ var total = HotelAmount + LocalGuideAmount + AirTicketAmount + VisaAmount + OAAmount + InsureAmount + OtherAmount;
|
|
|
+ var totalInt = (int)(total * 100);
|
|
|
+
|
|
|
+ var total1 = new decimal(0, 0, 0, false, 2);
|
|
|
+ if (total > 0) total1 = new decimal(totalInt, 0, 0, false, 2);
|
|
|
+ else if (total < 0) total1 = new decimal(totalInt, 0, 0, true, 2);
|
|
|
+
|
|
|
+ return total1;
|
|
|
+ }
|
|
|
+ }
|
|
|
/// <summary>
|
|
|
/// 利润合计
|
|
|
/// </summary>
|
|
|
- public decimal ProfitTotal { get { return CollectionTotal - CostTotal; } }
|
|
|
+ public decimal ProfitTotal
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ var total = CollectionTotal - CostTotal;
|
|
|
+ var totalInt = (int)(total * 100);
|
|
|
+
|
|
|
+ var total1 = new decimal(0, 0, 0, false, 2);
|
|
|
+ if (total > 0) total1 = new decimal(totalInt, 0, 0, false, 2);
|
|
|
+ else if (total < 0) total1 = new decimal(totalInt, 0, 0, true, 2);
|
|
|
+
|
|
|
+ return total1;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
public class CorporateProfitItem
|