|
@@ -70,6 +70,7 @@ using System.Linq;
|
|
|
using NPOI.POIFS.NIO;
|
|
|
using OASystem.API.OAMethodLib.QiYeWeChatAPI.AppNotice;
|
|
|
using OASystem.Domain.ViewModels.Statistics;
|
|
|
+using NPOI.XSSF.Model;
|
|
|
|
|
|
namespace OASystem.API.Controllers
|
|
|
{
|
|
@@ -10364,35 +10365,41 @@ namespace OASystem.API.Controllers
|
|
|
|
|
|
#region 数据处理
|
|
|
|
|
|
+ var currDatas = _sqlSugar.Queryable<Sys_SetData>().Where(it => it.STid == 66).ToList();
|
|
|
foreach (var item in hrDtas)
|
|
|
{
|
|
|
var ccpInfo = _sqlSugar.Queryable<Grp_CreditCardPayment>().Where(it => it.DIId == _dto.DiId && it.CId == item.Id).First();
|
|
|
-
|
|
|
+ string roomCurr = currDatas.Find(it => it.Id == ccpInfo.PaymentCurrency)?.Name ?? "";
|
|
|
pcfds.Add(new HotelReservations_PCFD_View()
|
|
|
{
|
|
|
City = item.City,
|
|
|
HotelName = item.HotelName,
|
|
|
Date = $"{item.CheckInDate} - {item.CheckOutDate}",
|
|
|
SingleRoomCount = item.SingleRoomCount,
|
|
|
- SingleRoomPrice = item.SingleRoomPrice,
|
|
|
+ SingleRoomPrice = item.SingleRoomPrice.ToString("#0.00") + " " + roomCurr,
|
|
|
DoubleRoomCount = item.DoubleRoomCount,
|
|
|
- DoubleRoomPrice = item.DoubleRoomPrice,
|
|
|
+ DoubleRoomPrice = item.DoubleRoomPrice.ToString("#0.00") + " " + roomCurr,
|
|
|
SuiteRoomCount = item.SuiteRoomCount,
|
|
|
- SuiteRoomPrice = item.SuiteRoomPrice,
|
|
|
- OtherRoomPrice = item.OtherRoomPrice,
|
|
|
+ SuiteRoomPrice = item.SuiteRoomPrice.ToString("#0.00") + " " + roomCurr,
|
|
|
+ OtherRoomPrice = item.OtherRoomPrice.ToString("#0.00") + " " + roomCurr,
|
|
|
OtherRoomCount = item.OtherRoomCount,
|
|
|
RoomCurrency = _sqlSugar.Queryable<Sys_SetData>().Where(it => it.Id == ccpInfo.PaymentCurrency).First()?.Name ?? "",
|
|
|
|
|
|
+ BreakfastPrice = $"{item.BreakfastPrice.ToString("#0.00")} {currDatas.Find(it => it.Id == item.BreakfastCurrency)?.Name ?? ""}",
|
|
|
+ GovernmentRent = $"{item.GovernmentRent.ToString("#0.00")} {currDatas.Find(it => it.Id == item.GovernmentRentCurrency)?.Name ?? ""}",
|
|
|
+ CityTax = $"{item.CityTax.ToString("#0.00")} {currDatas.Find(it => it.Id == item.CityTaxCurrency)?.Name ?? ""}",
|
|
|
+
|
|
|
RoomExplanation = item.RoomExplanation,
|
|
|
PayTypeName = _sqlSugar.Queryable<Sys_SetData>().Where(it => it.Id == ccpInfo.PayDId).First()?.Name ?? "",
|
|
|
PayTime = ccpInfo.ConsumptionDate,
|
|
|
BankNo = ccpInfo.BankNo,
|
|
|
- PayMoney = ccpInfo.PayMoney,
|
|
|
+ PayMoney = ccpInfo.PayMoney.ToString("#0.00") + " " + _sqlSugar.Queryable<Sys_SetData>().Where(it => it.Id == ccpInfo.PaymentCurrency).First()?.Name ?? "",
|
|
|
+ PayMoneys = ccpInfo.PayMoney.ToString("#0.00"),
|
|
|
PayMoneyCurrency = _sqlSugar.Queryable<Sys_SetData>().Where(it => it.Id == ccpInfo.PaymentCurrency).First()?.Name ?? "",
|
|
|
- CardPrice = item.CardPrice,
|
|
|
+ CardPrice = item.CardPrice + " " + _sqlSugar.Queryable<Sys_SetData>().Where(it => it.Id == ccpInfo.PaymentCurrency).First()?.Name ?? "",
|
|
|
Remark = ccpInfo.Remark
|
|
|
|
|
|
- }) ;
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
#endregion
|