123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440 |
- using OASystem.Domain.Dtos;
- 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; }
- }
- /// <summary>
- /// 出入境费用info
- /// </summary>
- public class EnterExitCostDraftInfoView
- {
- public bool IsSave { get; set; }
- public bool IsView { get; set; } = false;
- public int[] ViewUsers { get; set; } = Array.Empty<int>();
- /// <summary>
- /// Id
- /// </summary>
- public int Id { get; set; }
- /// <summary>
- /// 团组Id
- /// </summary>
- public string DraftName { get; set; }
- /// <summary>
- /// 境内费用(其他费用)
- /// </summary>
- public decimal InsidePay { get; set; }
- #region 境内费用(其他费用)子项
- /// <summary>
- /// 签证费
- /// </summary>
- public decimal Visa { get; set; }
- /// <summary>
- /// 签证费描述
- /// </summary>
- public string? VisaRemark { get; set; }
- /// <summary>
- /// 疫苗费
- /// </summary>
- public decimal YiMiao { get; set; }
- /// <summary>
- /// 核酸检测费用
- /// </summary>
- public decimal HeSuan { get; set; }
- /// <summary>
- /// 服务费用
- /// </summary>
- public decimal Service { get; set; }
- /// <summary>
- /// 参展门票
- /// </summary>
- public decimal Ticket { get; set; }
- /// <summary>
- /// 保险费
- /// </summary>
- public decimal Safe { get; set; }
- public string FirstItemRemark { get; set; }
- #endregion
- /// <summary>
- /// 国际旅费合计(经济舱)
- /// </summary>
- public decimal OutsideJJPay { get; set; }
- /// <summary>
- /// 国际旅费合计(公务舱)
- /// </summary>
- public decimal OutsideGWPay { get; set; }
- /// <summary>
- /// 国际旅费合计(头等舱)
- /// </summary>
- public decimal OutsideTDPay { get; set; }
- #region 国际旅费合计(经济舱\公务舱\头等舱)
- /// <summary>
- /// 国际机票(经济舱)
- /// </summary>
- public decimal AirJJ { get; set; }
- /// <summary>
- /// 国际机票(公务舱)
- /// </summary>
- public decimal AirGW { get; set; }
- /// <summary>
- /// 国际机票(头等舱)
- /// </summary>
- public decimal AirTD { get; set; }
- /// <summary>
- /// 国外城市间交通费
- /// </summary>
- public decimal CityTranffic { get; set; }
- public string TwoItemRemark { get; set; }
- #region 汇率币种
- /// <summary>
- /// 多个币种存储
- /// 存储方式: 美元(USD):6.2350|.......|墨西哥比索(MXN):1.0000
- /// </summary>
- public List<CurrencyInfo>? Currencys { get; set; }
- #endregion
- #endregion
- #region 选择框状态
- /// <summary>
- /// 境内费用(其他费用)选择框
- /// </summary>
- public int ChoiceOne { get; set; }
- /// <summary>
- /// 国际旅费合计选择框
- /// </summary>
- public int ChoiceTwo { get; set; }
- /// <summary>
- /// 经济舱小计选择框
- /// </summary>
- public int SumJJC { get; set; }
- /// <summary>
- /// 公务舱小计选择框
- /// </summary>
- public int SumGWC { get; set; }
- /// <summary>
- /// 头等舱小计选择框
- /// </summary>
- public int SumTDC { get; set; }
- /// <summary>
- /// 住宿费合计选择框
- /// </summary>
- public int ChoiceThree { get; set; }
- /// <summary>
- /// 住宿费子项Data
- /// </summary>
- public List<DayAndCostDraftInfoView>? QuarterageData { get; set; }
- /// <summary>
- /// 伙食费合计选择框
- /// </summary>
- public int ChoiceFour { get; set; }
- /// <summary>
- /// 伙食费子项Data
- /// </summary>
- public List<DayAndCostDraftInfoView>? BoardWagesData { get; set; }
- /// <summary>
- /// 公杂费合计选择框
- /// </summary>
- public int ChoiceFive { get; set; }
- /// <summary>
- /// 公杂费子项Data
- /// </summary>
- public List<DayAndCostDraftInfoView>? MiscellaneousFeeData { get; set; }
- /// <summary>
- /// 培训费用选择框
- /// </summary>
- public int ChoiceSix { get; set; }
- /// <summary>
- /// 培训费子项Data
- /// </summary>
- public List<DayAndCostDraftInfoView>? TrainingExpenseData { get; set; }
- /// <summary>
- /// 经济舱选择框
- /// </summary>
- public int AirJJC_Checked { get; set; }
- /// <summary>
- /// 公务舱选择框
- /// </summary>
- public int AirGWC_Checked { get; set; }
- /// <summary>
- /// 头等舱选择框
- /// </summary>
- public int AirTDC_Checked { get; set; }
- /// <summary>
- /// 其他款项选择框
- /// </summary>
- public int OtherExpenses_Checked { get; set; }
- /// <summary>
- /// 其他款项子项Data
- /// </summary>
- public List<DayOtherPriceDraftView> DayOtherPriceData { get; set; }
- #endregion
- }
- /// <summary>
- /// 出入境国家(城市)费用标准子项Info View
- /// </summary>
- public class DayAndCostDraftInfoView
- {
- /// <summary>
- /// Id
- /// </summary>
- public int Id { get; set; }
- /// <summary>
- /// 团组Id
- /// </summary>
- public int ParentId { get; set; }
- /// <summary>
- /// 类型:1为住宿费;2为伙食费;3为公杂费;4培训费用
- /// </summary>
- public int Type { get; set; }
- /// <summary>
- /// 类型名称
- /// </summary>
- 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;
- }
- }
- /// <summary>
- /// 天数
- /// </summary>
- public int Days { get; set; }
- /// <summary>
- /// 出入境国家费用标准 - Id
- /// </summary>
- public int NationalTravelFeeId { get; set; }
- /// <summary>
- /// 出入境国家费用标准 - 国家
- /// </summary>
- public string? Country { get; set; }
- /// <summary>
- /// 出入境国家费用标准 - 城市
- /// </summary>
- public string? City { get; set; }
- ///// <summary>
- ///// 地名
- ///// </summary>
- //public string? Place { get; set; }
- /// <summary>
- /// 地名
- /// </summary>
- public string? PlaceName
- {
- get
- {
- string str = "";
- if (!string.IsNullOrEmpty(Country))
- {
- if (City.Contains("城市")) str = Country;
- else str = City;
- }
- return str;
- }
- }
- /// <summary>
- /// 费用标准
- /// </summary>
- public decimal Cost { get; set; }
- /// <summary>
- /// 币种 Id
- /// Sys_SetData STid = 66
- /// </summary>
- public int Currency { get; set; }
- /// <summary>
- /// 币种Code
- /// </summary>
- public string? CurremcyCode { get; set; }
- /// <summary>
- /// 币种名称
- /// </summary>
- public string? CurrencyName { get; set; }
- /// <summary>
- /// 小计
- /// </summary>
- public decimal SubTotal { get; set; }
- /// <summary>
- /// 备注
- /// </summary>
- 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; }
- }
- /// <summary>
- /// 出入境国家(城市)费用标准子项Add View
- /// </summary>
- public class DayAndCostDraftAddView
- {
- /// <summary>
- /// 主键编号
- /// </summary>
- public int Id { get; set; }
- /// <summary>
- /// 主表Id
- /// </summary>
- public int ParentId { get; set; }
- /// <summary>
- /// 类型:1为住宿费;2为伙食费;3为公杂费;4培训费用
- /// </summary>
- public int Type { get; set; }
- /// <summary>
- /// 天数
- /// </summary>
- public int Days { get; set; }
- /// <summary>
- /// 出入境国家费用标准 - Id
- /// </summary>
- public int NationalTravelFeeId { get; set; }
- /// <summary>
- /// 费用标准
- /// </summary>
- public decimal Cost { get; set; }
- /// <summary>
- /// 币种 Id
- /// Sys_SetData STid = 66
- /// </summary>
- public int Currency { get; set; }
- /// <summary>
- /// 小计
- /// </summary>
- public decimal SubTotal { get; set; }
- /// <summary>
- /// 备注
- /// </summary>
- 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; }
- }
- /// <summary>
- /// 出入境费用子项删除
- /// </summary>
- public class EnterExitCostDraftSubItemDelDto : DelBaseDto
- { }
- }
|