");
@@ -724,14 +763,21 @@ namespace NavisworksTransport.UI.WPF.ViewModels
html.AppendLine("
");
html.AppendLine("");
- // 状态分布
- html.AppendLine("");
- html.AppendLine($"
新发现
{Statistics.NewCollisions}
");
- html.AppendLine($"
活跃
{Statistics.ActiveCollisions}
");
- html.AppendLine($"
已审阅
{Statistics.ReviewedCollisions}
");
- html.AppendLine($"
已批准
{Statistics.ApprovedCollisions}
");
- html.AppendLine($"
已解决
{Statistics.ResolvedCollisions}
");
+ // 动画参数
+ html.AppendLine("
动画参数
");
+ html.AppendLine("
");
+ html.AppendLine("
");
+ html.AppendLine("
帧率
");
+ html.AppendLine($"
{FrameRate} FPS
");
+ html.AppendLine("
");
+ html.AppendLine("
");
+ html.AppendLine("
时长
");
+ html.AppendLine($"
{Duration:F1} 秒
");
+ html.AppendLine("
");
+ html.AppendLine("
");
+ html.AppendLine("
检测间隙
");
+ html.AppendLine($"
{DetectionGap:F2} 米
");
+ html.AppendLine("
");
html.AppendLine("
");
// 运动构件信息
@@ -828,41 +874,6 @@ namespace NavisworksTransport.UI.WPF.ViewModels
}
}
- ///
- /// 刷新报告
- ///
- private async Task RefreshReportAsync()
- {
- try
- {
- IsGenerating = true;
- ProgressMessage = "正在重新生成报告...";
- ProgressPercentage = 0;
-
- // 重新执行碰撞报告生成
- var command = ViewCollisionReportCommand.CreateComprehensive(false);
- var result = await command.ExecuteAsync();
-
- if (result.IsSuccess && result is PathPlanningResult
reportResult)
- {
- InitializeReport(reportResult.Data);
- }
- else
- {
- SetFailedReport(result.Message);
- }
- }
- catch (Exception ex)
- {
- LogManager.Error($"刷新碰撞报告失败: {ex.Message}");
- SetFailedReport(ex.Message);
- }
- finally
- {
- IsGenerating = false;
- }
- }
-
///
/// 高亮碰撞对象
///
diff --git a/src/UI/WPF/ViewModels/PathEditingViewModel.cs b/src/UI/WPF/ViewModels/PathEditingViewModel.cs
index 60a2aff..ce40470 100644
--- a/src/UI/WPF/ViewModels/PathEditingViewModel.cs
+++ b/src/UI/WPF/ViewModels/PathEditingViewModel.cs
@@ -667,6 +667,7 @@ namespace NavisworksTransport.UI.WPF.ViewModels
// 创建对应的 WPF ViewModel
var newPathViewModel = new PathRouteViewModel
{
+ Id = newRoute.Id, // 添加Id属性设置
Name = newRoute.Name,
Description = newRoute.Description,
IsActive = true
@@ -1834,6 +1835,7 @@ namespace NavisworksTransport.UI.WPF.ViewModels
{
var pathViewModel = new PathRouteViewModel
{
+ Id = coreRoute.Id, // 添加Id属性设置
Name = coreRoute.Name,
Description = coreRoute.Description,
IsActive = false
@@ -2540,6 +2542,7 @@ namespace NavisworksTransport.UI.WPF.ViewModels
// 创建对应的 WPF ViewModel
var autoPathViewModel = new PathRouteViewModel
{
+ Id = e.Route.Id,
Name = e.Route.Name,
Description = e.Route.Description,
IsActive = true
@@ -2616,6 +2619,7 @@ namespace NavisworksTransport.UI.WPF.ViewModels
// 创建对应的 WPF ViewModel
var dbPathViewModel = new PathRouteViewModel
{
+ Id = e.Route.Id,
Name = e.Route.Name,
Description = e.Route.Description,
IsActive = false // 历史路径默认不激活
diff --git a/src/UI/WPF/Views/CollisionReportDialog.xaml b/src/UI/WPF/Views/CollisionReportDialog.xaml
index 93074ea..2c37a82 100644
--- a/src/UI/WPF/Views/CollisionReportDialog.xaml
+++ b/src/UI/WPF/Views/CollisionReportDialog.xaml
@@ -224,37 +224,47 @@ NavisworksTransport 碰撞检测报告对话框 - 采用与主界面一致的Nav
-
-
-
+
+
+
-
-
+
+
+
+
+
+
-
-
+
+
+
+
+
+
-
-
+
+
+
+
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
@@ -364,12 +374,6 @@ NavisworksTransport 碰撞检测报告对话框 - 采用与主界面一致的Nav
-
-