using System; using System.Collections.Generic; using System.Linq; using System.Reflection.Metadata.Ecma335; using System.Text; using System.Threading.Tasks; namespace OASystem.Domain.ViewModels.Statistics { /// /// 企业利润报表 /// public class CorporateProfit { public int DiId { get; set; } public string TeamName { get; set; } public DateTime CreateDt { get; set; } /// /// 总支出 /// public decimal TotalExpenditure { get; set; } /// /// 支出Item /// public List ExpenditureItem { get; set; } /// /// 应收金额 /// public decimal AmountReceivable { get; set; } /// /// 已收金额 /// public decimal AmountReceived { get; set; } /// /// 应收利润 /// public decimal ReceivableProfit { get; set; } /// /// 已收利润 /// public decimal ReceivedProfit { get; set; } } public class ExpenditureInfo { /// /// 名称 /// public string ItemName { get; set; } /// /// 金额 /// public decimal Amount { get; set; } } #region 企业利润 View public class CorporateProfitMonthView { /// /// 月份 /// public int Month { get; set; } /// /// 利润 /// public decimal Profit { get; set; } public Object GroupInfos { get; set; } } #endregion #region 团组各类型预订数量 View public class BookingNumberBaseView { public string Name { get; set; } public int Number { get; set; } } /// /// 接团 View /// public class GroupBookingNumberView: BookingNumberBaseView { public List GroupItem { get; set; } } /// /// 酒店 View /// public class HotelBookingNumberView : BookingNumberBaseView { public List HotelItem { get; set; } } public class HotelInfo : StatisticsHotelInfo { public GroupInfo GroupInfo { get; set; } } public class GroupInfo { /// /// 团组Id /// public int DiId { get; set; } /// /// 团组名称 /// public string TeamName { get; set; } /// /// 接团时间 /// public string CreateTime { get; set; } /// /// 单位 /// public string ClientUnit { get; set; } /// /// 负责人 /// public string Principal { get; set; } } public class GroupTypeNumberInfo { public int DiId { get; set; } public string GroupName { get; set; } public List TypeItem { get; set; } } public class TypeInfo { /// /// 类型Id /// 1 接团 2 酒店 3 机票 4 车辆 /// public int Id { get; set; } public string Name { get { if (Id == 1) return "接团"; else if (Id == 2) return "酒店"; else if (Id == 3) return "机票"; else if (Id == 4) return "车辆"; return "Unknown"; } } public List RegionItem { get; set; } } public class RegionInfo { public string Name { get; set; } public int Number { get; set; } public List Data { get; set; }= new List(); } public class StatisticsHotelInfo { public string HotelName { get; set; } public int SingleRoomNum { get; set; } public int DoubleRoomNum { get; set; } public int SuiteRoomNum { get; set; } public int OtherRoomNum { get; set; } } #endregion }