12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211 |
- 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 { }
- /// <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
- {
- /// <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; }
- #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; }
- #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 移动端
- #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 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 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; }
- #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; }
- }
- }
|