using OASystem.Domain.Entities.Financial;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OASystem.Domain.ViewModels.Statistics
{
public class CorporateProfitViews
{
}
public class CorporateProfitInfosView
{
public CorporateProfitInfo[] GroupItems { get; set; }
public DailyInfo[] DailyItems { get; set; }
}
public class DailyInfo
{
public int Id { get; set; }
public int CompanyId { get; set; }
public string CompanyName { get; set; }
///
/// 部门
///
public string Branch { get; set; }
///
/// 申请人
///
public string Applicant { get; set; }
public int PriceParentTypeId { get; set; }
public string PriceParentTypeName { get; set; }
public int PriceTypeId { get; set; }
public string PriceTypeName { get; set; }
public string Instructions { get; set; }
public decimal CNYTotal { get; set; }
public string PriceName { get; set; }
public decimal Quantity { get; set; }
public decimal Price { get; set; }
public decimal ItemTotal { get; set; }
public string Remark { get; set; }
public DateTime CreateTime { get; set; }
}
public class CorporateProfitInfo
{
public int RowIndex { get; set; }
public int Id { get; set; }
public string ClientName { get; set; }
public string TeamName { get; set; }
public int TeamDid { get; set; }
public string GroupTypeName { get; set; }
public DateTime VisitDate { get; set; }
public int VisitPNumber { get; set; }
///
/// 应收金额
///
public decimal ReceivableAmount { get; set; }
///
/// 已收金额
///
public decimal ReceivedAmount { get; set; }
///
/// 收款退还金额
///
public decimal RefundedAmount { get; set; }
///
/// 酒店金额
///
public decimal HotelAmount { get; set; }
///
/// 地接金额
///
public decimal LocalGuideAmount { get; set; }
///
/// 机票金额
///
public decimal AirTicketAmount { get; set; }
///
/// 签证金额
///
public decimal VisaAmount { get; set; }
///
/// 商邀金额
///
public decimal OAAmount { get; set; }
///
/// 保险金额
///
public decimal InsureAmount { get; set; }
///
/// 其他金额
///
public decimal OtherAmount { get; set; }
///
/// 收款合计
///
public decimal CollectionTotal
{
get
{
return ReceivedAmount - RefundedAmount;
}
}
///
/// 成本合计
///
public decimal CostTotal
{
get
{
return HotelAmount + LocalGuideAmount + AirTicketAmount + VisaAmount + OAAmount + InsureAmount + OtherAmount;
}
}
///
/// 利润合计/已收-成本
///
public decimal ProfitTotal
{
get
{
return CollectionTotal - CostTotal;
}
}
///
/// 应收利润合计/已收-成本
///
public decimal ReceivableProfitTotal
{
get
{
return ReceivableAmount - CostTotal;
}
}
///
/// 费用Tips Lable
///
public string FeeCountTipsLabel { get; set; }
}
///
/// 企业利润团组费用条数统计
///
public class CorporateProfitFeeCount
{
public int RowIndex { get; set; }
public int Id { get; set; }
public string TeamName { get; set; }
public DateTime VisitDate { get; set; }
///
/// 应收费用-Count
///
public int ReceivableTotal { get; set; }
///
/// 已收费用-Count
///
public int ReceivedTotal { get; set; }
///
/// 收款退还费用-Count
///
public int RefundedTotal { get; set; }
///
/// 酒店费用-Count
///
public int HotelTotal { get; set; }
///
/// 地接费用-Count
///
public int LocalGuideTotal { get; set; }
///
/// 机票费用-Count
///
public int AirTicketToal { get; set; }
///
/// 签证费用-Count
///
public int VisaTotal { get; set; }
///
/// 商邀费用-Count
///
public int OATotal { get; set; }
///
/// 保险费用-Count
///
public int InsureTotal { get; set; }
///
/// 其他费用-Count
///
public int OtherTotal { get; set; }
///
/// 费用Tips Lable
///
public string FeeCountTipsLabel
{
get
{
string tips = $"应收数据:{ReceivableTotal} 条
已收数据:{ReceivedTotal} 条
收款退还数据:{RefundedTotal} 条
酒店数据:{HotelTotal} 条
地接数据:{LocalGuideTotal} 条
机票数据:{AirTicketToal} 条
签证数据:{VisaTotal} 条
商邀数据:{OATotal} 条
保险退还数据:{InsureTotal} 条
其他费用数据:{OtherTotal} 条";
return tips;
}
}
}
public class CorporateProfitItem
{
public int RowIndex { get; set; }
public int Id { get; set; }
public string ClientName { get; set; }
public string TeamName { get; set; }
public DateTime VisitDate { get; set; }
///
/// 收款合计(已收金额)
///
public decimal CollectionTotal { get; set; }
///
/// 应收
///
public decimal ReceivableAmount { get; set; }
///
/// 成本合计
///
public decimal CostTotal { get; set; }
///
/// 利润合计/已收-成本
///
public decimal ProfitTotal { get; set; }
///
/// 应收利润合计/已收-成本
///
public decimal ReceivableProfitTotal { get; set; }
///
/// 费用Tips Lable
///
public string FeeCountTipsLabel { get; set; }
}
public class CorporateProfitItemView
{
public CorporateProfitItem[] Items { get; set; }
public string Label { get; set; }
}
public class CorporateProfitDailyView
{
public string No { get; set; }
public string PriceName { get; set; }
public decimal ThisMonthAmount { get; set; }
public decimal ThisYearAmount { get; set; }
public string Remark { get; set; }
}
public class CorporateProfitDailyCommentView
{
public string MonthComment { get; set; }
public string YearComment { get; set; }
}
}