Explorar el Código

添加部分文字 ,修改详细行程。

yuanrf hace 7 meses
padre
commit
0f027798d0
Se han modificado 1 ficheros con 11 adiciones y 2 borrados
  1. 11 2
      travelExport/Home.cs

+ 11 - 2
travelExport/Home.cs

@@ -294,7 +294,7 @@ namespace travelExport
 
                                     if (isTrade)
                                     {
-                                        trip += $"{fallToTime.ToString("HH:mm")} 抵达{end_Object.AirPort}{tabRow["EndBuilding"].ToString().Trim()}航站楼";
+                                        trip += $"{fallToTime.ToString("HH:mm")} 抵达{end_Object.AirPort}{tabRow["EndBuilding"].ToString().Trim()}航站楼(中转时间:行李直达)";
                                     }
                                     else
                                     {
@@ -777,7 +777,7 @@ namespace travelExport
 
                                     if (isTrade)
                                     {
-                                        trip += $"{fallToTime.ToString("HH:mm")} 抵达{end_Object.AirPort}{tabRow["EndBuilding"].ToString().Trim()}航站楼";
+                                        trip += $"{fallToTime.ToString("HH:mm")} 抵达{end_Object.AirPort}{tabRow["EndBuilding"].ToString().Trim()}航站楼(中转时间:行李直达)";
                                     }
                                     else
                                     {
@@ -1092,6 +1092,14 @@ namespace travelExport
                             index++;
                         }
 
+                        NewListTravel.ForEach(x =>
+                        {
+                            x.Trip = x.Trip.Replace("\r\n14:00 公务活动;", string.Empty)
+                                           .Replace("\r\n16:00 公务活动;", string.Empty)
+                                           .Replace("\r\n09:00 公务活动;", string.Empty)
+                                           .Replace("\r\n10:30 公务活动;", string.Empty);
+                        });
+
                         db.Grp_TravelList.AddRange(NewListTravel);
                         db.SaveChanges();
 
@@ -1107,6 +1115,7 @@ namespace travelExport
             threadExec.Start();
         }
 
+
         private delegate void ChildThreadExceptionHandler(string message);
 
         private void btnOutput_Click(object sender, EventArgs e)