修复
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 ExportPath { get; set; }
|
||||||
public string FileName { get; set; }
|
public string FileName { get; set; }
|
||||||
public string ExportSystem { get; set; }
|
public string ExportSystem { get; set; }
|
||||||
|
public string MdbName { get; set; }
|
||||||
public bool? Overwrite { get; set; }
|
public bool? Overwrite { get; set; }
|
||||||
public List<string> Selections { get; set; }
|
public List<string> Selections { get; set; }
|
||||||
public List<string> SelectionCommands { get; set; }
|
public List<string> SelectionCommands { get; set; }
|
||||||
@ -32,6 +33,11 @@ namespace TellmePdmsPluging.Models
|
|||||||
{
|
{
|
||||||
Overwrite = true;
|
Overwrite = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!string.IsNullOrEmpty(MdbName))
|
||||||
|
{
|
||||||
|
MdbName = MdbName.Trim();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public string GetFullPath()
|
public string GetFullPath()
|
||||||
@ -83,10 +89,19 @@ namespace TellmePdmsPluging.Models
|
|||||||
{
|
{
|
||||||
public bool Success { get; set; }
|
public bool Success { get; set; }
|
||||||
public string Message { get; set; }
|
public string Message { get; set; }
|
||||||
|
public string FailureCategory { get; set; }
|
||||||
public string ExportPath { get; set; }
|
public string ExportPath { get; set; }
|
||||||
public string FileName { get; set; }
|
public string FileName { get; set; }
|
||||||
public string FullPath { get; set; }
|
public string FullPath { get; set; }
|
||||||
public long FileSizeBytes { 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 StartedAt { get; set; }
|
||||||
public DateTime CompletedAt { get; set; }
|
public DateTime CompletedAt { get; set; }
|
||||||
public double DurationSeconds { get; set; }
|
public double DurationSeconds { get; set; }
|
||||||
|
|||||||
@ -9,6 +9,7 @@ namespace TellmePdmsPluging.Models
|
|||||||
public ProjectInfo ProjectInfo { get; set; }
|
public ProjectInfo ProjectInfo { get; set; }
|
||||||
public ModelStatistics ModelStatistics { get; set; }
|
public ModelStatistics ModelStatistics { get; set; }
|
||||||
public SessionInfo SessionInfo { get; set; }
|
public SessionInfo SessionInfo { get; set; }
|
||||||
|
public ExportDiagnostics ExportDiagnostics { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class ProjectInfo
|
public class ProjectInfo
|
||||||
@ -37,4 +38,16 @@ namespace TellmePdmsPluging.Models
|
|||||||
public int DurationMinutes { 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 DryRun { get; set; }
|
||||||
public bool SkipLinkedElements { get; set; }
|
public bool SkipLinkedElements { get; set; }
|
||||||
public double Padding { get; set; }
|
public double Padding { get; set; }
|
||||||
|
public string DeletionMode { get; set; }
|
||||||
|
public bool UsedExactSpatial { get; set; }
|
||||||
public int TotalVisited { get; set; }
|
public int TotalVisited { get; set; }
|
||||||
public int RemovedCount { get; set; }
|
public int RemovedCount { get; set; }
|
||||||
public int KeptCount { get; set; }
|
public int KeptCount { get; set; }
|
||||||
public int ShellKeptCount { get; set; }
|
public int ShellKeptCount { get; set; }
|
||||||
public int SkippedLinkedCount { get; set; }
|
public int SkippedLinkedCount { get; set; }
|
||||||
|
public int SkippedUnsafeCount { get; set; }
|
||||||
public List<string> RemovedElements { get; set; } = new List<string>();
|
public List<string> RemovedElements { get; set; } = new List<string>();
|
||||||
public List<string> SkippedLinkedElements { 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> 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 List<string> ZoneSummaries { get; set; } = new List<string>();
|
||||||
public System.DateTime StartedAt { get; set; }
|
public System.DateTime StartedAt { get; set; }
|
||||||
public System.DateTime CompletedAt { get; set; }
|
public System.DateTime CompletedAt { get; set; }
|
||||||
|
|||||||
@ -729,6 +729,7 @@ namespace TellmePdmsPluging.Network
|
|||||||
parts.Add($"\"ProjectInfo\":{SimpleJsonSerialize(model.ProjectInfo)}");
|
parts.Add($"\"ProjectInfo\":{SimpleJsonSerialize(model.ProjectInfo)}");
|
||||||
parts.Add($"\"ModelStatistics\":{SimpleJsonSerialize(model.ModelStatistics)}");
|
parts.Add($"\"ModelStatistics\":{SimpleJsonSerialize(model.ModelStatistics)}");
|
||||||
parts.Add($"\"SessionInfo\":{SimpleJsonSerialize(model.SessionInfo)}");
|
parts.Add($"\"SessionInfo\":{SimpleJsonSerialize(model.SessionInfo)}");
|
||||||
|
parts.Add($"\"ExportDiagnostics\":{SimpleJsonSerialize(model.ExportDiagnostics)}");
|
||||||
|
|
||||||
return "{" + string.Join(",", parts.ToArray()) + "}";
|
return "{" + string.Join(",", parts.ToArray()) + "}";
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user