|
@@ -13257,7 +13257,7 @@ FROM
|
|
|
if (!info1.Rates.Any())
|
|
|
{
|
|
|
var rates = await GeneralMethod.EnterExitCostInitRate();
|
|
|
- rates.Add(new CurrencyInfo() { CurrencyCode = "CNY", CurrencyName = "人民币", Rate = 1.00000M });
|
|
|
+ rates.Insert(0, new CurrencyInfo() { CurrencyCode = "CNY", CurrencyName = "人民币", Rate = 1.00000M });
|
|
|
info1.Rates = rates.ToArray();
|
|
|
}
|
|
|
return Ok(JsonView(info1));
|
|
@@ -13265,6 +13265,7 @@ FROM
|
|
|
|
|
|
var result = await _enterExitCostQuoteRep.InfoByGroupIdAsync(dto.DiId);
|
|
|
|
|
|
+ result.GroupId = groupId;
|
|
|
//处理报价名称
|
|
|
var groupInfo = await _sqlSugar.Queryable<Grp_DelegationInfo>().FirstAsync(x => x.Id == dto.DiId && x.IsDel == 0);
|
|
|
if (groupInfo != null)
|
|
@@ -13288,7 +13289,6 @@ FROM
|
|
|
var info = await _enterExitCostRep.GetEnterExitCostInfoByDiId(dto);
|
|
|
if (info.Code != StatusCodes.Status200OK)
|
|
|
{
|
|
|
- result.GroupId = groupId;
|
|
|
if (!result.Rates.Any())
|
|
|
{
|
|
|
var rates = await GeneralMethod.EnterExitCostInitRate();
|
|
@@ -13304,7 +13304,13 @@ FROM
|
|
|
var cityFilter = new List<string>() { "全部城市", "其他城市" };
|
|
|
var currencys = await _sqlSugar.Queryable<Sys_SetData>().Where(x => x.IsDel == 0 && x.STid == 66).ToListAsync();
|
|
|
var eecRates = infoView.Currencys;
|
|
|
-
|
|
|
+ //默认添加人名币
|
|
|
+ if (!eecRates.Any(x => x.CurrencyCode.Equals("CNY")))
|
|
|
+ {
|
|
|
+ eecRates.Insert(0, new CurrencyInfo() { CurrencyCode = "CNY", CurrencyName = "人民币", Rate = 1.00000M });
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
//处理团组人数
|
|
|
int pplNum = 1;
|
|
|
if (groupInfo != null) pplNum = groupInfo.VisitPNumber;
|
|
@@ -13511,7 +13517,7 @@ FROM
|
|
|
var thisRate = eecRates.FirstOrDefault(x => x.CurrencyCode.Equals(thisCurrency))?.Rate ?? 1.0000M;
|
|
|
int quantity = item.ToList().Count;
|
|
|
|
|
|
- mealCosts.Add(new QuoteSubItemInfo
|
|
|
+ miscCosts.Add(new QuoteSubItemInfo
|
|
|
{
|
|
|
ItemId = miscItemTypeId,
|
|
|
Index = miscIndex,
|
|
@@ -13526,7 +13532,7 @@ FROM
|
|
|
miscIndex++;
|
|
|
}
|
|
|
|
|
|
- views.AddRange(mealCosts);
|
|
|
+ views.AddRange(miscCosts);
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
@@ -13609,12 +13615,12 @@ FROM
|
|
|
else
|
|
|
{
|
|
|
var rates = await GeneralMethod.EnterExitCostInitRate();
|
|
|
+ rates.Insert(0,new CurrencyInfo() { CurrencyCode = "CNY", CurrencyName = "人民币", Rate = 1.00000M });
|
|
|
result.Rates = rates.ToArray();
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- result.Rates = eecRates.ToArray();
|
|
|
|
|
|
return Ok(JsonView(result));
|
|
|
}
|
|
@@ -13685,12 +13691,12 @@ FROM
|
|
|
var vehArranges = info.FeeItems.FirstOrDefault(x => x.ItemId == 1357); //车辆安排
|
|
|
var inviteTo = info.FeeItems.FirstOrDefault(x => x.ItemId == 1358); //邀请函发放对象
|
|
|
var inviteCosts = info.FeeItems.FirstOrDefault(x => x.ItemId == 1359); //邀请函费用
|
|
|
- var inviteTime = info.FeeItems.FirstOrDefault(x => x.ItemId == 1560); //邀请函发放时间
|
|
|
- var officialActs = info.FeeItems.FirstOrDefault(x => x.ItemId == 1561); //公务活动
|
|
|
- var visaIns = info.FeeItems.FirstOrDefault(x => x.ItemId == 1562); //签证+保险
|
|
|
- var serviceCosts = info.FeeItems.FirstOrDefault(x => x.ItemId == 1563); //服务费
|
|
|
- var pubMiscs = info.FeeItems.FirstOrDefault(x => x.ItemId == 1564); //公杂费
|
|
|
- var taxCosts = info.FeeItems.FirstOrDefault(x => x.ItemId == 1565); //税费
|
|
|
+ var inviteTime = info.FeeItems.FirstOrDefault(x => x.ItemId == 1360); //邀请函发放时间
|
|
|
+ var officialActs = info.FeeItems.FirstOrDefault(x => x.ItemId == 1361); //公务活动
|
|
|
+ var visaIns = info.FeeItems.FirstOrDefault(x => x.ItemId == 1362); //签证+保险
|
|
|
+ var serviceCosts = info.FeeItems.FirstOrDefault(x => x.ItemId == 1363); //服务费
|
|
|
+ var pubMiscs = info.FeeItems.FirstOrDefault(x => x.ItemId == 1364); //公杂费
|
|
|
+ var taxCosts = info.FeeItems.FirstOrDefault(x => x.ItemId == 1365); //税费
|
|
|
|
|
|
//获取模板
|
|
|
string tempPath = AppSettingsHelper.Get("ExcelBasePath") + "Template/出入境费用明细报价表模板.xlsx";
|
|
@@ -13840,13 +13846,10 @@ FROM
|
|
|
StringBuilder label = new StringBuilder();
|
|
|
foreach (var item in vehArranges.Infos)
|
|
|
{
|
|
|
- label.Append(item.Remark);
|
|
|
label.AppendLine();
|
|
|
label.AppendLine();
|
|
|
label.Append(item.FeeName);
|
|
|
- label.Append("\r\n\r\n费用:");
|
|
|
- label.Append(item.FeeName);
|
|
|
- label.Append(item.TotalAmt.TruncDecimals(2));
|
|
|
+ label.Append($"\r\n\r\n费用:{item.TotalAmt.TruncDecimals(2)}元");
|
|
|
}
|
|
|
|
|
|
designer.SetDataSource("VehArrangeLabel", label.ToString());
|
|
@@ -13937,7 +13940,6 @@ FROM
|
|
|
vi_label.AppendLine(label);
|
|
|
}
|
|
|
|
|
|
- designer.SetDataSource("AccomLabel", vi_label.ToString());
|
|
|
}
|
|
|
|
|
|
designer.SetDataSource("VisaInsContent", vi_label.ToString());
|
|
@@ -13978,17 +13980,16 @@ FROM
|
|
|
rate = rateInfo?.Rate ?? 1.0000M;
|
|
|
|
|
|
string label = string.Format("{0}:{1}{2}/天*{3}*{4}人", thisFeeName, item.UnitPrice.TruncDecimals(2), currencyName, item.Quantity, item.PplNum);
|
|
|
- vi_label.AppendLine(label);
|
|
|
+ pm_label.AppendLine(label);
|
|
|
}
|
|
|
- if (vi_label.HasValue())
|
|
|
+ if (pm_label.HasValue())
|
|
|
{
|
|
|
//以上小计:13497.6元\r\n(美金汇率:7.5 )\r\n部分发放成员
|
|
|
- vi_label.AppendLine(string.Format("以上小计:{0}元", pubMiscs.TotalAmt.TruncDecimals(2)));
|
|
|
- vi_label.AppendLine(string.Format("({0}汇率:{1})", currencyName, rate.TruncDecimals(4)));
|
|
|
- vi_label.AppendLine(string.Format("部分发放成员"));
|
|
|
+ pm_label.AppendLine(string.Format("以上小计:{0}元", pubMiscs.TotalAmt.TruncDecimals(2)));
|
|
|
+ pm_label.AppendLine(string.Format("({0}汇率:{1})", currencyName, rate.TruncDecimals(4)));
|
|
|
+ pm_label.AppendLine(string.Format("部分发放成员"));
|
|
|
}
|
|
|
|
|
|
- designer.SetDataSource("AccomLabel", vi_label.ToString());
|
|
|
}
|
|
|
designer.SetDataSource("PubMiscsContent", pm_label.ToString());
|
|
|
#endregion
|