From b3bd44bdd1a82214f74cbf53ca8ffa53e3303db7 Mon Sep 17 00:00:00 2001 From: denglihong2007 <98096191+denglihong2007@users.noreply.github.com> Date: Sun, 12 Oct 2025 23:32:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20Excel=E5=AF=BC=E5=85=A5=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E8=AF=86=E5=88=AB=E7=BB=88=E5=88=B0=E5=88=97=E8=BD=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CRSim/ViewModels/StationManagementPageViewModel.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CRSim/ViewModels/StationManagementPageViewModel.cs b/CRSim/ViewModels/StationManagementPageViewModel.cs index 5774220..dd58f13 100644 --- a/CRSim/ViewModels/StationManagementPageViewModel.cs +++ b/CRSim/ViewModels/StationManagementPageViewModel.cs @@ -525,7 +525,6 @@ public partial class StationManagementPageViewModel : ObservableObject { if (worksheet.Cells[row, 1].Text.Trim() == "" || worksheet.Cells[row, 2].Text.Trim() == "" || - worksheet.Cells[row, 5].Text.Trim() == "" || worksheet.Cells[row, 6].Text.Trim() == "" || worksheet.Cells[row, 8].Text.Trim() == "" || worksheet.Cells[row, 9].Text.Trim() == "") @@ -539,7 +538,7 @@ public partial class StationManagementPageViewModel : ObservableObject Length = int.TryParse(worksheet.Cells[row, 2].Text, out int length) ? length : 0, ArrivalTime = TimeSpan.TryParseExact(worksheet.Cells[row, 3].Text, @"hh\:mm", null, out TimeSpan arrival) ? arrival : null, DepartureTime = TimeSpan.TryParseExact(worksheet.Cells[row, 4].Text, @"hh\:mm", null, out TimeSpan departure) ? departure : null, - TicketCheckIds = [.. worksheet.Cells[row, 5].Text + TicketCheckIds = worksheet.Cells[row, 6].Text.Trim() == "" ? null : [.. worksheet.Cells[row, 5].Text .Split(' ', StringSplitOptions.RemoveEmptyEntries) .SelectMany(entry => {