From 4c2bef71ec2a7222120a90d6649dcf0d41c50e54 Mon Sep 17 00:00:00 2001 From: Mike Phares Date: Thu, 19 Sep 2024 10:13:10 -0700 Subject: [PATCH] Characterization Data FI Backlog with Ignore Tag --- .gitignore | 4 +- Server/Repositories/FileShareRepository.cs | 3 + Shared/Models/CharacterizationInfo.cs | 5 + Shared/Models/CharacterizationParameters.cs | 16 ++ .../Models/Stateless/IFileShareRepository.cs | 2 +- Static/AwaitingDispo/index.html | 1 + Static/Export/index.html | 1 + Static/Metrology/AwaitingDispo/index.html | 1 + Static/Metrology/Export/index.html | 1 + Static/Metrology/RunHeaders/index.html | 1 + Static/Metrology/RunInfo/index.html | 1 + Static/Metrology/index.html | 1 + Static/RunHeaders/index.html | 1 + Static/RunInfo/index.html | 1 + Static/awaiting-disposition.html | 1 + Static/export.html | 1 + Static/files.html | 1 + Static/index.html | 1 + Static/js/leo.js | 161 ++++++++++++++++++ Static/js/mes.js | 161 ++++++++++++++++++ Static/leo.html | 43 +++++ Static/mes.html | 43 +++++ Static/run-headers.html | 1 + Tests/OI.Metrology.Tests.csproj | 11 +- Tests/UnitTestFileShareController.cs | 43 ++++- Tests/UnitTestWaferCounterController.cs | 74 ++++++++ Wafer-Counter/.vscode/mklink.md | 5 + .../ApiControllers/FileShareController.cs | 39 +++++ .../Repositories/FileShareRepository.cs | 144 ++++++++++++++++ Wafer-Counter/Repositories/RegexHelper.cs | 11 ++ .../Repositories/WaferCounterRepository.cs | 20 ++- 31 files changed, 783 insertions(+), 16 deletions(-) create mode 100644 Shared/Models/CharacterizationInfo.cs create mode 100644 Shared/Models/CharacterizationParameters.cs create mode 100644 Static/js/leo.js create mode 100644 Static/js/mes.js create mode 100644 Static/leo.html create mode 100644 Static/mes.html create mode 100644 Tests/UnitTestWaferCounterController.cs create mode 100644 Wafer-Counter/.vscode/mklink.md create mode 100644 Wafer-Counter/Repositories/RegexHelper.cs diff --git a/.gitignore b/.gitignore index 88486e0..7b6966c 100644 --- a/.gitignore +++ b/.gitignore @@ -343,4 +343,6 @@ ASALocalRun/ /wwwroot/lib/* .kanbn -Tests/.kanbn \ No newline at end of file +Tests/.kanbn + +/Wafer-Counter/.vscode/.UserSecrets/secrets.json \ No newline at end of file diff --git a/Server/Repositories/FileShareRepository.cs b/Server/Repositories/FileShareRepository.cs index 6795145..cd3bcf5 100644 --- a/Server/Repositories/FileShareRepository.cs +++ b/Server/Repositories/FileShareRepository.cs @@ -100,4 +100,7 @@ public class FileShareRepository : IFileShareRepository return results; } + List IFileShareRepository.GetArchiveData(CharacterizationParameters archiveParameters) => + throw new NotImplementedException(); + } \ No newline at end of file diff --git a/Shared/Models/CharacterizationInfo.cs b/Shared/Models/CharacterizationInfo.cs new file mode 100644 index 0000000..b0bedb4 --- /dev/null +++ b/Shared/Models/CharacterizationInfo.cs @@ -0,0 +1,5 @@ +namespace OI.Metrology.Shared.Models; + +public record CharacterizationInfo(string? Lot, + DateTime LastWriteTime, + string[] Lines); diff --git a/Shared/Models/CharacterizationParameters.cs b/Shared/Models/CharacterizationParameters.cs new file mode 100644 index 0000000..fa96fda --- /dev/null +++ b/Shared/Models/CharacterizationParameters.cs @@ -0,0 +1,16 @@ +using System.Text.Json.Serialization; + +namespace OI.Metrology.Shared.Models; + +public record CharacterizationParameters([property: JsonPropertyName("area")] string? Area, + [property: JsonPropertyName("equipment-id")] string? EquipmentId, + [property: JsonPropertyName("search-pattern")] string? SearchPattern, + [property: JsonPropertyName("start-time")] string? StartTime, + [property: JsonPropertyName("end-time")] string? EndTime, + [property: JsonPropertyName("wafer-size")] string? WaferSize); + +[JsonSourceGenerationOptions(WriteIndented = true)] +[JsonSerializable(typeof(CharacterizationParameters))] +public partial class CharacterizationParametersSourceGenerationContext : JsonSerializerContext +{ +} diff --git a/Shared/Models/Stateless/IFileShareRepository.cs b/Shared/Models/Stateless/IFileShareRepository.cs index 2bf20b0..b92546c 100644 --- a/Shared/Models/Stateless/IFileShareRepository.cs +++ b/Shared/Models/Stateless/IFileShareRepository.cs @@ -10,6 +10,6 @@ public interface IFileShareRepository HttpResponseMessage ReadFile(HttpClient httpClient, Uri uri); void CopyFile(HttpClient httpClient, string from, string to); void MoveFile(HttpClient httpClient, string from, string to); + List GetArchiveData(CharacterizationParameters characterizationParameters); List GetNginxFileSystemSortableCollection(HttpClient httpClient, Uri uri, string? endsWith); - } \ No newline at end of file diff --git a/Static/AwaitingDispo/index.html b/Static/AwaitingDispo/index.html index 537f1b8..20aa3ba 100644 --- a/Static/AwaitingDispo/index.html +++ b/Static/AwaitingDispo/index.html @@ -50,6 +50,7 @@
  • Export
  • Archive
  • OI Web Services
  • +
  • FI Backlog
  • Export
  • Archive
  • OI Web Services
  • +
  • FI Backlog
  • Export
  • Archive
  • OI Web Services
  • +
  • FI Backlog
  • Export
  • Archive
  • OI Web Services
  • +
  • FI Backlog
  • Export
  • Archive
  • OI Web Services
  • +
  • FI Backlog
  • Export
  • Archive
  • OI Web Services
  • +
  • FI Backlog
  • Export
  • Archive
  • OI Web Services
  • +
  • FI Backlog
  • Export
  • Archive
  • OI Web Services
  • +
  • FI Backlog
  • Export
  • Archive
  • OI Web Services
  • +
  • FI Backlog
  • Export
  • Archive
  • OI Web Services
  • +
  • FI Backlog
  • Export
  • Archive
  • OI Web Services
  • +
  • FI Backlog
  • Export
  • Archive
  • OI Web Services
  • +
  • FI Backlog
  • Export
  • Archive
  • OI Web Services
  • +
  • FI Backlog
  • + Feature(s) +
    + +

    FI Backlog HiRel (Leominster)

    + +
    +
    +
    + +
      + +
    +
    +
    + + + + + diff --git a/Static/mes.html b/Static/mes.html new file mode 100644 index 0000000..db44d7b --- /dev/null +++ b/Static/mes.html @@ -0,0 +1,43 @@ + + + + + + + FI Backlog Mesa + + + + + + + + + + +
    + Feature(s) +
    + +

    FI Backlog Mesa

    + +
    +
    +
    + +
      + +
    +
    +
    + + + + + diff --git a/Static/run-headers.html b/Static/run-headers.html index d193831..4f67a76 100644 --- a/Static/run-headers.html +++ b/Static/run-headers.html @@ -50,6 +50,7 @@
  • Export
  • Archive
  • OI Web Services
  • +
  • FI Backlog