1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987 |
- using Google.Protobuf;
- using Newtonsoft.Json;
- using OASystem.Domain.Entities.Financial;
- 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.Statistics
- {
- /// <summary>
- /// 团组报表
- /// </summary>
- public class GroupStatementView
- {
- }
- /// <summary>
- /// 团组报表
- /// Items View
- /// </summary>
- public class GroupStatementItemView
- {
- /// <summary>
- /// 序号
- /// </summary>
- public int Row_Number { get; set; }
- /// <summary>
- /// 是否操作完成
- /// 0否1是
- /// </summary>
- public int IsSure { get; set; }
- /// <summary>
- /// 主键Id
- /// 团组Id
- /// </summary>
- public int Id { get; set; }
- /// <summary>
- /// 团号
- /// </summary>
- public string? TourCode { get; set; }
- /// <summary>
- /// 接团操作人
- /// </summary>
- public string? JietuanOperator { get; set; }
- /// <summary>
- /// 团组等级Id
- /// </summary>
- public int TeamLevId { get; set; }
- /// <summary>
- /// 团组等级
- /// </summary>
- public string? TeamLev { get; set; }
- /// <summary>
- /// 团组名称
- /// </summary>
- public string? TeamName { get; set; }
- /// <summary>
- /// 客户名称
- /// </summary>
- public string? ClientName { get; set; }
- /// <summary>
- /// 客户所属公司
- /// </summary>
- public string? ClientUnit { get; set; }
- /// <summary>
- /// 团组类型Id
- /// </summary>
- public int TeamTypeId { get; set; }
- /// <summary>
- /// 团组类型
- /// </summary>
- public string? TeamType { get; set; }
- /// <summary>
- /// 出团日期
- /// </summary>
- public DateTime VisitDate { get; set; }
- /// <summary>
- /// 出行天数
- /// </summary>
- public int VisitDays { get; set; }
- /// <summary>
- /// 出行人数
- /// </summary>
- public int VisitPNumber { get; set; }
- /// <summary>
- /// 最后收款时间
- /// </summary>
- public DateTime? LastCollectionTime { get; set; }
- }
- /// <summary>
- /// 团组报表
- /// Details View
- /// </summary>
- public class GroupStatementDetailsView
- {
- /// <summary>
- /// 费用总计 描述
- /// </summary>
- public string? FeeTotalStr { get; set; }
- /// <summary>
- /// 团组收入
- /// Data View
- /// </summary>
- public GroupIncomeView? GroupIncome { get; set; }
- /// <summary>
- /// 团组收入
- /// 描述
- /// </summary>
- public string? GroupIncomeStr { get; set; }
- /// <summary>
- /// 团组支出
- /// </summary>
- public GroupExpenditureView? GroupExpenditure { get; set; }
- }
- #region 团组收入
- /// <summary>
- /// 团组收入
- /// Data View
- /// </summary>
- public class GroupIncomeView
- {
- /// <summary>
- /// 应收 Items
- /// </summary>
- public List<Gsd_ForeignReceivablesView>? Receivables { get; set; }
- /// <summary>
- /// 应收 Str
- /// </summary>
- public string? ReceivableStr { get; set; }
- /// <summary>
- /// 已收 Items
- /// </summary>
- public List<Gsd_ProceedsReceivedView>? ProceedsReceivedViews { get; set; }
- /// <summary>
- /// 已收 Str
- /// </summary>
- public string? ProceedsReceivedStr { get; set; }
- /// <summary>
- /// 支出费用 Items
- /// </summary>
- public List<Gsd_ExtraCostsView>? ExtraCostsViews { get; set; }
- /// <summary>
- /// 支出费用 Str
- /// </summary>
- public string? ExtraCostsStr { get; set; }
- /// <summary>
- /// 收款退还 Items
- /// </summary>
- public List<Gsd_PaymentRefundAndOtherMoneyView>? PaymentRefundAndOtherMoneyViews { get; set; }
- /// <summary>
- /// 收款退还 Str
- /// </summary>
- public string? PaymentRefundAndOtherMoneyStr { get; set; }
- }
- /// <summary>
- /// 应收报表
- /// </summary>
- public class Gsd_ForeignReceivablesView
- {
- public int Id { get; set; }
- public int diid { get; set; }
- /// <summary>
- /// 添加方式
- /// 0 - 账单模块 1 - 成本预算模块 2 - 实际报价
- /// </summary>
- public int AddingWay { get; set; }
- /// <summary>
- /// 审核状态 AddingWay==2该项有值
- /// 0 - 未审核 1 - 审核通过 2 - 审核不通过
- /// </summary>
- public int Status { get; set; }
- public string StatusStr
- {
- get
- {
- string str = "-";
- if (AddingWay == 2)
- {
- if (Status == 0) str = "未审核";
- else if (Status == 1) str = "审核通过";
- else if (Status == 2) str = "审核不通过";
- }
- return str;
- }
- }
- public string Auditor { get; set; }
- public string AuditorStr { get {
- string str = "-";
- if (AddingWay == 2)
- {
- if (Status != 0)
- {
- str = @$"{Auditor} ";
- }
- }
- return str;
- } }
- //public DateTime? AuditTime { get; set; }
- /// <summary>
- /// 费用名称
- /// </summary>
- public string? PriceName { get; set; }
- /// <summary>
- /// 单价
- /// </summary>
- public decimal Price { get; set; } = 0.00M;
- /// <summary>
- /// 数量
- /// </summary>
- public int Count { get; set; }
- /// <summary>
- /// 单位
- /// </summary>
- public string? Unit { get; set; }
- /// <summary>
- /// 币种
- /// </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 Rate { get; set; } = 1.0000M;
- /// <summary>
- /// 应收金额
- /// </summary>
- public decimal ItemSumPrice { get; set; } = 0.00M;
- public string Remark { get; set; }
- }
- /// <summary>
- /// 已收报表
- /// </summary>
- public class Gsd_ProceedsReceivedView
- {
- public int Id { get; set; }
- public int Diid { get; set; }
- public string SectionTimeDt { get; set; }
- /// <summary>
- /// 到款时间
- /// </summary>
- public string SectionTime { get {
- string dt = "";
- if (!string.IsNullOrEmpty(SectionTimeDt))
- {
- DateTime validDate;
- bool isValid = DateTime.TryParse(SectionTimeDt, out validDate);
- if (isValid)
- {
- dt = validDate.ToString("yyyy-MM-dd");
- }
- }
- return dt;
- } }
- /// <summary>
- /// 费用金额
- /// </summary>
- public decimal Price { get; set; } = 0.00M;
- /// <summary>
- /// 币种
- /// </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 string? Client { get; set; }
- /// <summary>
- /// 转账标识Id
- /// </summary>
- public int ReceivablesType { get; set; }
- /// <summary>
- /// 转账类型名称
- /// </summary>
- public string ReceivablesTypeName { get; set; }
- /// <summary>
- /// 备注
- /// </summary>
- public string? Remark { get; set; }
- }
- /// <summary>
- /// 超支费用
- /// </summary>
- public class Gsd_ExtraCostsView
- {
- public int GECId { get; set; }
- public int GECDiId { get; set; }
- /// <summary>
- /// 费用名称
- /// </summary>
- public string? PriceName { get; set; }
- /// <summary>
- /// 付款金额
- /// </summary>
- public decimal PayMoney { get; set; } = 0.00M;
- /// <summary>
- /// 付款币种
- /// </summary>
- public string? PaymentCurrency { get; set; }
- /// <summary>
- /// 当天汇率
- /// </summary>
- public decimal DayRate { get; set; } = 1.0000M;
- /// <summary>
- /// 人民币金额
- /// </summary>
- public decimal CNYPrice { get; set; } = 0.00M;
- /// <summary>
- /// 收款方
- /// </summary>
- public string? Payee { get; set; }
- /// <summary>
- /// 费用标识
- /// -1 未选择 0 公转 1 私转
- /// </summary>
- public int OrbitalPrivateTransfer { get; set; }
- /// <summary>
- /// 支付方式
- /// </summary>
- public string? PayWay { get; set; }
- /// <summary>
- /// 卡类型
- /// </summary>
- public string? CardType { get; set; }
- /// <summary>
- /// 付款状态
- /// </summary>
- public int IsPay { get; set; }
- /// <summary>
- /// 申请人
- /// </summary>
- public string? Applicant { get; set; }
- }
- /// <summary>
- /// 收款退还
- /// </summary>
- public class Gsd_PaymentRefundAndOtherMoneyView
- {
- public int Id { get; set; }
- public int DiId { get; set; }
- /// <summary>
- /// 费用名称
- /// </summary>
- public string? PriceName { get; set; }
- /// <summary>
- /// 币种code
- /// </summary>
- public string? PayCurrencyCode { get; set; }
- /// <summary>
- /// 币种名称
- /// </summary>
- public string? PayCurrencyName { get; set; }
- /// <summary>
- /// 费用
- /// </summary>
- public decimal Price { get; set; } = 0.00M;
- /// <summary>
- /// 人民币金额
- /// </summary>
- public decimal CNYPrice { get; set; } = 0.00M;
- /// <summary>
- /// 当时汇率
- /// </summary>
- public decimal ThisRate { get; set; } = 1.0000M;
- /// <summary>
- /// 收款方
- /// </summary>
- public string? Payee { get; set; }
- /// <summary>
- /// 付款时间
- /// </summary>
- public string? PayTime { get; set; }
- /// <summary>
- /// 费用标识
- /// -1 未选择 0 公转 1 私转
- /// </summary>
- public int OrbitalPrivateTransfer { get; set; }
- public string CostMark
- {
- get
- {
- return OrbitalPrivateTransfer == 0 ? "公转" : OrbitalPrivateTransfer == 1 ? "私转" : "-";
- }
- }
- /// <summary>
- /// 支付方式
- /// </summary>
- public string? PayType { get; set; }
- /// <summary>
- /// 付款状态
- /// 0 未付款 1 已付款
- /// </summary>
- public int IsPay { get; set; }
- public string IsPayLable
- {
- get
- {
- return IsPay == 0 ? "未付款" : IsPay == 1 ? "已付款" : "-";
- }
- }
- /// <summary>
- /// 申请人
- /// </summary>
- public string? Applicant { get; set; }
- public string Remark { get; set; }
- }
- #region 收款退还 View
- public class Gsd_PaymentRefundAndOtherMoneyDataSource1View : Grp_CreditCardPayment
- {
- /// <summary>
- /// 申请人
- /// </summary>
- public string Appliction { get; set; }
- public int PrId { get; set; }
- public int PrDiId { get; set; }
- public string PrPriceName { get; set; }
- public decimal PrPrice { get; set; } = 0.00M;
- public int PrCurrencyId { get; set; }
- public int PrPayType { get; set; }
- public int PrPriceType { get; set; }
- public string SKTHRemark { get; set; }
- };
- #endregion
- #endregion
- #region 团组支出
- /// <summary>
- /// 团组支出 View
- /// </summary>
- public class GroupExpenditureView
- {
- /// <summary>
- /// 酒店费用集合
- /// </summary>
- public List<GroupHotelFeeView>? GroupHotelFeeViews { get; set; }
- /// <summary>
- /// 酒店费用描述
- /// </summary>
- public string? GroupHotelFeeStr { get; set; }
- /// <summary>
- /// 地接费用集合
- /// </summary>
- public List<GroupCTGGRFeeView>? GroupCTGGRFeeViews { get; set; }
- /// <summary>
- /// 地接费用描述
- /// </summary>
- public string? GroupCTGGRFeeStr { get; set; }
- /// <summary>
- /// 机票费用集合
- /// </summary>
- public List<GroupAirFeeView>? GroupAirFeeViews { get; set; }
- /// <summary>
- /// 机票费用描述
- /// </summary>
- public string? GroupAirFeeStr { get; set; }
- /// <summary>
- /// 签证费用集合
- /// </summary>
- public List<GroupVisaFeeView>? GroupVisaFeeViews { get; set; }
- /// <summary>
- /// 签证费用描述
- /// </summary>
- public string? GroupVisaFeeStr { get; set; }
- /// <summary>
- /// 邀请/公务费用集合
- /// </summary>
- public List<GroupInvitationalFeeView>? GroupInvitationalFeeViews { get; set; }
- /// <summary>
- /// 邀请/公务费用描述
- /// </summary>
- public string? GroupInvitationalFeeStr { get; set; }
- /// <summary>
- /// 保险费用集合
- /// </summary>
- public List<GroupInsuranceFeeView>? GroupInsuranceFeeViews { get; set; }
- /// <summary>
- /// 保险费用描述
- /// </summary>
- public string? GroupInsuranceFeeStr { get; set; }
- /// <summary>
- /// 增减款项费用集合
- /// </summary>
- public List<GroupDecreaseFeeView>? GroupDecreaseFeeViews { get; set; }
- /// <summary>
- /// 增减款项费用描述
- /// </summary>
- public string? GroupDecreaseFeeStr { get; set; }
- public List<GroupRoyaltyFeeView> GroupRoyaltyFeeViews { get; set; }
- public string? GroupRoyaltyFeeStr { get; set; }
- }
- /// <summary>
- /// 酒店费用View
- /// </summary>
- public class GroupHotelFeeView
- {
- /// <summary>
- /// 团组Id
- /// </summary>
- public int HrDiId { get; set; }
- /// <summary>
- /// 酒店Id
- /// </summary>
- public int HrId { get; set; }
- /// <summary>
- /// 城市
- /// </summary>
- public string? City { get; set; }
- /// <summary>
- /// 酒店名称
- /// </summary>
- public string? HotelName { get; set; }
- /// <summary>
- /// 入住时间
- /// </summary>
- public string? CheckInDate { get; set; }
- /// <summary>
- /// 离店时间
- /// </summary>
- public string? CheckOutDate { get; set; }
- /// <summary>
- /// 单间价格
- /// </summary>
- public decimal SingleRoomPrice { get; set; } = 0.00M;
- /// <summary>
- /// 单间数量
- /// </summary>
- public int SingleRoomCount { get; set; }
- /// <summary>
- /// 双间价格
- /// </summary>
- public decimal DoubleRoomPrice { get; set; } = 0.00M;
- /// <summary>
- /// 双间数量
- /// </summary>
- public int DoubleRoomCount { get; set; }
- /// <summary>
- /// 套房价格
- /// </summary>
- public decimal SuiteRoomPrice { get; set; } = 0.00M;
- /// <summary>
- /// 套房数量
- /// </summary>
- public int SuiteRoomCount { get; set; }
- /// <summary>
- /// 其他房型价格
- /// </summary>
- public decimal OtherRoomPrice { get; set; } = 0.00M;
- /// <summary>
- /// 其他房型数量
- /// </summary>
- public int OtherRoomCount { get; set; }
- /// <summary>
- /// 房间费用
- /// </summary>
- public decimal RoomPrice { get; set; }
- /// <summary>
- /// 房间费用币种
- /// </summary>
- public string RoomPriceCurrency { get; set; }
- /// <summary>
- /// 房间费用提示信息
- /// </summary>
- public string RoomInfoTips { get; set; }
- /// <summary>
- /// excel Label
- /// </summary>
- public string RoomFeeLabel { get { return $"{RoomPrice.ToString("#0.00")} {RoomPriceCurrency}"; } }
- /// <summary>
- /// 早餐费用
- /// </summary>
- public decimal BreakfastPrice { get; set; } = 0.00M;
- /// <summary>
- /// 早餐币种
- /// </summary>
- public string? BreakfastCurrency { get; set; }
- /// <summary>
- /// 早餐提示消息
- /// </summary>
- public string BreakfastInfoTips { get; set; }
- /// <summary>
- /// excel Label
- /// </summary>
- public string BreakfastFeeLabel { get { return $"{BreakfastPrice.ToString("#0.00")} {BreakfastCurrency}"; } }
- ///// <summary>
- ///// 由地接支付
- ///// 0 是 1否
- ///// </summary>
- //public int Isoppay { get; set; }
- /// <summary>
- /// 地税
- /// </summary>
- public decimal GovernmentRent { get; set; } = 0.00M;
- /// <summary>
- /// 地税币种
- /// </summary>
- public string? GovernmentRentCurrency { get; set; }
- /// <summary>
- /// 地税提示消息
- /// </summary>
- public string GovernmentRentTips { get; set; }
- /// <summary>
- /// excel Label
- /// </summary>
- public string GovernmentRentFeeLabel { get { return $"{GovernmentRent.ToString("#0.00")} {GovernmentRentCurrency}"; } }
- /// <summary>
- /// 城市价格
- /// </summary>
- public decimal CityTax { get; set; } = 0.00M;
- /// <summary>
- /// 城市币种
- /// </summary>
- public string? CityTaxCurrency { get; set; }
- /// <summary>
- /// 城市税提示信息
- /// </summary>
- public string? CityTaxTips { get; set; }
- /// <summary>
- /// excel Label
- /// </summary>
- public string CityTaxFeeLabel { get { return $"{CityTax.ToString("#0.00")} {CityTaxCurrency}"; } }
- /// <summary>
- /// 信用卡金额
- /// </summary>
- public decimal PayMoney { get; set; } = 0.00M;
- /// <summary>
- /// 信用卡金额币种
- /// </summary>
- public string? PaymentCurrency { get; set; }
- /// <summary>
- /// 人民币金额
- /// </summary>
- public decimal CNYPrice { get; set; } = 0.00M;
- /// <summary>
- /// 人民币金额
- /// </summary>
- public string CNYPriceLabel { get { return $"{CNYPrice.ToString("#0.00")} CNY"; } }
- ///// <summary>
- ///// 当天汇率
- ///// </summary>
- //public decimal DayRate { get; set; } = 0.0000M;
- ///// <summary>
- ///// 币种汇率
- ///// </summary>
- //public string? CurrencyRateStr { get; set; }
- /// <summary>
- /// 收款方
- /// </summary>
- public string? Payee { get; set; }
- ///// <summary>
- ///// 费用标识
- ///// -1 未选择 0 公转 1 私转
- ///// </summary>
- public int OrbitalPrivateTransfer { get; set; }
- public string CostMark
- {
- get
- {
- var label = string.Empty;
- if (OrbitalPrivateTransfer == 0) label = "公转";
- else if (OrbitalPrivateTransfer == 1) label = "私转";
- return label;
- }
- }
- /// <summary>
- /// 支付方式
- /// </summary>
- public string? PayWay { get; set; }
- ///// <summary>
- ///// 卡类型
- ///// </summary>
- //public string? CardType { get; set; }
- /// <summary>
- /// 是否支付
- /// -1 未选择 0 未付款 1 已付款 2 其它费用子项未付款
- /// </summary>
- public int IsPay { get; set; }
- public string IsPayLable
- {
- get
- {
- var label = $"未选择";
- if (IsPay == 0) label = "未付款";
- else if (IsPay == 1) label = "已付款";
- else if (IsPay == 2) label = "其它费用子项未付款";
- return label;
- }
- }
- /// <summary>
- ///
- /// </summary>
- public string PayTips { get; set; }
- /// <summary>
- /// 操作人
- /// </summary>
- public string? Applicant { get; set; }
- public string Remark { get; set; }
- }
- /// <summary>
- /// 地接费用View
- /// </summary>
- public class GroupCTGGRFeeView
- {
- public int CTGGRDiId { get; set; }
- public int CTGGRId { get; set; }
- /// <summary>
- /// 地区
- /// </summary>
- public string? Area { get; set; }
- /// <summary>
- /// 费用名称
- /// </summary>
- public string? PriceName { get; set; }
- /// <summary>
- /// 费用描述
- /// </summary>
- public string? PriceContent { get; set; }
- /// <summary>
- /// 付款金额
- /// </summary>
- public decimal PayMoney { get; set; } = 0.00M;
- /// <summary>
- /// 付款币种
- /// </summary>
- public string? PaymentCurrency { get; set; }
- /// <summary>
- /// 此次付款百分比
- /// </summary>
- public decimal PayPercentage { get; set; } = 0.00M;
- /// <summary>
- /// 已付款金额
- /// </summary>
- public decimal AmountPaid { get; set; } = 0.00M;
- /// <summary>
- /// 尾款
- /// </summary>
- public decimal BalancePayment { get; set; } = 0.00M;
- /// <summary>
- /// 消费日期
- /// </summary>
- public DateTime DatePrice { get; set; }
- /// <summary>
- /// 当时汇率
- /// </summary>
- public decimal DayRate { get; set; } = 1.0000M;
- /// <summary>
- /// 付款人民币金额
- /// </summary>
- public decimal CNYPrice { get; set; }
- /// <summary>
- /// 付款金额
- /// </summary>
- public string? Payee { get; set; }
- /// <summary>
- /// 付款时间
- /// </summary>
- public string? AuditGMDate { get; set; }
- /// <summary>
- /// 费用标识
- /// -1 未选择 0 公转 1 私转
- /// </summary>
- public int OrbitalPrivateTransfer { get; set; }
- /// <summary>
- /// 费用标识Text
- /// </summary>
- public string CostMark
- {
- get
- {
- return OrbitalPrivateTransfer == 0 ? "公转" : OrbitalPrivateTransfer == 1 ? "私转" : "-";
- }
- }
- /// <summary>
- /// 支付方式
- /// </summary>
- public string? PayWay { get; set; }
- /// <summary>
- /// 是否支付
- /// -1 未选择 0 未付款 1 已付款
- /// </summary>
- public int IsPay { get; set; }
- public string IsPayLabel
- {
- get
- {
- return IsPay == 0 ? "未付款" : IsPay == 1 ? "已付款" : "-";
- }
- }
- /// <summary>
- /// 操作人
- /// </summary>
- public string? Applicant { get; set; }
- }
- /// <summary>
- /// 机票费用View
- /// </summary>
- public class GroupAirFeeView
- {
- public int AirId { get; set; }
- public int AirDiId { get; set; }
- /// <summary>
- /// 舱位类型
- /// </summary>
- public string? AirTypeName { get; set; }
- /// <summary>
- /// 航班号
- /// </summary>
- public string? FlightsCode { get; set; }
- /// <summary>
- /// 城市A-B
- /// </summary>
- public string? FlightsCity { get; set; }
- /// <summary>
- /// 航班日期
- /// </summary>
- public string? FlightsDate { get; set; }
- /// <summary>
- /// 航班时间
- /// </summary>
- public string? FlightsTime { get; set; }
- /// <summary>
- /// 客户姓名
- /// </summary>
- public string? ClientName { get; set; }
- /// <summary>
- /// 客户人数
- /// </summary>
- public int ClientNum { get; set; }
- /// <summary>
- /// 付款金额
- /// </summary>
- public decimal PayMoney { get; set; } = 0.00M;
- /// <summary>
- /// 付款币种
- /// </summary>
- public string? PayMoneyCurrency { get; set; }
- /// <summary>
- /// CNY 金额
- /// </summary>
- public decimal CNYPrice { get; set; } = 0.00M;
- /// <summary>
- /// 当时汇率
- /// </summary>
- public decimal DayRate { get; set; } = 1.0000M;
- /// <summary>
- /// 付款时间
- /// </summary>
- public string? AuditGMDate { get; set; }
- /// <summary>
- /// 收款方
- /// </summary>
- public string? Payee { get; set; }
- /// <summary>
- /// 费用标识
- /// -1 未选择 0 公转 1 私转
- /// </summary>
- public int OrbitalPrivateTransfer { get; set; }
- /// <summary>
- /// 支付方式
- /// </summary>
- public string? PayWay { get; set; }
- /// <summary>
- /// 卡类型
- /// </summary>
- public string? CardType { get; set; }
- /// <summary>
- /// 是否支付
- /// -1 未选择 0 未付款 1 已付款
- /// </summary>
- public int IsPay { get; set; }
- /// <summary>
- /// 操作人
- /// </summary>
- public string? Applicant { get; set; }
- /// <summary>
- /// SetDataId
- /// </summary>
- public int CType { get; set; }
- }
- /// <summary>
- /// 签证费用View
- /// </summary>
- public class GroupVisaFeeView
- {
- public int VisaId { get; set; }
- public int VisaDiId { get; set; }
- /// <summary>
- /// 客户名称
- /// </summary>
- public string? VisaClient { get; set; }
- /// <summary>
- /// 付款金额
- /// </summary>
- public decimal PayMoney { get; set; } = 0.00M;
- /// <summary>
- /// 付款金额
- /// </summary>
- public decimal CNYPrice { get; set; } = 0.00M;
- /// <summary>
- /// 付款币种
- /// </summary>
- public string? PayMoneyCurrency { get; set; }
- /// <summary>
- /// 当时汇率
- /// </summary>
- public decimal DayRate { get; set; } = 1.0000M;
- /// <summary>
- /// 付款时间
- /// </summary>
- public string? AuditGMDate { get; set; }
- /// <summary>
- /// 收款方
- /// </summary>
- public string? Payee { get; set; }
- /// <summary>
- /// 费用标识
- /// -1 未选择 0 公转 1 私转
- /// </summary>
- public int OrbitalPrivateTransfer { get; set; }
- /// <summary>
- /// 支付方式
- /// </summary>
- public string? PayWay { get; set; }
- /// <summary>
- /// 卡类型
- /// </summary>
- public string? CardType { get; set; }
- /// <summary>
- /// 是否支付
- /// -1 未选择 0 未付款 1 已付款
- /// </summary>
- public int IsPay { get; set; }
- /// <summary>
- /// 操作人
- /// </summary>
- public string? Applicant { get; set; }
- }
- /// <summary>
- /// 邀请/公务费用View
- /// </summary>
- public class GroupInvitationalFeeView
- {
- public int IOAId { get; set; }
- public int IOADiId { get; set; }
- /// <summary>
- /// 邀请方地区
- /// </summary>
- public string? InviterArea { get; set; }
- /// <summary>
- /// 邀请方
- /// </summary>
- public string? Inviter { get; set; }
- /// <summary>
- /// 邀请时间
- /// </summary>
- public string? InviteTime { get; set; }
- /// <summary>
- /// 邀请函费用
- /// </summary>
- public decimal InviteCost { get; set; } = 0.00M;
- /// <summary>
- /// 邀请函币种
- /// </summary>
- public string? InviteCurrency { get; set; }
- /// <summary>
- /// 快递费用
- /// </summary>
- public decimal SendCost { get; set; } = 0.00M;
- /// <summary>
- /// 快递币种
- /// </summary>
- public string? SendCurrency { get; set; }
- /// <summary>
- /// 活动费用
- /// </summary>
- public decimal EventsCost { get; set; } = 0.00M;
- /// <summary>
- /// 活动币种
- /// </summary>
- public string? EventsCurrency { get; set; }
- /// <summary>
- /// 翻译费用
- /// </summary>
- public decimal TranslateCost { get; set; } = 0.00M;
- /// <summary>
- /// 翻译币种
- /// </summary>
- public string? TranslateCurrency { get; set; }
- /// <summary>
- /// 付款金额
- /// </summary>
- public decimal PayMoney { get; set; } = 0.00M;
- /// <summary>
- /// 付款币种
- /// </summary>
- public string? PaymentCurrency { get; set; }
- /// <summary>
- /// 人民币费用
- /// </summary>
- public decimal CNYPrice { get; set; } = 0.00M;
- /// <summary>
- /// 人民币费用(后台计算)
- /// </summary>
- public decimal CNYPrice2 { get; set; } = 0.00M;
-
- /// <summary>
- /// 当时币种汇率
- /// </summary>
- public string? CurrencyRateStr { get; set; }
- /// <summary>
- /// 收款方
- /// </summary>
- public string? Payee { get; set; }
- /// <summary>
- /// 付款时间
- /// </summary>
- public string? AuditGMDate { get; set; }
- /// <summary>
- /// 费用标识
- /// -1 未选择 0 公转 1 私转
- /// </summary>
- public int OrbitalPrivateTransfer { get; set; }
- /// <summary>
- /// 支付方式
- /// </summary>
- public string? PayWay { get; set; }
- /// <summary>
- /// 是否支付
- /// -1 未选择 0 未付款 1 已付款
- /// </summary>
- public int IsPay { get; set; }
- /// <summary>
- /// 操作人
- /// </summary>
- public string? Applicant { get; set; }
- }
- /// <summary>
- /// 保险费用View
- /// </summary>
- public class GroupInsuranceFeeView
- {
- public int InsuranceId { get; set; }
- public int InsuranceDiId { get; set; }
- /// <summary>
- /// 客户名称
- /// </summary>
- public string? ClientName { get; set; }
- /// <summary>
- /// 付款金额
- /// </summary>
- public decimal PayMoney { get; set; } = 0.00M;
- /// <summary>
- /// 付款币种
- /// </summary>
- public string? PayMoneyCurrency { get; set; }
- /// <summary>
- /// 人民币金额
- /// </summary>
- public decimal CNYPrice { get; set; } = 0.00M;
- /// <summary>
- /// 付款时间
- /// </summary>
- public string? AuditGMDate { get; set; }
- /// <summary>
- /// 收款方
- /// </summary>
- public string? Payee { get; set; }
- /// <summary>
- /// 费用标识
- /// -1 未选择 0 公转 1 私转
- /// </summary>
- public int OrbitalPrivateTransfer { get; set; }
- /// <summary>
- /// 支付方式
- /// </summary>
- public string? PayWay { get; set; }
- /// <summary>
- /// 是否支付
- /// -1 未选择 0 未付款 1 已付款
- /// </summary>
- public int IsPay { get; set; }
- /// <summary>
- /// 操作人
- /// </summary>
- public string? Applicant { get; set; }
- }
- /// <summary>
- /// 增减款项View
- /// </summary>
- public class GroupDecreaseFeeView
- {
- public int DPId { get; set; }
- public int DPDiId { get; set; }
- /// <summary>
- /// 费用名称
- /// </summary>
- public string? PriceName { get; set; }
- /// <summary>
- /// 付款金额
- /// </summary>
- public decimal PayMoney { get; set; } = 0.00M;
- /// <summary>
- /// 付款币种
- /// </summary>
- public string? PayMoneyCurrency { get; set; }
- /// <summary>
- /// 当时汇率
- /// </summary>
- public decimal DayRate { get; set; } = 1.0000M;
- /// <summary>
- /// 人民币金额
- /// </summary>
- public decimal CNYPrice { get; set; } = 0.00M;
- /// <summary>
- /// 付款时间
- /// </summary>
- public string? AuditGMDate { get; set; }
- /// <summary>
- /// 收款方
- /// </summary>
- public string? Payee { get; set; }
- /// <summary>
- /// 费用标识
- /// -1 未选择 0 公转 1 私转
- /// </summary>
- public int OrbitalPrivateTransfer { get; set; }
- /// <summary>
- /// 支付方式
- /// </summary>
- public string? PayWay { get; set; }
- /// <summary>
- /// 是否支付
- /// -1 未选择 0 未付款 1 已付款
- /// </summary>
- public int IsPay { get; set; }
- /// <summary>
- /// 操作人
- /// </summary>
- public string? Applicant { get; set; }
- }
- public class GroupRoyaltyFeeInfo
- {
- public int GroupId { get; set; }
- public string OverviewInfo { get; set; }
- [JsonIgnore]
- public string DetailedInfo { get; set; }
- public string[] DetailedInfoText
- {
- get
- {
- var jsonArray = Array.Empty<string>();
- string str = DetailedInfo;
- if (string.IsNullOrWhiteSpace(str)) return jsonArray;
- str = str.Trim();
- if ((str.StartsWith("{") && str.EndsWith("}")) || // 检查是否是 JSON 对象
- (str.StartsWith("[") && str.EndsWith("]"))) // 检查是否是 JSON 数组
- {
- try
- {
- return JsonConvert.DeserializeObject<string[]>(str);
- }
- catch (JsonException)
- {
- return jsonArray;
- }
- }
- return jsonArray;
- }
- }
- public string DetailedInfoExcelText
- {
- get
- {
- string label = string.Empty;
- var array = DetailedInfoText;
- if (!array.Any()) return label;
- foreach (var item in array) label += $"{item}\n";
- if (label.EndsWith(@"\n")) label = label.Substring(0, label.Length - 2);
- return label;
- }
- }
- public decimal Amount { get; set; }
- public int IsConfirm { get; set; }
- public string IsConfrimText { get { return IsConfirm == 1 ? "已确认" : "未确认"; } }
- public int IsSeed { get; set; }
- public string IsSeedText { get { return IsSeed == 1 ? "已发放" : "未发放"; } }
- public string RoyaltyUserName { get; set; }
- public string CreateUserName { get; set; }
- public DateTime CreateTime { get; set; }
- }
- /// <summary>
- /// 操作人员提成View
- /// </summary>
- public class GroupRoyaltyFeeView
- {
- public int GroupId { get; set; }
- public string OverviewInfo { get; set; }
- public string[] DetailedInfoText { get; set; }
- public decimal Amount { get; set; }
- public string IsConfrimText { get; set; }
- public string IsSeedText { get; set; }
- public string RoyaltyUserName { get; set; }
- public string CreateUserName { get; set; }
- public DateTime CreateTime { get; set; }
- }
- #endregion
- #region 团组统计报表下载
- /// <summary>
- /// Excel 签证费用View
- /// </summary>
- public class GroupVisaFeeExcelView
- {
- public int VisaId { get; set; }
- public int VisaDiId { get; set; }
- /// <summary>
- /// 客户名称
- /// </summary>
- public string? VisaClient { get; set; }
- /// <summary>
- /// 付款金额
- /// </summary>
- public decimal PayMoney { get; set; } = 0.00M;
- /// <summary>
- /// 付款金额
- /// </summary>
- public decimal CNYPrice { get; set; } = 0.00M;
- /// <summary>
- /// 付款币种
- /// </summary>
- public string? PayMoneyCurrency { get; set; }
- /// <summary>
- /// 当时汇率
- /// </summary>
- public decimal DayRate { get; set; } = 1.0000M;
- /// <summary>
- /// 付款时间
- /// </summary>
- public string? AuditGMDate { get; set; }
- /// <summary>
- /// 收款方
- /// </summary>
- public string? Payee { get; set; }
- /// <summary>
- /// 费用标识
- /// -1 未选择 0 公转 1 私转
- /// </summary>
- public string CostMark { get; set; }
- /// <summary>
- /// 支付方式
- /// </summary>
- public string? PaymentModes { get; set; }
- /// <summary>
- /// 卡类型
- /// </summary>
- public string? CardType { get; set; }
- /// <summary>
- /// 是否支付
- /// </summary>
- public string IsPay { get; set; }
- /// <summary>
- /// 付款时间
- /// </summary>
- public string ConsumptionDate { get; set; }
- public string Remark { get; set; }
- /// <summary>
- /// 操作人
- /// </summary>
- public string? Applicant { get; set; }
- public DateTime CreateTime { get; set; }
- }
- /// <summary>
- /// Excel 商邀费用View
- /// </summary>
- public class GroupOAFeeExcelView
- {
- public int IOAId { get; set; }
- public int IOADiId { get; set; }
- /// <summary>
- /// 邀请方地区
- /// </summary>
- public string? InviterArea { get; set; }
- /// <summary>
- /// 邀请方
- /// </summary>
- public string? Inviter { get; set; }
- /// <summary>
- /// 邀请时间
- /// </summary>
- public string? InviteTime { get; set; }
- /// <summary>
- /// 邀请函费用
- /// </summary>
- public decimal InviteCost { get; set; } = 0.00M;
- /// <summary>
- /// 邀请函币种
- /// </summary>
- public string? InviteCurrency { get; set; }
- /// <summary>
- /// 快递费用
- /// </summary>
- public decimal SendCost { get; set; } = 0.00M;
- /// <summary>
- /// 快递币种
- /// </summary>
- public string? SendCurrency { get; set; }
- /// <summary>
- /// 活动费用
- /// </summary>
- public decimal EventsCost { get; set; } = 0.00M;
- /// <summary>
- /// 活动币种
- /// </summary>
- public string? EventsCurrency { get; set; }
- /// <summary>
- /// 翻译费用
- /// </summary>
- public decimal TranslateCost { get; set; } = 0.00M;
- /// <summary>
- /// 翻译币种
- /// </summary>
- public string? TranslateCurrency { get; set; }
- /// <summary>
- /// 付款金额
- /// </summary>
- public decimal PayMoney { get; set; } = 0.00M;
- /// <summary>
- /// 付款币种汇率
- /// </summary>
- public decimal DayRate { get; set; } = 0.0000M;
- /// <summary>
- /// 付款币种
- /// </summary>
- public string? PaymentCurrency { get; set; }
- /// <summary>
- /// 人民币费用
- /// </summary>
- public decimal CNYPrice { get; set; } = 0.00M;
- /// <summary>
- /// 收款方
- /// </summary>
- public string? Payee { get; set; }
- /// <summary>
- /// 消费日期
- /// </summary>
- public string ConsumptionDate { get; set; }
- /// <summary>
- /// 费用标识
- /// </summary>
- public string CostMark { get; set; }
- /// <summary>
- /// 支付标识
- /// </summary>
- public string IsPay { get; set; }
- /// <summary>
- /// 支付方式
- /// </summary>
- public string PaymentModes { get; set; }
- /// <summary>
- /// 备注
- /// </summary>
- public string Remark { get; set; }
- /// <summary>
- /// 审核时间
- /// </summary>
- public string? AuditGMDate { get; set; }
- /// <summary>
- /// 操作人
- /// </summary>
- public string? Applicant { get; set; }
- public DateTime CreateTime { get; set; }
- }
- /// <summary>
- /// Excel 机票费用View
- /// </summary>
- public class GroupAirTicketExcelView
- {
- public int AirId { get; set; }
- public int AirDiId { get; set; }
- /// <summary>
- /// 航班号
- /// </summary>
- public string? FlightsCode { get; set; }
- /// <summary>
- /// 城市A-B
- /// </summary>
- public string? FlightsCity { get; set; }
- /// <summary>
- /// 舱位类型
- /// </summary>
- public string? AirTypeName { get; set; }
- /// <summary>
- /// 航班日期
- /// </summary>
- public string? FlightsDate { get; set; }
- /// <summary>
- /// 航班时间
- /// </summary>
- public string? FlightsTime { get; set; }
- /// <summary>
- /// 客户姓名
- /// </summary>
- public string? ClientName { get; set; }
- /// <summary>
- /// 客户人数
- /// </summary>
- public int ClientNum { get; set; }
- /// <summary>
- /// 费用描述
- /// </summary>
- public string PriceDescription { get; set; }
- /// <summary>
- /// 付款金额
- /// </summary>
- public decimal PayMoney { get; set; } = 0.00M;
- /// <summary>
- /// 当时汇率
- /// </summary>
- public decimal DayRate { get; set; } = 1.0000M;
- /// <summary>
- /// 付款币种
- /// </summary>
- public string? PayMoneyCurrency { get; set; }
- /// <summary>
- /// CNY 金额
- /// </summary>
- public decimal CNYPrice { get; set; } = 0.00M;
- /// <summary>
- /// 付款时间
- /// </summary>
- public string ConsumptionDate { get; set; }
- /// <summary>
- /// 收款方
- /// </summary>
- public string? Payee { get; set; }
- /// <summary>
- /// 费用标识
- /// </summary>
- public string CostMark { get; set; }
- /// <summary>
- /// 是否支付
- /// </summary>
- public string IsPay { get; set; }
- /// <summary>
- /// 支付方式
- /// </summary>
- public string? PaymentModes { get; set; }
- /// <summary>
- /// 卡类型
- /// </summary>
- public string? CardType { get; set; }
- /// <summary>
- /// 审核时间
- /// </summary>
- public string? AuditGMDate { get; set; }
- /// <summary>
- /// 操作人
- /// </summary>
- public string? Applicant { get; set; }
- /// <summary>
- /// 创建时间
- /// </summary>
- public DateTime CreateTime { get; set; }
- /// <summary>
- /// SetDataId
- /// </summary>
- public int CType { get; set; }
- public string Remark { get; set; }
- }
- /// <summary>
- /// Excel 保险费用View
- /// </summary>
- public class GroupInsureExcelView
- {
- public int InsuranceId { get; set; }
- public int InsuranceDiId { get; set; }
- /// <summary>
- /// 客户名称
- /// </summary>
- public string? ClientName { get; set; }
- /// <summary>
- /// 付款金额
- /// </summary>
- public decimal PayMoney { get; set; } = 0.00M;
- /// <summary>
- /// 付款币种
- /// </summary>
- public string? PayMoneyCurrency { get; set; }
- /// <summary>
- /// 当时汇率
- /// </summary>
- public decimal DayRate { get; set; }
- /// <summary>
- /// 人民币金额
- /// </summary>
- public decimal CNYPrice { get; set; } = 0.00M;
- /// <summary>
- /// 付款时间
- /// </summary>
- public string ConsumptionDate { get; set; }
- /// <summary>
- /// 费用标识
- /// </summary>
- public string CostMark { get; set; }
- /// <summary>
- /// 审核时间
- /// </summary>
- public string? AuditGMDate { get; set; }
- /// <summary>
- /// 收款方
- /// </summary>
- public string? Payee { get; set; }
- /// <summary>
- /// 是否支付
- /// </summary>
- public string IsPay { get; set; }
- /// <summary>
- /// 支付方式
- /// </summary>
- public string? PaymentModes { get; set; }
- /// <summary>
- /// 操作人
- /// </summary>
- public string? Applicant { get; set; }
- public DateTime CreateTime { get; set; }
- public string Remark { get; set; }
- }
- /// <summary>
- /// Excel 保险费用View
- /// </summary>
- public class GroupOtherFeeExcelView
- {
- public int DPId { get; set; }
- public int DPDiId { get; set; }
- /// <summary>
- /// 费用名称
- /// </summary>
- public string? PriceName { get; set; }
- /// <summary>
- /// 付款金额
- /// </summary>
- public decimal PayMoney { get; set; } = 0.00M;
- /// <summary>
- /// 付款币种
- /// </summary>
- public string? PayMoneyCurrency { get; set; }
- /// <summary>
- /// 当时汇率
- /// </summary>
- public decimal DayRate { get; set; } = 1.0000M;
- /// <summary>
- /// 人民币金额
- /// </summary>
- public decimal CNYPrice { get; set; } = 0.00M;
- /// <summary>
- /// 付款时间
- /// </summary>
- public string? AuditGMDate { get; set; }
- /// <summary>
- /// 收款方
- /// </summary>
- public string? Payee { get; set; }
- /// <summary>
- /// 费用标识
- /// </summary>
- public string CostMark { get; set; }
- /// <summary>
- /// 支付方式
- /// </summary>
- public string? PaymentModes { get; set; }
- /// <summary>
- /// 是否支付
- /// </summary>
- public string IsPay { get; set; }
- /// <summary>
- /// 操作人
- /// </summary>
- public string? Applicant { get; set; }
- public DateTime CreateTime { get; set; }
- public string? Remark { get; set; }
- }
- /// <summary>
- /// 操作人员提成View
- /// </summary>
- public class GroupRoyaltyFeeExcelView
- {
- public int GroupId { get; set; }
- public string OverviewInfo { get; set; }
- public string DetailedInfoExcelText { get; set; }
- public decimal Amount { get; set; }
- public string IsConfrimText { get; set; }
- public string IsSeedText { get; set; }
- public string RoyaltyUserName { get; set; }
- public string CreateUserName { get; set; }
- public DateTime CreateTime { get; set; }
- }
- #endregion
- }
|