|
|
@@ -9051,46 +9051,55 @@ FROM
|
|
|
dic.Add("Row1Str", row1);
|
|
|
}
|
|
|
|
|
|
- string airTotalStr = string.Empty,
|
|
|
- airPriceStr = string.Empty;
|
|
|
+ var airTotalStr = new StringBuilder();
|
|
|
+ var airPriceStr = new StringBuilder();
|
|
|
//经济舱
|
|
|
if (_EnterExitCosts.SumJJC == 1)
|
|
|
{
|
|
|
- airTotalStr += $"{_EnterExitCosts.OutsideJJPay:#0.00}元/人(经济舱)";
|
|
|
- airPriceStr += $"{_EnterExitCosts.AirJJ:#0.00}元/人(经济舱)";
|
|
|
+ airTotalStr.Append($"{_EnterExitCosts.OutsideJJPay:#0.00}元/人(经济舱)");
|
|
|
+ airPriceStr.Append($"{_EnterExitCosts.AirJJ:#0.00}元/人(经济舱)");
|
|
|
}
|
|
|
//公务舱
|
|
|
if (_EnterExitCosts.SumGWC == 1)
|
|
|
{
|
|
|
- airTotalStr += $" {_EnterExitCosts.OutsideGWPay:#0.00} 元/人(公务舱)";
|
|
|
- airPriceStr += $" {_EnterExitCosts.AirGW:#0.00} 元/人(公务舱)";
|
|
|
+ airTotalStr.Append($"{_EnterExitCosts.OutsideGWPay:#0.00} 元/人(公务舱)");
|
|
|
+ airPriceStr.Append($"{_EnterExitCosts.AirGW:#0.00} 元/人(公务舱)");
|
|
|
}
|
|
|
//头等舱
|
|
|
if (_EnterExitCosts.SumTDC == 1)
|
|
|
{
|
|
|
- airTotalStr += $" {_EnterExitCosts.OutsideTDPay:#0.00} 元/人(头等舱)";
|
|
|
- airPriceStr += $" {_EnterExitCosts.AirTD:#0.00} 元/人(头等舱)";
|
|
|
+ airTotalStr.Append($"{_EnterExitCosts.OutsideTDPay:#0.00} 元/人(头等舱)");
|
|
|
+ airPriceStr.Append($"{_EnterExitCosts.AirTD:#0.00} 元/人(头等舱)");
|
|
|
}
|
|
|
|
|
|
+ //描述
|
|
|
+ var remarkLable = new StringBuilder();
|
|
|
+ //第二项描述
|
|
|
+ remarkLable.Append("备注:");
|
|
|
+ if (!string.IsNullOrEmpty(_EnterExitCosts.TwoItemRemark)) remarkLable.Append( _EnterExitCosts.TwoItemRemark);
|
|
|
+
|
|
|
//汇率描述
|
|
|
- string rateStr = "";
|
|
|
if (peiceItemCurrencyInfos.Any())
|
|
|
{
|
|
|
- rateStr = "\r\n汇率描述:";
|
|
|
+ remarkLable.AppendLine();
|
|
|
+ remarkLable.Append("汇率描述:");
|
|
|
foreach (var item in peiceItemCurrencyInfos)
|
|
|
{
|
|
|
- rateStr += $"{item.CurrencyName}({item.CurrencyCode}):{item.Rate:#0.0000} ";
|
|
|
+ remarkLable.Append($"{item.CurrencyName}({item.CurrencyCode}):{item.Rate:#0.0000} ");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- string twoItemRemark = "备注:";
|
|
|
- if (!string.IsNullOrEmpty(_EnterExitCosts.TwoItemRemark)) twoItemRemark += _EnterExitCosts.TwoItemRemark;
|
|
|
- if (!string.IsNullOrEmpty(rateStr)) twoItemRemark += rateStr;
|
|
|
+ //城市交通费 处理
|
|
|
+ var cityTrafficLabel = new StringBuilder()
|
|
|
+ .AppendFormat(" 经济舱:{0:#0.00} 元/人", _EnterExitCosts.CityTranffic)
|
|
|
+ .AppendFormat(" 公务舱:{0:#0.00} 元/人", _EnterExitCosts.CityTranffic1)
|
|
|
+ .AppendFormat(" 头等舱:{0:#0.00} 元/人", _EnterExitCosts.CityTranffic2)
|
|
|
+ .ToString();
|
|
|
|
|
|
- dic.Add("AirTotalStr", airTotalStr);
|
|
|
- dic.Add("AirPriceStr", airPriceStr);
|
|
|
- dic.Add("CityTranffic", _EnterExitCosts.CityTranffic.ToString("#0.00"));
|
|
|
- dic.Add("TwoItemRemark", twoItemRemark);
|
|
|
+ dic.Add("AirTotalStr", airTotalStr.ToString());
|
|
|
+ dic.Add("AirPriceStr", airPriceStr.ToString());
|
|
|
+ dic.Add("CityTranffic", cityTrafficLabel);
|
|
|
+ dic.Add("TwoItemRemark", remarkLable.ToString());
|
|
|
|
|
|
NodeCollection allTables = doc.GetChildNodes(NodeType.Table, true);
|
|
|
Aspose.Words.Tables.Table table1 = allTables[0] as Aspose.Words.Tables.Table;
|
|
|
@@ -9591,7 +9600,13 @@ FROM
|
|
|
table1.Rows.RemoveAt(i - 1);
|
|
|
}
|
|
|
|
|
|
- dic.Add("CityTranffic", _EnterExitCosts.CityTranffic.ToString("#0.00"));
|
|
|
+ var cityTrafficLabel = new StringBuilder()
|
|
|
+ .AppendFormat(" 经济舱:{0:#0.00} 元", _EnterExitCosts.CityTranffic)
|
|
|
+ .AppendFormat(" 公务舱:{0:#0.00} 元", _EnterExitCosts.CityTranffic1)
|
|
|
+ .AppendFormat(" 头等舱:{0:#0.00} ", _EnterExitCosts.CityTranffic2)
|
|
|
+ .ToString();
|
|
|
+
|
|
|
+ dic.Add("CityTranffic", cityTrafficLabel);
|
|
|
|
|
|
string otherFeeStr = "";
|
|
|
if (_EnterExitCosts.Visa > 0) otherFeeStr += $"签证费:{_EnterExitCosts.Visa:#0.00} 元,";
|
|
|
@@ -9607,7 +9622,6 @@ FROM
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
-
|
|
|
if (otherFeeStr.Length > 0)
|
|
|
{
|
|
|
otherFeeStr = otherFeeStr.Substring(0, otherFeeStr.Length - 1);
|
|
|
@@ -9823,8 +9837,17 @@ FROM
|
|
|
|
|
|
designer.SetDataSource("dac1totalPrice", dac1totalPrice.ToString("#0.00"));
|
|
|
designer.SetDataSource("dac2totalPrice", dac2totalPrice);
|
|
|
- designer.SetDataSource("cityTranffic", @$"其中:国外城市间机票费: {_EnterExitCosts.CityTranffic:#0.00} 元");
|
|
|
- designer.SetDataSource("sumCityTranffic", @$"{_EnterExitCosts.CityTranffic:#0.00} ");
|
|
|
+
|
|
|
+ var cityTrafficLabel = new StringBuilder()
|
|
|
+ .AppendFormat(" 其中:国外城市间")
|
|
|
+ .AppendFormat(" 经济舱费:{0:#0.00} 元、", _EnterExitCosts.CityTranffic)
|
|
|
+ .AppendFormat(" 公务舱费:{0:#0.00} 元、", _EnterExitCosts.CityTranffic1)
|
|
|
+ .AppendFormat(" 头等舱费:{0:#0.00} 元", _EnterExitCosts.CityTranffic2)
|
|
|
+ .ToString();
|
|
|
+
|
|
|
+ //decimal cityTraffic =_EnterExitCosts.CityTranffic + _EnterExitCosts.CityTranffic1 + _EnterExitCosts.CityTranffic2;
|
|
|
+ designer.SetDataSource("cityTranffic", cityTrafficLabel);
|
|
|
+ // designer.SetDataSource("sumCityTranffic", @$"{cityTraffic:#0.00} ");
|
|
|
|
|
|
string cell4Str1 = string.Empty;
|
|
|
if (_EnterExitCosts.SumJJC == 1) cell4Str1 += $"经济舱:{_EnterExitCosts.AirJJ:#0.00} 元/人;";
|
|
|
@@ -10038,14 +10061,20 @@ FROM
|
|
|
|
|
|
decimal hotelFeeTotal = dac1.Sum(it => it.SubTotal);//住宿费
|
|
|
dic.Add("HotelFeeTotal", hotelFeeTotal.ToString("#0.00"));
|
|
|
+
|
|
|
decimal mealsFeeTotal = dac2.Sum(it => it.SubTotal);//伙食费
|
|
|
dic.Add("MealsFeeTotal", mealsFeeTotal.ToString("#0.00"));
|
|
|
+
|
|
|
decimal miscellaneousFeeTotal = dac3.Sum(it => it.SubTotal);//公杂费
|
|
|
dic.Add("MiscellaneousFeeTotal", miscellaneousFeeTotal.ToString("#0.00"));
|
|
|
+
|
|
|
decimal trainingFeeTotal = dac4.Sum(it => it.SubTotal);//培训费
|
|
|
dic.Add("TrainingFeeTotal", trainingFeeTotal.ToString("#0.00"));
|
|
|
- decimal cityTranfficFeeToatal = _EnterExitCosts.CityTranffic; //城市区间交通费
|
|
|
- dic.Add("CityTranfficFeeToatal", cityTranfficFeeToatal.ToString("#0.00"));//
|
|
|
+
|
|
|
+ //decimal cityTranfficFeeToatal = _EnterExitCosts.CityTranffic; //城市区间交通费
|
|
|
+ decimal cityTranfficFeeToatal = 0.00M;
|
|
|
+ //dic.Add("CityTranfficFeeToatal", cityTranfficFeeToatal.ToString("#0.00"));
|
|
|
+
|
|
|
//其他费用
|
|
|
decimal otherFeeTotal = _EnterExitCosts.Visa + _EnterExitCosts.Safe + _EnterExitCosts.Ticket + _EnterExitCosts.YiMiao + _EnterExitCosts.HeSuan + _EnterExitCosts.Service + dac5.Sum(x => x.SubTotal);
|
|
|
dic.Add("OtherFeeTotal", otherFeeTotal.ToString("#0.00"));
|
|
|
@@ -10053,8 +10082,8 @@ FROM
|
|
|
//其他费用合计
|
|
|
decimal _otherFeeTotal = hotelFeeTotal + mealsFeeTotal + miscellaneousFeeTotal + trainingFeeTotal + cityTranfficFeeToatal + otherFeeTotal;
|
|
|
|
|
|
- decimal _jjcFeeToatal = _EnterExitCosts.AirJJ + _otherFeeTotal; //经济舱
|
|
|
- decimal _gwcFeeToatal = _EnterExitCosts.AirGW + _otherFeeTotal; //公务舱
|
|
|
+ decimal _jjcFeeToatal = _EnterExitCosts.OutsideJJPay + _otherFeeTotal; //经济舱
|
|
|
+ decimal _gwcFeeToatal = _EnterExitCosts.OutsideGWPay + _otherFeeTotal; //公务舱
|
|
|
|
|
|
//公务舱合计
|
|
|
|
|
|
@@ -10064,18 +10093,18 @@ FROM
|
|
|
//string allPriceJJ = "";
|
|
|
if (_EnterExitCosts.SumJJC == 1 && _EnterExitCosts.SumGWC == 0)
|
|
|
{
|
|
|
- dic.Add("AirFeeTotal", _EnterExitCosts.AirJJ.ToString("#0.00"));
|
|
|
+ dic.Add("AirFeeTotal", _EnterExitCosts.OutsideJJPay.ToString("#0.00"));
|
|
|
dic.Add("FeeTotal", _jjcFeeToatal.ToString("#0.00"));
|
|
|
}
|
|
|
if (_EnterExitCosts.SumGWC == 1 && _EnterExitCosts.SumJJC == 0)
|
|
|
{
|
|
|
- dic.Add("AirFeeTotal", _EnterExitCosts.AirGW.ToString("#0.00"));
|
|
|
+ dic.Add("AirFeeTotal", _EnterExitCosts.OutsideGWPay.ToString("#0.00"));
|
|
|
dic.Add("FeeTotal", _gwcFeeToatal.ToString("#0.00"));
|
|
|
}
|
|
|
|
|
|
if (_EnterExitCosts.SumJJC == 1 && _EnterExitCosts.SumGWC == 1)
|
|
|
{
|
|
|
- string airFeeTotalStr = string.Format(@$"经济舱:{_EnterExitCosts.AirJJ:#0.00} 公务舱:{_EnterExitCosts.AirGW:#0.00}");
|
|
|
+ string airFeeTotalStr = string.Format(@$"经济舱:{_EnterExitCosts.OutsideJJPay:#0.00} 公务舱:{_EnterExitCosts.OutsideGWPay:#0.00}");
|
|
|
dic.Add("AirFeeTotal", airFeeTotalStr);
|
|
|
string feeTotalStr = string.Format(@$"经济舱:{_jjcFeeToatal:#0.00} 公务舱:{_gwcFeeToatal:#0.00}");
|
|
|
dic.Add("FeeTotal", feeTotalStr);
|
|
|
@@ -10317,7 +10346,13 @@ FROM
|
|
|
// }
|
|
|
//}
|
|
|
|
|
|
- dic.Add("CityTranffic", _EnterExitCosts.CityTranffic.ToString("#0.00"));
|
|
|
+ var citytrafficLable = new StringBuilder()
|
|
|
+ .AppendFormat($"经济舱费用:{_EnterExitCosts.CityTranffic:#0.00} 元、")
|
|
|
+ .AppendFormat($"公务舱费用:{_EnterExitCosts.CityTranffic1:#0.00}元、")
|
|
|
+ .AppendFormat($"头等舱费用:{_EnterExitCosts.CityTranffic2:#0.00}")
|
|
|
+ .ToString();
|
|
|
+
|
|
|
+ dic.Add("CityTranffic", citytrafficLable);
|
|
|
|
|
|
string otherFeeStr = "";
|
|
|
if (_EnterExitCosts.Visa > 0) otherFeeStr += $"签证费:{_EnterExitCosts.Visa:#0.00}元,";
|
|
|
@@ -12795,6 +12830,8 @@ FROM
|
|
|
AirGW = eecInfo.AirGW,
|
|
|
AirTD = eecInfo.AirTD,
|
|
|
CityTranffic = eecInfo.CityTranffic,
|
|
|
+ CityTranffic1 = eecInfo.CityTranffic1,
|
|
|
+ CityTranffic2 = eecInfo.CityTranffic2,
|
|
|
TwoItemRemark = eecInfo.TwoItemRemark
|
|
|
};
|
|
|
return Ok(JsonView(twoData));
|
|
|
@@ -13408,6 +13445,8 @@ FROM
|
|
|
info.AirGW = dto.AirGW;
|
|
|
info.AirTD = dto.AirTD;
|
|
|
info.CityTranffic = dto.CityTranffic;
|
|
|
+ info.CityTranffic1 = dto.CityTranffic1;
|
|
|
+ info.CityTranffic2 = dto.CityTranffic2;
|
|
|
info.TwoItemRemark = dto.TwoItemRemark;
|
|
|
info.SumJJC = dto.ChoiceTwoJJ;
|
|
|
info.SumGWC = dto.ChoiceTwoGW;
|
|
|
@@ -13445,6 +13484,8 @@ FROM
|
|
|
x.AirGW,
|
|
|
x.AirTD,
|
|
|
x.CityTranffic,
|
|
|
+ x.CityTranffic1,
|
|
|
+ x.CityTranffic2,
|
|
|
x.TwoItemRemark,
|
|
|
x.LastUpdateTime,
|
|
|
x.LastUpdateUserId
|
|
|
@@ -13455,8 +13496,8 @@ FROM
|
|
|
}
|
|
|
|
|
|
jjcItemTotal = info.AirJJ + info.CityTranffic;
|
|
|
- gwcItemTotal = info.AirGW + info.CityTranffic;
|
|
|
- tdcItemTotal = info.AirTD + info.CityTranffic;
|
|
|
+ gwcItemTotal = info.AirGW + info.CityTranffic1;
|
|
|
+ tdcItemTotal = info.AirTD + info.CityTranffic2;
|
|
|
|
|
|
//消息通知
|
|
|
//await EnterExitCostMobileOpNotice(dto.DiId, id, dto.CurrUserId);
|
|
|
@@ -15324,7 +15365,6 @@ FROM
|
|
|
eecRates.Insert(0, new CurrencyInfo() { CurrencyCode = "CNY", CurrencyName = "人民币", Rate = 1.00000M });
|
|
|
}
|
|
|
|
|
|
-
|
|
|
//处理团组人数
|
|
|
int pplNum = 1;
|
|
|
if (groupInfo != null) pplNum = groupInfo.VisitPNumber;
|
|
|
@@ -15389,7 +15429,7 @@ FROM
|
|
|
{
|
|
|
ItemId = 1354,
|
|
|
Index = intTravelIndex,
|
|
|
- FeeName = "城市间交通费用",
|
|
|
+ FeeName = "城市间交通费用(经济舱)",
|
|
|
UnitPrice = infoView.CityTranffic,
|
|
|
Currency = "CNY",
|
|
|
Quantity = 1,
|
|
|
@@ -15398,6 +15438,32 @@ FROM
|
|
|
Remark = "",
|
|
|
});
|
|
|
|
|
|
+ intTravelCosts.Add(new QuoteSubItemInfo
|
|
|
+ {
|
|
|
+ ItemId = 1354,
|
|
|
+ Index = intTravelIndex,
|
|
|
+ FeeName = "城市间交通费用(公务舱)",
|
|
|
+ UnitPrice = infoView.CityTranffic1,
|
|
|
+ Currency = "CNY",
|
|
|
+ Quantity = 1,
|
|
|
+ PplNum = pplNum,
|
|
|
+ TotalAmt = infoView.CityTranffic1 * pplNum,
|
|
|
+ Remark = "",
|
|
|
+ });
|
|
|
+
|
|
|
+ intTravelCosts.Add(new QuoteSubItemInfo
|
|
|
+ {
|
|
|
+ ItemId = 1354,
|
|
|
+ Index = intTravelIndex,
|
|
|
+ FeeName = "城市间交通费用(头等舱)",
|
|
|
+ UnitPrice = infoView.CityTranffic2,
|
|
|
+ Currency = "CNY",
|
|
|
+ Quantity = 1,
|
|
|
+ PplNum = pplNum,
|
|
|
+ TotalAmt = infoView.CityTranffic2 * pplNum,
|
|
|
+ Remark = "",
|
|
|
+ });
|
|
|
+
|
|
|
views.AddRange(intTravelCosts);
|
|
|
#endregion
|
|
|
|
|
|
@@ -15635,7 +15701,6 @@ FROM
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
return Ok(JsonView(result));
|
|
|
}
|
|
|
|