123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419 |
- using OASystem.Domain.Entities.Groups;
- using OASystem.Domain.ViewModels.Financial;
- using System;
- using System.Collections.Generic;
- using System.Data.SqlTypes;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace OASystem.Domain.ViewModels.Groups
- {
- /// <summary>
- /// 出入境费用 View
- /// </summary>
- public class EnterExitCostView:Grp_EnterExitCost { }
- public class EnterExitCostGroupNameView
- {
- public int Id { get; set; }
- public string GroupName { get; set; }
- public string IsNull { get; set; }
- }
- /// <summary>
- /// 出入境国家(城市)费用标准 View
- /// </summary>
- public class NationalTravelFeeView : Grp_NationalTravelFee { }
- /// <summary>
- /// 出入境国家(城市)费用标准Info View
- /// </summary>
- public class NationalTravelFeeInfoView
- {
- /// <summary>
- /// Id
- /// </summary>
- public int Id { get; set; }
- /// <summary>
- /// 洲别
- /// </summary>
- public string? Continent { get; set; }
- /// <summary>
- /// 国家
- /// </summary>
- public string? Country { get; set; }
- /// <summary>
- /// 城市
- /// </summary>
- public string? City { get; set; }
- /// <summary>
- /// 币种
- /// Sys_SetData STid=66
- /// </summary>
- public int Currency { get; set; }
- /// <summary>
- /// 币种code
- /// </summary>
- public string? CurrencyCode { get; set; }
- /// <summary>
- /// 币种Name
- /// </summary>
- public string? CurrencyName { get; set; }
- /// <summary>
- /// 住宿费
- /// </summary>
- public decimal RoomCost { get; set; } = 0;
- /// <summary>
- /// 伙食费
- /// </summary>
- public decimal FoodCost { get; set; } = 0;
- /// <summary>
- /// 公杂费
- /// </summary>
- public decimal PublicCost { get; set; } = 0;
- /// <summary>
- /// 最后更新人 Id
- /// </summary>
- public int LastUpdateUserId { get; set; }
- /// <summary>
- /// 最后更新人 name
- /// </summary>
- public string? LastUpdateUserName { get; set; }
- /// <summary>
- /// 最后更新时间
- /// </summary>
- public DateTime? LastUpdateTime { get; set; }
- }
- /// <summary>
- /// 出入境国家(城市)费用标准 Page Info View
- /// </summary>
- public class NationalTravelFeePageInfoView
- {
- /// <summary>
- /// 行号
- /// </summary>
- public int RowNumber { get; set; }
- public int Id { get; set; }
- /// <summary>
- /// 洲别
- /// </summary>
- public string? Continent { get; set; }
- /// <summary>
- /// 国家
- /// </summary>
- public string? Country { get; set; }
- /// <summary>
- /// 城市
- /// </summary>
- public string? City { get; set; }
- /// <summary>
- /// 币种
- /// Sys_SetData STid=66
- /// </summary>
- public int Currency { get; set; }
- /// <summary>
- /// 币种code
- /// </summary>
- public string CurrencyCode { get; set; }
- /// <summary>
- /// 币种名称
- /// </summary>
- public string CurrencyName { get; set; }
- /// <summary>
- /// 住宿费
- /// </summary>
- public decimal RoomCost { get; set; }
- /// <summary>
- /// 伙食费
- /// </summary>
- public decimal FoodCost { get; set; }
- /// <summary>
- /// 公杂费
- /// </summary>
- public decimal PublicCost { get; set; }
- /// <summary>
- /// 备注
- /// </summary>
- public string Remark { get; set; }
- /// <summary>
- /// 最后更新人
- /// </summary>
- public int LastUpdateUserId { get; set; }
- /// <summary>
- /// 最后更新人
- /// </summary>
- public string LastUpdateUserName { get; set; }
- /// <summary>
- /// 最后更新时间
- /// </summary>
- public DateTime? LastUpdateTime { get; set; } = DateTime.Now;
- }
- /// <summary>
- /// 出入境国家(城市)费用标准 Info View
- /// </summary>
- public class NationalTravelFeeInfoByCountryAndCityView
- {
- /// <summary>
- /// 洲别
- /// </summary>
- public string? Continent { get; set; }
- /// <summary>
- /// 国家
- /// </summary>
- public string? Country { get; set; }
- /// <summary>
- /// 城市
- /// </summary>
- public string? City { get; set; }
- /// <summary>
- /// 币种
- /// Sys_SetData STid=66
- /// </summary>
- public int Currency { get; set; }
- /// <summary>
- /// 币种code
- /// </summary>
- public string CurrencyCode { get; set; }
- /// <summary>
- /// 币种名称
- /// </summary>
- public string CurrencyName { get; set; }
- /// <summary>
- /// 住宿费
- /// </summary>
- public decimal RoomCost { get; set; }
- /// <summary>
- /// 伙食费
- /// </summary>
- public decimal FoodCost { get; set; }
- /// <summary>
- /// 公杂费
- /// </summary>
- public decimal PublicCost { get; set; }
- /// <summary>
- /// 备注
- /// </summary>
- public string Remark { get; set; }
- /// <summary>
- /// 最后更新人
- /// </summary>
- public int LastUpdateUserId { get; set; }
- /// <summary>
- /// 最后更新人
- /// </summary>
- public string LastUpdateUserName { get; set; }
- /// <summary>
- /// 最后更新时间
- /// </summary>
- public DateTime? LastUpdateTime { get; set; } = DateTime.Now;
- }
- /// <summary>
- /// 出入境费用info
- /// </summary>
- public class EnterExitCostInfoView
- {
- 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 int DiId { 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; }
- /// <summary>
- /// 第二项备注
- /// </summary>
- 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<DayAndCostInfoView>? QuarterageData { get; set; }
- /// <summary>
- /// 伙食费合计选择框
- /// </summary>
- public int ChoiceFour { get; set; }
- /// <summary>
- /// 伙食费子项Data
- /// </summary>
- public List<DayAndCostInfoView>? BoardWagesData { get; set; }
- /// <summary>
- /// 公杂费合计选择框
- /// </summary>
- public int ChoiceFive { get; set; }
- /// <summary>
- /// 公杂费子项Data
- /// </summary>
- public List<DayAndCostInfoView>? MiscellaneousFeeData { get; set; }
- /// <summary>
- /// 培训费用选择框
- /// </summary>
- public int ChoiceSix { get; set; }
- /// <summary>
- /// 培训费子项Data
- /// </summary>
- public List<DayAndCostInfoView>? 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<DayOtherPriceView> DayOtherPriceData { get; set; }
- #endregion
- }
- #region 移动端
- public class EnterExitCostMobileGroupView
- {
- public int Id { get; set; }
- public string GroupName { get; set; }
- public bool IsNull { get; set; }
- public bool IsEdit { get; set; }
- public bool IsView { get; set; }
- }
- #region info View
- public class EnterExitCostMobileInfoView
- {
- public int Id { get; set; }
- public int DiId { get; set; }
- #region 汇率币种
- /// <summary>
- /// 多个币种存储
- /// 存储方式: 美元(USD):6.2350|.......|墨西哥比索(MXN):1.0000
- /// </summary>
- public List<CurrencyInfo>? Currencys { get; set; }
- #endregion
- #region 1:境内费用(其他费用)
- /// <summary>
- /// 境内费用(其他费用)选择框
- /// </summary>
- public int ChoiceOne { get; set; }
- /// <summary>
- /// 境内费用(其他费用) 合计
- /// </summary>
- public decimal ChoiceOneTotalCost { get; set; }
- /// <summary>
- /// 境内费用(其他费用) 详情
- /// </summary>
- public ChoiceOneMobileInfoView ChoiceOneDetails { get; set; }
- #endregion
- #region 2:国际旅费
- /// <summary>
- /// 国际旅费合计选择框
- /// </summary>
- public int ChoiceTwo { get; set; }
- /// <summary>
- /// 国际旅费合计(经济舱)
- /// </summary>
- public decimal OutsideJJPay { get; set; }
- /// <summary>
- /// 国际旅费合计(公务舱)
- /// </summary>
- public decimal OutsideGWPay { get; set; }
- /// <summary>
- /// 国际旅费合计(头等舱)
- /// </summary>
- public decimal OutsideTDPay { get; set; }
- /// <summary>
- /// 国际旅费 详情
- /// </summary>
- public ChoiceTwoMobileInfoView ChoiceTwoDetails { get; set; }
- #endregion
- #region 3:住宿费
- /// <summary>
- /// 住宿费合计 选择框
- /// </summary>
- public int ChoiceThree { get; set; }
- /// <summary>
- /// 住宿费合计
- /// </summary>
- public decimal ChoiceThreeTotalCost { get { return ChoiceThreeDetails.Sum(x => x.SubTotal); } }
- /// <summary>
- /// 住宿费子项 Data
- /// </summary>
- public DayAndCostMobileInfoView[]? ChoiceThreeDetails { get; set; }
- #endregion
- #region 4:伙食费
- /// <summary>
- /// 伙食费合计 选择框
- /// </summary>
- public int ChoiceFour { get; set; }
- /// <summary>
- /// 伙食费合计
- /// </summary>
- public decimal ChoiceFourTotalCost { get { return ChoiceFourDetails.Sum(x => x.SubTotal); } }
- /// <summary>
- /// 伙食费子项Data
- /// </summary>
- public DayAndCostMobileInfoView[]? ChoiceFourDetails { get; set; }
- #endregion
- #region 5:公杂费
- /// <summary>
- /// 公杂费合计 选择框
- /// </summary>
- public int ChoiceFive { get; set; }
- /// <summary>
- /// 公杂费合计
- /// </summary>
- public decimal ChoiceFiveTotalCost { get { return ChoiceFiveDetails.Sum(x => x.SubTotal); } }
- /// <summary>
- /// 公杂费子项Data
- /// </summary>
- public DayAndCostMobileInfoView[]? ChoiceFiveDetails { get; set; }
- #endregion
- #region 6:培训费
- /// <summary>
- /// 培训费用选择框
- /// </summary>
- public int ChoiceSix { get; set; }
- /// <summary>
- /// 公杂费合计
- /// </summary>
- public decimal ChoiceSixTotalCost { get { return ChoiceSixDetails.Sum(x => x.SubTotal); } }
- /// <summary>
- /// 培训费子项Data
- /// </summary>
- public DayAndCostMobileInfoView[]? ChoiceSixDetails { get; set; }
- #endregion
- #region 7:其他
- /// <summary>
- /// 其他款项 选择框
- /// </summary>
- public int OtherExpenses_Checked { get; set; }
- /// <summary>
- /// 其他款项 选择框
- /// </summary>
- public decimal OtherExpensesTotalCost { get { return OtherExpensesDetails.Sum(x => x.SubTotal); } }
- /// <summary>
- /// 其他款项子项Data
- /// </summary>
- public DayOtherPriceMobileInfoView[] OtherExpensesDetails { get; set; }
- #endregion
- /// <summary>
- /// 经济舱费用总计
- /// </summary>
- public decimal TouristClassTotalCost
- {
- get
- {
- return OutsideJJPay <= 0 ? 0.00M : OutsideJJPay + ChoiceOneTotalCost + ChoiceThreeTotalCost + ChoiceFourTotalCost + ChoiceFiveTotalCost + ChoiceSixTotalCost + OtherExpensesTotalCost;
- }
- }
- /// <summary>
- /// 公务舱费用总计
- /// </summary>
- public decimal BusinessClassTotalCost
- {
- get
- {
- return OutsideGWPay <= 0 ? 0.00M : OutsideGWPay + ChoiceOneTotalCost + ChoiceThreeTotalCost + ChoiceFourTotalCost + ChoiceFiveTotalCost + ChoiceSixTotalCost + OtherExpensesTotalCost;
- }
- }
- /// <summary>
- /// 头等舱费用总计
- /// </summary>
- public decimal FirstClassTotalCost
- {
- get
- {
- return OutsideTDPay <= 0 ? 0.00M : OutsideTDPay + ChoiceOneTotalCost + ChoiceThreeTotalCost + ChoiceFourTotalCost + ChoiceFiveTotalCost + ChoiceSixTotalCost + OtherExpensesTotalCost;
- }
- }
- }
- public class ChoiceOneMobileInfoView
- {
- /// <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; }
- }
- public class ChoiceOneMobileSubInfoView : ChoiceOneMobileInfoView
- {
- public int Id { get; set; }
- /// <summary>
- /// 境内费用(其他费用)选择框
- /// </summary>
- public int ChoiceOne { get; set; }
- /// <summary>
- /// 境内费用(其他费用) 合计
- /// </summary>
- public decimal ChoiceOneTotalCost { get; set; }
- }
- public class ChoiceTwoMobileInfoView
- {
- /// <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; }
- }
- public class ChoiceTwoMobileSubInfoView : ChoiceTwoMobileInfoView
- {
- public int Id { get; set; }
- /// <summary>
- /// 国际旅费合计选择框 (经济舱)
- /// </summary>
- public int ChoiceTwoJJ { get; set; }
- /// <summary>
- /// 国际旅费合计(经济舱)
- /// </summary>
- public decimal OutsideJJPay { get; set; }
- /// <summary>
- /// 国际旅费合计选择框(公务舱)
- /// </summary>
- public int ChoiceTwoGW { get; set; }
- /// <summary>
- /// 国际旅费合计(公务舱)
- /// </summary>
- public decimal OutsideGWPay { get; set; }
- /// <summary>
- /// 国际旅费合计选择框(头等舱)
- /// </summary>
- public int ChoiceTwoTD { get; set; }
- /// <summary>
- /// 国际旅费合计(头等舱)
- /// </summary>
- public decimal OutsideTDPay { get; set; }
- }
- public class DayAndCostMobileInfoView
- {
- public int SubId { get; set; }
- public int DiId { 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 ChoiceMobileSubInfo3To6View
- {
- /// <summary>
- /// 主表Id
- /// </summary>
- public int ParentId { get; set; }
- /// <summary>
- /// 住宿费合计 选择框
- /// </summary>
- public int Choice { get; set; }
- /// <summary>
- /// 住宿费合计
- /// </summary>
- public decimal TotalCost { get; set; }
- public DayAndCostMobileInfoView[] Details { get; set; }
- }
-
- public class DayOtherPriceMobileInfoView
- {
- public int SubId { get; set; }
- public int DiId { 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 ChoiceSevenMobileSubInfoView
- {
- /// <summary>
- /// 主表Id
- /// </summary>
- public int ParentId { get; set; }
- /// <summary>
- /// 其他款项 选择框
- /// </summary>
- public int OtherExpenses_Checked { get; set; }
- /// <summary>
- /// 其他款项 选择框
- /// </summary>
- public decimal OtherExpensesTotalCost { get; set; }
- public DayOtherPriceMobileInfoView[] Details { get; set; }
- }
- #endregion
- #region Info Parent View
- public class EnterExitCostMobileParentInfoView
- {
- public int Id { get; set; }
- public int DiId { get; set; }
- #region 汇率币种
- /// <summary>
- /// 多个币种存储
- /// 存储方式: 美元(USD):6.2350|.......|墨西哥比索(MXN):1.0000
- /// </summary>
- public List<CurrencyInfo> Currencys { get; set; } = new List<CurrencyInfo> { };
- #endregion
- #region 1:境内费用(其他费用)
- /// <summary>
- /// 境内费用(其他费用)选择框
- /// </summary>
- public int ChoiceOne { get; set; }
- /// <summary>
- /// 境内费用(其他费用) 合计
- /// </summary>
- public decimal ChoiceOneTotalCost { get; set; }
- #endregion
- #region 2:国际旅费
- /// <summary>
- /// 国际旅费合计选择框 (经济舱)
- /// </summary>
- public int ChoiceTwoJJ { get; set; }
- /// <summary>
- /// 国际旅费合计(经济舱)
- /// </summary>
- public decimal OutsideJJPay { get; set; }
- /// <summary>
- /// 国际旅费合计选择框(公务舱)
- /// </summary>
- public int ChoiceTwoGW { get; set; }
- /// <summary>
- /// 国际旅费合计(公务舱)
- /// </summary>
- public decimal OutsideGWPay { get; set; }
- /// <summary>
- /// 国际旅费合计选择框(头等舱)
- /// </summary>
- public int ChoiceTwoTD { get; set; }
- /// <summary>
- /// 国际旅费合计(头等舱)
- /// </summary>
- public decimal OutsideTDPay { get; set; }
- #endregion
- #region 3:住宿费
- /// <summary>
- /// 住宿费合计 选择框
- /// </summary>
- public int ChoiceThree { get; set; }
- /// <summary>
- /// 住宿费合计
- /// </summary>
- public decimal ChoiceThreeTotalCost { get; set; }
- #endregion
- #region 4:伙食费
- /// <summary>
- /// 伙食费合计 选择框
- /// </summary>
- public int ChoiceFour { get; set; }
- /// <summary>
- /// 伙食费合计
- /// </summary>
- public decimal ChoiceFourTotalCost { get; set; }
- #endregion
- #region 5:公杂费
- /// <summary>
- /// 公杂费合计 选择框
- /// </summary>
- public int ChoiceFive { get; set; }
- /// <summary>
- /// 公杂费合计
- /// </summary>
- public decimal ChoiceFiveTotalCost { get; set; }
- #endregion
- #region 6:培训费
- /// <summary>
- /// 培训费用选择框
- /// </summary>
- public int ChoiceSix { get; set; }
- /// <summary>
- /// 公杂费合计
- /// </summary>
- public decimal ChoiceSixTotalCost { get; set; }
- #endregion
- #region 7:其他
- /// <summary>
- /// 其他款项 选择框
- /// </summary>
- public int OtherExpenses_Checked { get; set; }
- /// <summary>
- /// 其他款项 选择框
- /// </summary>
- public decimal OtherExpensesTotalCost { get; set; }
- #endregion
- /// <summary>
- /// 经济舱费用总计
- /// </summary>
- public decimal TouristClassTotalCost
- {
- get
- {
- return OutsideJJPay <= 0 ? 0.00M : OutsideJJPay + ChoiceOneTotalCost + ChoiceThreeTotalCost + ChoiceFourTotalCost + ChoiceFiveTotalCost + ChoiceSixTotalCost + OtherExpensesTotalCost;
- }
- }
- /// <summary>
- /// 公务舱费用总计
- /// </summary>
- public decimal BusinessClassTotalCost
- {
- get
- {
- return OutsideGWPay <= 0 ? 0.00M : OutsideGWPay + ChoiceOneTotalCost + ChoiceThreeTotalCost + ChoiceFourTotalCost + ChoiceFiveTotalCost + ChoiceSixTotalCost + OtherExpensesTotalCost;
- }
- }
- /// <summary>
- /// 头等舱费用总计
- /// </summary>
- public decimal FirstClassTotalCost
- {
- get
- {
- return OutsideTDPay <= 0 ? 0.00M : OutsideTDPay + ChoiceOneTotalCost + ChoiceThreeTotalCost + ChoiceFourTotalCost + ChoiceFiveTotalCost + ChoiceSixTotalCost + OtherExpensesTotalCost;
- }
- }
- }
- #endregion
- #endregion
- //#region 移动端 草稿
- //#region Info Parent View
- //public class EnterExitCostDraftMobileParentInfoView
- //{
- // public int Id { get; set; }
- // #region 汇率币种
- // /// <summary>
- // /// 多个币种存储
- // /// 存储方式: 美元(USD):6.2350|.......|墨西哥比索(MXN):1.0000
- // /// </summary>
- // public List<CurrencyInfo> Currencys { get; set; } = new List<CurrencyInfo> { };
- // #endregion
- // #region 1:境内费用(其他费用)
- // /// <summary>
- // /// 境内费用(其他费用)选择框
- // /// </summary>
- // public int ChoiceOne { get; set; }
- // /// <summary>
- // /// 境内费用(其他费用) 合计
- // /// </summary>
- // public decimal ChoiceOneTotalCost { get; set; }
- // #endregion
- // #region 2:国际旅费
- // /// <summary>
- // /// 国际旅费合计选择框 (经济舱)
- // /// </summary>
- // public int ChoiceTwoJJ { get; set; }
- // /// <summary>
- // /// 国际旅费合计(经济舱)
- // /// </summary>
- // public decimal OutsideJJPay { get; set; }
- // /// <summary>
- // /// 国际旅费合计选择框(公务舱)
- // /// </summary>
- // public int ChoiceTwoGW { get; set; }
- // /// <summary>
- // /// 国际旅费合计(公务舱)
- // /// </summary>
- // public decimal OutsideGWPay { get; set; }
- // /// <summary>
- // /// 国际旅费合计选择框(头等舱)
- // /// </summary>
- // public int ChoiceTwoTD { get; set; }
- // /// <summary>
- // /// 国际旅费合计(头等舱)
- // /// </summary>
- // public decimal OutsideTDPay { get; set; }
- // #endregion
- // #region 3:住宿费
- // /// <summary>
- // /// 住宿费合计 选择框
- // /// </summary>
- // public int ChoiceThree { get; set; }
- // /// <summary>
- // /// 住宿费合计
- // /// </summary>
- // public decimal ChoiceThreeTotalCost { get; set; }
- // #endregion
- // #region 4:伙食费
- // /// <summary>
- // /// 伙食费合计 选择框
- // /// </summary>
- // public int ChoiceFour { get; set; }
- // /// <summary>
- // /// 伙食费合计
- // /// </summary>
- // public decimal ChoiceFourTotalCost { get; set; }
- // #endregion
- // #region 5:公杂费
- // /// <summary>
- // /// 公杂费合计 选择框
- // /// </summary>
- // public int ChoiceFive { get; set; }
- // /// <summary>
- // /// 公杂费合计
- // /// </summary>
- // public decimal ChoiceFiveTotalCost { get; set; }
- // #endregion
- // #region 6:培训费
- // /// <summary>
- // /// 培训费用选择框
- // /// </summary>
- // public int ChoiceSix { get; set; }
- // /// <summary>
- // /// 公杂费合计
- // /// </summary>
- // public decimal ChoiceSixTotalCost { get; set; }
- // #endregion
- // #region 7:其他
- // /// <summary>
- // /// 其他款项 选择框
- // /// </summary>
- // public int OtherExpenses_Checked { get; set; }
- // /// <summary>
- // /// 其他款项 选择框
- // /// </summary>
- // public decimal OtherExpensesTotalCost { get; set; }
- // #endregion
- // /// <summary>
- // /// 经济舱费用总计
- // /// </summary>
- // public decimal TouristClassTotalCost
- // {
- // get
- // {
- // return OutsideJJPay <= 0 ? 0.00M : OutsideJJPay + ChoiceOneTotalCost + ChoiceThreeTotalCost + ChoiceFourTotalCost + ChoiceFiveTotalCost + ChoiceSixTotalCost + OtherExpensesTotalCost;
- // }
- // }
- // /// <summary>
- // /// 公务舱费用总计
- // /// </summary>
- // public decimal BusinessClassTotalCost
- // {
- // get
- // {
- // return OutsideGWPay <= 0 ? 0.00M : OutsideGWPay + ChoiceOneTotalCost + ChoiceThreeTotalCost + ChoiceFourTotalCost + ChoiceFiveTotalCost + ChoiceSixTotalCost + OtherExpensesTotalCost;
- // }
- // }
- // /// <summary>
- // /// 头等舱费用总计
- // /// </summary>
- // public decimal FirstClassTotalCost
- // {
- // get
- // {
- // return OutsideTDPay <= 0 ? 0.00M : OutsideTDPay + ChoiceOneTotalCost + ChoiceThreeTotalCost + ChoiceFourTotalCost + ChoiceFiveTotalCost + ChoiceSixTotalCost + OtherExpensesTotalCost;
- // }
- // }
- //}
- //#endregion
- //#endregion
- /// <summary>
- /// 出入境国家(城市)费用标准子项Info View
- /// </summary>
- public class DayAndCostInfoView
- {
- /// <summary>
- /// Id
- /// </summary>
- public int Id { get; set; }
- /// <summary>
- /// 团组Id
- /// </summary>
- public int DiId { 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; } = "";
- }
- /// <summary>
- /// 出入境国家(城市)费用标准子项Add View
- /// </summary>
- public class DayAndCostAddView
- {
- /// <summary>
- /// 主键编号
- /// </summary>
- public int Id { get; set; }
- /// <summary>
- /// 团组Id
- /// </summary>
- public int DiId { 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 DayOtherPriceView
- {
- public int Id { get; set; }
- public int DiId { 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 CurrencyInfo
- {
- /// <summary>
- /// 币种Code
- /// </summary>
- public string? CurrencyCode { get; set; }
- /// <summary>
- /// 币种名称
- /// </summary>
- public string? CurrencyName { get; set; }
- /// <summary>
- /// 币种当时汇率
- /// </summary>
- public decimal Rate { get; set; }
- }
- }
|