using OASystem.Domain.Dtos;
using OASystem.Domain.Dtos.Groups;
using OASystem.Domain.Entities.Groups;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OASystem.Domain.ViewModels.Groups
{
public class EnterExitCostDraftView:Grp_EnterExitCostDraft
{
}
public class PermissionViewUserview
{
public int Id { get; set; }
public string Name { get; set; }
}
///
/// 出入境费用info
///
public class EnterExitCostDraftInfoView
{
public bool IsSave { get; set; }
public bool IsView { get; set; } = false;
public int[] ViewUsers { get; set; } = Array.Empty();
///
/// Id
///
public int Id { get; set; }
///
/// 团组Id
///
public string DraftName { get; set; }
///
/// 境内费用(其他费用)
///
public decimal InsidePay { get; set; }
#region 境内费用(其他费用)子项
///
/// 签证费
///
public decimal Visa { get; set; }
///
/// 签证费描述
///
public string? VisaRemark { get; set; }
///
/// 疫苗费
///
public decimal YiMiao { get; set; }
///
/// 核酸检测费用
///
public decimal HeSuan { get; set; }
///
/// 服务费用
///
public decimal Service { get; set; }
///
/// 参展门票
///
public decimal Ticket { get; set; }
///
/// 保险费
///
public decimal Safe { get; set; }
public string FirstItemRemark { get; set; }
#endregion
///
/// 国际旅费合计(经济舱)
///
public decimal OutsideJJPay { get; set; }
///
/// 国际旅费合计(公务舱)
///
public decimal OutsideGWPay { get; set; }
///
/// 国际旅费合计(头等舱)
///
public decimal OutsideTDPay { get; set; }
#region 国际旅费合计(经济舱\公务舱\头等舱)
///
/// 国际机票(经济舱)
///
public decimal AirJJ { get; set; }
///
/// 国际机票(公务舱)
///
public decimal AirGW { get; set; }
///
/// 国际机票(头等舱)
///
public decimal AirTD { get; set; }
///
/// 国外城市间交通费
///
public decimal CityTranffic { get; set; }
public string TwoItemRemark { get; set; }
#region 汇率币种
///
/// 多个币种存储
/// 存储方式: 美元(USD):6.2350|.......|墨西哥比索(MXN):1.0000
///
public List? Currencys { get; set; }
#endregion
#endregion
#region 选择框状态
///
/// 境内费用(其他费用)选择框
///
public int ChoiceOne { get; set; }
///
/// 国际旅费合计选择框
///
public int ChoiceTwo { get; set; }
///
/// 经济舱小计选择框
///
public int SumJJC { get; set; }
///
/// 公务舱小计选择框
///
public int SumGWC { get; set; }
///
/// 头等舱小计选择框
///
public int SumTDC { get; set; }
///
/// 住宿费合计选择框
///
public int ChoiceThree { get; set; }
///
/// 住宿费子项Data
///
public List? QuarterageData { get; set; }
///
/// 伙食费合计选择框
///
public int ChoiceFour { get; set; }
///
/// 伙食费子项Data
///
public List? BoardWagesData { get; set; }
///
/// 公杂费合计选择框
///
public int ChoiceFive { get; set; }
///
/// 公杂费子项Data
///
public List? MiscellaneousFeeData { get; set; }
///
/// 培训费用选择框
///
public int ChoiceSix { get; set; }
///
/// 培训费子项Data
///
public List? TrainingExpenseData { get; set; }
///
/// 经济舱选择框
///
public int AirJJC_Checked { get; set; }
///
/// 公务舱选择框
///
public int AirGWC_Checked { get; set; }
///
/// 头等舱选择框
///
public int AirTDC_Checked { get; set; }
///
/// 其他款项选择框
///
public int OtherExpenses_Checked { get; set; }
///
/// 其他款项子项Data
///
public List DayOtherPriceData { get; set; }
#endregion
}
///
/// 出入境国家(城市)费用标准子项Info View
///
public class DayAndCostDraftInfoView
{
///
/// Id
///
public int Id { get; set; }
///
/// 团组Id
///
public int ParentId { get; set; }
///
/// 类型:1为住宿费;2为伙食费;3为公杂费;4培训费用
///
public int Type { get; set; }
///
/// 类型名称
///
public string? TypeName
{
get
{
string str = "";
if (Type == 1) str = string.Format("住宿费");
else if (Type == 2) str = string.Format("伙食费");
else if (Type == 3) str = string.Format("公杂费");
else if (Type == 4) str = string.Format("培训费");
return str;
}
}
///
/// 天数
///
public int Days { get; set; }
///
/// 出入境国家费用标准 - Id
///
public int NationalTravelFeeId { get; set; }
///
/// 出入境国家费用标准 - 国家
///
public string? Country { get; set; }
///
/// 出入境国家费用标准 - 城市
///
public string City { get; set; }
/////
///// 地名
/////
//public string? Place { get; set; }
///
/// 地名
///
public string? PlaceName
{
get
{
string str = "";
if (!string.IsNullOrEmpty(Country))
{
if (City.Contains("城市")) str = Country;
else str = City;
}
return str;
}
}
///
/// 费用标准
///
public decimal Cost { get; set; }
///
/// 币种 Id
/// Sys_SetData STid = 66
///
public int Currency { get; set; }
///
/// 币种Code
///
public string? CurremcyCode { get; set; }
///
/// 币种名称
///
public string? CurrencyName { get; set; }
///
/// 小计
///
public decimal SubTotal { get; set; }
///
/// 备注
///
public string? Remark { get; set; } = "";
}
public class DayOtherPriceDraftView
{
public int Id { get; set; }
public int ParentId { get; set; }
public int SetDataId { get; set; }
public int Index { get; set; }
public decimal Cost { get; set; }
public int Currency { get; set; }
public decimal SubTotal { get; set; }
public string Remark { get; set; }
}
///
/// 出入境国家(城市)费用标准子项Add View
///
public class DayAndCostDraftAddView
{
///
/// 主键编号
///
public int Id { get; set; }
///
/// 主表Id
///
public int ParentId { get; set; }
///
/// 类型:1为住宿费;2为伙食费;3为公杂费;4培训费用
///
public int Type { get; set; }
///
/// 天数
///
public int Days { get; set; }
///
/// 出入境国家费用标准 - Id
///
public int NationalTravelFeeId { get; set; }
///
/// 费用标准
///
public decimal Cost { get; set; }
///
/// 币种 Id
/// Sys_SetData STid = 66
///
public int Currency { get; set; }
///
/// 小计
///
public decimal SubTotal { get; set; }
///
/// 备注
///
public string? Remark { get; set; } = "";
}
public class DayOtherPriceDraftAddView
{
public int Id { get; set; }
public int ParentId { get; set; }
public int SetDataId { get; set; }
public int Index { get; set; }
public decimal Cost { get; set; }
public int Currency { get; set; }
public decimal SubTotal { get; set; }
public string Remark { get; set; }
}
///
/// 出入境费用子项删除
///
public class EnterExitCostDraftSubItemDelDto : DelBaseDto
{ }
#region 移动端 草稿
#region Info Parent View
public class DayAndCostDraftMobileInfoView
{
public int SubId { get; set; }
public int ParentId { get; set; }
public int Type { get; set; }
public int Days { get; set; }
public int NationalTravelFeeId { get; set; }
public string Arae { get; set; }
public decimal Cost { get; set; }
public int Currency { get; set; }
public string CurrencyName { get; set; }
public decimal SubTotal { get; set; }
}
public class DayOtherPriceDraftMobileInfoView
{
public int SubId { get; set; }
public int ParentId { get; set; }
public int Index { get; set; }
public int SetDataId { get; set; }
public string SetDataName { get; set; }
public decimal Cost { get; set; }
public int Currency { get; set; }
public string CurrencyName { get; set; }
public decimal SubTotal { get; set; }
public string Remark { get; set; }
}
public class EnterExitCostDraftMobileParentInfoView
{
public int Id { get; set; }
#region 汇率币种
///
/// 多个币种存储
/// 存储方式: 美元(USD):6.2350|.......|墨西哥比索(MXN):1.0000
///
public List Currencys { get; set; } = new List { };
#endregion
#region 1:境内费用(其他费用)
///
/// 境内费用(其他费用)选择框
///
public int ChoiceOne { get; set; }
///
/// 境内费用(其他费用) 合计
///
public decimal ChoiceOneTotalCost { get; set; }
#endregion
#region 2:国际旅费
///
/// 国际旅费合计选择框 (经济舱)
///
public int ChoiceTwoJJ { get; set; }
///
/// 国际旅费合计(经济舱)
///
public decimal OutsideJJPay { get; set; }
///
/// 国际旅费合计选择框(公务舱)
///
public int ChoiceTwoGW { get; set; }
///
/// 国际旅费合计(公务舱)
///
public decimal OutsideGWPay { get; set; }
///
/// 国际旅费合计选择框(头等舱)
///
public int ChoiceTwoTD { get; set; }
///
/// 国际旅费合计(头等舱)
///
public decimal OutsideTDPay { get; set; }
#endregion
#region 3:住宿费
///
/// 住宿费合计 选择框
///
public int ChoiceThree { get; set; }
///
/// 住宿费合计
///
public decimal ChoiceThreeTotalCost { get; set; }
#endregion
#region 4:伙食费
///
/// 伙食费合计 选择框
///
public int ChoiceFour { get; set; }
///
/// 伙食费合计
///
public decimal ChoiceFourTotalCost { get; set; }
#endregion
#region 5:公杂费
///
/// 公杂费合计 选择框
///
public int ChoiceFive { get; set; }
///
/// 公杂费合计
///
public decimal ChoiceFiveTotalCost { get; set; }
#endregion
#region 6:培训费
///
/// 培训费用选择框
///
public int ChoiceSix { get; set; }
///
/// 公杂费合计
///
public decimal ChoiceSixTotalCost { get; set; }
#endregion
#region 7:其他
///
/// 其他款项 选择框
///
public int OtherExpenses_Checked { get; set; }
///
/// 其他款项 选择框
///
public decimal OtherExpensesTotalCost { get; set; }
#endregion
///
/// 经济舱费用总计
///
public decimal TouristClassTotalCost
{
get
{
return OutsideJJPay <= 0 ? 0.00M : OutsideJJPay + ChoiceOneTotalCost + ChoiceThreeTotalCost + ChoiceFourTotalCost + ChoiceFiveTotalCost + ChoiceSixTotalCost + OtherExpensesTotalCost;
}
}
///
/// 公务舱费用总计
///
public decimal BusinessClassTotalCost
{
get
{
return OutsideGWPay <= 0 ? 0.00M : OutsideGWPay + ChoiceOneTotalCost + ChoiceThreeTotalCost + ChoiceFourTotalCost + ChoiceFiveTotalCost + ChoiceSixTotalCost + OtherExpensesTotalCost;
}
}
///
/// 头等舱费用总计
///
public decimal FirstClassTotalCost
{
get
{
return OutsideTDPay <= 0 ? 0.00M : OutsideTDPay + ChoiceOneTotalCost + ChoiceThreeTotalCost + ChoiceFourTotalCost + ChoiceFiveTotalCost + ChoiceSixTotalCost + OtherExpensesTotalCost;
}
}
}
///
/// 出入境费用详情 Dto
///
public class EnterExitCostDraftInfobyDiIdDto : PortDtoBase
{
///
/// 团组Id
///
public int DraftId { get; set; }
public int CurrUserId { get; set; }
}
public class PostEnterExitCostDraftMobileSubInfoDto : EnterExitCostDraftInfobyDiIdDto
{
///
/// 费用项Type
/// 1:境内费用 2:国际旅费 3:住宿费 4:伙食费 5:公杂费 6:培训费 7:其他
///
public int SubType { get; set; }
}
public class ChoiceDraftMobileSubInfo3To6View
{
///
/// 主表Id
///
public int ParentId { get; set; }
///
/// 住宿费合计 选择框
///
public int Choice { get; set; }
///
/// 住宿费合计
///
public decimal TotalCost { get; set; }
public DayAndCostDraftMobileInfoView[] Details { get; set; }
}
public class ChoiceSevenDraftMobileSubInfoView
{
///
/// 主表Id
///
public int ParentId { get; set; }
///
/// 其他款项 选择框
///
public int OtherExpenses_Checked { get; set; }
///
/// 其他款项 选择框
///
public decimal OtherExpensesTotalCost { get; set; }
public DayOtherPriceDraftMobileInfoView[] Details { get; set; }
}
#endregion
#endregion
}