Browse Source

优化费用描述字符串格式

在 `GroupsController.cs` 文件中,去掉了费用描述字符串中的空格,使输出更加紧凑和一致。具体修改包括:
- 修改签证费描述格式
- 优化其他费用字符串构建
LEIYI 3 days ago
parent
commit
320ffd02be
1 changed files with 8 additions and 8 deletions
  1. 8 8
      OASystem/OASystem.Api/Controllers/GroupsController.cs

+ 8 - 8
OASystem/OASystem.Api/Controllers/GroupsController.cs

@@ -6298,7 +6298,7 @@ FROM
                             if (_EnterExitCosts.Visa > 0)
                             {
                                 //insidePayTotal += _EnterExitCosts.Visa;
-                                row1_1 = $"签证费: {_EnterExitCosts.Visa.ToString("#0.00")} 人民币/人";
+                                row1_1 = $"签证费:{_EnterExitCosts.Visa.ToString("#0.00")} 人民币/人";
                                 //if (!string.IsNullOrEmpty(_EnterExitCosts.VisaRemark))
                                 //{
                                 //    row1_1 += $"\t签证费用描述: {_EnterExitCosts.VisaRemark} 人民币/人";
@@ -6888,9 +6888,9 @@ FROM
                         dic.Add("CityTranffic", _EnterExitCosts.CityTranffic.ToString("#0.00"));
 
                         string otherFeeStr = "";
-                        if (_EnterExitCosts.Visa > 0) otherFeeStr += $"签证费: {_EnterExitCosts.Visa.ToString("#0.00")} 元,";
-                        if (_EnterExitCosts.Safe > 0) otherFeeStr += $"保险费: {_EnterExitCosts.Safe.ToString("#0.00")} 元,";
-                        if (_EnterExitCosts.Ticket > 0) otherFeeStr += $"参展门票费: {_EnterExitCosts.Ticket.ToString("#0.00")} 元,";
+                        if (_EnterExitCosts.Visa > 0) otherFeeStr += $"签证费:{_EnterExitCosts.Visa.ToString("#0.00")} 元,";
+                        if (_EnterExitCosts.Safe > 0) otherFeeStr += $"保险费:{_EnterExitCosts.Safe.ToString("#0.00")} 元,";
+                        if (_EnterExitCosts.Ticket > 0) otherFeeStr += $"参展门票费:{_EnterExitCosts.Ticket.ToString("#0.00")} 元,";
 
                         #region 其他款项费用 增加位置:模板第6项其他费用字符串追加
 
@@ -8413,7 +8413,7 @@ FROM
                             if (_EnterExitCosts.Visa > 0)
                             {
                                 //insidePayTotal += _EnterExitCosts.Visa;
-                                row1_1 = $"签证费: {_EnterExitCosts.Visa.ToString("#0.00")} 人民币/人";
+                                row1_1 = $"签证费:{_EnterExitCosts.Visa.ToString("#0.00")} 人民币/人";
                                 //if (!string.IsNullOrEmpty(_EnterExitCosts.VisaRemark))
                                 //{
                                 //    row1_1 += $"\t签证费用描述: {_EnterExitCosts.VisaRemark} 人民币/人";
@@ -8968,9 +8968,9 @@ FROM
                         dic.Add("CityTranffic", _EnterExitCosts.CityTranffic.ToString("#0.00"));
 
                         string otherFeeStr = "";
-                        if (_EnterExitCosts.Visa > 0) otherFeeStr += $"签证费: {_EnterExitCosts.Visa.ToString("#0.00")} 元,";
-                        if (_EnterExitCosts.Safe > 0) otherFeeStr += $"保险费: {_EnterExitCosts.Safe.ToString("#0.00")} 元,";
-                        if (_EnterExitCosts.Ticket > 0) otherFeeStr += $"参展门票费: {_EnterExitCosts.Ticket.ToString("#0.00")} 元,";
+                        if (_EnterExitCosts.Visa > 0) otherFeeStr += $"签证费:{_EnterExitCosts.Visa.ToString("#0.00")} 元,";
+                        if (_EnterExitCosts.Safe > 0) otherFeeStr += $"保险费:{_EnterExitCosts.Safe.ToString("#0.00")} 元,";
+                        if (_EnterExitCosts.Ticket > 0) otherFeeStr += $"参展门票费:{_EnterExitCosts.Ticket.ToString("#0.00")} 元,";
 
                         #region 其他款项费用 增加位置:模板第6项其他费用字符串追加