Procházet zdrojové kódy

出入境费用
签证费用提示新增费用总计

leiy před 1 rokem
rodič
revize
f666b20fc3

+ 3 - 1
OASystem/OASystem.Infrastructure/Repositories/Groups/VisaFeeInfoRepository.cs

@@ -176,6 +176,7 @@ namespace OASystem.Infrastructure.Repositories.Groups
 
             List<dynamic> datas = new List<dynamic>();
             string remark = "";
+            decimal feeTotal = 0.00M;
             foreach (var item in visaData)
             {
                 if (item.IsChecked == 1)
@@ -191,7 +192,7 @@ namespace OASystem.Infrastructure.Repositories.Groups
                     if (visaFeeTotal > 0) remark = remark.Substring(0,remark.Length -1);
 
                     remark += ");";
-
+                    feeTotal += visaFeeTotal;
                     datas.Add(new
                     {
                         Country = countryData?.VisaCountry ?? "",
@@ -206,6 +207,7 @@ namespace OASystem.Infrastructure.Repositories.Groups
 
             _result.Code = 0;
             _result.Data = new { 
+                feeTotal = feeTotal,
                 data = datas,
                 remark = remark
             };