修复
This commit is contained in:
parent
210a83f131
commit
7e24f4025d
File diff suppressed because it is too large
Load Diff
@ -12,6 +12,7 @@ namespace TellmePdmsPluging.Models
|
||||
public string ExportPath { get; set; }
|
||||
public string FileName { get; set; }
|
||||
public string ExportSystem { get; set; }
|
||||
public string MdbName { get; set; }
|
||||
public bool? Overwrite { get; set; }
|
||||
public List<string> Selections { get; set; }
|
||||
public List<string> SelectionCommands { get; set; }
|
||||
@ -32,6 +33,11 @@ namespace TellmePdmsPluging.Models
|
||||
{
|
||||
Overwrite = true;
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(MdbName))
|
||||
{
|
||||
MdbName = MdbName.Trim();
|
||||
}
|
||||
}
|
||||
|
||||
public string GetFullPath()
|
||||
@ -83,10 +89,19 @@ namespace TellmePdmsPluging.Models
|
||||
{
|
||||
public bool Success { get; set; }
|
||||
public string Message { get; set; }
|
||||
public string FailureCategory { get; set; }
|
||||
public string ExportPath { get; set; }
|
||||
public string FileName { get; set; }
|
||||
public string FullPath { get; set; }
|
||||
public long FileSizeBytes { get; set; }
|
||||
public string ActiveMdbName { get; set; }
|
||||
public string RequestedMdbName { get; set; }
|
||||
public bool UsedRequestedMdb { get; set; }
|
||||
public bool BaseChecksPassed { get; set; }
|
||||
public string DriverMode { get; set; }
|
||||
public string RawError { get; set; }
|
||||
public List<string> ExecutedCommands { get; set; } = new List<string>();
|
||||
public List<string> Diagnostics { get; set; } = new List<string>();
|
||||
public DateTime StartedAt { get; set; }
|
||||
public DateTime CompletedAt { get; set; }
|
||||
public double DurationSeconds { get; set; }
|
||||
|
||||
@ -3,13 +3,14 @@ using System.Collections.Generic;
|
||||
|
||||
namespace TellmePdmsPluging.Models
|
||||
{
|
||||
public class ModelStatusResponse
|
||||
{
|
||||
public bool ModelLoaded { get; set; }
|
||||
public ProjectInfo ProjectInfo { get; set; }
|
||||
public ModelStatistics ModelStatistics { get; set; }
|
||||
public SessionInfo SessionInfo { get; set; }
|
||||
}
|
||||
public class ModelStatusResponse
|
||||
{
|
||||
public bool ModelLoaded { get; set; }
|
||||
public ProjectInfo ProjectInfo { get; set; }
|
||||
public ModelStatistics ModelStatistics { get; set; }
|
||||
public SessionInfo SessionInfo { get; set; }
|
||||
public ExportDiagnostics ExportDiagnostics { get; set; }
|
||||
}
|
||||
|
||||
public class ProjectInfo
|
||||
{
|
||||
@ -30,11 +31,23 @@ namespace TellmePdmsPluging.Models
|
||||
public long FeatureCount { get; set; }
|
||||
}
|
||||
|
||||
public class SessionInfo
|
||||
{
|
||||
public string UserName { get; set; }
|
||||
public DateTime StartTime { get; set; }
|
||||
public int DurationMinutes { get; set; }
|
||||
}
|
||||
|
||||
public class SessionInfo
|
||||
{
|
||||
public string UserName { get; set; }
|
||||
public DateTime StartTime { get; set; }
|
||||
public int DurationMinutes { get; set; }
|
||||
}
|
||||
|
||||
public class ExportDiagnostics
|
||||
{
|
||||
public string ActiveMdbName { get; set; }
|
||||
public bool DesignDbAvailable { get; set; }
|
||||
public bool CurrentMdbMatchesRequested { get; set; }
|
||||
public string RequestedMdbName { get; set; }
|
||||
public bool ExportPrecheckPassed { get; set; }
|
||||
public bool DefinitionsLikelyMissing { get; set; }
|
||||
public string Message { get; set; }
|
||||
public string LastExportError { get; set; }
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -94,14 +94,20 @@ namespace TellmePdmsPluging.Models
|
||||
public bool DryRun { get; set; }
|
||||
public bool SkipLinkedElements { get; set; }
|
||||
public double Padding { get; set; }
|
||||
public string DeletionMode { get; set; }
|
||||
public bool UsedExactSpatial { get; set; }
|
||||
public int TotalVisited { get; set; }
|
||||
public int RemovedCount { get; set; }
|
||||
public int KeptCount { get; set; }
|
||||
public int ShellKeptCount { get; set; }
|
||||
public int SkippedLinkedCount { get; set; }
|
||||
public int SkippedUnsafeCount { get; set; }
|
||||
public List<string> RemovedElements { get; set; } = new List<string>();
|
||||
public List<string> SkippedLinkedElements { get; set; } = new List<string>();
|
||||
public List<string> SkippedUnsafeElements { get; set; } = new List<string>();
|
||||
public List<string> Errors { get; set; } = new List<string>();
|
||||
public List<string> FatalErrors { get; set; } = new List<string>();
|
||||
public List<string> ProcessedDbNames { get; set; } = new List<string>();
|
||||
public List<string> ZoneSummaries { get; set; } = new List<string>();
|
||||
public System.DateTime StartedAt { get; set; }
|
||||
public System.DateTime CompletedAt { get; set; }
|
||||
|
||||
@ -725,11 +725,12 @@ namespace TellmePdmsPluging.Network
|
||||
{
|
||||
var parts = new List<string>();
|
||||
|
||||
parts.Add($"\"ModelLoaded\":{model.ModelLoaded.ToString().ToLower()}");
|
||||
parts.Add($"\"ProjectInfo\":{SimpleJsonSerialize(model.ProjectInfo)}");
|
||||
parts.Add($"\"ModelStatistics\":{SimpleJsonSerialize(model.ModelStatistics)}");
|
||||
parts.Add($"\"SessionInfo\":{SimpleJsonSerialize(model.SessionInfo)}");
|
||||
|
||||
parts.Add($"\"ModelLoaded\":{model.ModelLoaded.ToString().ToLower()}");
|
||||
parts.Add($"\"ProjectInfo\":{SimpleJsonSerialize(model.ProjectInfo)}");
|
||||
parts.Add($"\"ModelStatistics\":{SimpleJsonSerialize(model.ModelStatistics)}");
|
||||
parts.Add($"\"SessionInfo\":{SimpleJsonSerialize(model.SessionInfo)}");
|
||||
parts.Add($"\"ExportDiagnostics\":{SimpleJsonSerialize(model.ExportDiagnostics)}");
|
||||
|
||||
return "{" + string.Join(",", parts.ToArray()) + "}";
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user