Compare commits
8 Commits
sdk
...
InfinityQS
Author | SHA1 | Date | |
---|---|---|---|
e42636853d | |||
c711fd6774 | |||
9225b76253 | |||
bff76a503a | |||
97c9c3c264 | |||
8e15b6a3a5 | |||
f3d199cccb | |||
a25dc93610 |
3
.gitignore
vendored
3
.gitignore
vendored
@ -52,7 +52,7 @@ BenchmarkDotNet.Artifacts/
|
|||||||
project.lock.json
|
project.lock.json
|
||||||
project.fragment.lock.json
|
project.fragment.lock.json
|
||||||
artifacts/
|
artifacts/
|
||||||
**/Properties/launchSettings.json
|
# **/Properties/launchSettings.json
|
||||||
|
|
||||||
# StyleCop
|
# StyleCop
|
||||||
StyleCopReport.xml
|
StyleCopReport.xml
|
||||||
@ -337,6 +337,7 @@ ASALocalRun/
|
|||||||
!.vscode/tasks.json
|
!.vscode/tasks.json
|
||||||
!.vscode/launch.json
|
!.vscode/launch.json
|
||||||
!.vscode/extensions.json
|
!.vscode/extensions.json
|
||||||
|
!.vscode/thunder-collection_InfinityQS.json
|
||||||
|
|
||||||
# Libman.json
|
# Libman.json
|
||||||
/wwwroot/lib/*
|
/wwwroot/lib/*
|
68
.vscode/launch.json
vendored
68
.vscode/launch.json
vendored
@ -5,10 +5,10 @@
|
|||||||
// Use IntelliSense to find out which attributes exist for C# debugging
|
// Use IntelliSense to find out which attributes exist for C# debugging
|
||||||
// Use hover for the description of the existing attributes
|
// Use hover for the description of the existing attributes
|
||||||
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
|
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
|
||||||
"name": ".NET Core Launch (web)",
|
"name": ".NET Core Launch (web) - Server",
|
||||||
"type": "coreclr",
|
"type": "coreclr",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"preLaunchTask": "build",
|
"preLaunchTask": "buildServer",
|
||||||
// If you have changed target frameworks, make sure to update the program path.
|
// If you have changed target frameworks, make sure to update the program path.
|
||||||
"program": "${workspaceFolder}/Server/bin/Debug/net7.0/win-x64/OI.Metrology.Server.dll",
|
"program": "${workspaceFolder}/Server/bin/Debug/net7.0/win-x64/OI.Metrology.Server.dll",
|
||||||
"args": [],
|
"args": [],
|
||||||
@ -28,37 +28,49 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Watch Server",
|
"name": ".NET Core Attach - Server",
|
||||||
"type": "coreclr",
|
"type": "coreclr",
|
||||||
"request": "launch",
|
"request": "attach",
|
||||||
"preLaunchTask": "build",
|
"preLaunchTask": "watchServer",
|
||||||
"cwd": "${workspaceFolder}",
|
"processName": "OI.Metrology.Server.exe"
|
||||||
"program": "dotnet",
|
|
||||||
"args": [
|
|
||||||
"watch",
|
|
||||||
"--launch-profile",
|
|
||||||
"Phares-Development",
|
|
||||||
"--project",
|
|
||||||
"Server",
|
|
||||||
"--verbose"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Incognito Edge",
|
// Use IntelliSense to find out which attributes exist for C# debugging
|
||||||
"type": "msedge",
|
// Use hover for the description of the existing attributes
|
||||||
|
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
|
||||||
|
"name": ".NET Core Launch (web) - ClientHub",
|
||||||
|
"type": "coreclr",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"runtimeArgs": [
|
"preLaunchTask": "buildClientHub",
|
||||||
"--profile-directory=Default",
|
// If you have changed target frameworks, make sure to update the program path.
|
||||||
"-inprivate"
|
"program": "${workspaceFolder}/ClientHub/bin/Debug/net7.0/win-x64/OI.Metrology.ClientHub.dll",
|
||||||
],
|
"args": [],
|
||||||
"url": "https://localhost:7130/swagger/index.html",
|
"cwd": "${workspaceFolder}/ClientHub",
|
||||||
"preLaunchTask": "build"
|
"stopAtEntry": false,
|
||||||
}
|
// Enable launching a web browser when ASP.NET Core starts. For more information: https://aka.ms/VSCode-CS-LaunchJson-WebBrowser
|
||||||
],
|
"serverReadyAction": {
|
||||||
"compounds": [
|
"action": "openExternally",
|
||||||
|
"pattern": "\\bNow listening on:\\s+(https?://\\S+)",
|
||||||
|
"uriFormat": "%s/swagger/index.html"
|
||||||
|
},
|
||||||
|
"env": {
|
||||||
|
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||||
|
},
|
||||||
|
"sourceFileMap": {
|
||||||
|
"/Views": "${workspaceFolder}/ClientHub/Views"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "* Watch Server - Incognito Edge",
|
"name": ".NET Core Attach - ClientHub",
|
||||||
"configurations": [ "Watch Server", "Incognito Edge" ]
|
"type": "coreclr",
|
||||||
|
"request": "attach",
|
||||||
|
"preLaunchTask": "watchClientHub",
|
||||||
|
"processName": "OI.Metrology.ClientHub.exe"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": ".NET Core Attach",
|
||||||
|
"type": "coreclr",
|
||||||
|
"request": "attach"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
1
.vscode/settings.json
vendored
1
.vscode/settings.json
vendored
@ -3,5 +3,6 @@
|
|||||||
"files.exclude": {
|
"files.exclude": {
|
||||||
"**/.git": false
|
"**/.git": false
|
||||||
},
|
},
|
||||||
|
"thunder-client.saveToWorkspace": true,
|
||||||
"coverage-gutters.coverageBaseDir": "../.vscode/TestResults/*"
|
"coverage-gutters.coverageBaseDir": "../.vscode/TestResults/*"
|
||||||
}
|
}
|
98
.vscode/tasks.json
vendored
98
.vscode/tasks.json
vendored
@ -2,7 +2,7 @@
|
|||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"tasks": [
|
"tasks": [
|
||||||
{
|
{
|
||||||
"label": "build",
|
"label": "buildServer",
|
||||||
"command": "dotnet",
|
"command": "dotnet",
|
||||||
"type": "process",
|
"type": "process",
|
||||||
"args": [
|
"args": [
|
||||||
@ -14,7 +14,7 @@
|
|||||||
"problemMatcher": "$msCompile"
|
"problemMatcher": "$msCompile"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "publish",
|
"label": "publishServer",
|
||||||
"command": "dotnet",
|
"command": "dotnet",
|
||||||
"type": "process",
|
"type": "process",
|
||||||
"args": [
|
"args": [
|
||||||
@ -26,7 +26,7 @@
|
|||||||
"problemMatcher": "$msCompile"
|
"problemMatcher": "$msCompile"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "watch",
|
"label": "old-watch",
|
||||||
"command": "dotnet",
|
"command": "dotnet",
|
||||||
"type": "process",
|
"type": "process",
|
||||||
"args": [
|
"args": [
|
||||||
@ -36,6 +36,98 @@
|
|||||||
"${workspaceFolder}/Server/OI.Metrology.Server.csproj"
|
"${workspaceFolder}/Server/OI.Metrology.Server.csproj"
|
||||||
],
|
],
|
||||||
"problemMatcher": "$msCompile"
|
"problemMatcher": "$msCompile"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "watchServer",
|
||||||
|
"command": "dotnet",
|
||||||
|
"type": "process",
|
||||||
|
"args": [
|
||||||
|
"watch",
|
||||||
|
"--launch-profile",
|
||||||
|
"http",
|
||||||
|
"run",
|
||||||
|
"--project",
|
||||||
|
"${workspaceFolder}/Server/OI.Metrology.Server.csproj",
|
||||||
|
"--verbose"
|
||||||
|
],
|
||||||
|
"isBackground": true,
|
||||||
|
"dependsOn": [
|
||||||
|
"build"
|
||||||
|
],
|
||||||
|
"problemMatcher": {
|
||||||
|
"fileLocation": "relative",
|
||||||
|
"pattern": {
|
||||||
|
"regexp": "^([^\\s].*)\\((\\d+|\\d+,\\d+|\\d+,\\d+,\\d+,\\d+)\\):\\s+(error|warning|info)\\s+(TS\\d+)\\s*:\\s*(.*)$",
|
||||||
|
"file": 1,
|
||||||
|
"location": 2,
|
||||||
|
"severity": 3,
|
||||||
|
"code": 4,
|
||||||
|
"message": 5
|
||||||
|
},
|
||||||
|
"background": {
|
||||||
|
"activeOnStart": true,
|
||||||
|
"beginsPattern": "^.*Shutdown requested.*",
|
||||||
|
"endsPattern": "^.*Application started.*"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "buildClientHub",
|
||||||
|
"command": "dotnet",
|
||||||
|
"type": "process",
|
||||||
|
"args": [
|
||||||
|
"build",
|
||||||
|
"${workspaceFolder}/ClientHub/OI.Metrology.ClientHub.csproj",
|
||||||
|
"/property:GenerateFullPaths=true",
|
||||||
|
"/consoleloggerparameters:NoSummary"
|
||||||
|
],
|
||||||
|
"problemMatcher": "$msCompile"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "publishClientHub",
|
||||||
|
"command": "dotnet",
|
||||||
|
"type": "process",
|
||||||
|
"args": [
|
||||||
|
"publish",
|
||||||
|
"${workspaceFolder}/ClientHub/OI.Metrology.ClientHub.csproj",
|
||||||
|
"/property:GenerateFullPaths=true",
|
||||||
|
"/consoleloggerparameters:NoSummary"
|
||||||
|
],
|
||||||
|
"problemMatcher": "$msCompile"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "watchClientHub",
|
||||||
|
"command": "dotnet",
|
||||||
|
"type": "process",
|
||||||
|
"args": [
|
||||||
|
"watch",
|
||||||
|
"--launch-profile",
|
||||||
|
"http",
|
||||||
|
"run",
|
||||||
|
"--project",
|
||||||
|
"${workspaceFolder}/ClientHub/OI.Metrology.ClientHub.csproj",
|
||||||
|
"--verbose"
|
||||||
|
],
|
||||||
|
"isBackground": true,
|
||||||
|
"dependsOn": [
|
||||||
|
"build"
|
||||||
|
],
|
||||||
|
"problemMatcher": {
|
||||||
|
"fileLocation": "relative",
|
||||||
|
"pattern": {
|
||||||
|
"regexp": "^([^\\s].*)\\((\\d+|\\d+,\\d+|\\d+,\\d+,\\d+,\\d+)\\):\\s+(error|warning|info)\\s+(TS\\d+)\\s*:\\s*(.*)$",
|
||||||
|
"file": 1,
|
||||||
|
"location": 2,
|
||||||
|
"severity": 3,
|
||||||
|
"code": 4,
|
||||||
|
"message": 5
|
||||||
|
},
|
||||||
|
"background": {
|
||||||
|
"activeOnStart": true,
|
||||||
|
"beginsPattern": "^.*Shutdown requested.*",
|
||||||
|
"endsPattern": "^.*Application started.*"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
@ -40,7 +40,6 @@ public class ExportController : Controller
|
|||||||
{
|
{
|
||||||
Export model = new()
|
Export model = new()
|
||||||
{
|
{
|
||||||
ToolType = "",
|
|
||||||
StartTime = DateTime.Now.AddMonths(-1),
|
StartTime = DateTime.Now.AddMonths(-1),
|
||||||
EndTime = DateTime.Now
|
EndTime = DateTime.Now
|
||||||
};
|
};
|
||||||
|
@ -669,9 +669,12 @@ public class MetrologyRepository : IMetrologyRepository
|
|||||||
return ds;
|
return ds;
|
||||||
}
|
}
|
||||||
|
|
||||||
public IEnumerable<HeaderCommon> GetHeaderTitles(int toolTypeId, int? pageNo, int? pageSize, out long totalRecords)
|
public HeaderCommon[] GetHeaderTitles(int? toolTypeId, int? pageNo, int? pageSize, out long totalRecords)
|
||||||
{
|
{
|
||||||
ToolType tt = GetToolTypeByID(toolTypeId);
|
if (toolTypeId is null)
|
||||||
|
throw new Exception("Invalid tool type ID");
|
||||||
|
|
||||||
|
ToolType tt = GetToolTypeByID(toolTypeId.Value);
|
||||||
if (tt is null)
|
if (tt is null)
|
||||||
throw new Exception("Invalid tool type ID");
|
throw new Exception("Invalid tool type ID");
|
||||||
|
|
||||||
@ -680,17 +683,17 @@ public class MetrologyRepository : IMetrologyRepository
|
|||||||
{
|
{
|
||||||
string sql = $"SELECT ID, InsertDate, AttachmentID, Title, [Date] FROM {tt.HeaderTableName} ORDER BY [Date] DESC ";
|
string sql = $"SELECT ID, InsertDate, AttachmentID, Title, [Date] FROM {tt.HeaderTableName} ORDER BY [Date] DESC ";
|
||||||
|
|
||||||
IEnumerable<HeaderCommon> headers;
|
HeaderCommon[] headers;
|
||||||
|
|
||||||
if (pageNo.HasValue && pageSize.HasValue)
|
if (pageNo.HasValue && pageSize.HasValue)
|
||||||
{
|
{
|
||||||
sql += "OFFSET @PageNum * @PageSize ROWS FETCH NEXT @PageSize ROWS ONLY";
|
sql += "OFFSET @PageNum * @PageSize ROWS FETCH NEXT @PageSize ROWS ONLY";
|
||||||
|
|
||||||
headers = conn.Query<HeaderCommon>(sql, param: new { PageNum = pageNo.Value, PageSize = pageSize.Value }).ToList();
|
headers = conn.Query<HeaderCommon>(sql, param: new { PageNum = pageNo.Value, PageSize = pageSize.Value }).ToArray();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
headers = conn.Query<HeaderCommon>(sql).ToList();
|
headers = conn.Query<HeaderCommon>(sql).ToArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
sql = $"SELECT COUNT(*) FROM [{tt.HeaderTableName}] ";
|
sql = $"SELECT COUNT(*) FROM [{tt.HeaderTableName}] ";
|
||||||
|
64
Client/.vscode/launch.json
vendored
64
Client/.vscode/launch.json
vendored
@ -1,64 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "0.2.0",
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
// Use IntelliSense to find out which attributes exist for C# debugging
|
|
||||||
// Use hover for the description of the existing attributes
|
|
||||||
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
|
|
||||||
"name": ".NET Core Launch (web)",
|
|
||||||
"type": "coreclr",
|
|
||||||
"request": "launch",
|
|
||||||
"preLaunchTask": "build",
|
|
||||||
// If you have changed target frameworks, make sure to update the program path.
|
|
||||||
"program": "${workspaceFolder}/bin/Debug/net7.0/OI.Metrology.Client.dll",
|
|
||||||
"args": [],
|
|
||||||
"cwd": "${workspaceFolder}",
|
|
||||||
"stopAtEntry": false,
|
|
||||||
// Enable launching a web browser when ASP.NET Core starts. For more information: https://aka.ms/VSCode-CS-LaunchJson-WebBrowser
|
|
||||||
"serverReadyAction": {
|
|
||||||
"action": "openExternally",
|
|
||||||
"pattern": "\\bNow listening on:\\s+(https?://\\S+)"
|
|
||||||
},
|
|
||||||
"env": {
|
|
||||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
|
||||||
},
|
|
||||||
"sourceFileMap": {
|
|
||||||
"/Views": "${workspaceFolder}/Views"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Launch", // opens a edge window, navigates and click debugs on mine
|
|
||||||
"type": "blazorwasm",
|
|
||||||
"request": "launch",
|
|
||||||
"cwd": "${workspaceFolder}",
|
|
||||||
"browser": "edge",
|
|
||||||
"url": "https://localhost:7023", // Tell launch where to find site
|
|
||||||
"timeout": 120000, // Allows time for the site to launch
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Watch", // Hot reload works on mine no debug
|
|
||||||
"type": "coreclr",
|
|
||||||
"request": "launch",
|
|
||||||
"cwd": "${workspaceFolder}",
|
|
||||||
"program": "dotnet",
|
|
||||||
"args": [
|
|
||||||
"watch",
|
|
||||||
"--launch-profile",
|
|
||||||
"Phares-Development",
|
|
||||||
"--project",
|
|
||||||
".",
|
|
||||||
"--verbose" // Let's us confirm browser connects with hot reload capabilities
|
|
||||||
],
|
|
||||||
"preLaunchTask": "build" // Ensure we don't watch an unbuilt site
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"compounds": [
|
|
||||||
{
|
|
||||||
"name": "* Hot Reload with Debug - Launch",
|
|
||||||
"configurations": [
|
|
||||||
"Watch",
|
|
||||||
"Launch"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
10
Client/.vscode/settings.json
vendored
10
Client/.vscode/settings.json
vendored
@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"coverage-gutters.coverageBaseDir": "../.vscode/TestResults/*",
|
|
||||||
"cSpell.words": [
|
|
||||||
"ASPNETCORE",
|
|
||||||
"Blazor",
|
|
||||||
"Serilog",
|
|
||||||
"Setpoint"
|
|
||||||
],
|
|
||||||
"publish": "dotnet publish -p:BlazorEnableCompression=false -p:BlazorWebassemblyEnableLinking=false --output D:/ --configuration Release"
|
|
||||||
}
|
|
41
Client/.vscode/tasks.json
vendored
41
Client/.vscode/tasks.json
vendored
@ -1,41 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "2.0.0",
|
|
||||||
"tasks": [
|
|
||||||
{
|
|
||||||
"label": "build",
|
|
||||||
"command": "dotnet",
|
|
||||||
"type": "process",
|
|
||||||
"args": [
|
|
||||||
"build",
|
|
||||||
"${workspaceFolder}/OI.Metrology.Client.csproj",
|
|
||||||
"/property:GenerateFullPaths=true",
|
|
||||||
"/consoleloggerparameters:NoSummary"
|
|
||||||
],
|
|
||||||
"problemMatcher": "$msCompile"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"label": "publish",
|
|
||||||
"command": "dotnet",
|
|
||||||
"type": "process",
|
|
||||||
"args": [
|
|
||||||
"publish",
|
|
||||||
"${workspaceFolder}/OI.Metrology.Client.csproj",
|
|
||||||
"/property:GenerateFullPaths=true",
|
|
||||||
"/consoleloggerparameters:NoSummary"
|
|
||||||
],
|
|
||||||
"problemMatcher": "$msCompile"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"label": "watch",
|
|
||||||
"command": "dotnet",
|
|
||||||
"type": "process",
|
|
||||||
"args": [
|
|
||||||
"watch",
|
|
||||||
"run",
|
|
||||||
"--project",
|
|
||||||
"${workspaceFolder}/OI.Metrology.Client.csproj"
|
|
||||||
],
|
|
||||||
"problemMatcher": "$msCompile"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
@ -1,4 +0,0 @@
|
|||||||
namespace OI.Metrology.Client;
|
|
||||||
|
|
||||||
public partial class App
|
|
||||||
{ }
|
|
@ -1,23 +0,0 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
|
||||||
<PropertyGroup>
|
|
||||||
<AssemblyName>$(AssemblyName.Replace(' ', '_'))</AssemblyName>
|
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
|
||||||
<Nullable>enable</Nullable>
|
|
||||||
<TargetFramework>net7.0</TargetFramework>
|
|
||||||
</PropertyGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="7.0.2" PrivateAssets="all" />
|
|
||||||
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="7.0.2" />
|
|
||||||
<PackageReference Include="Microsoft.AspNetCore.WebUtilities" Version="2.2.0" />
|
|
||||||
<PackageReference Include="Microsoft.Extensions.Http" Version="7.0.0" />
|
|
||||||
<PackageReference Include="Microsoft.NET.Runtime.WebAssembly.Sdk" Version="7.0.2" />
|
|
||||||
<PackageReference Include="MudBlazor" Version="6.1.7" />
|
|
||||||
<PackageReference Include="Serilog.AspNetCore.Ingestion" Version="1.0.0-dev-00032" />
|
|
||||||
<PackageReference Include="Serilog.Sinks.BrowserConsole" Version="1.0.0" />
|
|
||||||
<PackageReference Include="Serilog.Sinks.BrowserHttp" Version="1.0.0-dev-00032" />
|
|
||||||
<PackageReference Include="System.Net.Http.Json" Version="7.0.0" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ProjectReference Include="..\Shared\OI.Metrology.Shared.csproj" />
|
|
||||||
</ItemGroup>
|
|
||||||
</Project>
|
|
@ -1,48 +0,0 @@
|
|||||||
@page "/AwaitingDisposition"
|
|
||||||
@using OI.Metrology.Shared.DataModels
|
|
||||||
|
|
||||||
<PageTitle>Awaiting Disposition</PageTitle>
|
|
||||||
|
|
||||||
<MudText Typo="Typo.h4" GutterBottom="true">Awaiting Disposition</MudText>
|
|
||||||
@if (_Records == null)
|
|
||||||
{
|
|
||||||
<MudProgressCircular Color="Color.Default" Indeterminate="true" />
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
<MudTable Items="_Records" Hover="true" SortLabel="Sort By" Elevation="0">
|
|
||||||
<HeaderContent>
|
|
||||||
<MudTh><MudTableSortLabel SortBy="new Func<OI.Metrology.Shared.DataModels.AwaitingDisposition, string?>(x=>x.ToolType)">ToolType</MudTableSortLabel></MudTh>
|
|
||||||
<MudTh><MudTableSortLabel SortBy="new Func<OI.Metrology.Shared.DataModels.AwaitingDisposition, string?>(x=>x.Tool)">Tool</MudTableSortLabel></MudTh>
|
|
||||||
<MudTh><MudTableSortLabel SortBy="new Func<OI.Metrology.Shared.DataModels.AwaitingDisposition, string?>(x=>x.Reactor)">Reactor</MudTableSortLabel></MudTh>
|
|
||||||
<MudTh><MudTableSortLabel SortBy="new Func<OI.Metrology.Shared.DataModels.AwaitingDisposition, string?>(x=>x.RDS)">RDS</MudTableSortLabel></MudTh>
|
|
||||||
<MudTh><MudTableSortLabel SortBy="new Func<OI.Metrology.Shared.DataModels.AwaitingDisposition, string?>(x=>x.PSN)">PSN</MudTableSortLabel></MudTh>
|
|
||||||
<MudTh><MudTableSortLabel SortBy="new Func<OI.Metrology.Shared.DataModels.AwaitingDisposition, string?>(x=>x.Layer)">Layer</MudTableSortLabel></MudTh>
|
|
||||||
<MudTh><MudTableSortLabel SortBy="new Func<OI.Metrology.Shared.DataModels.AwaitingDisposition, string?>(x=>x.Zone)">Zone</MudTableSortLabel></MudTh>
|
|
||||||
<MudTh><MudTableSortLabel SortBy="new Func<OI.Metrology.Shared.DataModels.AwaitingDisposition, object>(x=>x.InsertDate)">InsertDate</MudTableSortLabel></MudTh>
|
|
||||||
<MudTh><MudTableSortLabel SortBy="new Func<OI.Metrology.Shared.DataModels.AwaitingDisposition, object>(x=>x.Expiration)">Expiration</MudTableSortLabel></MudTh>
|
|
||||||
</HeaderContent>
|
|
||||||
<RowTemplate>
|
|
||||||
<MudTd DataLabel="ToolType">@context.ToolType</MudTd>
|
|
||||||
<MudTd DataLabel="Tool">@context.Tool</MudTd>
|
|
||||||
<MudTd DataLabel="Reactor">@context.Reactor</MudTd>
|
|
||||||
<MudTd DataLabel="RDS">@context.RDS</MudTd>
|
|
||||||
<MudTd DataLabel="PSN">@context.PSN</MudTd>
|
|
||||||
<MudTd DataLabel="Layer">@context.Layer</MudTd>
|
|
||||||
<MudTd DataLabel="Zone">@context.Zone</MudTd>
|
|
||||||
<MudTd DataLabel="InsertDate">@context.InsertDate</MudTd>
|
|
||||||
<MudTd DataLabel="Expiration">@context.Expiration</MudTd>
|
|
||||||
</RowTemplate>
|
|
||||||
<PagerContent>
|
|
||||||
<MudTablePager PageSizeOptions="new int[]{50, 100}" />
|
|
||||||
</PagerContent>
|
|
||||||
</MudTable>
|
|
||||||
<div class="row" style="margin-top: 10px; margin-bottom: 20px;">
|
|
||||||
<div class="col-xs-1">
|
|
||||||
<input type="button" id="OpenButton" value="Open" />
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-1">
|
|
||||||
<input type="button" id="RefreshButton" value="Refresh" />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
}
|
|
@ -1,30 +0,0 @@
|
|||||||
using OI.Metrology.Shared.Models.Stateless;
|
|
||||||
using Microsoft.AspNetCore.Components;
|
|
||||||
using System.Net.Http.Json;
|
|
||||||
|
|
||||||
namespace OI.Metrology.Client.Pages;
|
|
||||||
|
|
||||||
public partial class AwaitingDisposition
|
|
||||||
{
|
|
||||||
|
|
||||||
[Inject] protected HttpClient? HttpClient { get; set; }
|
|
||||||
[Inject] protected ILogger<AwaitingDisposition>? Logger { get; set; }
|
|
||||||
|
|
||||||
private Metrology.Shared.DataModels.AwaitingDisposition[]? _Records;
|
|
||||||
|
|
||||||
protected override async Task OnInitializedAsync()
|
|
||||||
{
|
|
||||||
if (Logger is null)
|
|
||||||
throw new NullReferenceException(nameof(Logger));
|
|
||||||
if (HttpClient is null)
|
|
||||||
throw new NullReferenceException(nameof(HttpClient));
|
|
||||||
string controllerName = IAwaitingDispoController<object>.GetRouteName();
|
|
||||||
try
|
|
||||||
{ _Records = await HttpClient.GetFromJsonAsync<Metrology.Shared.DataModels.AwaitingDisposition[]>($"api/{controllerName}"); }
|
|
||||||
catch (Exception)
|
|
||||||
{
|
|
||||||
string json = await HttpClient.GetStringAsync($"api/{controllerName}");
|
|
||||||
Logger.LogInformation(message: json);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,7 +0,0 @@
|
|||||||
@page "/counter"
|
|
||||||
|
|
||||||
<PageTitle>Counter</PageTitle>
|
|
||||||
|
|
||||||
<MudText Typo="Typo.h3" GutterBottom="true">Counter</MudText>
|
|
||||||
<MudText Class="mb-4">Current count: @_CurrentCount</MudText>
|
|
||||||
<MudButton Color="Color.Primary" Variant="Variant.Filled" @onclick="IncrementCount">Click me</MudButton>
|
|
@ -1,42 +0,0 @@
|
|||||||
@page "/fetchServiceShoporders"
|
|
||||||
@using OI.Metrology.Shared.ViewModels
|
|
||||||
|
|
||||||
<PageTitle>Service-Shop Orders</PageTitle>
|
|
||||||
|
|
||||||
<MudText Typo="Typo.h3" GutterBottom="true">Service-Shop Orders</MudText>
|
|
||||||
@if (_ServiceShopOrders == null)
|
|
||||||
{
|
|
||||||
<MudProgressCircular Color="Color.Default" Indeterminate="true" />
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
<MudTable Items="_ServiceShopOrders" Hover="true" SortLabel="Sort By" Elevation="0">
|
|
||||||
<HeaderContent>
|
|
||||||
<MudTh><MudTableSortLabel SortBy="new Func<ServiceShopOrder, object>(x=>x.Id)">Id</MudTableSortLabel></MudTh>
|
|
||||||
<MudTh><MudTableSortLabel SortBy="new Func<ServiceShopOrder, object>(x=>x.Name)">Name</MudTableSortLabel></MudTh>
|
|
||||||
<MudTh><MudTableSortLabel SortBy="new Func<ServiceShopOrder, object>(x=>x.BookingNames)">Booking Names</MudTableSortLabel></MudTh>
|
|
||||||
<MudTh><MudTableSortLabel SortBy="new Func<ServiceShopOrder, object>(x=>x.Type)">Type</MudTableSortLabel></MudTh>
|
|
||||||
<MudTh><MudTableSortLabel SortBy="new Func<ServiceShopOrder, object>(x=>x.State)">State</MudTableSortLabel></MudTh>
|
|
||||||
<MudTh><MudTableSortLabel SortBy="new Func<ServiceShopOrder, object>(x=>x.ItemNumber)">Item Number</MudTableSortLabel></MudTh>
|
|
||||||
<MudTh><MudTableSortLabel InitialDirection="SortDirection.Descending" SortBy="new Func<ServiceShopOrder, object>(x=>x.CreatedDate)">Created Date</MudTableSortLabel></MudTh>
|
|
||||||
<MudTh><MudTableSortLabel SortBy="new Func<ServiceShopOrder, object>(x=>x.DecidedDate)">Decided Date</MudTableSortLabel></MudTh>
|
|
||||||
<MudTh><MudTableSortLabel SortBy="new Func<ServiceShopOrder, object>(x=>x.Recipient)">Recipient</MudTableSortLabel></MudTh>
|
|
||||||
<MudTh><MudTableSortLabel SortBy="new Func<ServiceShopOrder, object>(x=>x.Requestor)">Requestor</MudTableSortLabel></MudTh>
|
|
||||||
</HeaderContent>
|
|
||||||
<RowTemplate>
|
|
||||||
<MudTd DataLabel="Id">@context.Id</MudTd>
|
|
||||||
<MudTd DataLabel="Name">@context.Name</MudTd>
|
|
||||||
<MudTd DataLabel="BookingNames">@string.Join(' ', context.BookingNames)</MudTd>
|
|
||||||
<MudTd DataLabel="Type">@context.Type</MudTd>
|
|
||||||
<MudTd DataLabel="State">@context.State</MudTd>
|
|
||||||
<MudTd DataLabel="ItemNumber">@context.ItemNumber</MudTd>
|
|
||||||
<MudTd DataLabel="CreatedDate">@context.CreatedDate</MudTd>
|
|
||||||
<MudTd DataLabel="DecidedDate">@context.DecidedDate</MudTd>
|
|
||||||
<MudTd DataLabel="Recipient">@context.Recipient</MudTd>
|
|
||||||
<MudTd DataLabel="Requestor">@context.Requestor</MudTd>
|
|
||||||
</RowTemplate>
|
|
||||||
<PagerContent>
|
|
||||||
<MudTablePager PageSizeOptions="new int[]{50, 100}" />
|
|
||||||
</PagerContent>
|
|
||||||
</MudTable>
|
|
||||||
}
|
|
@ -1,43 +0,0 @@
|
|||||||
using OI.Metrology.Shared.Models.Stateless;
|
|
||||||
using OI.Metrology.Shared.ViewModels;
|
|
||||||
using Microsoft.AspNetCore.Components;
|
|
||||||
using System.Net.Http.Json;
|
|
||||||
|
|
||||||
namespace OI.Metrology.Client.Pages;
|
|
||||||
|
|
||||||
public partial class FetchServiceShopOrders
|
|
||||||
{
|
|
||||||
|
|
||||||
[Inject] protected HttpClient? HttpClient { get; set; }
|
|
||||||
[Inject] protected ILogger<FetchServiceShopOrders>? Logger { get; set; }
|
|
||||||
|
|
||||||
private ServiceShopOrder[]? _ServiceShopOrders;
|
|
||||||
|
|
||||||
//Id
|
|
||||||
//Name
|
|
||||||
//BookingNames
|
|
||||||
//Type
|
|
||||||
//State
|
|
||||||
//ItemNumber
|
|
||||||
//CreatedDate
|
|
||||||
//DecidedDate
|
|
||||||
//Recipient
|
|
||||||
//Requestor
|
|
||||||
|
|
||||||
protected override async Task OnInitializedAsync()
|
|
||||||
{
|
|
||||||
if (Logger is null)
|
|
||||||
throw new NullReferenceException(nameof(Logger));
|
|
||||||
if (HttpClient is null)
|
|
||||||
throw new NullReferenceException(nameof(HttpClient));
|
|
||||||
string actionName = nameof(IServiceShopOrderController<object>.Action.All);
|
|
||||||
string controllerName = IServiceShopOrderController<object>.GetRouteName();
|
|
||||||
try
|
|
||||||
{ _ServiceShopOrders = await HttpClient.GetFromJsonAsync<ServiceShopOrder[]>($"api/{controllerName}/{actionName}"); }
|
|
||||||
catch (Exception)
|
|
||||||
{
|
|
||||||
string json = await HttpClient.GetStringAsync($"api/{controllerName}/{actionName}");
|
|
||||||
Logger.LogInformation(message: json);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,7 +0,0 @@
|
|||||||
@page "/"
|
|
||||||
|
|
||||||
<PageTitle>Index</PageTitle>
|
|
||||||
|
|
||||||
<MudText Typo="Typo.h3" GutterBottom="true">Hello, world!</MudText>
|
|
||||||
<MudText Class="mb-8">Welcome to your new app, powered by MudBlazor!</MudText>
|
|
||||||
<MudAlert Severity="Severity.Normal">You can find documentation and examples on our website here: <MudLink Href="https://mudblazor.com" Typo="Typo.body2" Color="Color.Inherit"><b>www.mudblazor.com</b></MudLink></MudAlert>
|
|
@ -1,4 +0,0 @@
|
|||||||
namespace OI.Metrology.Client.Pages;
|
|
||||||
|
|
||||||
public partial class Index
|
|
||||||
{ }
|
|
@ -1,48 +0,0 @@
|
|||||||
@page "/RunHeaders"
|
|
||||||
@using OI.Metrology.Shared.DataModels
|
|
||||||
|
|
||||||
<PageTitle>Run Headers</PageTitle>
|
|
||||||
|
|
||||||
<MudText Typo="Typo.h4" GutterBottom="true">Run Headers</MudText>
|
|
||||||
@if (_ToolTypeNameIdCollection is null || !_ToolTypeNameIdCollection.Any())
|
|
||||||
{
|
|
||||||
<MudProgressCircular Color="Color.Default" Indeterminate="true" />
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
<MudSelect Margin="Margin.Dense" T="string" Label="Coffee" Variant="Variant.Outlined">
|
|
||||||
@foreach (ToolTypeNameId toolTypeNameId in _ToolTypeNameIdCollection)
|
|
||||||
{
|
|
||||||
<MudSelectItem Value="@toolTypeNameId.ID">@toolTypeNameId.ToolTypeName</MudSelectItem>
|
|
||||||
}
|
|
||||||
</MudSelect>
|
|
||||||
<MudTable Items="_Records" Hover="true" SortLabel="Sort By" Elevation="0">
|
|
||||||
<HeaderContent>
|
|
||||||
<MudTh>
|
|
||||||
<MudTableSortLabel
|
|
||||||
SortBy="new Func<OI.Metrology.Shared.DataModels.AwaitingDisposition, string?>(x=>x.ToolType)">ToolType
|
|
||||||
</MudTableSortLabel>
|
|
||||||
</MudTh>
|
|
||||||
<MudTh>
|
|
||||||
<MudTableSortLabel
|
|
||||||
SortBy="new Func<OI.Metrology.Shared.DataModels.AwaitingDisposition, object>(x=>x.Expiration)">
|
|
||||||
Expiration</MudTableSortLabel>
|
|
||||||
</MudTh>
|
|
||||||
</HeaderContent>
|
|
||||||
<RowTemplate>
|
|
||||||
<MudTd DataLabel="ToolType">@context.ToolType</MudTd>
|
|
||||||
<MudTd DataLabel="Expiration">@context.Expiration</MudTd>
|
|
||||||
</RowTemplate>
|
|
||||||
<PagerContent>
|
|
||||||
<MudTablePager PageSizeOptions="new int[]{50, 100}" />
|
|
||||||
</PagerContent>
|
|
||||||
</MudTable>
|
|
||||||
<div class="row" style="margin-top: 10px; margin-bottom: 20px;">
|
|
||||||
<div class="col-xs-1">
|
|
||||||
<input type="button" id="OpenButton" value="Open" />
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-1">
|
|
||||||
<input type="button" id="RefreshButton" value="Refresh" />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
}
|
|
@ -1,42 +0,0 @@
|
|||||||
using Microsoft.AspNetCore.Components;
|
|
||||||
using OI.Metrology.Shared.DataModels;
|
|
||||||
using OI.Metrology.Shared.Models.Stateless;
|
|
||||||
using System.Net.Http.Json;
|
|
||||||
|
|
||||||
namespace OI.Metrology.Client.Pages;
|
|
||||||
|
|
||||||
public partial class RunHeaders
|
|
||||||
{
|
|
||||||
|
|
||||||
[Inject] protected HttpClient? HttpClient { get; set; }
|
|
||||||
[Inject] protected ILogger<RunHeaders>? Logger { get; set; }
|
|
||||||
|
|
||||||
private List<ToolTypeNameId>? _ToolTypeNameIdCollection;
|
|
||||||
private Metrology.Shared.DataModels.AwaitingDisposition[]? _Records;
|
|
||||||
|
|
||||||
protected override async Task OnInitializedAsync()
|
|
||||||
{
|
|
||||||
if (Logger is null)
|
|
||||||
throw new NullReferenceException(nameof(Logger));
|
|
||||||
if (HttpClient is null)
|
|
||||||
throw new NullReferenceException(nameof(HttpClient));
|
|
||||||
_ToolTypeNameIdCollection = new();
|
|
||||||
string toolTypeController = IToolTypesController<object>.GetRouteName();
|
|
||||||
// string controllerName = IMetrologyRepository<object>.GetRouteName();
|
|
||||||
try
|
|
||||||
{
|
|
||||||
Result<ToolTypeNameId[]>? result = await HttpClient.GetFromJsonAsync<Result<ToolTypeNameId[]>>($"api/{toolTypeController}");
|
|
||||||
if (result?.Results is not null)
|
|
||||||
{
|
|
||||||
_ToolTypeNameIdCollection.AddRange(result.Results);
|
|
||||||
if (_ToolTypeNameIdCollection is not null && _ToolTypeNameIdCollection.Any())
|
|
||||||
_Records = await HttpClient.GetFromJsonAsync<Metrology.Shared.DataModels.AwaitingDisposition[]>($"api/controllerName");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch (Exception)
|
|
||||||
{
|
|
||||||
string json = await HttpClient.GetStringAsync($"api/{toolTypeController}");
|
|
||||||
Logger.LogInformation(message: json);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,36 +0,0 @@
|
|||||||
@page "/"
|
|
||||||
@using Microsoft.AspNetCore.Components.Web
|
|
||||||
@namespace OI.Metrology.Client.Pages
|
|
||||||
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
|
||||||
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8" />
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
||||||
<base href="/" />
|
|
||||||
<link rel="stylesheet" href="css/bootstrap/bootstrap.min.css" />
|
|
||||||
<link href="css/app.css" rel="stylesheet" />
|
|
||||||
<link href="blazorserver.styles.css" rel="stylesheet" />
|
|
||||||
<link href="_content/MudBlazor/MudBlazor.min.css" rel="stylesheet" />
|
|
||||||
<link rel="icon" type="image/png" href="favicon.png"/>
|
|
||||||
<component type="typeof(HeadOutlet)" render-mode="ServerPrerendered" />
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<component type="typeof(App)" render-mode="ServerPrerendered" />
|
|
||||||
|
|
||||||
<div id="blazor-error-ui">
|
|
||||||
<environment include="Staging,Production">
|
|
||||||
An error has occurred. This application may no longer respond until reloaded.
|
|
||||||
</environment>
|
|
||||||
<environment include="Development">
|
|
||||||
An unhandled exception has occurred. See browser dev tools for details.
|
|
||||||
</environment>
|
|
||||||
<a href="" class="reload">Reload</a>
|
|
||||||
<a class="dismiss">🗙</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<script src="_content/MudBlazor/MudBlazor.min.js"></script>
|
|
||||||
<script src="_framework/blazor.server.js"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,39 +0,0 @@
|
|||||||
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
|
|
||||||
using MudBlazor.Services;
|
|
||||||
|
|
||||||
namespace OI.Metrology.Client;
|
|
||||||
|
|
||||||
internal class Program
|
|
||||||
{
|
|
||||||
private static void Main(string[] args)
|
|
||||||
{
|
|
||||||
WebApplicationBuilder builder = WebApplication.CreateBuilder(args);
|
|
||||||
|
|
||||||
// Add services to the container.
|
|
||||||
_ = builder.Services.AddRazorPages();
|
|
||||||
_ = builder.Services.AddServerSideBlazor();
|
|
||||||
|
|
||||||
_ = builder.Services.AddMudServices();
|
|
||||||
|
|
||||||
WebApplication app = builder.Build();
|
|
||||||
|
|
||||||
// Configure the HTTP request pipeline.
|
|
||||||
if (!app.Environment.IsDevelopment())
|
|
||||||
{
|
|
||||||
_ = app.UseExceptionHandler("/Error");
|
|
||||||
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
|
|
||||||
_ = app.UseHsts();
|
|
||||||
}
|
|
||||||
|
|
||||||
_ = app.UseHttpsRedirection();
|
|
||||||
|
|
||||||
_ = app.UseStaticFiles();
|
|
||||||
|
|
||||||
_ = app.UseRouting();
|
|
||||||
|
|
||||||
_ = app.MapBlazorHub();
|
|
||||||
_ = app.MapFallbackToPage("/_Host");
|
|
||||||
|
|
||||||
app.Run();
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,27 +0,0 @@
|
|||||||
@inherits LayoutComponentBase
|
|
||||||
|
|
||||||
<MudDialogProvider />
|
|
||||||
<MudSnackbarProvider />
|
|
||||||
|
|
||||||
<MudThemeProvider @ref="@_MudThemeProvider" @bind-IsDarkMode="@_IsDarkMode"/>
|
|
||||||
|
|
||||||
<MudLayout>
|
|
||||||
<MudAppBar Elevation="0">
|
|
||||||
<MudIconButton Icon="@Icons.Material.Filled.Menu" Color="Color.Inherit" Edge="Edge.Start" OnClick="@((e) => DrawerToggle())" />
|
|
||||||
<MudSpacer />
|
|
||||||
<MudIconButton Icon="@Icons.Custom.Brands.MudBlazor" Color="Color.Inherit" Link="https://mudblazor.com/" Target="_blank" />
|
|
||||||
<MudIconButton Icon="@Icons.Custom.Brands.GitHub" Color="Color.Inherit" Link="https://github.com/MudBlazor/MudBlazor/" Target="_blank" />
|
|
||||||
<MudSwitch @bind-Checked="@_IsDarkMode" Color="Color.Primary" Class="ma-4" T="bool" Label="Toggle Light/Dark Mode"/>
|
|
||||||
</MudAppBar>
|
|
||||||
<MudDrawer @bind-Open="_DrawerOpen" Elevation="1">
|
|
||||||
<MudDrawerHeader>
|
|
||||||
<MudText Typo="Typo.h6">Blazor</MudText>
|
|
||||||
</MudDrawerHeader>
|
|
||||||
<NavMenu />
|
|
||||||
</MudDrawer>
|
|
||||||
<MudMainContent>
|
|
||||||
<MudContainer MaxWidth="MaxWidth.Large" Class="my-16 pt-16">
|
|
||||||
@Body
|
|
||||||
</MudContainer>
|
|
||||||
</MudMainContent>
|
|
||||||
</MudLayout>
|
|
@ -1,22 +0,0 @@
|
|||||||
using MudBlazor;
|
|
||||||
|
|
||||||
namespace OI.Metrology.Client.Shared;
|
|
||||||
|
|
||||||
public partial class MainLayout
|
|
||||||
{
|
|
||||||
bool _DrawerOpen = true;
|
|
||||||
private bool _IsDarkMode;
|
|
||||||
private MudThemeProvider? _MudThemeProvider;
|
|
||||||
|
|
||||||
void DrawerToggle() => _DrawerOpen = !_DrawerOpen;
|
|
||||||
|
|
||||||
protected override async Task OnAfterRenderAsync(bool firstRender)
|
|
||||||
{
|
|
||||||
if (firstRender && _MudThemeProvider is not null)
|
|
||||||
{
|
|
||||||
_IsDarkMode = await _MudThemeProvider.GetSystemPreference();
|
|
||||||
StateHasChanged();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
@ -1,10 +0,0 @@
|
|||||||
<MudNavMenu>
|
|
||||||
<MudNavLink Href="" Match="NavLinkMatch.All" Icon="@Icons.Material.Filled.Home">Home</MudNavLink>
|
|
||||||
<MudNavLink Href="counter" Match="NavLinkMatch.Prefix" Icon="@Icons.Material.Filled.Add">Counter</MudNavLink>
|
|
||||||
<MudNavLink Href="fetchserviceshoporders" Match="NavLinkMatch.Prefix" Icon="@Icons.Material.Filled.CollectionsBookmark">Fetch Service Shop Orders</MudNavLink>
|
|
||||||
<MudNavLink Href="AwaitingDisposition" Match="NavLinkMatch.Prefix" Icon="@Icons.Material.Filled.QueuePlayNext">Awaiting Disposition</MudNavLink>
|
|
||||||
<MudNavLink Href="AwaitingDisposition" Match="NavLinkMatch.Prefix" Icon="@Icons.Material.Filled.Info">Run Information</MudNavLink>
|
|
||||||
<MudNavLink Href="AwaitingDisposition" Match="NavLinkMatch.Prefix" Icon="@Icons.Material.Filled.ViewHeadline">Run Headers</MudNavLink>
|
|
||||||
<MudNavLink Href="AwaitingDisposition" Match="NavLinkMatch.Prefix" Icon="@Icons.Material.Filled.ImportExport">Export</MudNavLink>
|
|
||||||
<MudNavLink Href="AwaitingDisposition" Match="NavLinkMatch.Prefix" Icon="@Icons.Material.Filled.Archive">Archive</MudNavLink>
|
|
||||||
</MudNavMenu>
|
|
@ -1,4 +0,0 @@
|
|||||||
namespace OI.Metrology.Client.Shared;
|
|
||||||
|
|
||||||
public partial class NavMenu
|
|
||||||
{ }
|
|
@ -1,11 +0,0 @@
|
|||||||
@using System.Net.Http
|
|
||||||
@using System.Net.Http.Json
|
|
||||||
@using Microsoft.AspNetCore.Components.Forms
|
|
||||||
@using Microsoft.AspNetCore.Components.Routing
|
|
||||||
@using Microsoft.AspNetCore.Components.Web
|
|
||||||
@using Microsoft.AspNetCore.Components.Web.Virtualization
|
|
||||||
@using Microsoft.AspNetCore.Components.WebAssembly.Http
|
|
||||||
@using Microsoft.JSInterop
|
|
||||||
@using MudBlazor
|
|
||||||
@using OI.Metrology.Client
|
|
||||||
@using OI.Metrology.Client.Shared
|
|
@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
"ApiUrl": "https://localhost:7130",
|
|
||||||
"MonAResource": "Asdf_Asdf_EC",
|
|
||||||
"IsDevelopment": true,
|
|
||||||
"IsStaging": false
|
|
||||||
}
|
|
@ -1,8 +0,0 @@
|
|||||||
{
|
|
||||||
"ApiUrl": "http://localhost:50199",
|
|
||||||
"Company": "Infineon Technologies Americas Corp.",
|
|
||||||
"MonAResource": "Asdf_Asdf_EC",
|
|
||||||
"MonASite": "auc",
|
|
||||||
"IsDevelopment": false,
|
|
||||||
"IsStaging": false
|
|
||||||
}
|
|
@ -1,101 +0,0 @@
|
|||||||
@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');
|
|
||||||
|
|
||||||
html, body {
|
|
||||||
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
||||||
}
|
|
||||||
|
|
||||||
h1:focus {
|
|
||||||
outline: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
a, .btn-link {
|
|
||||||
color: #0071c1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-primary {
|
|
||||||
color: #fff;
|
|
||||||
background-color: #1b6ec2;
|
|
||||||
border-color: #1861ac;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
|
|
||||||
box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
|
|
||||||
}
|
|
||||||
|
|
||||||
.content {
|
|
||||||
padding-top: 1.1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.valid.modified:not([type=checkbox]) {
|
|
||||||
outline: 1px solid #26b050;
|
|
||||||
}
|
|
||||||
|
|
||||||
.invalid {
|
|
||||||
outline: 1px solid red;
|
|
||||||
}
|
|
||||||
|
|
||||||
.validation-message {
|
|
||||||
color: red;
|
|
||||||
}
|
|
||||||
|
|
||||||
#blazor-error-ui {
|
|
||||||
background: lightyellow;
|
|
||||||
bottom: 0;
|
|
||||||
box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
|
|
||||||
display: none;
|
|
||||||
left: 0;
|
|
||||||
padding: 0.6rem 1.25rem 0.7rem 1.25rem;
|
|
||||||
position: fixed;
|
|
||||||
width: 100%;
|
|
||||||
z-index: 1000;
|
|
||||||
}
|
|
||||||
|
|
||||||
#blazor-error-ui .dismiss {
|
|
||||||
cursor: pointer;
|
|
||||||
position: absolute;
|
|
||||||
right: 0.75rem;
|
|
||||||
top: 0.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.blazor-error-boundary {
|
|
||||||
background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
|
|
||||||
padding: 1rem 1rem 1rem 3.7rem;
|
|
||||||
color: white;
|
|
||||||
}
|
|
||||||
|
|
||||||
.blazor-error-boundary::after {
|
|
||||||
content: "An error has occurred."
|
|
||||||
}
|
|
||||||
|
|
||||||
.loading-progress {
|
|
||||||
position: relative;
|
|
||||||
display: block;
|
|
||||||
width: 8rem;
|
|
||||||
height: 8rem;
|
|
||||||
margin: 20vh auto 1rem auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.loading-progress circle {
|
|
||||||
fill: none;
|
|
||||||
stroke: #e0e0e0;
|
|
||||||
stroke-width: 0.6rem;
|
|
||||||
transform-origin: 50% 50%;
|
|
||||||
transform: rotate(-90deg);
|
|
||||||
}
|
|
||||||
|
|
||||||
.loading-progress circle:last-child {
|
|
||||||
stroke: #1b6ec2;
|
|
||||||
stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
|
|
||||||
transition: stroke-dasharray 0.05s ease-in-out;
|
|
||||||
}
|
|
||||||
|
|
||||||
.loading-progress-text {
|
|
||||||
position: absolute;
|
|
||||||
text-align: center;
|
|
||||||
font-weight: bold;
|
|
||||||
inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.loading-progress-text:after {
|
|
||||||
content: var(--blazor-load-percentage-text, "Loading");
|
|
||||||
}
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,86 +0,0 @@
|
|||||||
SIL OPEN FONT LICENSE Version 1.1
|
|
||||||
|
|
||||||
Copyright (c) 2014 Waybury
|
|
||||||
|
|
||||||
PREAMBLE
|
|
||||||
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
||||||
development of collaborative font projects, to support the font creation
|
|
||||||
efforts of academic and linguistic communities, and to provide a free and
|
|
||||||
open framework in which fonts may be shared and improved in partnership
|
|
||||||
with others.
|
|
||||||
|
|
||||||
The OFL allows the licensed fonts to be used, studied, modified and
|
|
||||||
redistributed freely as long as they are not sold by themselves. The
|
|
||||||
fonts, including any derivative works, can be bundled, embedded,
|
|
||||||
redistributed and/or sold with any software provided that any reserved
|
|
||||||
names are not used by derivative works. The fonts and derivatives,
|
|
||||||
however, cannot be released under any other type of license. The
|
|
||||||
requirement for fonts to remain under this license does not apply
|
|
||||||
to any document created using the fonts or their derivatives.
|
|
||||||
|
|
||||||
DEFINITIONS
|
|
||||||
"Font Software" refers to the set of files released by the Copyright
|
|
||||||
Holder(s) under this license and clearly marked as such. This may
|
|
||||||
include source files, build scripts and documentation.
|
|
||||||
|
|
||||||
"Reserved Font Name" refers to any names specified as such after the
|
|
||||||
copyright statement(s).
|
|
||||||
|
|
||||||
"Original Version" refers to the collection of Font Software components as
|
|
||||||
distributed by the Copyright Holder(s).
|
|
||||||
|
|
||||||
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
||||||
or substituting -- in part or in whole -- any of the components of the
|
|
||||||
Original Version, by changing formats or by porting the Font Software to a
|
|
||||||
new environment.
|
|
||||||
|
|
||||||
"Author" refers to any designer, engineer, programmer, technical
|
|
||||||
writer or other person who contributed to the Font Software.
|
|
||||||
|
|
||||||
PERMISSION & CONDITIONS
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining
|
|
||||||
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
||||||
redistribute, and sell modified and unmodified copies of the Font
|
|
||||||
Software, subject to the following conditions:
|
|
||||||
|
|
||||||
1) Neither the Font Software nor any of its individual components,
|
|
||||||
in Original or Modified Versions, may be sold by itself.
|
|
||||||
|
|
||||||
2) Original or Modified Versions of the Font Software may be bundled,
|
|
||||||
redistributed and/or sold with any software, provided that each copy
|
|
||||||
contains the above copyright notice and this license. These can be
|
|
||||||
included either as stand-alone text files, human-readable headers or
|
|
||||||
in the appropriate machine-readable metadata fields within text or
|
|
||||||
binary files as long as those fields can be easily viewed by the user.
|
|
||||||
|
|
||||||
3) No Modified Version of the Font Software may use the Reserved Font
|
|
||||||
Name(s) unless explicit written permission is granted by the corresponding
|
|
||||||
Copyright Holder. This restriction only applies to the primary font name as
|
|
||||||
presented to the users.
|
|
||||||
|
|
||||||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
||||||
Software shall not be used to promote, endorse or advertise any
|
|
||||||
Modified Version, except to acknowledge the contribution(s) of the
|
|
||||||
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
||||||
permission.
|
|
||||||
|
|
||||||
5) The Font Software, modified or unmodified, in part or in whole,
|
|
||||||
must be distributed entirely under this license, and must not be
|
|
||||||
distributed under any other license. The requirement for fonts to
|
|
||||||
remain under this license does not apply to any document created
|
|
||||||
using the Font Software.
|
|
||||||
|
|
||||||
TERMINATION
|
|
||||||
This license becomes null and void if any of the above conditions are
|
|
||||||
not met.
|
|
||||||
|
|
||||||
DISCLAIMER
|
|
||||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
||||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
||||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
||||||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
||||||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
||||||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
||||||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
||||||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
||||||
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
@ -1,21 +0,0 @@
|
|||||||
The MIT License (MIT)
|
|
||||||
|
|
||||||
Copyright (c) 2014 Waybury
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in
|
|
||||||
all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
||||||
THE SOFTWARE.
|
|
@ -1,114 +0,0 @@
|
|||||||
[Open Iconic v1.1.1](https://github.com/iconic/open-iconic)
|
|
||||||
===========
|
|
||||||
|
|
||||||
### Open Iconic is the open source sibling of [Iconic](https://github.com/iconic/open-iconic). It is a hyper-legible collection of 223 icons with a tiny footprint—ready to use with Bootstrap and Foundation. [View the collection](https://github.com/iconic/open-iconic)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## What's in Open Iconic?
|
|
||||||
|
|
||||||
* 223 icons designed to be legible down to 8 pixels
|
|
||||||
* Super-light SVG files - 61.8 for the entire set
|
|
||||||
* SVG sprite—the modern replacement for icon fonts
|
|
||||||
* Webfont (EOT, OTF, SVG, TTF, WOFF), PNG and WebP formats
|
|
||||||
* Webfont stylesheets (including versions for Bootstrap and Foundation) in CSS, LESS, SCSS and Stylus formats
|
|
||||||
* PNG and WebP raster images in 8px, 16px, 24px, 32px, 48px and 64px.
|
|
||||||
|
|
||||||
|
|
||||||
## Getting Started
|
|
||||||
|
|
||||||
#### For code samples and everything else you need to get started with Open Iconic, check out our [Icons](https://github.com/iconic/open-iconic) and [Reference](https://github.com/iconic/open-iconic) sections.
|
|
||||||
|
|
||||||
### General Usage
|
|
||||||
|
|
||||||
#### Using Open Iconic's SVGs
|
|
||||||
|
|
||||||
We like SVGs and we think they're the way to display icons on the web. Since Open Iconic are just basic SVGs, we suggest you display them like you would any other image (don't forget the `alt` attribute).
|
|
||||||
|
|
||||||
```
|
|
||||||
<img src="/open-iconic/svg/icon-name.svg" alt="icon name">
|
|
||||||
```
|
|
||||||
|
|
||||||
#### Using Open Iconic's SVG Sprite
|
|
||||||
|
|
||||||
Open Iconic also comes in a SVG sprite which allows you to display all the icons in the set with a single request. It's like an icon font, without being a hack.
|
|
||||||
|
|
||||||
Adding an icon from an SVG sprite is a little different than what you're used to, but it's still a piece of cake. *Tip: To make your icons easily style able, we suggest adding a general class to the* `<svg>` *tag and a unique class name for each different icon in the* `<use>` *tag.*
|
|
||||||
|
|
||||||
```
|
|
||||||
<svg class="icon">
|
|
||||||
<use xlink:href="open-iconic.svg#account-login" class="icon-account-login"></use>
|
|
||||||
</svg>
|
|
||||||
```
|
|
||||||
|
|
||||||
Sizing icons only needs basic CSS. All the icons are in a square format, so just set the `<svg>` tag with equal width and height dimensions.
|
|
||||||
|
|
||||||
```
|
|
||||||
.icon {
|
|
||||||
width: 16px;
|
|
||||||
height: 16px;
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
Coloring icons is even easier. All you need to do is set the `fill` rule on the `<use>` tag.
|
|
||||||
|
|
||||||
```
|
|
||||||
.icon-account-login {
|
|
||||||
fill: #f00;
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
To learn more about SVG Sprites, read [Chris Coyier's guide](http://css-tricks.com/svg-sprites-use-better-icon-fonts/).
|
|
||||||
|
|
||||||
#### Using Open Iconic's Icon Font...
|
|
||||||
|
|
||||||
|
|
||||||
##### …with Bootstrap
|
|
||||||
|
|
||||||
You can find our Bootstrap stylesheets in `font/css/open-iconic-bootstrap.{css, less, scss, styl}`
|
|
||||||
|
|
||||||
|
|
||||||
```
|
|
||||||
<link href="/open-iconic/font/css/open-iconic-bootstrap.css" rel="stylesheet">
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
```
|
|
||||||
<span class="oi oi-icon-name" title="icon name" aria-hidden="true"></span>
|
|
||||||
```
|
|
||||||
|
|
||||||
##### …with Foundation
|
|
||||||
|
|
||||||
You can find our Foundation stylesheets in `font/css/open-iconic-foundation.{css, less, scss, styl}`
|
|
||||||
|
|
||||||
```
|
|
||||||
<link href="/open-iconic/font/css/open-iconic-foundation.css" rel="stylesheet">
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
```
|
|
||||||
<span class="fi-icon-name" title="icon name" aria-hidden="true"></span>
|
|
||||||
```
|
|
||||||
|
|
||||||
##### …on its own
|
|
||||||
|
|
||||||
You can find our default stylesheets in `font/css/open-iconic.{css, less, scss, styl}`
|
|
||||||
|
|
||||||
```
|
|
||||||
<link href="/open-iconic/font/css/open-iconic.css" rel="stylesheet">
|
|
||||||
```
|
|
||||||
|
|
||||||
```
|
|
||||||
<span class="oi" data-glyph="icon-name" title="icon name" aria-hidden="true"></span>
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
## License
|
|
||||||
|
|
||||||
### Icons
|
|
||||||
|
|
||||||
All code (including SVG markup) is under the [MIT License](http://opensource.org/licenses/MIT).
|
|
||||||
|
|
||||||
### Fonts
|
|
||||||
|
|
||||||
All fonts are under the [SIL Licensed](http://scripts.sil.org/cms/scripts/page.php?item_id=OFL_web).
|
|
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
@ -1,543 +0,0 @@
|
|||||||
<?xml version="1.0" standalone="no"?>
|
|
||||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
|
||||||
<!--
|
|
||||||
2014-7-1: Created.
|
|
||||||
-->
|
|
||||||
<svg xmlns="http://www.w3.org/2000/svg">
|
|
||||||
<metadata>
|
|
||||||
Created by FontForge 20120731 at Tue Jul 1 20:39:22 2014
|
|
||||||
By P.J. Onori
|
|
||||||
Created by P.J. Onori with FontForge 2.0 (http://fontforge.sf.net)
|
|
||||||
</metadata>
|
|
||||||
<defs>
|
|
||||||
<font id="open-iconic" horiz-adv-x="800" >
|
|
||||||
<font-face
|
|
||||||
font-family="Icons"
|
|
||||||
font-weight="400"
|
|
||||||
font-stretch="normal"
|
|
||||||
units-per-em="800"
|
|
||||||
panose-1="2 0 5 3 0 0 0 0 0 0"
|
|
||||||
ascent="800"
|
|
||||||
descent="0"
|
|
||||||
bbox="-0.5 -101 802 800.126"
|
|
||||||
underline-thickness="50"
|
|
||||||
underline-position="-100"
|
|
||||||
unicode-range="U+E000-E0DE"
|
|
||||||
/>
|
|
||||||
<missing-glyph />
|
|
||||||
<glyph glyph-name="" unicode=""
|
|
||||||
d="M300 700h500v-700h-500v100h400v500h-400v100zM400 500l200 -150l-200 -150v100h-400v100h400v100z" />
|
|
||||||
<glyph glyph-name="1" unicode=""
|
|
||||||
d="M300 700h500v-700h-500v100h400v500h-400v100zM200 500v-100h400v-100h-400v-100l-200 150z" />
|
|
||||||
<glyph glyph-name="2" unicode=""
|
|
||||||
d="M350 700c193 0 350 -157 350 -350v-50h100l-200 -200l-200 200h100v50c0 138 -112 250 -250 250s-250 -112 -250 -250c0 193 157 350 350 350z" />
|
|
||||||
<glyph glyph-name="3" unicode=""
|
|
||||||
d="M450 700c193 0 350 -157 350 -350c0 138 -112 250 -250 250s-250 -112 -250 -250v-50h100l-200 -200l-200 200h100v50c0 193 157 350 350 350z" />
|
|
||||||
<glyph glyph-name="4" unicode=""
|
|
||||||
d="M0 700h800v-100h-800v100zM100 500h600v-100h-600v100zM0 300h800v-100h-800v100zM100 100h600v-100h-600v100z" />
|
|
||||||
<glyph glyph-name="5" unicode=""
|
|
||||||
d="M0 700h800v-100h-800v100zM0 500h600v-100h-600v100zM0 300h800v-100h-800v100zM0 100h600v-100h-600v100z" />
|
|
||||||
<glyph glyph-name="6" unicode=""
|
|
||||||
d="M0 700h800v-100h-800v100zM200 500h600v-100h-600v100zM0 300h800v-100h-800v100zM200 100h600v-100h-600v100z" />
|
|
||||||
<glyph glyph-name="7" unicode=""
|
|
||||||
d="M400 700c75 0 146 -23 206 -59l-75 -225l-322 234c57 31 122 50 191 50zM125 588l191 -138l-310 -222c-4 24 -6 47 -6 72c0 114 49 215 125 288zM688 575c69 -72 112 -168 112 -275c0 -35 -8 -68 -16 -100h-218zM216 253l112 -347c-128 23 -232 109 -287 222zM372 100
|
|
||||||
h372c-64 -109 -177 -185 -310 -197z" />
|
|
||||||
<glyph glyph-name="8" unicode="" horiz-adv-x="600"
|
|
||||||
d="M200 800h100v-500h200l-247 -300l-253 300h200v500z" />
|
|
||||||
<glyph glyph-name="9" unicode=""
|
|
||||||
d="M400 800c221 0 400 -179 400 -400s-179 -400 -400 -400s-400 179 -400 400s179 400 400 400zM300 700v-300h-200l300 -300l300 300h-200v300h-200z" />
|
|
||||||
<glyph glyph-name="a" unicode=""
|
|
||||||
d="M400 800c221 0 400 -179 400 -400s-179 -400 -400 -400s-400 179 -400 400s179 400 400 400zM400 700l-300 -300l300 -300v200h300v200h-300v200z" />
|
|
||||||
<glyph glyph-name="b" unicode=""
|
|
||||||
d="M400 800c221 0 400 -179 400 -400s-179 -400 -400 -400s-400 179 -400 400s179 400 400 400zM400 700v-200h-300v-200h300v-200l300 300z" />
|
|
||||||
<glyph glyph-name="c" unicode=""
|
|
||||||
d="M400 800c221 0 400 -179 400 -400s-179 -400 -400 -400s-400 179 -400 400s179 400 400 400zM400 700l-300 -300h200v-300h200v300h200z" />
|
|
||||||
<glyph glyph-name="d" unicode=""
|
|
||||||
d="M300 600v-200h500v-100h-500v-200l-300 247z" />
|
|
||||||
<glyph glyph-name="e" unicode=""
|
|
||||||
d="M500 600l300 -247l-300 -253v200h-500v100h500v200z" />
|
|
||||||
<glyph glyph-name="f" unicode="" horiz-adv-x="600"
|
|
||||||
d="M200 800h200v-500h200l-297 -300l-303 300h200v500z" />
|
|
||||||
<glyph glyph-name="10" unicode=""
|
|
||||||
d="M300 700v-200h500v-200h-500v-200l-300 297z" />
|
|
||||||
<glyph glyph-name="11" unicode=""
|
|
||||||
d="M500 700l300 -297l-300 -303v200h-500v200h500v200z" />
|
|
||||||
<glyph glyph-name="12" unicode="" horiz-adv-x="600"
|
|
||||||
d="M297 800l303 -300h-200v-500h-200v500h-200z" />
|
|
||||||
<glyph glyph-name="13" unicode="" horiz-adv-x="600"
|
|
||||||
d="M247 800l253 -300h-200v-500h-100v500h-200z" />
|
|
||||||
<glyph glyph-name="14" unicode=""
|
|
||||||
d="M400 800h100v-800h-100v800zM200 700h100v-600h-100v600zM600 600h100v-400h-100v400zM0 500h100v-200h-100v200z" />
|
|
||||||
<glyph glyph-name="15" unicode=""
|
|
||||||
d="M116 600l72 -72c-54 -54 -88 -126 -88 -209s34 -159 88 -213l-72 -72c-72 72 -116 175 -116 285s44 209 116 281zM684 600c72 -72 116 -171 116 -281s-44 -213 -116 -285l-72 72c54 54 88 130 88 213s-34 155 -88 209zM259 460l69 -72c-18 -18 -28 -41 -28 -69
|
|
||||||
s10 -54 28 -72l-69 -72c-36 36 -59 89 -59 144s23 105 59 141zM541 459c36 -36 59 -85 59 -140s-23 -108 -59 -144l-69 72c18 18 28 44 28 72s-10 51 -28 69z" />
|
|
||||||
<glyph glyph-name="16" unicode="" horiz-adv-x="400"
|
|
||||||
d="M200 800c110 0 200 -90 200 -200s-90 -200 -200 -200s-200 90 -200 200s90 200 200 200zM100 319c31 -11 65 -19 100 -19s68 8 100 19v-319l-100 100l-100 -100v319z" />
|
|
||||||
<glyph glyph-name="17" unicode=""
|
|
||||||
d="M400 800c220 0 400 -180 400 -400s-180 -400 -400 -400s-400 180 -400 400s180 400 400 400zM400 700c-166 0 -300 -134 -300 -300c0 -66 21 -126 56 -175l419 419c-49 35 -109 56 -175 56zM644 575l-419 -419c49 -35 109 -56 175 -56c166 0 300 134 300 300
|
|
||||||
c0 66 -21 126 -56 175z" />
|
|
||||||
<glyph glyph-name="18" unicode=""
|
|
||||||
d="M0 700h100v-600h700v-100h-800v700zM500 700h200v-500h-200v500zM200 500h200v-300h-200v300z" />
|
|
||||||
<glyph glyph-name="19" unicode=""
|
|
||||||
d="M397 800c13 1 23 -4 34 -13c2 -2 214 -254 241 -287h128v-100h-100v-366c0 -18 -16 -34 -34 -34h-532c-18 0 -34 16 -34 34v366h-100v100h128l234 281c9 11 22 18 35 19zM400 672l-144 -172h288zM250 300c-28 0 -50 -22 -50 -50v-100c0 -28 22 -50 50 -50s50 22 50 50
|
|
||||||
v100c0 28 -22 50 -50 50zM550 300c-28 0 -50 -22 -50 -50v-100c0 -28 22 -50 50 -50s50 22 50 50v100c0 28 -22 50 -50 50z" />
|
|
||||||
<glyph glyph-name="1a" unicode=""
|
|
||||||
d="M9 700h682c6 0 9 -4 9 -10v-190h100v-200h-100v-191c0 -6 -3 -9 -9 -9h-682c-6 0 -9 3 -9 9v582c0 6 3 9 9 9zM100 600v-400h500v400h-500z" />
|
|
||||||
<glyph glyph-name="1b" unicode=""
|
|
||||||
d="M9 700h682c6 0 9 -4 9 -10v-190h100v-200h-100v-191c0 -6 -3 -9 -9 -9h-682c-6 0 -9 3 -9 9v582c0 6 3 9 9 9z" />
|
|
||||||
<glyph glyph-name="1c" unicode=""
|
|
||||||
d="M92 650c0 23 19 50 45 50h3h5h5h500c28 0 50 -22 50 -50s-22 -50 -50 -50h-50v-141c9 -17 120 -231 166 -309c16 -26 34 -61 34 -106c0 -39 -15 -77 -41 -103h-3c-26 -25 -62 -41 -100 -41h-512c-39 0 -77 15 -103 41s-41 64 -41 103c0 46 18 80 34 106
|
|
||||||
c46 78 157 292 166 309v141h-50c-2 0 -6 -1 -8 -1c-28 0 -50 23 -50 51zM500 600h-200v-162l-6 -10s-63 -123 -119 -228h450c-56 105 -119 228 -119 228l-6 10v162z" />
|
|
||||||
<glyph glyph-name="1d" unicode=""
|
|
||||||
d="M400 800c110 0 200 -90 200 -200c0 -104 52 -198 134 -266c41 -34 66 -82 66 -134h-800c0 52 25 100 66 134c82 68 134 162 134 266c0 110 90 200 200 200zM300 100h200c0 -55 -45 -100 -100 -100s-100 45 -100 100z" />
|
|
||||||
<glyph glyph-name="1e" unicode="" horiz-adv-x="600"
|
|
||||||
d="M150 800h50l350 -250l-225 -147l225 -153l-350 -250h-50v250l-75 -75l-75 75l150 150l-150 150l75 75l75 -75v250zM250 650v-200l150 100zM250 350v-200l150 100z" />
|
|
||||||
<glyph glyph-name="1f" unicode=""
|
|
||||||
d="M0 800h500c110 0 200 -90 200 -200c0 -47 -17 -91 -44 -125c85 -40 144 -125 144 -225c0 -138 -112 -250 -250 -250h-550v100c55 0 100 45 100 100v400c0 55 -45 100 -100 100v100zM300 700v-200h100c55 0 100 45 100 100s-45 100 -100 100h-100zM300 400v-300h150
|
|
||||||
c83 0 150 67 150 150s-67 150 -150 150h-150z" />
|
|
||||||
<glyph glyph-name="20" unicode="" horiz-adv-x="600"
|
|
||||||
d="M300 800v-300h200l-300 -500v300h-200z" />
|
|
||||||
<glyph glyph-name="21" unicode=""
|
|
||||||
d="M100 800h300v-300l100 100l100 -100v300h50c28 0 50 -22 50 -50v-550h-550c-28 0 -50 -22 -50 -50s22 -50 50 -50h550v-100h-550c-83 0 -150 67 -150 150v550l3 19c8 39 39 70 78 78z" />
|
|
||||||
<glyph glyph-name="22" unicode="" horiz-adv-x="400"
|
|
||||||
d="M0 800h400v-800l-200 200l-200 -200v800z" />
|
|
||||||
<glyph glyph-name="23" unicode=""
|
|
||||||
d="M0 800h800v-100h-800v100zM0 600h300v-103h203v103h297v-591c0 -6 -3 -9 -9 -9h-782c-6 0 -9 3 -9 9v591z" />
|
|
||||||
<glyph glyph-name="24" unicode=""
|
|
||||||
d="M300 800h200c55 0 100 -45 100 -100v-100h191c6 0 9 -3 9 -9v-241c0 -28 -22 -50 -50 -50h-700c-28 0 -50 22 -50 50v241c0 6 3 9 9 9h191v100c0 55 45 100 100 100zM300 700v-100h200v100h-200zM0 209c16 -6 32 -9 50 -9h700c18 0 34 3 50 9v-200c0 -6 -3 -9 -9 -9h-782
|
|
||||||
c-6 0 -9 3 -9 9v200z" />
|
|
||||||
<glyph glyph-name="25" unicode="" horiz-adv-x="600"
|
|
||||||
d="M300 800c58 0 110 -16 147 -53s53 -89 53 -147h-100c0 39 -11 61 -25 75s-36 25 -75 25c-35 0 -55 -10 -72 -31s-28 -55 -28 -94c0 -51 20 -107 28 -175h172v-100h-178c-14 -60 -49 -127 -113 -200h491v-100h-600v122l16 12c69 69 95 121 106 166h-122v100h125
|
|
||||||
c-8 50 -25 106 -25 175c0 58 16 114 50 156c34 43 88 69 150 69z" />
|
|
||||||
<glyph glyph-name="26" unicode=""
|
|
||||||
d="M34 700h4h3h4h5h700c28 0 50 -22 50 -50v-700c0 -28 -22 -50 -50 -50h-700c-28 0 -50 22 -50 50v700v2c0 20 15 42 34 48zM150 600c-28 0 -50 -22 -50 -50s22 -50 50 -50s50 22 50 50s-22 50 -50 50zM350 600c-28 0 -50 -22 -50 -50s22 -50 50 -50h300c28 0 50 22 50 50
|
|
||||||
s-22 50 -50 50h-300zM100 400v-400h600v400h-600z" />
|
|
||||||
<glyph glyph-name="27" unicode=""
|
|
||||||
d="M744 797l6 -3l44 -44c4 -4 3 -8 0 -12l-266 -375l-15 -13l-25 -12c-23 72 -78 127 -150 150l12 25l13 15l375 266zM266 400c74 0 134 -60 134 -134c0 -147 -119 -266 -266 -266c-48 0 -95 12 -134 34c80 46 134 133 134 232c0 74 58 134 132 134z" />
|
|
||||||
<glyph glyph-name="28" unicode=""
|
|
||||||
d="M9 451c0 23 19 50 46 50c8 0 19 -3 26 -7l131 -66l29 22c-79 81 -1 250 118 250s197 -167 119 -250l28 -22l131 66c6 4 12 7 21 7c28 0 50 -22 50 -50c0 -17 -12 -37 -27 -45l-115 -56c9 -16 19 -33 25 -50h68c28 0 50 -22 50 -50s-22 -50 -50 -50h-50
|
|
||||||
c0 -23 -2 -45 -6 -66l78 -40c21 -5 37 -28 37 -49c0 -28 -22 -50 -50 -50c-10 0 -23 5 -31 11l-65 35c-24 -46 -62 -86 -103 -110c-35 19 -60 45 -60 72v135v4v5v6v5v5v87c0 28 -22 50 -50 50c-24 0 -45 -17 -50 -40c1 -3 1 -8 1 -11s0 -8 -1 -11v-82v-4v-5v-144
|
|
||||||
c0 -28 -24 -53 -59 -72c-41 25 -79 64 -103 110l-66 -35c-8 -6 -21 -11 -31 -11c-28 0 -50 22 -50 50c0 21 16 44 37 49l78 40c-4 21 -6 43 -6 66h-50h-5c-28 0 -50 22 -50 50c0 26 22 50 50 50h5h69c6 17 16 34 25 50l-116 56c-16 7 -28 27 -28 45z" />
|
|
||||||
<glyph glyph-name="29" unicode=""
|
|
||||||
d="M600 700h91c6 0 9 -3 9 -9v-582c0 -6 -3 -9 -9 -9h-91v600zM210 503l290 147v-500l-250 125v-3c-15 0 -25 -8 -28 -22l75 -178c11 -25 0 -58 -25 -69s-58 0 -69 25l-103 272h-91c-6 0 -9 3 -9 9v182c0 6 3 9 9 9h182z" />
|
|
||||||
<glyph glyph-name="2a" unicode=""
|
|
||||||
d="M9 800h682c6 0 9 -3 9 -9v-782c0 -6 -3 -9 -9 -9h-682c-6 0 -9 3 -9 9v782c0 6 3 9 9 9zM100 700v-200h500v200h-500zM100 400v-100h100v100h-100zM300 400v-100h100v100h-100zM500 400v-300h100v300h-100zM100 200v-100h100v100h-100zM300 200v-100h100v100h-100z" />
|
|
||||||
<glyph glyph-name="2b" unicode=""
|
|
||||||
d="M0 800h700v-200h-700v200zM0 500h700v-491c0 -6 -3 -9 -9 -9h-682c-6 0 -9 3 -9 9v491zM100 400v-100h100v100h-100zM300 400v-100h100v100h-100zM500 400v-100h100v100h-100zM100 200v-100h100v100h-100zM300 200v-100h100v100h-100z" />
|
|
||||||
<glyph glyph-name="2c" unicode=""
|
|
||||||
d="M409 800h182c6 0 10 -4 12 -9l94 -182c2 -5 6 -9 12 -9h82c6 0 9 -3 9 -9v-582c0 -6 -3 -9 -9 -9h-782c-6 0 -9 3 -9 9v441c0 83 67 150 150 150h141c6 0 10 4 12 9l94 182c2 5 6 9 12 9zM150 500c-28 0 -50 -22 -50 -50s22 -50 50 -50s50 22 50 50s-22 50 -50 50z
|
|
||||||
M500 500c-110 0 -200 -90 -200 -200s90 -200 200 -200s200 90 200 200s-90 200 -200 200zM500 400c55 0 100 -45 100 -100s-45 -100 -100 -100s-100 45 -100 100s45 100 100 100z" />
|
|
||||||
<glyph glyph-name="2d" unicode=""
|
|
||||||
d="M0 600h800l-400 -400z" />
|
|
||||||
<glyph glyph-name="2e" unicode="" horiz-adv-x="400"
|
|
||||||
d="M400 800v-800l-400 400z" />
|
|
||||||
<glyph glyph-name="2f" unicode="" horiz-adv-x="400"
|
|
||||||
d="M0 800l400 -400l-400 -400v800z" />
|
|
||||||
<glyph glyph-name="30" unicode=""
|
|
||||||
d="M400 600l400 -400h-800z" />
|
|
||||||
<glyph glyph-name="31" unicode=""
|
|
||||||
d="M0 550c0 23 20 50 46 50h3h5h4h200c17 0 37 -13 44 -28l38 -72h444c14 0 19 -12 15 -25l-81 -250c-4 -13 -21 -25 -35 -25h-350c-14 0 -30 12 -34 25c-27 83 -54 167 -81 250l-10 25h-150c-2 0 -5 -1 -7 -1c-28 0 -51 23 -51 51zM358 100c28 0 50 -22 50 -50
|
|
||||||
s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50zM658 100c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50z" />
|
|
||||||
<glyph glyph-name="32" unicode=""
|
|
||||||
d="M0 700h500v-100h-300v-300h-100l-100 -100v500zM300 500h500v-500l-100 100h-400v400z" />
|
|
||||||
<glyph glyph-name="33" unicode=""
|
|
||||||
d="M641 700l143 -141l-493 -493c-71 76 -146 148 -219 222l-72 71l141 141c50 -51 101 -101 153 -150c116 117 234 231 347 350z" />
|
|
||||||
<glyph glyph-name="34" unicode=""
|
|
||||||
d="M150 600l250 -250l250 250l150 -150l-400 -400l-400 400z" />
|
|
||||||
<glyph glyph-name="35" unicode="" horiz-adv-x="600"
|
|
||||||
d="M400 800l150 -150l-250 -250l250 -250l-150 -150l-400 400z" />
|
|
||||||
<glyph glyph-name="36" unicode="" horiz-adv-x="600"
|
|
||||||
d="M150 800l400 -400l-400 -400l-150 150l250 250l-250 250z" />
|
|
||||||
<glyph glyph-name="37" unicode=""
|
|
||||||
d="M400 600l400 -400l-150 -150l-250 250l-250 -250l-150 150z" />
|
|
||||||
<glyph glyph-name="38" unicode=""
|
|
||||||
d="M400 800c221 0 400 -179 400 -400s-179 -400 -400 -400s-400 179 -400 400s179 400 400 400zM600 622l-250 -250l-100 100l-72 -72l172 -172l322 322z" />
|
|
||||||
<glyph glyph-name="39" unicode=""
|
|
||||||
d="M400 800c221 0 400 -179 400 -400s-179 -400 -400 -400s-400 179 -400 400s179 400 400 400zM250 622l-72 -72l150 -150l-150 -150l72 -72l150 150l150 -150l72 72l-150 150l150 150l-72 72l-150 -150z" />
|
|
||||||
<glyph glyph-name="3a" unicode=""
|
|
||||||
d="M350 800c28 0 50 -22 50 -50v-50h75c14 0 25 -11 25 -25v-75h-300v75c0 14 11 25 25 25h75v50c0 28 22 50 50 50zM25 700h75v-200h500v200h75c14 0 25 -11 25 -25v-650c0 -14 -11 -25 -25 -25h-650c-14 0 -25 11 -25 25v650c0 14 11 25 25 25z" />
|
|
||||||
<glyph glyph-name="3b" unicode=""
|
|
||||||
d="M400 800c220 0 400 -180 400 -400s-180 -400 -400 -400s-400 180 -400 400s180 400 400 400zM400 700c-166 0 -300 -134 -300 -300s134 -300 300 -300s300 134 300 300s-134 300 -300 300zM350 600h100v-181c23 -24 47 -47 72 -69l-72 -72c-27 30 -55 59 -84 88l-16 12
|
|
||||||
v222z" />
|
|
||||||
<glyph glyph-name="3c" unicode=""
|
|
||||||
d="M450 800c138 0 250 -112 250 -250v-50c58 -21 100 -85 100 -150c0 -18 -3 -34 -9 -50h-191v50c0 83 -67 150 -150 150s-150 -67 -150 -150v-50h-272c-17 30 -28 63 -28 100c0 110 90 200 200 200c23 114 129 200 250 200zM434 400h3h4c3 0 6 1 9 1c28 0 50 -22 50 -50v-1
|
|
||||||
v-150h150l-200 -200l-200 200h150v150v2c0 20 15 42 34 48z" />
|
|
||||||
<glyph glyph-name="3d" unicode=""
|
|
||||||
d="M450 800c138 0 250 -112 250 -250v-50c58 -21 100 -85 100 -150c0 -18 -3 -34 -9 -50h-141l-200 200l-200 -200h-222c-17 30 -28 63 -28 100c0 110 90 200 200 200c23 114 129 200 250 200zM450 350l250 -250h-200v-50c0 -28 -22 -50 -50 -50s-50 22 -50 50v50h-200z" />
|
|
||||||
<glyph glyph-name="3e" unicode=""
|
|
||||||
d="M450 700c138 0 250 -112 250 -250v-50c58 -21 100 -85 100 -150c0 -83 -67 -150 -150 -150h-450c-110 0 -200 90 -200 200s90 200 200 200c23 114 129 200 250 200z" />
|
|
||||||
<glyph glyph-name="3f" unicode=""
|
|
||||||
d="M250 800c82 0 154 -40 200 -100c-143 0 -270 -85 -325 -209c-36 -10 -70 -25 -100 -47c-16 33 -25 67 -25 106c0 138 112 250 250 250zM450 600c138 0 250 -112 250 -250v-50c58 -21 100 -85 100 -150c0 -83 -67 -150 -150 -150h-450c-110 0 -200 90 -200 200
|
|
||||||
s90 200 200 200c23 114 129 200 250 200z" />
|
|
||||||
<glyph glyph-name="40" unicode=""
|
|
||||||
d="M500 700h100l-300 -600h-100zM100 600h100l-100 -200l100 -200h-100l-100 200zM600 600h100l100 -200l-100 -200h-100l100 200z" />
|
|
||||||
<glyph glyph-name="41" unicode=""
|
|
||||||
d="M350 800h100l50 -119l28 -12l119 50l72 -72l-50 -119l12 -28l119 -50v-100l-119 -50l-12 -28l50 -119l-72 -72l-119 50l-28 -12l-50 -119h-100l-50 119l-28 12l-119 -50l-72 72l50 119l-12 28l-119 50v100l119 50l12 28l-50 119l72 72l119 -50l28 12zM400 550
|
|
||||||
c-83 0 -150 -67 -150 -150s67 -150 150 -150s150 67 150 150s-67 150 -150 150z" />
|
|
||||||
<glyph glyph-name="42" unicode=""
|
|
||||||
d="M0 800h800v-200h-800v200zM200 500h400l-200 -200zM0 100h800v-100h-800v100z" />
|
|
||||||
<glyph glyph-name="43" unicode=""
|
|
||||||
d="M0 800h100v-800h-100v800zM600 800h200v-800h-200v800zM500 600v-400l-200 200z" />
|
|
||||||
<glyph glyph-name="44" unicode=""
|
|
||||||
d="M0 800h200v-800h-200v800zM700 800h100v-800h-100v800zM300 600l200 -200l-200 -200v400z" />
|
|
||||||
<glyph glyph-name="45" unicode=""
|
|
||||||
d="M0 800h800v-100h-800v100zM400 500l200 -200h-400zM0 200h800v-200h-800v200z" />
|
|
||||||
<glyph glyph-name="46" unicode=""
|
|
||||||
d="M150 700c83 0 150 -67 150 -150v-50h100v50c0 83 67 150 150 150s150 -67 150 -150s-67 -150 -150 -150h-50v-100h50c83 0 150 -67 150 -150s-67 -150 -150 -150s-150 67 -150 150v50h-100v-50c0 -83 -67 -150 -150 -150s-150 67 -150 150s67 150 150 150h50v100h-50
|
|
||||||
c-83 0 -150 67 -150 150s67 150 150 150zM150 600c-28 0 -50 -22 -50 -50s22 -50 50 -50h50v50c0 28 -22 50 -50 50zM550 600c-28 0 -50 -22 -50 -50v-50h50c28 0 50 22 50 50s-22 50 -50 50zM300 400v-100h100v100h-100zM150 200c-28 0 -50 -22 -50 -50s22 -50 50 -50
|
|
||||||
s50 22 50 50v50h-50zM500 200v-50c0 -28 22 -50 50 -50s50 22 50 50s-22 50 -50 50h-50z" />
|
|
||||||
<glyph glyph-name="47" unicode=""
|
|
||||||
d="M0 791c0 5 4 9 9 9h782c6 0 9 -4 9 -10v-790l-200 200h-591c-6 0 -9 3 -9 9v582z" />
|
|
||||||
<glyph glyph-name="48" unicode=""
|
|
||||||
d="M400 800c220 0 400 -180 400 -400s-180 -400 -400 -400s-400 180 -400 400s180 400 400 400zM400 700c-166 0 -300 -134 -300 -300s134 -300 300 -300s300 134 300 300s-134 300 -300 300zM600 600l-100 -300l-300 -100l100 300zM400 450c-28 0 -50 -22 -50 -50
|
|
||||||
s22 -50 50 -50s50 22 50 50s-22 50 -50 50z" />
|
|
||||||
<glyph glyph-name="49" unicode=""
|
|
||||||
d="M400 800c220 0 400 -180 400 -400s-180 -400 -400 -400s-400 180 -400 400s180 400 400 400zM400 700v-600c166 0 300 134 300 300s-134 300 -300 300z" />
|
|
||||||
<glyph glyph-name="4a" unicode=""
|
|
||||||
d="M0 800h800v-100h-800v100zM0 600h500v-100h-500v100zM0 300h800v-100h-800v100zM0 100h600v-100h-600v100zM750 100c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50z" />
|
|
||||||
<glyph glyph-name="4b" unicode=""
|
|
||||||
d="M25 700h750c14 0 25 -11 25 -25v-75h-800v75c0 14 11 25 25 25zM0 500h800v-375c0 -14 -11 -25 -25 -25h-750c-14 0 -25 11 -25 25v375zM100 300v-100h100v100h-100zM300 300v-100h100v100h-100z" />
|
|
||||||
<glyph glyph-name="4c" unicode=""
|
|
||||||
d="M100 800h100v-100h450l100 100l50 -50l-100 -100v-450h100v-100h-100v-100h-100v100h-500v500h-100v100h100v100zM200 600v-350l350 350h-350zM600 550l-350 -350h350v350z" />
|
|
||||||
<glyph glyph-name="4d" unicode=""
|
|
||||||
d="M400 800c220 0 400 -180 400 -400s-180 -400 -400 -400s-400 180 -400 400s180 400 400 400zM400 700c-166 0 -300 -134 -300 -300s134 -300 300 -300s300 134 300 300s-134 300 -300 300zM400 600c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50z
|
|
||||||
M200 452c0 20 15 42 34 48h3h3h8c12 0 28 -7 36 -16l91 -90l25 6c55 0 100 -45 100 -100s-45 -100 -100 -100s-100 45 -100 100l6 25l-90 91c-9 8 -16 24 -16 36zM550 500c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50z" />
|
|
||||||
<glyph glyph-name="4e" unicode=""
|
|
||||||
d="M300 800h200v-300h200l-300 -300l-300 300h200v300zM0 100h800v-100h-800v100z" />
|
|
||||||
<glyph glyph-name="4f" unicode=""
|
|
||||||
d="M0 800h800v-100h-800v100zM400 600l300 -300h-200v-300h-200v300h-200z" />
|
|
||||||
<glyph glyph-name="50" unicode=""
|
|
||||||
d="M200 700h600v-600h-600l-200 300zM350 622l-72 -72l150 -150l-150 -150l72 -72l150 150l150 -150l72 72l-150 150l150 150l-72 72l-150 -150z" />
|
|
||||||
<glyph glyph-name="51" unicode=""
|
|
||||||
d="M400 700c220 0 400 -180 400 -400h-100c0 166 -134 300 -300 300s-300 -134 -300 -300h-100c0 220 180 400 400 400zM341 491l59 -88l59 88c81 -25 141 -101 141 -191c0 -110 -90 -200 -200 -200s-200 90 -200 200c0 90 60 166 141 191z" />
|
|
||||||
<glyph glyph-name="52" unicode=""
|
|
||||||
d="M0 800h300v-400h400v-400h-700v800zM400 800l300 -300h-300v300zM100 600v-100h100v100h-100zM100 400v-100h100v100h-100zM100 200v-100h400v100h-400z" />
|
|
||||||
<glyph glyph-name="53" unicode="" horiz-adv-x="600"
|
|
||||||
d="M200 700h100v-100h75c30 0 58 -6 81 -22s44 -44 44 -78v-100h-100v94c-4 3 -13 6 -25 6h-250c-14 0 -25 -11 -25 -25v-50c0 -15 20 -40 34 -44l257 -65c66 -16 109 -73 109 -141v-50c0 -68 -57 -125 -125 -125h-75v-100h-100v100h-75c-30 0 -58 6 -81 22s-44 44 -44 78
|
|
||||||
v100h100v-94c4 -3 13 -6 25 -6h250c14 0 25 11 25 25v50c0 15 -20 40 -34 44l-257 65c-66 16 -109 73 -109 141v50c0 68 57 125 125 125h75v100z" />
|
|
||||||
<glyph glyph-name="54" unicode=""
|
|
||||||
d="M0 700h300v-300l-300 -300v600zM500 700h300v-300l-300 -300v600z" />
|
|
||||||
<glyph glyph-name="55" unicode=""
|
|
||||||
d="M300 700v-600h-300v300zM800 700v-600h-300v300z" />
|
|
||||||
<glyph glyph-name="56" unicode=""
|
|
||||||
d="M300 700v-100c-111 0 -200 -89 -200 -200h200v-300h-300v300c0 165 135 300 300 300zM800 700v-100c-111 0 -200 -89 -200 -200h200v-300h-300v300c0 165 135 300 300 300z" />
|
|
||||||
<glyph glyph-name="57" unicode=""
|
|
||||||
d="M0 700h300v-300c0 -165 -135 -300 -300 -300v100c111 0 200 89 200 200h-200v300zM500 700h300v-300c0 -165 -135 -300 -300 -300v100c111 0 200 89 200 200h-200v300z" />
|
|
||||||
<glyph glyph-name="58" unicode="" horiz-adv-x="600"
|
|
||||||
d="M300 800l34 -34c11 -11 266 -270 266 -488c0 -165 -135 -300 -300 -300s-300 135 -300 300c0 218 255 477 266 488zM150 328c-28 0 -50 -22 -50 -50c0 -110 90 -200 200 -200c28 0 50 22 50 50s-22 50 -50 50c-55 0 -100 45 -100 100c0 28 -22 50 -50 50z" />
|
|
||||||
<glyph glyph-name="59" unicode=""
|
|
||||||
d="M400 800l400 -500h-800zM0 200h800v-200h-800v200z" />
|
|
||||||
<glyph glyph-name="5a" unicode="" horiz-adv-x="600"
|
|
||||||
d="M300 800l300 -300h-600zM0 300h600l-300 -300z" />
|
|
||||||
<glyph glyph-name="5b" unicode=""
|
|
||||||
d="M0 500h200v-200h-200v200zM300 500h200v-200h-200v200zM600 500h200v-200h-200v200z" />
|
|
||||||
<glyph glyph-name="5c" unicode=""
|
|
||||||
d="M0 700h800v-100l-400 -200l-400 200v100zM0 500l400 -200l400 200v-400h-800v400z" />
|
|
||||||
<glyph glyph-name="5d" unicode=""
|
|
||||||
d="M400 800l400 -200v-600h-800v600zM400 688l-300 -150v-188l300 -150l300 150v188zM200 500h400v-100l-200 -100l-200 100v100z" />
|
|
||||||
<glyph glyph-name="5e" unicode=""
|
|
||||||
d="M600 700c69 0 134 -19 191 -50l-16 -106c-49 35 -109 56 -175 56c-131 0 -240 -84 -281 -200h331l-16 -100h-334c0 -36 8 -68 19 -100h297l-16 -100h-222c55 -61 133 -100 222 -100c78 0 147 30 200 78v-122c-59 -35 -127 -56 -200 -56c-147 0 -274 82 -344 200h-256
|
|
||||||
l19 100h197c-8 32 -16 66 -16 100h-200l25 100h191c45 172 198 300 384 300z" />
|
|
||||||
<glyph glyph-name="5f" unicode=""
|
|
||||||
d="M0 700h700v-100h-700v100zM0 500h500v-100h-500v100zM0 300h800v-100h-800v100zM0 100h100v-100h-100v100zM200 100h100v-100h-100v100zM400 100h100v-100h-100v100z" />
|
|
||||||
<glyph glyph-name="60" unicode=""
|
|
||||||
d="M0 800h800v-100h-800v100zM200 600h400l-200 -200zM0 200h800v-200h-800v200z" />
|
|
||||||
<glyph glyph-name="61" unicode=""
|
|
||||||
d="M0 800h100v-800h-100v800zM600 800h200v-800h-200v800zM200 600l200 -200l-200 -200v400z" />
|
|
||||||
<glyph glyph-name="62" unicode=""
|
|
||||||
d="M0 800h200v-800h-200v800zM700 800h100v-800h-100v800zM600 600v-400l-200 200z" />
|
|
||||||
<glyph glyph-name="63" unicode=""
|
|
||||||
d="M0 800h800v-200h-800v200zM400 400l200 -200h-400zM0 100h800v-100h-800v100z" />
|
|
||||||
<glyph glyph-name="64" unicode=""
|
|
||||||
d="M0 800h200v-100h-100v-600h600v100h100v-200h-800v800zM400 800h400v-400l-150 150l-250 -250l-100 100l250 250z" />
|
|
||||||
<glyph glyph-name="65" unicode=""
|
|
||||||
d="M403 700c247 0 397 -300 397 -300s-150 -300 -397 -300c-253 0 -403 300 -403 300s150 300 403 300zM400 600c-110 0 -200 -90 -200 -200s90 -200 200 -200s200 90 200 200s-90 200 -200 200zM400 500c10 0 19 -3 28 -6c-16 -8 -28 -24 -28 -44c0 -28 22 -50 50 -50
|
|
||||||
c20 0 36 12 44 28c3 -9 6 -18 6 -28c0 -55 -45 -100 -100 -100s-100 45 -100 100s45 100 100 100z" />
|
|
||||||
<glyph glyph-name="66" unicode="" horiz-adv-x="900"
|
|
||||||
d="M331 700h3h3c3 1 7 1 10 1c12 0 29 -8 37 -17l94 -93l66 65c57 57 155 57 212 0c58 -58 58 -154 0 -212l-65 -66l93 -94c10 -8 18 -25 18 -38c0 -28 -22 -50 -50 -50c-13 0 -32 9 -40 20l-62 65l-381 -381h-269v272l375 381l-63 63c-9 8 -16 24 -16 36c0 20 16 42 35 48z
|
|
||||||
M447 481l-313 -315l128 -132l316 316z" />
|
|
||||||
<glyph glyph-name="67" unicode=""
|
|
||||||
d="M0 800h300v-400h400v-400h-700v800zM400 800l300 -300h-300v300z" />
|
|
||||||
<glyph glyph-name="68" unicode=""
|
|
||||||
d="M200 800c0 0 200 -100 200 -300s-298 -302 -200 -500c0 0 -200 100 -200 300s300 300 200 500zM500 500c0 0 200 -100 200 -300c0 -150 -60 -200 -100 -200h-300c0 200 300 300 200 500z" />
|
|
||||||
<glyph glyph-name="69" unicode=""
|
|
||||||
d="M0 800h100v-800h-100v800zM200 800h300v-100h300l-200 -203l200 -197h-400v100h-200v400z" />
|
|
||||||
<glyph glyph-name="6a" unicode="" horiz-adv-x="400"
|
|
||||||
d="M150 800h150l-100 -200h200l-150 -300h150l-300 -300l-100 300h134l66 200h-200z" />
|
|
||||||
<glyph glyph-name="6b" unicode=""
|
|
||||||
d="M0 800h300v-100h500v-100h-800v200zM0 500h800v-450c0 -28 -22 -50 -50 -50h-700c-28 0 -50 22 -50 50v450z" />
|
|
||||||
<glyph glyph-name="6c" unicode=""
|
|
||||||
d="M150 800c83 0 150 -67 150 -150c0 -66 -41 -121 -100 -141v-118c15 5 33 9 50 9h200c28 0 50 22 50 50v59c-59 20 -100 75 -100 141c0 83 67 150 150 150s150 -67 150 -150c0 -66 -41 -121 -100 -141v-59c0 -82 -68 -150 -150 -150h-200c-14 0 -25 -7 -34 -16
|
|
||||||
c50 -24 84 -74 84 -134c0 -83 -67 -150 -150 -150s-150 67 -150 150c0 66 41 121 100 141v218c-59 20 -100 75 -100 141c0 83 67 150 150 150z" />
|
|
||||||
<glyph glyph-name="6d" unicode=""
|
|
||||||
d="M0 800h400l-150 -150l150 -150l-100 -100l-150 150l-150 -150v400zM500 400l150 -150l150 150v-400h-400l150 150l-150 150z" />
|
|
||||||
<glyph glyph-name="6e" unicode=""
|
|
||||||
d="M100 800l150 -150l150 150v-400h-400l150 150l-150 150zM400 400h400l-150 -150l150 -150l-100 -100l-150 150l-150 -150v400z" />
|
|
||||||
<glyph glyph-name="6f" unicode=""
|
|
||||||
d="M400 800c221 0 400 -179 400 -400s-179 -400 -400 -400s-400 179 -400 400s179 400 400 400zM400 700c-56 0 -108 -17 -153 -44l22 -19c33 -18 13 -48 -13 -59c-30 -13 -77 10 -65 -41c13 -55 -27 -3 -47 -15c-42 -26 49 -152 31 -156l-59 34c-8 0 -13 -5 -16 -10
|
|
||||||
c1 -30 10 -57 19 -84c28 -11 77 -2 100 -25c47 -28 97 -115 75 -159c34 -13 68 -22 106 -22c101 0 193 48 247 125c3 24 -8 44 -50 44c-69 0 -156 13 -153 97c2 46 101 108 66 143c-30 30 12 39 12 66c0 37 -65 32 -69 50s20 36 41 56c-30 10 -60 19 -94 19zM631 591
|
|
||||||
c-38 -11 -94 -35 -87 -53c6 -15 52 -1 65 -13c11 -10 16 -59 44 -31l22 22v3c-11 26 -26 50 -44 72z" />
|
|
||||||
<glyph glyph-name="70" unicode=""
|
|
||||||
d="M703 800l97 -100l-400 -400l-100 100l-200 -203l-100 100l300 303l100 -100zM0 100h800v-100h-800v100z" />
|
|
||||||
<glyph glyph-name="71" unicode=""
|
|
||||||
d="M0 700h100v-100h-100v100zM200 700h100v-100h-100v100zM400 700h100v-100h-100v100zM600 700h100v-100h-100v100zM0 500h100v-100h-100v100zM200 500h100v-100h-100v100zM400 500h100v-100h-100v100zM600 500h100v-100h-100v100zM0 300h100v-100h-100v100zM200 300h100
|
|
||||||
v-100h-100v100zM400 300h100v-100h-100v100zM600 300h100v-100h-100v100zM0 100h100v-100h-100v100zM200 100h100v-100h-100v100zM400 100h100v-100h-100v100zM600 100h100v-100h-100v100z" />
|
|
||||||
<glyph glyph-name="72" unicode=""
|
|
||||||
d="M0 800h200v-200h-200v200zM300 800h200v-200h-200v200zM600 800h200v-200h-200v200zM0 500h200v-200h-200v200zM300 500h200v-200h-200v200zM600 500h200v-200h-200v200zM0 200h200v-200h-200v200zM300 200h200v-200h-200v200zM600 200h200v-200h-200v200z" />
|
|
||||||
<glyph glyph-name="73" unicode=""
|
|
||||||
d="M0 800h300v-300h-300v300zM500 800h300v-300h-300v300zM0 300h300v-300h-300v300zM500 300h300v-300h-300v300z" />
|
|
||||||
<glyph glyph-name="74" unicode=""
|
|
||||||
d="M19 800h662c11 0 19 -8 19 -19v-331c0 -28 -22 -50 -50 -50h-600c-28 0 -50 22 -50 50v331c0 11 8 19 19 19zM0 309c16 -6 32 -9 50 -9h600c18 0 34 3 50 9v-290c0 -11 -8 -19 -19 -19h-662c-11 0 -19 8 -19 19v290zM550 200c-28 0 -50 -22 -50 -50s22 -50 50 -50
|
|
||||||
s50 22 50 50s-22 50 -50 50z" />
|
|
||||||
<glyph glyph-name="75" unicode=""
|
|
||||||
d="M0 700h300v-100h-50c-28 0 -50 -22 -50 -50v-150h300v150c0 28 -22 50 -50 50h-50v100h300v-100h-50c-28 0 -50 -22 -50 -50v-400c0 -28 22 -50 50 -50h50v-100h-300v100h50c28 0 50 22 50 50v150h-300v-150c0 -28 22 -50 50 -50h50v-100h-300v100h50c28 0 50 22 50 50
|
|
||||||
v400c0 28 -22 50 -50 50h-50v100z" />
|
|
||||||
<glyph glyph-name="76" unicode=""
|
|
||||||
d="M400 700c165 0 300 -135 300 -300v-100h50c28 0 50 -22 50 -50v-200c0 -28 -22 -50 -50 -50h-100c-28 0 -50 22 -50 50v350c0 111 -89 200 -200 200s-200 -89 -200 -200v-350c0 -28 -22 -50 -50 -50h-100c-28 0 -50 22 -50 50v200c0 28 22 50 50 50h50v100
|
|
||||||
c0 165 135 300 300 300z" />
|
|
||||||
<glyph glyph-name="77" unicode=""
|
|
||||||
d="M0 500c0 109 91 200 200 200s200 -91 200 -200c0 109 91 200 200 200s200 -91 200 -200c0 -55 -23 -105 -59 -141l-341 -340l-341 340c-36 36 -59 86 -59 141z" />
|
|
||||||
<glyph glyph-name="78" unicode=""
|
|
||||||
d="M400 700l400 -300l-100 3v-403h-200v200h-200v-200h-200v400h-100z" />
|
|
||||||
<glyph glyph-name="79" unicode=""
|
|
||||||
d="M0 800h800v-800h-800v800zM100 700v-300l100 100l400 -400h100v100l-200 200l100 100l100 -100v300h-600z" />
|
|
||||||
<glyph glyph-name="7a" unicode=""
|
|
||||||
d="M19 800h762c11 0 19 -8 19 -19v-762c0 -11 -8 -19 -19 -19h-762c-11 0 -19 8 -19 19v762c0 11 8 19 19 19zM100 600v-300h100l100 -100h200l100 100h100v300h-600z" />
|
|
||||||
<glyph glyph-name="7b" unicode=""
|
|
||||||
d="M200 600c80 0 142 -56 200 -122c58 66 119 122 200 122c131 0 200 -101 200 -200s-69 -200 -200 -200c-81 0 -142 56 -200 122c-58 -66 -121 -122 -200 -122c-131 0 -200 101 -200 200s69 200 200 200zM200 500c-74 0 -100 -54 -100 -100s26 -100 100 -100
|
|
||||||
c42 0 88 47 134 100c-46 53 -92 100 -134 100zM600 500c-43 0 -88 -47 -134 -100c46 -53 91 -100 134 -100c74 0 100 54 100 100s-26 100 -100 100z" />
|
|
||||||
<glyph glyph-name="7c" unicode="" horiz-adv-x="400"
|
|
||||||
d="M300 800c55 0 100 -45 100 -100s-45 -100 -100 -100s-100 45 -100 100s45 100 100 100zM150 550c83 0 150 -69 150 -150c0 -66 -100 -214 -100 -250c0 -28 22 -50 50 -50s50 22 50 50h100c0 -83 -67 -150 -150 -150s-150 64 -150 150s100 222 100 250s-22 50 -50 50
|
|
||||||
s-50 -22 -50 -50h-100c0 83 67 150 150 150z" />
|
|
||||||
<glyph glyph-name="7d" unicode=""
|
|
||||||
d="M200 800h500v-100h-122c-77 -197 -156 -392 -234 -588l-6 -12h162v-100h-500v100h122c77 197 156 392 234 588l7 12h-163v100z" />
|
|
||||||
<glyph glyph-name="7e" unicode=""
|
|
||||||
d="M0 700h800v-100h-800v100zM0 500h800v-100h-800v100zM0 300h800v-100h-800v100zM100 100h600v-100h-600v100z" />
|
|
||||||
<glyph glyph-name="7f" unicode=""
|
|
||||||
d="M0 700h800v-100h-800v100zM0 500h800v-100h-800v100zM0 300h800v-100h-800v100zM0 100h600v-100h-600v100z" />
|
|
||||||
<glyph glyph-name="80" unicode=""
|
|
||||||
d="M0 700h800v-100h-800v100zM0 500h800v-100h-800v100zM0 300h800v-100h-800v100zM200 100h600v-100h-600v100z" />
|
|
||||||
<glyph glyph-name="81" unicode=""
|
|
||||||
d="M550 800c138 0 250 -112 250 -250s-112 -250 -250 -250c-16 0 -32 0 -47 3l-3 -3v-100h-200v-200h-300v200l303 303c-3 15 -3 31 -3 47c0 138 112 250 250 250zM600 700c-55 0 -100 -45 -100 -100s45 -100 100 -100s100 45 100 100s-45 100 -100 100z" />
|
|
||||||
<glyph glyph-name="82" unicode=""
|
|
||||||
d="M134 600h3h4h4h5h500c28 0 50 -22 50 -50v-350h100v-150c0 -28 -22 -50 -50 -50h-700c-28 0 -50 22 -50 50v150h100v350v2c0 20 15 42 34 48zM200 500v-300h100v-100h200v100h100v300h-400z" />
|
|
||||||
<glyph glyph-name="83" unicode=""
|
|
||||||
d="M0 800h400v-400h-400v400zM500 600h100v-400h-400v100h300v300zM700 400h100v-400h-400v100h300v300z" />
|
|
||||||
<glyph glyph-name="84" unicode="" horiz-adv-x="600"
|
|
||||||
d="M337 694c6 4 12 7 21 7c28 0 50 -22 50 -50c0 -17 -12 -37 -27 -45l-300 -150c-8 -6 -21 -11 -31 -11c-28 0 -50 22 -50 50c0 21 16 44 37 49zM437 544c6 4 12 7 21 7c28 0 50 -22 50 -50c0 -17 -12 -37 -27 -45l-400 -200c-8 -6 -21 -11 -31 -11c-28 0 -50 22 -50 50
|
|
||||||
c0 21 16 44 37 49zM437 344c6 4 12 7 21 7c28 0 50 -22 50 -50c0 -17 -12 -37 -27 -45l-106 -56c24 -4 43 -26 43 -50c0 -28 -23 -51 -51 -51c-2 0 -6 1 -8 1h-200c-26 1 -48 24 -48 50c0 16 12 36 26 44zM151 -50c0 23 20 50 46 50h3h4h5h100c28 0 50 -22 50 -50
|
|
||||||
s-22 -50 -50 -50h-100c-2 0 -6 -1 -8 -1c-28 0 -50 23 -50 51z" />
|
|
||||||
<glyph glyph-name="85" unicode=""
|
|
||||||
d="M199 800h100v-200h-200v100h100v100zM586 797h1c18 1 38 1 56 -3c36 -8 69 -26 97 -54c78 -78 78 -203 0 -281l-150 -150c-8 -13 -28 -24 -43 -24c-28 0 -50 22 -50 50c0 15 11 35 24 43l150 150c40 40 39 105 0 144c-41 41 -110 34 -144 0l-44 -44
|
|
||||||
c-8 -13 -27 -24 -42 -24c-28 0 -50 22 -50 50c0 15 11 35 24 43l43 44c32 33 72 53 128 56zM208 490c4 5 14 16 22 16h3c2 0 6 1 8 1c28 0 50 -22 50 -50c0 -11 -6 -27 -14 -35l-150 -150c-40 -40 -39 -105 0 -144c41 -41 110 -34 144 0l44 44c8 13 27 24 42 24
|
|
||||||
c28 0 50 -22 50 -50c0 -15 -11 -35 -24 -43l-43 -44c-22 -22 -48 -37 -75 -47c-70 -25 -151 -9 -207 47c-78 78 -78 203 0 281zM499 200h200v-100h-100v-100h-100v200z" />
|
|
||||||
<glyph glyph-name="86" unicode=""
|
|
||||||
d="M586 797c18 1 39 1 57 -3c36 -8 69 -26 97 -54c78 -78 78 -203 0 -281l-150 -150c-62 -62 -132 -81 -182 -78s-69 17 -84 25s-26 27 -26 44c0 28 22 51 50 51c8 0 19 -3 26 -7c0 0 15 -11 41 -13s62 3 106 47l150 150c40 40 39 105 0 144c-41 41 -110 34 -144 0
|
|
||||||
c-8 -13 -28 -24 -43 -24c-28 0 -50 22 -50 50c0 15 11 35 24 43c32 33 72 53 128 56zM386 566c50 -2 64 -17 85 -22s37 -28 37 -49c0 -28 -22 -50 -50 -50c-10 0 -23 5 -31 11c0 0 -19 9 -47 10s-63 -4 -103 -44l-150 -150c-40 -40 -39 -105 0 -144c41 -41 110 -34 144 0
|
|
||||||
c8 13 27 24 42 24c28 0 50 -22 50 -50c0 -15 -10 -35 -23 -43c-22 -22 -48 -37 -75 -47c-70 -25 -151 -9 -207 47c-78 78 -78 203 0 281l150 150c60 60 128 78 178 76z" />
|
|
||||||
<glyph glyph-name="87" unicode=""
|
|
||||||
d="M0 700h300v-300h-300v300zM400 700h400v-100h-400v100zM400 500h300v-100h-300v100zM0 300h300v-300h-300v300zM400 300h400v-100h-400v100zM400 100h300v-100h-300v100z" />
|
|
||||||
<glyph glyph-name="88" unicode=""
|
|
||||||
d="M50 700c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50zM200 700h600v-100h-600v100zM50 500c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50zM200 500h600v-100h-600v100zM50 300c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50
|
|
||||||
s22 50 50 50zM200 300h600v-100h-600v100zM50 100c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50zM200 100h600v-100h-600v100z" />
|
|
||||||
<glyph glyph-name="89" unicode=""
|
|
||||||
d="M800 800l-400 -800l-100 300l-300 100z" />
|
|
||||||
<glyph glyph-name="8a" unicode="" horiz-adv-x="600"
|
|
||||||
d="M300 700c110 0 200 -90 200 -200v-100h100v-400h-600v400h100v100c0 110 90 200 200 200zM300 600c-56 0 -100 -44 -100 -100v-100h200v100c0 56 -44 100 -100 100z" />
|
|
||||||
<glyph glyph-name="8b" unicode="" horiz-adv-x="600"
|
|
||||||
d="M300 800c110 0 200 -90 200 -200v-200h100v-400h-600v400h400v200c0 56 -44 100 -100 100s-100 -44 -100 -100h-100c0 110 90 200 200 200z" />
|
|
||||||
<glyph glyph-name="8c" unicode=""
|
|
||||||
d="M400 700v-100c-111 0 -200 -89 -200 -200h100l-150 -200l-150 200h100c0 165 135 300 300 300zM650 600l150 -200h-100c0 -165 -135 -300 -300 -300v100c111 0 200 89 200 200h-100z" />
|
|
||||||
<glyph glyph-name="8d" unicode=""
|
|
||||||
d="M100 800h600v-300h100l-150 -250l-150 250h100v200h-400v-100h-100v200zM150 550l150 -250h-100v-200h400v100h100v-200h-600v300h-100z" />
|
|
||||||
<glyph glyph-name="8e" unicode=""
|
|
||||||
d="M600 700l200 -150l-200 -150v100h-500v-100h-100v100c0 55 45 100 100 100h500v100zM200 300v-100h500v100h100v-100c0 -55 -45 -100 -100 -100h-500v-100l-200 150z" />
|
|
||||||
<glyph glyph-name="8f" unicode="" horiz-adv-x="900"
|
|
||||||
d="M350 800c193 0 350 -157 350 -350c0 -60 -17 -117 -44 -166c5 -3 12 -8 16 -12l100 -100c16 -16 30 -49 30 -72c0 -56 -46 -102 -102 -102c-23 0 -56 14 -72 30l-100 100c-4 3 -9 9 -12 13c-49 -26 -107 -41 -166 -41c-193 0 -350 157 -350 350s157 350 350 350zM350 200
|
|
||||||
c142 0 250 108 250 250c0 139 -111 250 -250 250s-250 -111 -250 -250s111 -250 250 -250z" />
|
|
||||||
<glyph glyph-name="90" unicode="" horiz-adv-x="600"
|
|
||||||
d="M300 800c166 0 300 -134 300 -300c0 -200 -300 -500 -300 -500s-300 300 -300 500c0 166 134 300 300 300zM300 700c-110 0 -200 -90 -200 -200s90 -200 200 -200s200 90 200 200s-90 200 -200 200z" />
|
|
||||||
<glyph glyph-name="91" unicode="" horiz-adv-x="900"
|
|
||||||
d="M0 800h800v-541c1 -3 1 -8 1 -11s0 -7 -1 -10v-238h-800v800zM495 250c0 26 22 50 50 50h5h150v400h-600v-600h600v100h-150h-5c-28 0 -50 22 -50 50zM350 600c83 0 150 -67 150 -150c0 -100 -150 -250 -150 -250s-150 150 -150 250c0 83 67 150 150 150zM350 500
|
|
||||||
c-28 0 -50 -22 -50 -50s22 -50 50 -50s50 22 50 50s-22 50 -50 50z" />
|
|
||||||
<glyph glyph-name="92" unicode="" horiz-adv-x="600"
|
|
||||||
d="M0 700h200v-600h-200v600zM400 700h200v-600h-200v600z" />
|
|
||||||
<glyph glyph-name="93" unicode="" horiz-adv-x="600"
|
|
||||||
d="M0 700l600 -300l-600 -300v600z" />
|
|
||||||
<glyph glyph-name="94" unicode="" horiz-adv-x="600"
|
|
||||||
d="M300 700c166 0 300 -134 300 -300s-134 -300 -300 -300s-300 134 -300 300s134 300 300 300z" />
|
|
||||||
<glyph glyph-name="95" unicode=""
|
|
||||||
d="M400 700v-600l-400 300zM400 400l400 300v-600z" />
|
|
||||||
<glyph glyph-name="96" unicode=""
|
|
||||||
d="M0 700l400 -300l-400 -300v600zM400 100v600l400 -300z" />
|
|
||||||
<glyph glyph-name="97" unicode=""
|
|
||||||
d="M0 700h200v-600h-200v600zM200 400l500 300v-600z" />
|
|
||||||
<glyph glyph-name="98" unicode=""
|
|
||||||
d="M0 700l500 -300l-500 -300v600zM500 100v600h200v-600h-200z" />
|
|
||||||
<glyph glyph-name="99" unicode="" horiz-adv-x="600"
|
|
||||||
d="M0 700h600v-600h-600v600z" />
|
|
||||||
<glyph glyph-name="9a" unicode=""
|
|
||||||
d="M200 800h400v-200h200v-400h-200v-200h-400v200h-200v400h200v200z" />
|
|
||||||
<glyph glyph-name="9b" unicode=""
|
|
||||||
d="M0 700h800v-100h-800v100zM0 403h800v-100h-800v100zM0 103h800v-100h-800v100z" />
|
|
||||||
<glyph glyph-name="9c" unicode="" horiz-adv-x="600"
|
|
||||||
d="M278 700c7 2 13 4 22 4c55 0 100 -45 100 -100v-4v-200c0 -55 -45 -100 -100 -100s-100 45 -100 100v200v2c0 44 35 88 78 98zM34 500h4h3c3 0 6 1 9 1c28 0 50 -22 50 -50v-1v-50c0 -111 89 -200 200 -200s200 89 200 200v50c0 28 22 50 50 50s50 -22 50 -50v-50
|
|
||||||
c0 -148 -109 -270 -250 -294v-106h50c55 0 100 -45 100 -100h-400c0 55 45 100 100 100h50v106c-141 24 -250 146 -250 294v50v2c0 20 15 42 34 48z" />
|
|
||||||
<glyph glyph-name="9d" unicode=""
|
|
||||||
d="M0 500h800v-200h-800v200z" />
|
|
||||||
<glyph glyph-name="9e" unicode=""
|
|
||||||
d="M34 700h4h3h4h5h700c28 0 50 -22 50 -50v-500c0 -28 -22 -50 -50 -50h-250v-100h100c55 0 100 -45 100 -100h-600c0 55 45 100 100 100h100v100h-250c-28 0 -50 22 -50 50v500v2c0 20 15 42 34 48zM100 600v-400h600v400h-600z" />
|
|
||||||
<glyph glyph-name="9f" unicode=""
|
|
||||||
d="M272 700c-14 -40 -22 -83 -22 -128c0 -221 179 -400 400 -400c45 0 88 8 128 22c-53 -158 -202 -272 -378 -272c-221 0 -400 179 -400 400c0 176 114 325 272 378z" />
|
|
||||||
<glyph glyph-name="a0" unicode=""
|
|
||||||
d="M350 700l150 -150h-100v-150h150v100l150 -150l-150 -150v100h-150v-150h100l-150 -150l-150 150h100v150h-150v-100l-150 150l150 150v-100h150v150h-100z" />
|
|
||||||
<glyph glyph-name="a1" unicode=""
|
|
||||||
d="M800 800v-550c0 -83 -67 -150 -150 -150s-150 67 -150 150s67 150 150 150c17 0 35 -4 50 -9v206c-201 -6 -327 -27 -400 -50v-397c0 -83 -67 -150 -150 -150s-150 67 -150 150s67 150 150 150c17 0 35 -4 50 -9v409s100 100 600 100z" />
|
|
||||||
<glyph glyph-name="a2" unicode="" horiz-adv-x="700"
|
|
||||||
d="M499 700c51 0 102 -20 141 -59c78 -78 78 -203 0 -281l-250 -244c-48 -48 -127 -48 -175 0s-48 127 0 175l96 97l69 -69l-90 -94l-7 -3c-10 -10 -10 -28 0 -38s28 -10 38 0l250 247c37 40 39 102 0 141s-104 40 -144 0l-278 -275c-66 -69 -68 -179 0 -247
|
|
||||||
c69 -69 181 -69 250 0l9 12l116 113l69 -69l-125 -125c-107 -107 -281 -107 -388 0s-107 281 0 388l278 272c39 39 90 59 141 59z" />
|
|
||||||
<glyph glyph-name="a3" unicode=""
|
|
||||||
d="M600 800l200 -200l-100 -100l-200 200zM400 600l200 -200l-400 -400h-200v200z" />
|
|
||||||
<glyph glyph-name="a4" unicode=""
|
|
||||||
d="M550 800c83 0 150 -90 150 -200s-67 -200 -150 -200c-22 0 -40 8 -59 19c6 26 9 52 9 81c0 84 -27 158 -72 212c27 52 71 88 122 88zM250 700c83 0 150 -90 150 -200s-67 -200 -150 -200s-150 90 -150 200s67 200 150 200zM725 384c44 -22 75 -66 75 -118v-166h-200v66
|
|
||||||
c0 50 -17 96 -44 134c66 2 126 33 169 84zM75 284c45 -53 106 -84 175 -84s130 31 175 84c44 -22 75 -66 75 -118v-166h-500v166c0 52 31 96 75 118z" />
|
|
||||||
<glyph glyph-name="a5" unicode=""
|
|
||||||
d="M400 800c110 0 200 -112 200 -250s-90 -250 -200 -250s-200 112 -200 250s90 250 200 250zM191 300c54 -61 128 -100 209 -100s155 39 209 100c106 -5 191 -92 191 -200v-100h-800v100c0 108 85 195 191 200z" />
|
|
||||||
<glyph glyph-name="a6" unicode="" horiz-adv-x="600"
|
|
||||||
d="M19 800h462c11 0 19 -8 19 -19v-762c0 -11 -8 -19 -19 -19h-462c-11 0 -19 8 -19 19v762c0 11 8 19 19 19zM100 700v-500h300v500h-300zM250 150c-28 0 -50 -22 -50 -50s22 -50 50 -50s50 22 50 50s-22 50 -50 50z" />
|
|
||||||
<glyph glyph-name="a7" unicode=""
|
|
||||||
d="M350 800c17 0 34 -1 50 -3v-397l-297 297c63 64 150 103 247 103zM500 694c169 -25 300 -168 300 -344c0 -193 -157 -350 -350 -350c-85 0 -161 31 -222 81l272 272v341zM91 562l237 -234l-212 -212c-70 55 -116 138 -116 234c0 84 35 158 91 212z" />
|
|
||||||
<glyph glyph-name="a8" unicode=""
|
|
||||||
d="M92 650c0 23 20 50 46 50h3h4h5h400c28 0 50 -22 50 -50s-22 -50 -50 -50h-50v-200h100c55 0 100 -45 100 -100h-300v-300l-56 -100l-44 100v300h-300c0 55 45 100 100 100h100v200h-50c-2 0 -6 -1 -8 -1c-28 0 -50 23 -50 51z" />
|
|
||||||
<glyph glyph-name="a9" unicode=""
|
|
||||||
d="M400 800c221 0 400 -179 400 -400s-179 -400 -400 -400s-400 179 -400 400s179 400 400 400zM300 600v-400l300 200z" />
|
|
||||||
<glyph glyph-name="aa" unicode=""
|
|
||||||
d="M300 800h200v-300h300v-200h-300v-300h-200v300h-300v200h300v300z" />
|
|
||||||
<glyph glyph-name="ab" unicode=""
|
|
||||||
d="M300 800h100v-400h-100v400zM172 656l62 -78l-40 -31c-58 -46 -94 -117 -94 -197c0 -139 111 -250 250 -250s250 111 250 250c0 80 -39 151 -97 197l-37 31l62 78l38 -31c82 -64 134 -164 134 -275c0 -193 -157 -350 -350 -350s-350 157 -350 350c0 111 53 211 134 275z
|
|
||||||
" />
|
|
||||||
<glyph glyph-name="ac" unicode=""
|
|
||||||
d="M200 800h400v-200h-400v200zM9 500h782c6 0 9 -3 9 -9v-282c0 -6 -3 -9 -9 -9h-91v200h-600v-200h-91c-6 0 -9 3 -9 9v282c0 6 3 9 9 9zM200 300h400v-300h-400v300z" />
|
|
||||||
<glyph glyph-name="ad" unicode=""
|
|
||||||
d="M0 700h100v-700h-100v700zM700 700h100v-700h-100v700zM200 600h200v-100h-200v100zM300 400h200v-100h-200v100zM400 200h200v-100h-200v100z" />
|
|
||||||
<glyph glyph-name="ae" unicode=""
|
|
||||||
d="M325 700c42 -141 87 -280 131 -419c29 74 59 148 88 222c30 -57 58 -114 87 -172h169v-100h-231l-13 28c-37 -92 -74 -184 -112 -275c-38 129 -79 257 -119 385c-42 -133 -83 -267 -125 -400c-28 88 -56 175 -84 262h-116v100h188l9 -34l3 -6c42 137 83 273 125 409z" />
|
|
||||||
<glyph glyph-name="af" unicode=""
|
|
||||||
d="M200 600c0 57 43 100 100 100s100 -43 100 -100c0 -28 -18 -48 -28 -72c-3 -6 -3 -16 -3 -28h231v-231c12 0 22 0 28 3c24 10 44 28 72 28c57 0 100 -43 100 -100s-43 -100 -100 -100c-28 0 -48 18 -72 28c-6 3 -16 3 -28 3v-231h-231c0 12 0 22 3 28c10 24 28 44 28 72
|
|
||||||
c0 57 -43 100 -100 100s-100 -43 -100 -100c0 -28 18 -48 28 -72c3 -6 3 -16 3 -28h-231v600h231c0 12 0 22 -3 28c-10 24 -28 44 -28 72z" />
|
|
||||||
<glyph glyph-name="b0" unicode="" horiz-adv-x="500"
|
|
||||||
d="M247 700c84 0 148 -20 191 -59s59 -93 59 -141c0 -117 -69 -181 -119 -225s-81 -67 -81 -150v-25h-100v25c0 117 65 181 115 225s85 67 85 150c0 25 -8 48 -28 66s-56 34 -122 34s-97 -18 -116 -37s-27 -43 -31 -69l-100 12c5 38 19 88 59 128s103 66 188 66zM197 0h100
|
|
||||||
v-100h-100v100z" />
|
|
||||||
<glyph glyph-name="b1" unicode=""
|
|
||||||
d="M450 800c138 0 250 -112 250 -250v-50c58 -21 100 -85 100 -150c0 -69 -48 -127 -112 -144c-22 55 -75 94 -138 94c-20 0 -39 -5 -56 -12c-17 64 -75 112 -144 112s-127 -48 -144 -112c-17 7 -36 12 -56 12c-37 0 -71 -12 -97 -34c-33 36 -53 82 -53 134
|
|
||||||
c0 110 90 200 200 200c23 114 129 200 250 200zM334 300h4h3c3 0 6 1 9 1c28 0 50 -22 50 -50v-1v-200c0 -28 -22 -50 -50 -50s-50 22 -50 50v200v2c0 20 15 42 34 48zM134 200h4h3c3 0 6 1 9 1c28 0 50 -22 50 -50v-1v-100c0 -28 -22 -50 -50 -50s-50 22 -50 50v100v2
|
|
||||||
c0 20 15 42 34 48zM534 200h3h4c3 0 6 1 9 1c28 0 50 -22 50 -50v-1v-100c0 -28 -22 -50 -50 -50s-50 22 -50 50v100v2c0 20 15 42 34 48z" />
|
|
||||||
<glyph glyph-name="b2" unicode=""
|
|
||||||
d="M600 800l200 -150l-200 -150v100h-50l-153 -191l175 -206l6 -3h22v100l200 -150l-200 -150v100h-25c-35 0 -56 12 -78 38l-166 190l-153 -190c-22 -27 -43 -38 -78 -38h-100v100h100l166 206l-163 191l-3 3h-100v100h100c34 0 56 -12 78 -38l153 -178l141 178
|
|
||||||
c22 27 43 38 78 38h50v100z" />
|
|
||||||
<glyph glyph-name="b3" unicode=""
|
|
||||||
d="M400 800c110 0 209 -47 281 -119l119 119v-300h-300l109 109c-54 55 -126 91 -209 91c-166 0 -300 -134 -300 -300s134 -300 300 -300c83 0 158 34 212 88l72 -72c-72 -72 -174 -116 -284 -116c-220 0 -400 180 -400 400s180 400 400 400z" />
|
|
||||||
<glyph glyph-name="b4" unicode=""
|
|
||||||
d="M400 800h400v-400l-166 166l-400 -400l166 -166h-400v400l166 -166l400 400z" />
|
|
||||||
<glyph glyph-name="b5" unicode="" horiz-adv-x="600"
|
|
||||||
d="M250 800l250 -300h-200v-200h200l-250 -300l-250 300h200v200h-200z" />
|
|
||||||
<glyph glyph-name="b6" unicode=""
|
|
||||||
d="M300 600v-200h200v200l300 -250l-300 -250v200h-200v-200l-300 250z" />
|
|
||||||
<glyph glyph-name="b7" unicode=""
|
|
||||||
d="M0 800c441 0 800 -359 800 -800h-200c0 333 -267 600 -600 600v200zM0 500c275 0 500 -225 500 -500h-200c0 167 -133 300 -300 300v200zM0 200c110 0 200 -90 200 -200h-200v200z" />
|
|
||||||
<glyph glyph-name="b8" unicode=""
|
|
||||||
d="M100 800c386 0 700 -314 700 -700h-100c0 332 -268 600 -600 600v100zM100 600c276 0 500 -224 500 -500h-100c0 222 -178 400 -400 400v100zM100 400c165 0 300 -135 300 -300h-100c0 111 -89 200 -200 200v100zM100 200c55 0 100 -45 100 -100s-45 -100 -100 -100
|
|
||||||
s-100 45 -100 100s45 100 100 100z" />
|
|
||||||
<glyph glyph-name="b9" unicode=""
|
|
||||||
d="M300 800h400c55 0 100 -45 100 -100v-200h-400v150c0 28 -22 50 -50 50s-50 -22 -50 -50v-250h400v-300c0 -55 -45 -100 -100 -100h-500c-55 0 -100 45 -100 100v200h100v-150c0 -28 22 -50 50 -50s50 22 50 50v550c0 55 45 100 100 100z" />
|
|
||||||
<glyph glyph-name="ba" unicode=""
|
|
||||||
d="M75 700h225v-100h-200v-500h400v100h100v-125c0 -41 -34 -75 -75 -75h-450c-41 0 -75 34 -75 75v550c0 41 34 75 75 75zM600 700l200 -200l-200 -200v100h-200c-94 0 -173 -65 -194 -153c23 199 189 353 394 353v100z" />
|
|
||||||
<glyph glyph-name="bb" unicode=""
|
|
||||||
d="M500 700l300 -284l-300 -316v200h-100c-200 0 -348 -102 -400 -300c0 295 100 500 500 500v200z" />
|
|
||||||
<glyph glyph-name="bc" unicode=""
|
|
||||||
d="M381 791l19 9l19 -9c127 -53 253 -108 381 -160v-31c0 -166 -67 -313 -147 -419c-40 -53 -83 -97 -125 -128s-82 -53 -128 -53s-86 22 -128 53s-85 75 -125 128c-80 107 -147 253 -147 419v31c128 52 254 107 381 160zM400 100v591l-294 -122c8 -126 58 -243 122 -328
|
|
||||||
c35 -46 73 -86 106 -110s62 -31 66 -31z" />
|
|
||||||
<glyph glyph-name="bd" unicode=""
|
|
||||||
d="M600 800h100v-800h-100v800zM400 700h100v-700h-100v700zM200 500h100v-500h-100v500zM0 300h100v-300h-100v300z" />
|
|
||||||
<glyph glyph-name="be" unicode=""
|
|
||||||
d="M300 800h100v-200h200l100 -100l-100 -100h-200v-400h-100v500h-200l-100 100l100 100h200v100z" />
|
|
||||||
<glyph glyph-name="bf" unicode=""
|
|
||||||
d="M200 800h100v-600h200l-250 -200l-250 200h200v600zM400 800h200v-100h-200v100zM400 600h300v-100h-300v100zM400 400h400v-100h-400v100z" />
|
|
||||||
<glyph glyph-name="c0" unicode=""
|
|
||||||
d="M200 800h100v-600h200l-250 -200l-250 200h200v600zM400 800h400v-100h-400v100zM400 600h300v-100h-300v100zM400 400h200v-100h-200v100z" />
|
|
||||||
<glyph glyph-name="c1" unicode=""
|
|
||||||
d="M75 700h650c41 0 75 -34 75 -75v-550c0 -41 -34 -75 -75 -75h-650c-41 0 -75 34 -75 75v550c0 41 34 75 75 75zM100 600v-100h100v100h-100zM300 600v-100h400v100h-400zM100 400v-100h100v100h-100zM300 400v-100h400v100h-400zM100 200v-100h100v100h-100zM300 200
|
|
||||||
v-100h400v100h-400z" />
|
|
||||||
<glyph glyph-name="c2" unicode=""
|
|
||||||
d="M400 800l100 -300h300l-250 -200l100 -300l-250 200l-250 -200l100 300l-250 200h300z" />
|
|
||||||
<glyph glyph-name="c3" unicode=""
|
|
||||||
d="M400 800c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50zM150 700c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50zM650 700c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50zM400 600c110 0 200 -90 200 -200
|
|
||||||
s-90 -200 -200 -200s-200 90 -200 200s90 200 200 200zM50 450c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50zM750 450c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50zM150 200c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50
|
|
||||||
s22 50 50 50zM650 200c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50zM400 100c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50z" />
|
|
||||||
<glyph glyph-name="c4" unicode=""
|
|
||||||
d="M34 800h632c18 0 34 -16 34 -34v-732c0 -18 -16 -34 -34 -34h-632c-18 0 -34 16 -34 34v732c0 18 16 34 34 34zM100 700v-500h500v500h-500zM350 150c-38 0 -63 -42 -44 -75s69 -33 88 0s-6 75 -44 75z" />
|
|
||||||
<glyph glyph-name="c5" unicode=""
|
|
||||||
d="M0 800h300l500 -500l-300 -300l-500 500v300zM200 700c-55 0 -100 -45 -100 -100s45 -100 100 -100s100 45 100 100s-45 100 -100 100z" />
|
|
||||||
<glyph glyph-name="c6" unicode=""
|
|
||||||
d="M0 600h200l300 -300l-200 -200l-300 300v200zM340 600h160l300 -300l-200 -200l-78 78l119 122zM150 500c-28 0 -50 -22 -50 -50s22 -50 50 -50s50 22 50 50s-22 50 -50 50z" />
|
|
||||||
<glyph glyph-name="c7" unicode=""
|
|
||||||
d="M400 800c220 0 400 -180 400 -400s-180 -400 -400 -400s-400 180 -400 400s180 400 400 400zM400 700c-166 0 -300 -134 -300 -300s134 -300 300 -300s300 134 300 300s-134 300 -300 300zM400 600c110 0 200 -90 200 -200s-90 -200 -200 -200s-200 90 -200 200
|
|
||||||
s90 200 200 200zM400 500c-56 0 -100 -44 -100 -100s44 -100 100 -100s100 44 100 100s-44 100 -100 100z" />
|
|
||||||
<glyph glyph-name="c8" unicode=""
|
|
||||||
d="M0 700h559l-100 -100h-359v-500h500v159l100 100v-359h-700v700zM700 700l100 -100l-400 -400l-200 200l100 100l100 -100z" />
|
|
||||||
<glyph glyph-name="c9" unicode=""
|
|
||||||
d="M9 800h782c6 0 9 -3 9 -9v-782c0 -6 -3 -9 -9 -9h-782c-6 0 -9 3 -9 9v782c0 6 3 9 9 9zM150 722l-72 -72l100 -100l-100 -100l72 -72l172 172zM400 500v-100h300v100h-300z" />
|
|
||||||
<glyph glyph-name="ca" unicode=""
|
|
||||||
d="M0 800h800v-200h-50c0 55 -45 100 -100 100h-150v-550c0 -28 22 -50 50 -50h50v-100h-400v100h50c28 0 50 22 50 50v550h-150c-55 0 -100 -45 -100 -100h-50v200z" />
|
|
||||||
<glyph glyph-name="cb" unicode=""
|
|
||||||
d="M0 700h100v-400h-100v400zM200 700h350c21 0 39 -13 47 -31c0 0 103 -291 103 -319s-22 -50 -50 -50h-150c-28 0 -50 -25 -50 -50s39 -158 47 -184s-5 -55 -31 -63s-52 5 -66 31s-109 219 -128 238s-44 28 -72 28v400z" />
|
|
||||||
<glyph glyph-name="cc" unicode=""
|
|
||||||
d="M400 666c10 19 28 32 47 34l19 -3c26 -8 39 -37 31 -63s-47 -159 -47 -184s22 -50 50 -50h150c28 0 50 -22 50 -50s-103 -319 -103 -319c-8 -18 -26 -31 -47 -31h-350v400c28 0 53 9 72 28s114 212 128 238zM0 400h100v-400h-100v400z" />
|
|
||||||
<glyph glyph-name="cd" unicode=""
|
|
||||||
d="M200 700h300v-100h-100v-6c25 -4 50 -8 72 -16l-34 -94c-28 11 -58 16 -88 16c-139 0 -250 -111 -250 -250s111 -250 250 -250s250 111 250 250c0 31 -5 60 -16 88l91 37c14 -38 25 -81 25 -125c0 -193 -157 -350 -350 -350s-350 157 -350 350c0 176 130 323 300 347v3
|
|
||||||
h-100v100zM700 584c0 0 -296 -348 -316 -368s-48 -20 -68 0s-20 48 0 68s384 300 384 300z" />
|
|
||||||
<glyph glyph-name="ce" unicode=""
|
|
||||||
d="M600 700l200 -150l-200 -150v100h-600v100h600v100zM200 300v-100h600v-100h-600v-100l-200 150z" />
|
|
||||||
<glyph glyph-name="cf" unicode=""
|
|
||||||
d="M300 800h100c55 0 100 -45 100 -100h100c55 0 100 -45 100 -100h-700c0 55 45 100 100 100h100c0 55 45 100 100 100zM100 500h100v-350c0 -28 22 -50 50 -50s50 22 50 50v350h100v-350c0 -28 22 -50 50 -50s50 22 50 50v350h100v-481c0 -11 -8 -19 -19 -19h-462
|
|
||||||
c-11 0 -19 8 -19 19v481z" />
|
|
||||||
<glyph glyph-name="d0" unicode=""
|
|
||||||
d="M100 800h200v-400c0 -55 45 -100 100 -100s100 45 100 100v400h100v-400c0 -110 -90 -200 -200 -200h-50c-138 0 -250 90 -250 200v400zM0 100h700v-100h-700v100z" />
|
|
||||||
<glyph glyph-name="d1" unicode=""
|
|
||||||
d="M9 700h182c6 0 9 -3 9 -9v-482c0 -6 -3 -9 -9 -9h-182c-6 0 -9 3 -9 9v482c0 6 3 9 9 9zM609 700h182c6 0 9 -3 9 -9v-482c0 -6 -3 -9 -9 -9h-182c-6 0 -9 3 -9 9v482c0 6 3 9 9 9zM309 500h182c6 0 9 -3 9 -9v-282c0 -6 -3 -9 -9 -9h-182c-6 0 -9 3 -9 9v282
|
|
||||||
c0 6 3 9 9 9zM0 100h800v-100h-800v100z" />
|
|
||||||
<glyph glyph-name="d2" unicode=""
|
|
||||||
d="M10 700h181c6 0 9 -3 9 -9v-191h-200v191c0 6 4 9 10 9zM610 700h181c6 0 9 -3 9 -9v-191h-200v191c0 6 5 9 10 9zM310 600h181c6 0 9 -3 9 -9v-91h-200v91c0 6 4 9 10 9zM0 400h800v-100h-800v100zM0 200h200v-191c0 -6 -3 -9 -9 -9h-182c-6 0 -9 3 -9 9v191zM300 200
|
|
||||||
h200v-91c0 -6 -3 -9 -9 -9h-181c-6 0 -10 3 -10 9v91zM600 200h200v-191c0 -6 -3 -9 -9 -9h-181c-6 0 -10 3 -10 9v191z" />
|
|
||||||
<glyph glyph-name="d3" unicode=""
|
|
||||||
d="M0 700h800v-100h-800v100zM9 500h182c6 0 9 -3 9 -9v-482c0 -6 -3 -9 -9 -9h-182c-6 0 -9 3 -9 9v482c0 6 3 9 9 9zM309 500h182c6 0 9 -3 9 -9v-282c0 -6 -3 -9 -9 -9h-182c-6 0 -9 3 -9 9v282c0 6 3 9 9 9zM609 500h182c6 0 9 -3 9 -9v-482c0 -6 -3 -9 -9 -9h-182
|
|
||||||
c-6 0 -9 3 -9 9v482c0 6 3 9 9 9z" />
|
|
||||||
<glyph glyph-name="d4" unicode=""
|
|
||||||
d="M50 600h500c28 0 50 -22 50 -50v-150l100 100h100v-300h-100l-100 100v-150c0 -28 -22 -50 -50 -50h-500c-28 0 -50 22 -50 50v400c0 28 22 50 50 50z" />
|
|
||||||
<glyph glyph-name="d5" unicode=""
|
|
||||||
d="M334 800h66v-800h-66l-134 200h-200v400h200zM500 600v100c26 0 52 -4 75 -10c130 -33 225 -150 225 -290s-95 -258 -225 -291h-3c-23 -6 -47 -9 -72 -9v100c17 0 34 2 50 6c86 22 150 100 150 194s-64 172 -150 194c-16 4 -33 6 -50 6zM500 500l25 -3
|
|
||||||
c44 -11 75 -51 75 -97s-32 -86 -75 -97l-25 -3v200z" />
|
|
||||||
<glyph glyph-name="d6" unicode="" horiz-adv-x="600"
|
|
||||||
d="M334 800h66v-800h-66l-134 200h-200v400h200zM500 500l25 -3c44 -11 75 -51 75 -97s-32 -86 -75 -97l-25 -3v200z" />
|
|
||||||
<glyph glyph-name="d7" unicode="" horiz-adv-x="400"
|
|
||||||
d="M334 800h66v-800h-66l-134 200h-200v400h200z" />
|
|
||||||
<glyph glyph-name="d8" unicode=""
|
|
||||||
d="M309 800h82c6 0 10 -4 12 -9l294 -682l3 -19v-81c0 -6 -3 -9 -9 -9h-682c-6 0 -9 3 -9 9v81l3 19l294 682c2 5 6 9 12 9zM300 500v-200h100v200h-100zM300 200v-100h100v100h-100z" />
|
|
||||||
<glyph glyph-name="d9" unicode=""
|
|
||||||
d="M375 800c138 0 269 -39 378 -109l-53 -82c-93 60 -205 91 -325 91c-119 0 -229 -32 -322 -91l-53 82c109 70 237 109 375 109zM375 500c78 0 154 -23 216 -62l-53 -85c-46 30 -104 47 -163 47c-60 0 -112 -17 -159 -47l-54 85c62 40 134 62 213 62zM375 200
|
|
||||||
c55 0 100 -45 100 -100s-45 -100 -100 -100s-100 45 -100 100s45 100 100 100z" />
|
|
||||||
<glyph glyph-name="da" unicode="" horiz-adv-x="900"
|
|
||||||
d="M551 800c16 0 32 0 47 -3l-97 -97v-200h200l97 97c3 -15 3 -31 3 -47c0 -138 -112 -250 -250 -250c-32 0 -62 8 -90 19l-288 -291c-20 -20 -46 -28 -72 -28s-52 8 -72 28c-39 39 -39 105 0 144l291 287c-11 28 -19 59 -19 91c0 138 112 250 250 250zM101 150
|
|
||||||
c-28 0 -50 -22 -50 -50s22 -50 50 -50s50 22 50 50s-22 50 -50 50z" />
|
|
||||||
<glyph glyph-name="db" unicode=""
|
|
||||||
d="M141 700c84 -84 169 -167 253 -250c82 83 167 165 247 250l143 -141l-253 -253c84 -82 167 -166 253 -247l-143 -143c-81 86 -165 169 -247 253l-253 -253l-141 143c85 80 167 164 250 247c-83 84 -166 169 -250 253z" />
|
|
||||||
<glyph glyph-name="dc" unicode=""
|
|
||||||
d="M0 800h100l231 -300h38l231 300h100l-225 -300h225v-100h-300v-100h300v-100h-300v-200h-100v200h-300v100h300v100h-300v100h225z" />
|
|
||||||
<glyph glyph-name="dd" unicode="" horiz-adv-x="900"
|
|
||||||
d="M350 800c193 0 350 -157 350 -350c0 -61 -17 -119 -44 -169c4 -2 10 -6 13 -9l103 -100c16 -16 30 -49 30 -72c0 -56 -46 -102 -102 -102c-23 0 -56 14 -72 30l-100 103c-3 3 -7 9 -9 13c-50 -28 -108 -44 -169 -44c-193 0 -350 157 -350 350s157 350 350 350zM350 700
|
|
||||||
c-139 0 -250 -111 -250 -250s111 -250 250 -250c62 0 119 23 163 60c7 11 19 25 31 31l3 3c34 43 53 97 53 156c0 139 -111 250 -250 250zM300 600h100v-100h100v-100h-100v-100h-100v100h-100v100h100v100z" />
|
|
||||||
<glyph glyph-name="de" unicode="" horiz-adv-x="900"
|
|
||||||
d="M350 800c193 0 350 -157 350 -350c0 -61 -17 -119 -44 -169c4 -2 10 -6 13 -9l103 -100c16 -16 30 -49 30 -72c0 -56 -46 -102 -102 -102c-23 0 -56 14 -72 30l-100 103c-3 3 -7 9 -9 13c-50 -28 -108 -44 -169 -44c-193 0 -350 157 -350 350s157 350 350 350zM350 700
|
|
||||||
c-139 0 -250 -111 -250 -250s111 -250 250 -250c62 0 119 23 163 60c7 11 19 25 31 31l3 3c34 43 53 97 53 156c0 139 -111 250 -250 250zM200 500h300v-100h-300v100z" />
|
|
||||||
</font>
|
|
||||||
</defs></svg>
|
|
Before Width: | Height: | Size: 54 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 1.1 KiB |
Binary file not shown.
Before Width: | Height: | Size: 2.6 KiB |
Binary file not shown.
Before Width: | Height: | Size: 6.2 KiB |
@ -1,40 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8" />
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
|
||||||
<title>OI Metrology Viewer</title>
|
|
||||||
<base href="/" />
|
|
||||||
<link href="css/bootstrap/bootstrap.min.css" rel="stylesheet" />
|
|
||||||
<link href="css/app.css" rel="stylesheet" />
|
|
||||||
<link rel="icon" type="image/png" href="favicon.png" />
|
|
||||||
<link href="_content/MudBlazor/MudBlazor.min.css" rel="stylesheet" />
|
|
||||||
<link href="manifest.json" rel="manifest" />
|
|
||||||
<link rel="apple-touch-icon" sizes="512x512" href="icon-512.png" />
|
|
||||||
<link rel="apple-touch-icon" sizes="192x192" href="icon-192.png" />
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
<div id="app">
|
|
||||||
<svg class="loading-progress">
|
|
||||||
<circle r="40%" cx="50%" cy="50%" />
|
|
||||||
<circle r="40%" cx="50%" cy="50%" />
|
|
||||||
</svg>
|
|
||||||
<div class="loading-progress-text"></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="blazor-error-ui">
|
|
||||||
An unhandled error has occurred.
|
|
||||||
<a href="" class="reload">Reload</a>
|
|
||||||
<a class="dismiss">🗙</a>
|
|
||||||
</div>
|
|
||||||
<script src="_framework/blazor.webassembly.js"></script>
|
|
||||||
<environment names="Development">
|
|
||||||
<script src="_framework/aspnetcore-browser-refresh.js"></script>
|
|
||||||
</environment>
|
|
||||||
<script src="_content/MudBlazor/MudBlazor.min.js"></script>
|
|
||||||
<script>navigator.serviceWorker.register('service-worker.js');</script>
|
|
||||||
</body>
|
|
||||||
|
|
||||||
</html>
|
|
@ -1,21 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "OI-Metrology-Viewer",
|
|
||||||
"short_name": "OI-Metrology-Viewer",
|
|
||||||
"start_url": "./",
|
|
||||||
"display": "standalone",
|
|
||||||
"background_color": "#ffffff",
|
|
||||||
"theme_color": "#03173d",
|
|
||||||
"prefer_related_applications": false,
|
|
||||||
"icons": [
|
|
||||||
{
|
|
||||||
"src": "icon-512.png",
|
|
||||||
"type": "image/png",
|
|
||||||
"sizes": "512x512"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"src": "icon-192.png",
|
|
||||||
"type": "image/png",
|
|
||||||
"sizes": "192x192"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
@ -1,4 +0,0 @@
|
|||||||
// In development, always fetch from the network and do not enable offline support.
|
|
||||||
// This is because caching would make development more difficult (changes would not
|
|
||||||
// be reflected on the first load after each change).
|
|
||||||
self.addEventListener('fetch', () => { });
|
|
@ -1,48 +0,0 @@
|
|||||||
// Caution! Be sure you understand the caveats before publishing an application with
|
|
||||||
// offline support. See https://aka.ms/blazor-offline-considerations
|
|
||||||
|
|
||||||
self.importScripts('./service-worker-assets.js');
|
|
||||||
self.addEventListener('install', event => event.waitUntil(onInstall(event)));
|
|
||||||
self.addEventListener('activate', event => event.waitUntil(onActivate(event)));
|
|
||||||
self.addEventListener('fetch', event => event.respondWith(onFetch(event)));
|
|
||||||
|
|
||||||
const cacheNamePrefix = 'offline-cache-';
|
|
||||||
const cacheName = `${cacheNamePrefix}${self.assetsManifest.version}`;
|
|
||||||
const offlineAssetsInclude = [ /\.dll$/, /\.pdb$/, /\.wasm/, /\.html/, /\.js$/, /\.json$/, /\.css$/, /\.woff$/, /\.png$/, /\.jpe?g$/, /\.gif$/, /\.ico$/, /\.blat$/, /\.dat$/ ];
|
|
||||||
const offlineAssetsExclude = [ /^service-worker\.js$/ ];
|
|
||||||
|
|
||||||
async function onInstall(event) {
|
|
||||||
console.info('Service worker: Install');
|
|
||||||
|
|
||||||
// Fetch and cache all matching items from the assets manifest
|
|
||||||
const assetsRequests = self.assetsManifest.assets
|
|
||||||
.filter(asset => offlineAssetsInclude.some(pattern => pattern.test(asset.url)))
|
|
||||||
.filter(asset => !offlineAssetsExclude.some(pattern => pattern.test(asset.url)))
|
|
||||||
.map(asset => new Request(asset.url, { integrity: asset.hash, cache: 'no-cache' }));
|
|
||||||
await caches.open(cacheName).then(cache => cache.addAll(assetsRequests));
|
|
||||||
}
|
|
||||||
|
|
||||||
async function onActivate(event) {
|
|
||||||
console.info('Service worker: Activate');
|
|
||||||
|
|
||||||
// Delete unused caches
|
|
||||||
const cacheKeys = await caches.keys();
|
|
||||||
await Promise.all(cacheKeys
|
|
||||||
.filter(key => key.startsWith(cacheNamePrefix) && key !== cacheName)
|
|
||||||
.map(key => caches.delete(key)));
|
|
||||||
}
|
|
||||||
|
|
||||||
async function onFetch(event) {
|
|
||||||
let cachedResponse = null;
|
|
||||||
if (event.request.method === 'GET') {
|
|
||||||
// For all navigation requests, try to serve index.html from cache
|
|
||||||
// If you need some URLs to be server-rendered, edit the following check to exclude those URLs
|
|
||||||
const shouldServeIndexHtml = event.request.mode === 'navigate';
|
|
||||||
|
|
||||||
const request = shouldServeIndexHtml ? 'index.html' : event.request;
|
|
||||||
const cache = await caches.open(cacheName);
|
|
||||||
cachedResponse = await cache.match(request);
|
|
||||||
}
|
|
||||||
|
|
||||||
return cachedResponse || fetch(event.request);
|
|
||||||
}
|
|
23
Server/.vscode/launch.json
vendored
23
Server/.vscode/launch.json
vendored
@ -10,14 +10,15 @@
|
|||||||
"request": "launch",
|
"request": "launch",
|
||||||
"preLaunchTask": "build",
|
"preLaunchTask": "build",
|
||||||
// If you have changed target frameworks, make sure to update the program path.
|
// If you have changed target frameworks, make sure to update the program path.
|
||||||
"program": "${workspaceFolder}/bin/Debug/net6.0/win-x64/Archive.dll",
|
"program": "${workspaceFolder}/bin/Debug/net7.0/win-x64/OI.Metrology.Server.dll",
|
||||||
"args": [],
|
"args": [],
|
||||||
"cwd": "${workspaceFolder}",
|
"cwd": "${workspaceFolder}",
|
||||||
"stopAtEntry": false,
|
"stopAtEntry": false,
|
||||||
// Enable launching a web browser when ASP.NET Core starts. For more information: https://aka.ms/VSCode-CS-LaunchJson-WebBrowser
|
// Enable launching a web browser when ASP.NET Core starts. For more information: https://aka.ms/VSCode-CS-LaunchJson-WebBrowser
|
||||||
"serverReadyAction": {
|
"serverReadyAction": {
|
||||||
"action": "openExternally",
|
"action": "openExternally",
|
||||||
"pattern": "\\bNow listening on:\\s+(https?://\\S+)"
|
"pattern": "\\bNow listening on:\\s+(https?://\\S+)",
|
||||||
|
"uriFormat": "%s/swagger/index.html"
|
||||||
},
|
},
|
||||||
"env": {
|
"env": {
|
||||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||||
@ -30,22 +31,8 @@
|
|||||||
"name": ".NET Core Attach",
|
"name": ".NET Core Attach",
|
||||||
"type": "coreclr",
|
"type": "coreclr",
|
||||||
"request": "attach",
|
"request": "attach",
|
||||||
"processName": "Archive"
|
"preLaunchTask": "watch",
|
||||||
},
|
"processName": "OI.Metrology.Server.exe"
|
||||||
{
|
|
||||||
"name": "Watch",
|
|
||||||
"type": "coreclr",
|
|
||||||
"request": "launch",
|
|
||||||
"cwd": "${workspaceFolder}",
|
|
||||||
"program": "dotnet",
|
|
||||||
"args": [
|
|
||||||
"watch",
|
|
||||||
"--launch-profile",
|
|
||||||
"Phares-Development",
|
|
||||||
"--project",
|
|
||||||
".",
|
|
||||||
"--verbose" // Let's us confirm browser connects with hot reload capabilities
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
42
Server/.vscode/tasks.json
vendored
42
Server/.vscode/tasks.json
vendored
@ -7,7 +7,7 @@
|
|||||||
"type": "process",
|
"type": "process",
|
||||||
"args": [
|
"args": [
|
||||||
"build",
|
"build",
|
||||||
"${workspaceFolder}/Archive.csproj",
|
"${workspaceFolder}/OI.Metrology.Server.csproj",
|
||||||
"/property:GenerateFullPaths=true",
|
"/property:GenerateFullPaths=true",
|
||||||
"/consoleloggerparameters:NoSummary"
|
"/consoleloggerparameters:NoSummary"
|
||||||
],
|
],
|
||||||
@ -19,23 +19,57 @@
|
|||||||
"type": "process",
|
"type": "process",
|
||||||
"args": [
|
"args": [
|
||||||
"publish",
|
"publish",
|
||||||
"${workspaceFolder}/Archive.csproj",
|
"${workspaceFolder}/OI.Metrology.Server.csproj",
|
||||||
"/property:GenerateFullPaths=true",
|
"/property:GenerateFullPaths=true",
|
||||||
"/consoleloggerparameters:NoSummary"
|
"/consoleloggerparameters:NoSummary"
|
||||||
],
|
],
|
||||||
"problemMatcher": "$msCompile"
|
"problemMatcher": "$msCompile"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"label": "old-watch",
|
||||||
|
"command": "dotnet",
|
||||||
|
"type": "process",
|
||||||
|
"args": [
|
||||||
|
"watch",
|
||||||
|
"run",
|
||||||
|
"--project",
|
||||||
|
"${workspaceFolder}/OI.Metrology.Server.csproj"
|
||||||
|
],
|
||||||
|
"problemMatcher": "$msCompile"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"label": "watch",
|
"label": "watch",
|
||||||
"command": "dotnet",
|
"command": "dotnet",
|
||||||
"type": "process",
|
"type": "process",
|
||||||
"args": [
|
"args": [
|
||||||
"watch",
|
"watch",
|
||||||
|
"--launch-profile",
|
||||||
|
"http",
|
||||||
"run",
|
"run",
|
||||||
"--project",
|
"--project",
|
||||||
"${workspaceFolder}/Archive.csproj"
|
"${workspaceFolder}/OI.Metrology.Server.csproj",
|
||||||
|
"--verbose"
|
||||||
],
|
],
|
||||||
"problemMatcher": "$msCompile"
|
"isBackground": true,
|
||||||
|
"dependsOn": [
|
||||||
|
"build"
|
||||||
|
],
|
||||||
|
"problemMatcher": {
|
||||||
|
"fileLocation": "relative",
|
||||||
|
"pattern": {
|
||||||
|
"regexp": "^([^\\s].*)\\((\\d+|\\d+,\\d+|\\d+,\\d+,\\d+,\\d+)\\):\\s+(error|warning|info)\\s+(TS\\d+)\\s*:\\s*(.*)$",
|
||||||
|
"file": 1,
|
||||||
|
"location": 2,
|
||||||
|
"severity": 3,
|
||||||
|
"code": 4,
|
||||||
|
"message": 5
|
||||||
|
},
|
||||||
|
"background": {
|
||||||
|
"activeOnStart": true,
|
||||||
|
"beginsPattern": "^.*Shutdown requested.*",
|
||||||
|
"endsPattern": "^.*Application started.*"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
@ -8,22 +8,16 @@ namespace OI.Metrology.Server.ApiControllers;
|
|||||||
public class AppSettingsController : ControllerBase, IAppSettingsController<ActionResult>
|
public class AppSettingsController : ControllerBase, IAppSettingsController<ActionResult>
|
||||||
{
|
{
|
||||||
|
|
||||||
private readonly IAppSettingsRepository _AppSettingsRepository;
|
private readonly IAppSettingsRepository<Models.Binder.AppSettings> _AppSettingsRepository;
|
||||||
|
|
||||||
public AppSettingsController(IAppSettingsRepository AppSettingsRepository) => _AppSettingsRepository = AppSettingsRepository;
|
public AppSettingsController(IAppSettingsRepository<Models.Binder.AppSettings> AppSettingsRepository) => _AppSettingsRepository = AppSettingsRepository;
|
||||||
|
|
||||||
[HttpGet(nameof(IAppSettingsController<ActionResult>.Action.App))]
|
[HttpGet(nameof(IAppSettingsController<ActionResult>.Action.App))]
|
||||||
public ActionResult GetAppSettings()
|
public ActionResult GetAppSettings() =>
|
||||||
{
|
Ok(_AppSettingsRepository.GetAppSettings());
|
||||||
List<string> results = _AppSettingsRepository.GetAppSettings();
|
|
||||||
return Ok(results);
|
|
||||||
}
|
|
||||||
|
|
||||||
[HttpGet(nameof(IAppSettingsController<ActionResult>.Action.DevOps))]
|
[HttpGet(nameof(IAppSettingsController<ActionResult>.Action.DevOps))]
|
||||||
public ActionResult GetBuildNumberAndGitCommitSeven()
|
public ActionResult GetBuildNumberAndGitCommitSeven() =>
|
||||||
{
|
Ok(_AppSettingsRepository.GetBuildNumberAndGitCommitSeven());
|
||||||
string result = _AppSettingsRepository.GetBuildNumberAndGitCommitSeven();
|
|
||||||
return Ok(result);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
52
Server/ApiControllers/InfinityQSController.cs
Normal file
52
Server/ApiControllers/InfinityQSController.cs
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
using Microsoft.AspNetCore.Mvc;
|
||||||
|
|
||||||
|
namespace OI.Metrology.Server.ApiControllers;
|
||||||
|
|
||||||
|
using OI.Metrology.Shared.DataModels;
|
||||||
|
using OI.Metrology.Shared.Models.Stateless;
|
||||||
|
using System.Text.Json;
|
||||||
|
|
||||||
|
[Route("api/[controller]")]
|
||||||
|
public class InfinityQSController : Controller, IInfinityQSController<IActionResult>
|
||||||
|
{
|
||||||
|
|
||||||
|
private readonly IInfinityQSRepository _InfinityQSRepository;
|
||||||
|
|
||||||
|
public InfinityQSController(IInfinityQSRepository InfinityQSRepository) => _InfinityQSRepository = InfinityQSRepository;
|
||||||
|
|
||||||
|
[HttpGet("commandText")]
|
||||||
|
public IActionResult GetCommandText(string sub_group_id, string process, string job, string part, string lot, string date_time)
|
||||||
|
{
|
||||||
|
string commandText = _InfinityQSRepository.GetCommandText(sub_group_id, process, job, part, lot, date_time);
|
||||||
|
return Content(commandText, "text/plain; charset=utf-8");
|
||||||
|
}
|
||||||
|
|
||||||
|
[HttpGet("{sub_group_id}/data")]
|
||||||
|
public IActionResult GetData(string sub_group_id)
|
||||||
|
{
|
||||||
|
Result<InfinityQSBase[]> result = _InfinityQSRepository.GetData(sub_group_id);
|
||||||
|
return Json(result, new JsonSerializerOptions { PropertyNamingPolicy = null, WriteIndented = true });
|
||||||
|
}
|
||||||
|
|
||||||
|
[HttpGet("{sub_group_id}/descriptors")]
|
||||||
|
public IActionResult GetDescriptors(string sub_group_id)
|
||||||
|
{
|
||||||
|
Result<InfinityQSDescriptor[]> result = _InfinityQSRepository.GetDescriptors(sub_group_id);
|
||||||
|
return Json(result, new JsonSerializerOptions { PropertyNamingPolicy = null, WriteIndented = true });
|
||||||
|
}
|
||||||
|
|
||||||
|
[HttpGet("{sub_group_id}/events")]
|
||||||
|
public IActionResult GetEvents(string sub_group_id)
|
||||||
|
{
|
||||||
|
Result<InfinityQSEvent[]> result = _InfinityQSRepository.GetEvents(sub_group_id);
|
||||||
|
return Json(result, new JsonSerializerOptions { PropertyNamingPolicy = null, WriteIndented = true });
|
||||||
|
}
|
||||||
|
|
||||||
|
[HttpGet("{sub_group_id}/header")]
|
||||||
|
public IActionResult GetHeader(string sub_group_id)
|
||||||
|
{
|
||||||
|
Result<InfinityQSBase[]> result = _InfinityQSRepository.GetHeader(sub_group_id);
|
||||||
|
return Json(result, new JsonSerializerOptions { PropertyNamingPolicy = null, WriteIndented = true });
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
52
Server/ApiControllers/InfinityQSV2Controller.cs
Normal file
52
Server/ApiControllers/InfinityQSV2Controller.cs
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
using Microsoft.AspNetCore.Mvc;
|
||||||
|
|
||||||
|
namespace OI.Metrology.Server.ApiControllers;
|
||||||
|
|
||||||
|
using OI.Metrology.Shared.DataModels;
|
||||||
|
using OI.Metrology.Shared.Models.Stateless;
|
||||||
|
using System.Text.Json;
|
||||||
|
|
||||||
|
[Route("api/[controller]")]
|
||||||
|
public class InfinityQSV2Controller : Controller, IInfinityQSV2Controller<IActionResult>
|
||||||
|
{
|
||||||
|
|
||||||
|
private readonly IInfinityQSV2Repository _InfinityQSRepositoryV2;
|
||||||
|
|
||||||
|
public InfinityQSV2Controller(IInfinityQSV2Repository InfinityQSRepositoryV2) => _InfinityQSRepositoryV2 = InfinityQSRepositoryV2;
|
||||||
|
|
||||||
|
[HttpGet("{sub_group_id}/commandText")]
|
||||||
|
public IActionResult GetCommandText(string sub_group_id, string process, string job, string part, string lot, string date_time)
|
||||||
|
{
|
||||||
|
string commandText = _InfinityQSRepositoryV2.GetCommandText(sub_group_id, process, job, part, lot, date_time);
|
||||||
|
return Content(commandText, "text/plain; charset=utf-8");
|
||||||
|
}
|
||||||
|
|
||||||
|
[HttpGet("{sub_group_id}/data")]
|
||||||
|
public IActionResult GetData(string sub_group_id)
|
||||||
|
{
|
||||||
|
Result<InfinityQSBaseV2[]> result = _InfinityQSRepositoryV2.GetData(sub_group_id);
|
||||||
|
return Json(result, new JsonSerializerOptions { PropertyNamingPolicy = null, WriteIndented = true });
|
||||||
|
}
|
||||||
|
|
||||||
|
[HttpGet("{sub_group_id}/descriptors")]
|
||||||
|
public IActionResult GetDescriptors(string sub_group_id)
|
||||||
|
{
|
||||||
|
Result<InfinityQSDescriptorV2[]> result = _InfinityQSRepositoryV2.GetDescriptors(sub_group_id);
|
||||||
|
return Json(result, new JsonSerializerOptions { PropertyNamingPolicy = null, WriteIndented = true });
|
||||||
|
}
|
||||||
|
|
||||||
|
[HttpGet("{sub_group_id}/events")]
|
||||||
|
public IActionResult GetEvents(string sub_group_id)
|
||||||
|
{
|
||||||
|
Result<InfinityQSEventV2[]> result = _InfinityQSRepositoryV2.GetEvents(sub_group_id);
|
||||||
|
return Json(result, new JsonSerializerOptions { PropertyNamingPolicy = null, WriteIndented = true });
|
||||||
|
}
|
||||||
|
|
||||||
|
[HttpGet("{sub_group_id}/header")]
|
||||||
|
public IActionResult GetHeader(string sub_group_id)
|
||||||
|
{
|
||||||
|
Result<InfinityQSBaseV2[]> result = _InfinityQSRepositoryV2.GetHeader(sub_group_id);
|
||||||
|
return Json(result, new JsonSerializerOptions { PropertyNamingPolicy = null, WriteIndented = true });
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
33
Server/ApiControllers/PinController.cs
Normal file
33
Server/ApiControllers/PinController.cs
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
using Microsoft.AspNetCore.Mvc;
|
||||||
|
|
||||||
|
namespace OI.Metrology.Server.ApiControllers;
|
||||||
|
|
||||||
|
using OI.Metrology.Shared.Models.Stateless;
|
||||||
|
using System.Text.Json;
|
||||||
|
|
||||||
|
[Route("api/[controller]")]
|
||||||
|
public class PinController : Controller, IPinController<IActionResult>
|
||||||
|
{
|
||||||
|
|
||||||
|
private readonly IPinRepository _PinRepository;
|
||||||
|
private readonly IMetrologyRepository _MetrologyRepository;
|
||||||
|
|
||||||
|
public PinController(IMetrologyRepository metrologyRepository, IPinRepository pinRepository)
|
||||||
|
{
|
||||||
|
_MetrologyRepository = metrologyRepository;
|
||||||
|
_PinRepository = pinRepository;
|
||||||
|
}
|
||||||
|
|
||||||
|
[HttpPost("{toolTypeId}/markAsPinned")]
|
||||||
|
public IActionResult MarkAsPinned(Shared.DataModels.HeaderCommon headerCommon)
|
||||||
|
{
|
||||||
|
_PinRepository.SetPinnedTable(headerCommon);
|
||||||
|
return Ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
[HttpGet]
|
||||||
|
[Route("{toolTypeId}/pinned")]
|
||||||
|
public IActionResult GetPinnedTable(int toolTypeId, string? biorad_id = null, string? cde_id = null, string? rds = null) =>
|
||||||
|
Json(_PinRepository.GetPinnedTable(_MetrologyRepository, toolTypeId, biorad_id, cde_id, rds), new JsonSerializerOptions { PropertyNamingPolicy = null, WriteIndented = true });
|
||||||
|
|
||||||
|
}
|
@ -66,6 +66,23 @@ public class ToolTypesController : Controller, IToolTypesController<IActionResul
|
|||||||
return Content(json);
|
return Content(json);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[HttpGet]
|
||||||
|
[Route("{toolTypeId}/export")]
|
||||||
|
public IActionResult GetExportData(int toolTypeId, [FromQuery] DateTime? datebegin, [FromQuery] DateTime? dateend)
|
||||||
|
{
|
||||||
|
Shared.DataModels.Result<DataTable> r = _ToolTypesRepository.GetExportData(_MetrologyRepo, toolTypeId, datebegin, dateend);
|
||||||
|
string json = JsonConvert.SerializeObject(r);
|
||||||
|
return Content(json);
|
||||||
|
}
|
||||||
|
|
||||||
|
[HttpGet]
|
||||||
|
[Route("{toolTypeId}/csv")]
|
||||||
|
public IActionResult GetCSVExport(int toolTypeId, [FromQuery] DateTime? datebegin, [FromQuery] DateTime? dateend, [FromQuery] string? filename)
|
||||||
|
{
|
||||||
|
byte[] r = _ToolTypesRepository.GetCSVExport(_MetrologyRepo, toolTypeId, datebegin, dateend);
|
||||||
|
return File(r, "application/octet-stream", filename);
|
||||||
|
}
|
||||||
|
|
||||||
[HttpGet]
|
[HttpGet]
|
||||||
[Route("{toolTypeId}/{tabletype}/files/{attachmentId}/{filename}")]
|
[Route("{toolTypeId}/{tabletype}/files/{attachmentId}/{filename}")]
|
||||||
public IActionResult GetAttachment(int toolTypeId, string tabletype, string attachmentId, string filename)
|
public IActionResult GetAttachment(int toolTypeId, string tabletype, string attachmentId, string filename)
|
||||||
|
@ -11,9 +11,10 @@ namespace OI.Metrology.Server.Controllers;
|
|||||||
|
|
||||||
public class ExportController : Controller
|
public class ExportController : Controller
|
||||||
{
|
{
|
||||||
|
|
||||||
private readonly ILogger _Logger;
|
private readonly ILogger _Logger;
|
||||||
private readonly bool _IsTestDatabase;
|
|
||||||
private readonly AppSettings _AppSettings;
|
private readonly AppSettings _AppSettings;
|
||||||
|
private readonly bool _IsTestDatabase;
|
||||||
private readonly IMetrologyRepository _MetrologyRepository;
|
private readonly IMetrologyRepository _MetrologyRepository;
|
||||||
|
|
||||||
public ExportController(AppSettings appSettings, ILogger<ExportController> logger, IMetrologyRepository metrologyRepository)
|
public ExportController(AppSettings appSettings, ILogger<ExportController> logger, IMetrologyRepository metrologyRepository)
|
||||||
@ -29,18 +30,21 @@ public class ExportController : Controller
|
|||||||
base.OnActionExecuted(context);
|
base.OnActionExecuted(context);
|
||||||
ViewBag.IsTestDatabase = _IsTestDatabase;
|
ViewBag.IsTestDatabase = _IsTestDatabase;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private string GetApiUrl() => string.IsNullOrEmpty(_AppSettings.ApiUrl) ? Url.Content("~/") : _AppSettings.ApiUrl[0] == '~' ? Url.Content(_AppSettings.ApiUrl) : _AppSettings.ApiUrl;
|
||||||
|
|
||||||
[HttpGet]
|
[HttpGet]
|
||||||
[Route("/Export")]
|
[Route("/Export")]
|
||||||
public ActionResult Index()
|
public ActionResult Index()
|
||||||
{
|
{
|
||||||
Export model = new()
|
Export model = new()
|
||||||
{
|
{
|
||||||
ToolType = "",
|
|
||||||
StartTime = DateTime.Now.AddMonths(-1),
|
StartTime = DateTime.Now.AddMonths(-1),
|
||||||
EndTime = DateTime.Now
|
EndTime = DateTime.Now
|
||||||
};
|
};
|
||||||
MonIn monIn = MonIn.GetInstance();
|
MonIn monIn = MonIn.GetInstance();
|
||||||
_ = monIn.SendStatus(_AppSettings.MonASite, _AppSettings.MonAResource, "Heartbeat", State.Up);
|
_ = monIn.SendStatus(_AppSettings.MonASite, _AppSettings.MonAResource, "Heartbeat", State.Up);
|
||||||
|
ViewBag.ApiUrl = GetApiUrl();
|
||||||
return View(model);
|
return View(model);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -77,8 +81,11 @@ public class ExportController : Controller
|
|||||||
ModelState.AddModelError("Exception", ex.Message);
|
ModelState.AddModelError("Exception", ex.Message);
|
||||||
string errorMessage = $"Error exporting: {ex}";
|
string errorMessage = $"Error exporting: {ex}";
|
||||||
_Logger.LogError(message: errorMessage);
|
_Logger.LogError(message: errorMessage);
|
||||||
|
MonIn monIn = MonIn.GetInstance();
|
||||||
|
_ = monIn.SendStatus(_AppSettings.MonASite, _AppSettings.MonAResource, "Heartbeat", State.Warning);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
ViewBag.ApiUrl = GetApiUrl();
|
||||||
return View("Index", model);
|
return View("Index", model);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8,11 +8,14 @@ namespace OI.Metrology.Server.Controllers;
|
|||||||
|
|
||||||
public class PagesController : Controller
|
public class PagesController : Controller
|
||||||
{
|
{
|
||||||
|
|
||||||
private readonly bool _IsTestDatabase;
|
private readonly bool _IsTestDatabase;
|
||||||
|
private readonly AppSettings _AppSettings;
|
||||||
private readonly IMetrologyRepository _MetrologyRepository;
|
private readonly IMetrologyRepository _MetrologyRepository;
|
||||||
|
|
||||||
public PagesController(AppSettings appSettings, IMetrologyRepository metrologyRepository)
|
public PagesController(AppSettings appSettings, IMetrologyRepository metrologyRepository)
|
||||||
{
|
{
|
||||||
|
_AppSettings=appSettings;
|
||||||
_MetrologyRepository = metrologyRepository;
|
_MetrologyRepository = metrologyRepository;
|
||||||
_IsTestDatabase = appSettings.ConnectionString.Contains("test", StringComparison.InvariantCultureIgnoreCase);
|
_IsTestDatabase = appSettings.ConnectionString.Contains("test", StringComparison.InvariantCultureIgnoreCase);
|
||||||
}
|
}
|
||||||
@ -23,16 +26,24 @@ public class PagesController : Controller
|
|||||||
ViewBag.IsTestDatabase = _IsTestDatabase;
|
ViewBag.IsTestDatabase = _IsTestDatabase;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private string GetApiUrl() => string.IsNullOrEmpty(_AppSettings.ApiUrl) ? Url.Content("~/") : _AppSettings.ApiUrl[0] == '~' ? Url.Content(_AppSettings.ApiUrl) : _AppSettings.ApiUrl;
|
||||||
|
|
||||||
[HttpGet]
|
[HttpGet]
|
||||||
[Route("/")]
|
[Route("/")]
|
||||||
public IActionResult Index() =>
|
public IActionResult Index()
|
||||||
View("AwaitingDispo");
|
{
|
||||||
|
ViewBag.ApiUrl = GetApiUrl();
|
||||||
|
return View("AwaitingDispo");
|
||||||
|
}
|
||||||
|
|
||||||
[HttpGet]
|
[HttpGet]
|
||||||
[Route("/AwaitingDispo")]
|
[Route("/AwaitingDispo")]
|
||||||
[Route("/Metrology/AwaitingDispo")]
|
[Route("/Metrology/AwaitingDispo")]
|
||||||
public IActionResult AwaitingDispo() =>
|
public IActionResult AwaitingDispo()
|
||||||
View();
|
{
|
||||||
|
ViewBag.ApiUrl = GetApiUrl();
|
||||||
|
return View();
|
||||||
|
}
|
||||||
|
|
||||||
[HttpGet]
|
[HttpGet]
|
||||||
[Route("/RunInfo")]
|
[Route("/RunInfo")]
|
||||||
@ -49,14 +60,18 @@ public class PagesController : Controller
|
|||||||
{
|
{
|
||||||
m.HeaderAttachmentID = _MetrologyRepository.GetHeaderAttachmentID(tooltypeid, headerid);
|
m.HeaderAttachmentID = _MetrologyRepository.GetHeaderAttachmentID(tooltypeid, headerid);
|
||||||
}
|
}
|
||||||
|
ViewBag.ApiUrl = GetApiUrl();
|
||||||
return View(m);
|
return View(m);
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpGet]
|
[HttpGet]
|
||||||
[Route("/RunHeaders")]
|
[Route("/RunHeaders")]
|
||||||
[Route("/Metrology/RunHeaders")]
|
[Route("/Metrology/RunHeaders")]
|
||||||
public IActionResult RunHeaders() =>
|
public IActionResult RunHeaders()
|
||||||
View();
|
{
|
||||||
|
ViewBag.ApiUrl = GetApiUrl();
|
||||||
|
return View();
|
||||||
|
}
|
||||||
|
|
||||||
[HttpGet]
|
[HttpGet]
|
||||||
[Route("/Crash")]
|
[Route("/Crash")]
|
||||||
|
1
Server/Data/Tests/AppSettings-GetAppSettings.json
Normal file
1
Server/Data/Tests/AppSettings-GetAppSettings.json
Normal file
@ -0,0 +1 @@
|
|||||||
|
{"apiLoggingContentTypes":null,"apiLoggingPathPrefixes":null,"apiLogPath":null,"apiUrl":null,"attachmentPath":null,"buildNumber":"1","company":"Infineon Technologies Americas Corp.","connectionString":null,"gitCommitSeven":"1234567","inboundApiAllowedIPList":null,"isDevelopment":true,"isStaging":false,"mockRoot":null,"monAResource":null,"monASite":null,"oi2SqlConnectionString":null,"oiExportPath":null,"urLs":null,"workingDirectoryName":null}
|
0
Server/Data/Tests/ClientSettings-GetIpAddress.json
Normal file
0
Server/Data/Tests/ClientSettings-GetIpAddress.json
Normal file
@ -1 +0,0 @@
|
|||||||
["application/json","/api/inbound","D:\\Metrology\\MetrologyAPILogs","\\\\messv02ecc1.ec.local\\EC_Metrology_Si\\MetrologyAttachments","1","Infineon Technologies Americas Corp.","Data Source=MESSAD1001\\TEST1,59583;Integrated Security=True;Initial Catalog=Metrology;","1234567","","True","False","OI_Metrology_Viewer_IFX","auc","Data Source=MESSAD1001\\TEST1,59583;Initial Catalog=LSL2SQL;Persist Security Info=True;User ID=srpadmin;Password=0okm9ijn;","\\\\openinsight-db-srv.na.infineon.com\\apps\\Metrology\\Data","https://localhost:7130;http://localhost:5126","IFXApps"]
|
|
File diff suppressed because one or more lines are too long
@ -1,21 +0,0 @@
|
|||||||
{
|
|
||||||
"Results": [
|
|
||||||
{
|
|
||||||
"ID": 2,
|
|
||||||
"InsertDate": "2019-09-12T16:24:18.617",
|
|
||||||
"AttachmentID": "00000000-0000-0000-0000-000000000000",
|
|
||||||
"Title": "Bio-RadQS400MEPI_99-999999-9999.1_201909121623333616",
|
|
||||||
"Recipe": null,
|
|
||||||
"Date": "2019-09-12T16:23:43"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"ID": 1,
|
|
||||||
"InsertDate": "2019-09-12T16:02:17.253",
|
|
||||||
"AttachmentID": "00000000-0000-0000-0000-000000000000",
|
|
||||||
"Title": "Bio-RadQS400MEPI_99-999999-9999.1_201909121559040648",
|
|
||||||
"Recipe": null,
|
|
||||||
"Date": "2019-09-12T15:59:05"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"TotalRows": 2
|
|
||||||
}
|
|
@ -1 +0,0 @@
|
|||||||
{"Results":[{"Batch":"BIORAD #4","Cassette":"","Date":"2019-09-12T16:23:43","ID":2,"InsertDate":"2019-09-12T16:24:18.617","Layer":"1","Mean Thickness":"114.785","Operator":"","Path":null,"PSN":"9999","RDS":"999999","Reactor":"99","Recipe":"6in_thick","RV Thickness":"0.0000","SentToMetrology":false,"SentToSPC":false,"Status":"PASS","Std Dev":"1.1047","Title":"Bio-RadQS400MEPI_99-999999-9999.1_201909121623333616","Wafer":"99-999999-9999.1","Zone":null,"AttachmentID":null},{"Batch":"BIORAD #4","Cassette":"","Date":"2019-09-12T15:59:05","ID":1,"InsertDate":"2019-09-12T16:02:17.253","Layer":"1","Mean Thickness":"114.785","Operator":"","Path":null,"PSN":"9999","RDS":"999999","Reactor":"99","Recipe":"6in_thick","RV Thickness":"0.0000","SentToMetrology":true,"SentToSPC":false,"Status":"PASS","Std Dev":"1.1047","Title":"Bio-RadQS400MEPI_99-999999-9999.1_201909121559040648","Wafer":"99-999999-9999.1","Zone":null,"AttachmentID":null}],"TotalRows":2}
|
|
35
Server/Data/Tests/InfinityQS-GetCommandText.sql
Normal file
35
Server/Data/Tests/InfinityQS-GetCommandText.sql
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
select
|
||||||
|
se.f_sgrp se_sgrp,
|
||||||
|
se.f_sgtm se_sgtm,
|
||||||
|
se.f_tsno se_tsno,
|
||||||
|
se.f_val se_val,
|
||||||
|
rd.f_name rd_name,
|
||||||
|
jd.f_name jd_name,
|
||||||
|
pl.f_name pl_name,
|
||||||
|
pd.f_name pd_name,
|
||||||
|
td.f_test td_test,
|
||||||
|
td.f_name td_name,
|
||||||
|
(select count(ev.f_evnt)
|
||||||
|
from [spcepiworld].[dbo].[evnt_inf] ev
|
||||||
|
where ev.f_prcs = rd.f_prcs
|
||||||
|
and ev.f_part = pd.f_part
|
||||||
|
and ev.f_sgtm = se.f_sgtm) ev_count
|
||||||
|
from [spcepiworld].[dbo].[sgrp_ext] se
|
||||||
|
join [spcepiworld].[dbo].[prcs_dat] rd
|
||||||
|
on se.f_prcs = rd.f_prcs
|
||||||
|
join [spcepiworld].[dbo].[job_dat] jd
|
||||||
|
on se.f_job = jd.f_job
|
||||||
|
join [spcepiworld].[dbo].[part_lot] pl
|
||||||
|
on se.f_lot = pl.f_lot
|
||||||
|
join [spcepiworld].[dbo].[part_dat] pd
|
||||||
|
on se.f_part = pd.f_part
|
||||||
|
join [spcepiworld].[dbo].[test_dat] td
|
||||||
|
on se.f_test = td.f_test
|
||||||
|
where se.f_flag = 0
|
||||||
|
and se.f_sgrp = 1677273357
|
||||||
|
and rd.f_name = '61'
|
||||||
|
and pd.f_name = '5012'
|
||||||
|
and jd.f_name = 'CDE5'
|
||||||
|
and pl.f_name = '575908'
|
||||||
|
and dateadd(HH, -7, (dateadd(SS, convert(bigint, se.f_sgtm), '19700101'))) = '2023-02-24 15:15:00'
|
||||||
|
for json path
|
785
Server/Data/Tests/InfinityQS-GetData.json
Normal file
785
Server/Data/Tests/InfinityQS-GetData.json
Normal file
@ -0,0 +1,785 @@
|
|||||||
|
{
|
||||||
|
"Results": [
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 1,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1650647347,
|
||||||
|
"TD_NAME": "T",
|
||||||
|
"SE_VAL": 270,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 2,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1650647347,
|
||||||
|
"TD_NAME": "T",
|
||||||
|
"SE_VAL": 270,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 3,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1650647347,
|
||||||
|
"TD_NAME": "T",
|
||||||
|
"SE_VAL": 270,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 4,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1650647347,
|
||||||
|
"TD_NAME": "T",
|
||||||
|
"SE_VAL": 270,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 5,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1650647347,
|
||||||
|
"TD_NAME": "T",
|
||||||
|
"SE_VAL": 0,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 6,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1650647347,
|
||||||
|
"TD_NAME": "T",
|
||||||
|
"SE_VAL": 90,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 7,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1650647347,
|
||||||
|
"TD_NAME": "T",
|
||||||
|
"SE_VAL": 90,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 8,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1650647347,
|
||||||
|
"TD_NAME": "T",
|
||||||
|
"SE_VAL": 90,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 9,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1650647347,
|
||||||
|
"TD_NAME": "T",
|
||||||
|
"SE_VAL": 90,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 10,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1650647347,
|
||||||
|
"TD_NAME": "T",
|
||||||
|
"SE_VAL": 90,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 1,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1654782546,
|
||||||
|
"TD_NAME": "Merit",
|
||||||
|
"SE_VAL": 1,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 2,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1654782546,
|
||||||
|
"TD_NAME": "Merit",
|
||||||
|
"SE_VAL": 0.9,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 3,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1654782546,
|
||||||
|
"TD_NAME": "Merit",
|
||||||
|
"SE_VAL": 0.92,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 4,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1654782546,
|
||||||
|
"TD_NAME": "Merit",
|
||||||
|
"SE_VAL": 0.93,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 5,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1654782546,
|
||||||
|
"TD_NAME": "Merit",
|
||||||
|
"SE_VAL": 0.87,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 6,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1654782546,
|
||||||
|
"TD_NAME": "Merit",
|
||||||
|
"SE_VAL": 0.87,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 7,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1654782546,
|
||||||
|
"TD_NAME": "Merit",
|
||||||
|
"SE_VAL": 0.85,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 8,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1654782546,
|
||||||
|
"TD_NAME": "Merit",
|
||||||
|
"SE_VAL": 0.98,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 9,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1654782546,
|
||||||
|
"TD_NAME": "Merit",
|
||||||
|
"SE_VAL": 0.88,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 10,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1654782546,
|
||||||
|
"TD_NAME": "Merit",
|
||||||
|
"SE_VAL": 0.98,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 1,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1656716039,
|
||||||
|
"TD_NAME": "R",
|
||||||
|
"SE_VAL": 95,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 2,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1656716039,
|
||||||
|
"TD_NAME": "R",
|
||||||
|
"SE_VAL": 71,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 3,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1656716039,
|
||||||
|
"TD_NAME": "R",
|
||||||
|
"SE_VAL": 47,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 4,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1656716039,
|
||||||
|
"TD_NAME": "R",
|
||||||
|
"SE_VAL": 23,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 5,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1656716039,
|
||||||
|
"TD_NAME": "R",
|
||||||
|
"SE_VAL": 0,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 6,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1656716039,
|
||||||
|
"TD_NAME": "R",
|
||||||
|
"SE_VAL": 11,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 7,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1656716039,
|
||||||
|
"TD_NAME": "R",
|
||||||
|
"SE_VAL": 35,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 8,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1656716039,
|
||||||
|
"TD_NAME": "R",
|
||||||
|
"SE_VAL": 59,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 9,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1656716039,
|
||||||
|
"TD_NAME": "R",
|
||||||
|
"SE_VAL": 83,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 10,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1656716039,
|
||||||
|
"TD_NAME": "R",
|
||||||
|
"SE_VAL": 95,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 1,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1656716040,
|
||||||
|
"TD_NAME": "Rs",
|
||||||
|
"SE_VAL": 1399.703,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 2,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1656716040,
|
||||||
|
"TD_NAME": "Rs",
|
||||||
|
"SE_VAL": 1425.322,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 3,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1656716040,
|
||||||
|
"TD_NAME": "Rs",
|
||||||
|
"SE_VAL": 1439.78,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 4,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1656716040,
|
||||||
|
"TD_NAME": "Rs",
|
||||||
|
"SE_VAL": 1382.154,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 5,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1656716040,
|
||||||
|
"TD_NAME": "Rs",
|
||||||
|
"SE_VAL": 1406.158,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 6,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1656716040,
|
||||||
|
"TD_NAME": "Rs",
|
||||||
|
"SE_VAL": 1394.458,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 7,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1656716040,
|
||||||
|
"TD_NAME": "Rs",
|
||||||
|
"SE_VAL": 1387.965,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 8,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1656716040,
|
||||||
|
"TD_NAME": "Rs",
|
||||||
|
"SE_VAL": 1411.158,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 9,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1656716040,
|
||||||
|
"TD_NAME": "Rs",
|
||||||
|
"SE_VAL": 1413.722,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 10,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1656716040,
|
||||||
|
"TD_NAME": "Rs",
|
||||||
|
"SE_VAL": 1401.816,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 1,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1656716248,
|
||||||
|
"TD_NAME": "Avg",
|
||||||
|
"SE_VAL": 1406.22,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 2,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1656716248,
|
||||||
|
"TD_NAME": "Avg",
|
||||||
|
"SE_VAL": 1406.22,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 3,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1656716248,
|
||||||
|
"TD_NAME": "Avg",
|
||||||
|
"SE_VAL": 1406.22,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 4,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1656716248,
|
||||||
|
"TD_NAME": "Avg",
|
||||||
|
"SE_VAL": 1406.22,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 5,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1656716248,
|
||||||
|
"TD_NAME": "Avg",
|
||||||
|
"SE_VAL": 1406.22,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 6,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1656716248,
|
||||||
|
"TD_NAME": "Avg",
|
||||||
|
"SE_VAL": 1406.22,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 7,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1656716248,
|
||||||
|
"TD_NAME": "Avg",
|
||||||
|
"SE_VAL": 1406.22,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 8,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1656716248,
|
||||||
|
"TD_NAME": "Avg",
|
||||||
|
"SE_VAL": 1406.22,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 9,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1656716248,
|
||||||
|
"TD_NAME": "Avg",
|
||||||
|
"SE_VAL": 1406.22,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 10,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1656716248,
|
||||||
|
"TD_NAME": "Avg",
|
||||||
|
"SE_VAL": 1406.22,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 1,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1656716249,
|
||||||
|
"TD_NAME": "Temp",
|
||||||
|
"SE_VAL": 18.2,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 2,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1656716249,
|
||||||
|
"TD_NAME": "Temp",
|
||||||
|
"SE_VAL": 18.2,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 3,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1656716249,
|
||||||
|
"TD_NAME": "Temp",
|
||||||
|
"SE_VAL": 18.2,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 4,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1656716249,
|
||||||
|
"TD_NAME": "Temp",
|
||||||
|
"SE_VAL": 18.2,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 5,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1656716249,
|
||||||
|
"TD_NAME": "Temp",
|
||||||
|
"SE_VAL": 18.2,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 6,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1656716249,
|
||||||
|
"TD_NAME": "Temp",
|
||||||
|
"SE_VAL": 18.2,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 7,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1656716249,
|
||||||
|
"TD_NAME": "Temp",
|
||||||
|
"SE_VAL": 18.2,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 8,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1656716249,
|
||||||
|
"TD_NAME": "Temp",
|
||||||
|
"SE_VAL": 18.2,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 9,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1656716249,
|
||||||
|
"TD_NAME": "Temp",
|
||||||
|
"SE_VAL": 18.2,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 10,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1656716249,
|
||||||
|
"TD_NAME": "Temp",
|
||||||
|
"SE_VAL": 18.2,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"TotalRows": 60
|
||||||
|
}
|
236
Server/Data/Tests/InfinityQS-GetDescriptors.json
Normal file
236
Server/Data/Tests/InfinityQS-GetDescriptors.json
Normal file
@ -0,0 +1,236 @@
|
|||||||
|
{
|
||||||
|
"Results": [
|
||||||
|
{
|
||||||
|
"SD_SGRP": 1677273357,
|
||||||
|
"SD_TSNO": 0,
|
||||||
|
"DD_DSGP": 1655312695,
|
||||||
|
"GD_NAME": "Recipe",
|
||||||
|
"DD_NAME": "LSL8IN \\ 10PT_5mm"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SD_SGRP": 1677273357,
|
||||||
|
"SD_TSNO": 0,
|
||||||
|
"DD_DSGP": 1656696777,
|
||||||
|
"GD_NAME": "Layer",
|
||||||
|
"DD_NAME": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SD_SGRP": 1677273357,
|
||||||
|
"SD_TSNO": 0,
|
||||||
|
"DD_DSGP": 1656696778,
|
||||||
|
"GD_NAME": "Zone",
|
||||||
|
"DD_NAME": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SD_SGRP": 1677273357,
|
||||||
|
"SD_TSNO": 1,
|
||||||
|
"DD_DSGP": 1656716039,
|
||||||
|
"GD_NAME": "DataReject",
|
||||||
|
"DD_NAME": "3.00"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SD_SGRP": 1677273357,
|
||||||
|
"SD_TSNO": 2,
|
||||||
|
"DD_DSGP": 1656716039,
|
||||||
|
"GD_NAME": "DataReject",
|
||||||
|
"DD_NAME": "3.00"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SD_SGRP": 1677273357,
|
||||||
|
"SD_TSNO": 3,
|
||||||
|
"DD_DSGP": 1656716039,
|
||||||
|
"GD_NAME": "DataReject",
|
||||||
|
"DD_NAME": "3.00"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SD_SGRP": 1677273357,
|
||||||
|
"SD_TSNO": 4,
|
||||||
|
"DD_DSGP": 1656716039,
|
||||||
|
"GD_NAME": "DataReject",
|
||||||
|
"DD_NAME": "3.00"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SD_SGRP": 1677273357,
|
||||||
|
"SD_TSNO": 5,
|
||||||
|
"DD_DSGP": 1656716039,
|
||||||
|
"GD_NAME": "DataReject",
|
||||||
|
"DD_NAME": "3.00"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SD_SGRP": 1677273357,
|
||||||
|
"SD_TSNO": 6,
|
||||||
|
"DD_DSGP": 1656716039,
|
||||||
|
"GD_NAME": "DataReject",
|
||||||
|
"DD_NAME": "3.00"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SD_SGRP": 1677273357,
|
||||||
|
"SD_TSNO": 7,
|
||||||
|
"DD_DSGP": 1656716039,
|
||||||
|
"GD_NAME": "DataReject",
|
||||||
|
"DD_NAME": "3.00"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SD_SGRP": 1677273357,
|
||||||
|
"SD_TSNO": 8,
|
||||||
|
"DD_DSGP": 1656716039,
|
||||||
|
"GD_NAME": "DataReject",
|
||||||
|
"DD_NAME": "3.00"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SD_SGRP": 1677273357,
|
||||||
|
"SD_TSNO": 9,
|
||||||
|
"DD_DSGP": 1656716039,
|
||||||
|
"GD_NAME": "DataReject",
|
||||||
|
"DD_NAME": "3.00"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SD_SGRP": 1677273357,
|
||||||
|
"SD_TSNO": 10,
|
||||||
|
"DD_DSGP": 1656716039,
|
||||||
|
"GD_NAME": "DataReject",
|
||||||
|
"DD_NAME": "3.00"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SD_SGRP": 1677273357,
|
||||||
|
"SD_TSNO": 1,
|
||||||
|
"DD_DSGP": 1656716040,
|
||||||
|
"GD_NAME": "Pt",
|
||||||
|
"DD_NAME": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SD_SGRP": 1677273357,
|
||||||
|
"SD_TSNO": 2,
|
||||||
|
"DD_DSGP": 1656716040,
|
||||||
|
"GD_NAME": "Pt",
|
||||||
|
"DD_NAME": "2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SD_SGRP": 1677273357,
|
||||||
|
"SD_TSNO": 3,
|
||||||
|
"DD_DSGP": 1656716040,
|
||||||
|
"GD_NAME": "Pt",
|
||||||
|
"DD_NAME": "3"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SD_SGRP": 1677273357,
|
||||||
|
"SD_TSNO": 4,
|
||||||
|
"DD_DSGP": 1656716040,
|
||||||
|
"GD_NAME": "Pt",
|
||||||
|
"DD_NAME": "4"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SD_SGRP": 1677273357,
|
||||||
|
"SD_TSNO": 5,
|
||||||
|
"DD_DSGP": 1656716040,
|
||||||
|
"GD_NAME": "Pt",
|
||||||
|
"DD_NAME": "5"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SD_SGRP": 1677273357,
|
||||||
|
"SD_TSNO": 6,
|
||||||
|
"DD_DSGP": 1656716040,
|
||||||
|
"GD_NAME": "Pt",
|
||||||
|
"DD_NAME": "6"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SD_SGRP": 1677273357,
|
||||||
|
"SD_TSNO": 7,
|
||||||
|
"DD_DSGP": 1656716040,
|
||||||
|
"GD_NAME": "Pt",
|
||||||
|
"DD_NAME": "7"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SD_SGRP": 1677273357,
|
||||||
|
"SD_TSNO": 8,
|
||||||
|
"DD_DSGP": 1656716040,
|
||||||
|
"GD_NAME": "Pt",
|
||||||
|
"DD_NAME": "8"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SD_SGRP": 1677273357,
|
||||||
|
"SD_TSNO": 9,
|
||||||
|
"DD_DSGP": 1656716040,
|
||||||
|
"GD_NAME": "Pt",
|
||||||
|
"DD_NAME": "9"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SD_SGRP": 1677273357,
|
||||||
|
"SD_TSNO": 10,
|
||||||
|
"DD_DSGP": 1656716040,
|
||||||
|
"GD_NAME": "Pt",
|
||||||
|
"DD_NAME": "10"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SD_SGRP": 1677273357,
|
||||||
|
"SD_TSNO": 1,
|
||||||
|
"DD_DSGP": 1656716042,
|
||||||
|
"GD_NAME": "StdDev",
|
||||||
|
"DD_NAME": "1.23%"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SD_SGRP": 1677273357,
|
||||||
|
"SD_TSNO": 2,
|
||||||
|
"DD_DSGP": 1656716042,
|
||||||
|
"GD_NAME": "StdDev",
|
||||||
|
"DD_NAME": "1.23%"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SD_SGRP": 1677273357,
|
||||||
|
"SD_TSNO": 3,
|
||||||
|
"DD_DSGP": 1656716042,
|
||||||
|
"GD_NAME": "StdDev",
|
||||||
|
"DD_NAME": "1.23%"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SD_SGRP": 1677273357,
|
||||||
|
"SD_TSNO": 4,
|
||||||
|
"DD_DSGP": 1656716042,
|
||||||
|
"GD_NAME": "StdDev",
|
||||||
|
"DD_NAME": "1.23%"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SD_SGRP": 1677273357,
|
||||||
|
"SD_TSNO": 5,
|
||||||
|
"DD_DSGP": 1656716042,
|
||||||
|
"GD_NAME": "StdDev",
|
||||||
|
"DD_NAME": "1.23%"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SD_SGRP": 1677273357,
|
||||||
|
"SD_TSNO": 6,
|
||||||
|
"DD_DSGP": 1656716042,
|
||||||
|
"GD_NAME": "StdDev",
|
||||||
|
"DD_NAME": "1.23%"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SD_SGRP": 1677273357,
|
||||||
|
"SD_TSNO": 7,
|
||||||
|
"DD_DSGP": 1656716042,
|
||||||
|
"GD_NAME": "StdDev",
|
||||||
|
"DD_NAME": "1.23%"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SD_SGRP": 1677273357,
|
||||||
|
"SD_TSNO": 8,
|
||||||
|
"DD_DSGP": 1656716042,
|
||||||
|
"GD_NAME": "StdDev",
|
||||||
|
"DD_NAME": "1.23%"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SD_SGRP": 1677273357,
|
||||||
|
"SD_TSNO": 9,
|
||||||
|
"DD_DSGP": 1656716042,
|
||||||
|
"GD_NAME": "StdDev",
|
||||||
|
"DD_NAME": "1.23%"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SD_SGRP": 1677273357,
|
||||||
|
"SD_TSNO": 10,
|
||||||
|
"DD_DSGP": 1656716042,
|
||||||
|
"GD_NAME": "StdDev",
|
||||||
|
"DD_NAME": "1.23%"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"TotalRows": 33
|
||||||
|
}
|
4
Server/Data/Tests/InfinityQS-GetEvents.json
Normal file
4
Server/Data/Tests/InfinityQS-GetEvents.json
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"Results": [],
|
||||||
|
"TotalRows": 0
|
||||||
|
}
|
18
Server/Data/Tests/InfinityQS-GetHeader.json
Normal file
18
Server/Data/Tests/InfinityQS-GetHeader.json
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
"Results": [
|
||||||
|
{
|
||||||
|
"SE_SGRP": 1677273357,
|
||||||
|
"SE_SGTM": 1677273300,
|
||||||
|
"SE_TSNO": 1,
|
||||||
|
"PR_NAME": "61",
|
||||||
|
"JD_NAME": "CDE5",
|
||||||
|
"PL_NAME": "575908",
|
||||||
|
"PD_NAME": "5012",
|
||||||
|
"TD_TEST": 1650647347,
|
||||||
|
"TD_NAME": "T",
|
||||||
|
"SE_VAL": 270,
|
||||||
|
"EV_COUNT": 0
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"TotalRows": 1
|
||||||
|
}
|
35
Server/Data/Tests/InfinityQSV2-GetCommandText.sql
Normal file
35
Server/Data/Tests/InfinityQSV2-GetCommandText.sql
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
select
|
||||||
|
se.f_sgrp se_sgrp,
|
||||||
|
se.f_sgtm se_sgtm,
|
||||||
|
se.f_tsno se_tsno,
|
||||||
|
se.f_val se_val,
|
||||||
|
rd.f_name rd_name,
|
||||||
|
jd.f_name jd_name,
|
||||||
|
pl.f_name pl_name,
|
||||||
|
pd.f_name pd_name,
|
||||||
|
td.f_test td_test,
|
||||||
|
td.f_name td_name,
|
||||||
|
(select count(ev.f_evnt)
|
||||||
|
from [spcepiworld].[dbo].[evnt_inf] ev
|
||||||
|
where ev.f_prcs = rd.f_prcs
|
||||||
|
and ev.f_part = pd.f_part
|
||||||
|
and ev.f_sgtm = se.f_sgtm) ev_count
|
||||||
|
from [spcepiworld].[dbo].[sgrp_ext] se
|
||||||
|
join [spcepiworld].[dbo].[prcs_dat] rd
|
||||||
|
on se.f_prcs = rd.f_prcs
|
||||||
|
join [spcepiworld].[dbo].[job_dat] jd
|
||||||
|
on se.f_job = jd.f_job
|
||||||
|
join [spcepiworld].[dbo].[part_lot] pl
|
||||||
|
on se.f_lot = pl.f_lot
|
||||||
|
join [spcepiworld].[dbo].[part_dat] pd
|
||||||
|
on se.f_part = pd.f_part
|
||||||
|
join [spcepiworld].[dbo].[test_dat] td
|
||||||
|
on se.f_test = td.f_test
|
||||||
|
where se.f_flag = 0
|
||||||
|
and se.f_sgrp = 1677273357
|
||||||
|
and rd.f_name = '61'
|
||||||
|
and pd.f_name = '5012'
|
||||||
|
and jd.f_name = 'CDE5'
|
||||||
|
and pl.f_name = '575908'
|
||||||
|
and dateadd(HH, -7, (dateadd(SS, convert(bigint, se.f_sgtm), '19700101'))) = '2023-02-24 15:15:00'
|
||||||
|
for json path
|
785
Server/Data/Tests/InfinityQSV2-GetData.json
Normal file
785
Server/Data/Tests/InfinityQSV2-GetData.json
Normal file
@ -0,0 +1,785 @@
|
|||||||
|
{
|
||||||
|
"Results": [
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 1,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1650647347,
|
||||||
|
"Variable": "T",
|
||||||
|
"Value": 270,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 2,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1650647347,
|
||||||
|
"Variable": "T",
|
||||||
|
"Value": 270,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 3,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1650647347,
|
||||||
|
"Variable": "T",
|
||||||
|
"Value": 270,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 4,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1650647347,
|
||||||
|
"Variable": "T",
|
||||||
|
"Value": 270,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 5,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1650647347,
|
||||||
|
"Variable": "T",
|
||||||
|
"Value": 0,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 6,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1650647347,
|
||||||
|
"Variable": "T",
|
||||||
|
"Value": 90,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 7,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1650647347,
|
||||||
|
"Variable": "T",
|
||||||
|
"Value": 90,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 8,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1650647347,
|
||||||
|
"Variable": "T",
|
||||||
|
"Value": 90,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 9,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1650647347,
|
||||||
|
"Variable": "T",
|
||||||
|
"Value": 90,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 10,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1650647347,
|
||||||
|
"Variable": "T",
|
||||||
|
"Value": 90,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 1,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1654782546,
|
||||||
|
"Variable": "Merit",
|
||||||
|
"Value": 1,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 2,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1654782546,
|
||||||
|
"Variable": "Merit",
|
||||||
|
"Value": 0.9,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 3,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1654782546,
|
||||||
|
"Variable": "Merit",
|
||||||
|
"Value": 0.92,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 4,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1654782546,
|
||||||
|
"Variable": "Merit",
|
||||||
|
"Value": 0.93,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 5,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1654782546,
|
||||||
|
"Variable": "Merit",
|
||||||
|
"Value": 0.87,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 6,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1654782546,
|
||||||
|
"Variable": "Merit",
|
||||||
|
"Value": 0.87,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 7,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1654782546,
|
||||||
|
"Variable": "Merit",
|
||||||
|
"Value": 0.85,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 8,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1654782546,
|
||||||
|
"Variable": "Merit",
|
||||||
|
"Value": 0.98,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 9,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1654782546,
|
||||||
|
"Variable": "Merit",
|
||||||
|
"Value": 0.88,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 10,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1654782546,
|
||||||
|
"Variable": "Merit",
|
||||||
|
"Value": 0.98,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 1,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1656716039,
|
||||||
|
"Variable": "R",
|
||||||
|
"Value": 95,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 2,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1656716039,
|
||||||
|
"Variable": "R",
|
||||||
|
"Value": 71,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 3,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1656716039,
|
||||||
|
"Variable": "R",
|
||||||
|
"Value": 47,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 4,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1656716039,
|
||||||
|
"Variable": "R",
|
||||||
|
"Value": 23,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 5,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1656716039,
|
||||||
|
"Variable": "R",
|
||||||
|
"Value": 0,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 6,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1656716039,
|
||||||
|
"Variable": "R",
|
||||||
|
"Value": 11,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 7,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1656716039,
|
||||||
|
"Variable": "R",
|
||||||
|
"Value": 35,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 8,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1656716039,
|
||||||
|
"Variable": "R",
|
||||||
|
"Value": 59,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 9,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1656716039,
|
||||||
|
"Variable": "R",
|
||||||
|
"Value": 83,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 10,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1656716039,
|
||||||
|
"Variable": "R",
|
||||||
|
"Value": 95,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 1,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1656716040,
|
||||||
|
"Variable": "Rs",
|
||||||
|
"Value": 1399.703,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 2,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1656716040,
|
||||||
|
"Variable": "Rs",
|
||||||
|
"Value": 1425.322,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 3,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1656716040,
|
||||||
|
"Variable": "Rs",
|
||||||
|
"Value": 1439.78,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 4,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1656716040,
|
||||||
|
"Variable": "Rs",
|
||||||
|
"Value": 1382.154,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 5,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1656716040,
|
||||||
|
"Variable": "Rs",
|
||||||
|
"Value": 1406.158,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 6,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1656716040,
|
||||||
|
"Variable": "Rs",
|
||||||
|
"Value": 1394.458,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 7,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1656716040,
|
||||||
|
"Variable": "Rs",
|
||||||
|
"Value": 1387.965,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 8,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1656716040,
|
||||||
|
"Variable": "Rs",
|
||||||
|
"Value": 1411.158,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 9,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1656716040,
|
||||||
|
"Variable": "Rs",
|
||||||
|
"Value": 1413.722,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 10,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1656716040,
|
||||||
|
"Variable": "Rs",
|
||||||
|
"Value": 1401.816,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 1,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1656716248,
|
||||||
|
"Variable": "Avg",
|
||||||
|
"Value": 1406.22,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 2,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1656716248,
|
||||||
|
"Variable": "Avg",
|
||||||
|
"Value": 1406.22,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 3,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1656716248,
|
||||||
|
"Variable": "Avg",
|
||||||
|
"Value": 1406.22,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 4,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1656716248,
|
||||||
|
"Variable": "Avg",
|
||||||
|
"Value": 1406.22,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 5,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1656716248,
|
||||||
|
"Variable": "Avg",
|
||||||
|
"Value": 1406.22,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 6,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1656716248,
|
||||||
|
"Variable": "Avg",
|
||||||
|
"Value": 1406.22,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 7,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1656716248,
|
||||||
|
"Variable": "Avg",
|
||||||
|
"Value": 1406.22,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 8,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1656716248,
|
||||||
|
"Variable": "Avg",
|
||||||
|
"Value": 1406.22,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 9,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1656716248,
|
||||||
|
"Variable": "Avg",
|
||||||
|
"Value": 1406.22,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 10,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1656716248,
|
||||||
|
"Variable": "Avg",
|
||||||
|
"Value": 1406.22,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 1,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1656716249,
|
||||||
|
"Variable": "Temp",
|
||||||
|
"Value": 18.2,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 2,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1656716249,
|
||||||
|
"Variable": "Temp",
|
||||||
|
"Value": 18.2,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 3,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1656716249,
|
||||||
|
"Variable": "Temp",
|
||||||
|
"Value": 18.2,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 4,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1656716249,
|
||||||
|
"Variable": "Temp",
|
||||||
|
"Value": 18.2,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 5,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1656716249,
|
||||||
|
"Variable": "Temp",
|
||||||
|
"Value": 18.2,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 6,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1656716249,
|
||||||
|
"Variable": "Temp",
|
||||||
|
"Value": 18.2,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 7,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1656716249,
|
||||||
|
"Variable": "Temp",
|
||||||
|
"Value": 18.2,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 8,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1656716249,
|
||||||
|
"Variable": "Temp",
|
||||||
|
"Value": 18.2,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 9,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1656716249,
|
||||||
|
"Variable": "Temp",
|
||||||
|
"Value": 18.2,
|
||||||
|
"EventCount": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 10,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1656716249,
|
||||||
|
"Variable": "Temp",
|
||||||
|
"Value": 18.2,
|
||||||
|
"EventCount": 0
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"TotalRows": 60
|
||||||
|
}
|
236
Server/Data/Tests/InfinityQSV2-GetDescriptors.json
Normal file
236
Server/Data/Tests/InfinityQSV2-GetDescriptors.json
Normal file
@ -0,0 +1,236 @@
|
|||||||
|
{
|
||||||
|
"Results": [
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SiteNumber": 0,
|
||||||
|
"VariableNumber": 1655312695,
|
||||||
|
"Variable": "Recipe",
|
||||||
|
"Value": "LSL8IN \\ 10PT_5mm"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SiteNumber": 0,
|
||||||
|
"VariableNumber": 1656696777,
|
||||||
|
"Variable": "Layer",
|
||||||
|
"Value": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SiteNumber": 0,
|
||||||
|
"VariableNumber": 1656696778,
|
||||||
|
"Variable": "Zone",
|
||||||
|
"Value": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SiteNumber": 1,
|
||||||
|
"VariableNumber": 1656716039,
|
||||||
|
"Variable": "DataReject",
|
||||||
|
"Value": "3.00"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SiteNumber": 2,
|
||||||
|
"VariableNumber": 1656716039,
|
||||||
|
"Variable": "DataReject",
|
||||||
|
"Value": "3.00"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SiteNumber": 3,
|
||||||
|
"VariableNumber": 1656716039,
|
||||||
|
"Variable": "DataReject",
|
||||||
|
"Value": "3.00"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SiteNumber": 4,
|
||||||
|
"VariableNumber": 1656716039,
|
||||||
|
"Variable": "DataReject",
|
||||||
|
"Value": "3.00"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SiteNumber": 5,
|
||||||
|
"VariableNumber": 1656716039,
|
||||||
|
"Variable": "DataReject",
|
||||||
|
"Value": "3.00"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SiteNumber": 6,
|
||||||
|
"VariableNumber": 1656716039,
|
||||||
|
"Variable": "DataReject",
|
||||||
|
"Value": "3.00"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SiteNumber": 7,
|
||||||
|
"VariableNumber": 1656716039,
|
||||||
|
"Variable": "DataReject",
|
||||||
|
"Value": "3.00"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SiteNumber": 8,
|
||||||
|
"VariableNumber": 1656716039,
|
||||||
|
"Variable": "DataReject",
|
||||||
|
"Value": "3.00"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SiteNumber": 9,
|
||||||
|
"VariableNumber": 1656716039,
|
||||||
|
"Variable": "DataReject",
|
||||||
|
"Value": "3.00"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SiteNumber": 10,
|
||||||
|
"VariableNumber": 1656716039,
|
||||||
|
"Variable": "DataReject",
|
||||||
|
"Value": "3.00"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SiteNumber": 1,
|
||||||
|
"VariableNumber": 1656716040,
|
||||||
|
"Variable": "Pt",
|
||||||
|
"Value": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SiteNumber": 2,
|
||||||
|
"VariableNumber": 1656716040,
|
||||||
|
"Variable": "Pt",
|
||||||
|
"Value": "2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SiteNumber": 3,
|
||||||
|
"VariableNumber": 1656716040,
|
||||||
|
"Variable": "Pt",
|
||||||
|
"Value": "3"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SiteNumber": 4,
|
||||||
|
"VariableNumber": 1656716040,
|
||||||
|
"Variable": "Pt",
|
||||||
|
"Value": "4"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SiteNumber": 5,
|
||||||
|
"VariableNumber": 1656716040,
|
||||||
|
"Variable": "Pt",
|
||||||
|
"Value": "5"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SiteNumber": 6,
|
||||||
|
"VariableNumber": 1656716040,
|
||||||
|
"Variable": "Pt",
|
||||||
|
"Value": "6"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SiteNumber": 7,
|
||||||
|
"VariableNumber": 1656716040,
|
||||||
|
"Variable": "Pt",
|
||||||
|
"Value": "7"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SiteNumber": 8,
|
||||||
|
"VariableNumber": 1656716040,
|
||||||
|
"Variable": "Pt",
|
||||||
|
"Value": "8"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SiteNumber": 9,
|
||||||
|
"VariableNumber": 1656716040,
|
||||||
|
"Variable": "Pt",
|
||||||
|
"Value": "9"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SiteNumber": 10,
|
||||||
|
"VariableNumber": 1656716040,
|
||||||
|
"Variable": "Pt",
|
||||||
|
"Value": "10"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SiteNumber": 1,
|
||||||
|
"VariableNumber": 1656716042,
|
||||||
|
"Variable": "StdDev",
|
||||||
|
"Value": "1.23%"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SiteNumber": 2,
|
||||||
|
"VariableNumber": 1656716042,
|
||||||
|
"Variable": "StdDev",
|
||||||
|
"Value": "1.23%"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SiteNumber": 3,
|
||||||
|
"VariableNumber": 1656716042,
|
||||||
|
"Variable": "StdDev",
|
||||||
|
"Value": "1.23%"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SiteNumber": 4,
|
||||||
|
"VariableNumber": 1656716042,
|
||||||
|
"Variable": "StdDev",
|
||||||
|
"Value": "1.23%"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SiteNumber": 5,
|
||||||
|
"VariableNumber": 1656716042,
|
||||||
|
"Variable": "StdDev",
|
||||||
|
"Value": "1.23%"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SiteNumber": 6,
|
||||||
|
"VariableNumber": 1656716042,
|
||||||
|
"Variable": "StdDev",
|
||||||
|
"Value": "1.23%"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SiteNumber": 7,
|
||||||
|
"VariableNumber": 1656716042,
|
||||||
|
"Variable": "StdDev",
|
||||||
|
"Value": "1.23%"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SiteNumber": 8,
|
||||||
|
"VariableNumber": 1656716042,
|
||||||
|
"Variable": "StdDev",
|
||||||
|
"Value": "1.23%"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SiteNumber": 9,
|
||||||
|
"VariableNumber": 1656716042,
|
||||||
|
"Variable": "StdDev",
|
||||||
|
"Value": "1.23%"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SiteNumber": 10,
|
||||||
|
"VariableNumber": 1656716042,
|
||||||
|
"Variable": "StdDev",
|
||||||
|
"Value": "1.23%"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"TotalRows": 33
|
||||||
|
}
|
4
Server/Data/Tests/InfinityQSV2-GetEvents.json
Normal file
4
Server/Data/Tests/InfinityQSV2-GetEvents.json
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"Results": [],
|
||||||
|
"TotalRows": 0
|
||||||
|
}
|
18
Server/Data/Tests/InfinityQSV2-GetHeader.json
Normal file
18
Server/Data/Tests/InfinityQSV2-GetHeader.json
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
"Results": [
|
||||||
|
{
|
||||||
|
"SubGroupId": 1677273357,
|
||||||
|
"SubGroupDateTime": 1677273300,
|
||||||
|
"SiteNumber": 1,
|
||||||
|
"Process": "61",
|
||||||
|
"Job": "CDE5",
|
||||||
|
"Lot": "575908",
|
||||||
|
"Part": "5012",
|
||||||
|
"VariableNumber": 1650647347,
|
||||||
|
"Variable": "T",
|
||||||
|
"Value": 270,
|
||||||
|
"EventCount": 0
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"TotalRows": 1
|
||||||
|
}
|
4
Server/Data/Tests/Pin-GetPinnedTable.json
Normal file
4
Server/Data/Tests/Pin-GetPinnedTable.json
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"Results": [],
|
||||||
|
"TotalRows": 0
|
||||||
|
}
|
23
Server/Data/Tests/ToolTypes-GetData.json
Normal file
23
Server/Data/Tests/ToolTypes-GetData.json
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"Results": [
|
||||||
|
{
|
||||||
|
"InsertDate": null,
|
||||||
|
"Run Header": null,
|
||||||
|
"Title": null,
|
||||||
|
"AttachmentID": null,
|
||||||
|
"Position": "Average",
|
||||||
|
"Thickness": "NaN",
|
||||||
|
"ID": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"InsertDate": null,
|
||||||
|
"Run Header": null,
|
||||||
|
"Title": null,
|
||||||
|
"AttachmentID": null,
|
||||||
|
"Position": "Std Dev",
|
||||||
|
"Thickness": "NaN",
|
||||||
|
"ID": -2
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"TotalRows": 2
|
||||||
|
}
|
@ -2,23 +2,23 @@
|
|||||||
"Results": [
|
"Results": [
|
||||||
{
|
{
|
||||||
"Column": "ID",
|
"Column": "ID",
|
||||||
"Value": "1"
|
"Value": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Column": "InsertDate",
|
"Column": "InsertDate",
|
||||||
"Value": "9/12/2019 4:02:17 PM"
|
"Value": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Column": "Title",
|
"Column": "Title",
|
||||||
"Value": "Bio-RadQS400MEPI_99-999999-9999.1_201909121559040648"
|
"Value": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Column": "Recipe",
|
"Column": "Recipe",
|
||||||
"Value": "6in_thick"
|
"Value": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Column": "Date",
|
"Column": "Date",
|
||||||
"Value": "9/12/2019 3:59:05 PM"
|
"Value": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Column": "Operator",
|
"Column": "Operator",
|
||||||
@ -26,7 +26,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Column": "Batch",
|
"Column": "Batch",
|
||||||
"Value": "BIORAD #4"
|
"Value": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Column": "Cassette",
|
"Column": "Cassette",
|
||||||
@ -34,43 +34,43 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Column": "Wafer",
|
"Column": "Wafer",
|
||||||
"Value": "99-999999-9999.1"
|
"Value": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Column": "Mean Thickness",
|
"Column": "Mean Thickness",
|
||||||
"Value": "114.785"
|
"Value": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Column": "RV Thickness",
|
"Column": "RV Thickness",
|
||||||
"Value": "0.0000"
|
"Value": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Column": "Status",
|
"Column": "Status",
|
||||||
"Value": "PASS"
|
"Value": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Column": "Std Dev",
|
"Column": "Std Dev",
|
||||||
"Value": "1.1047"
|
"Value": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Column": "SentToMetrology",
|
"Column": "SentToOI",
|
||||||
"Value": "True"
|
"Value": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Column": "SentToSPC",
|
"Column": "SentToSPC",
|
||||||
"Value": "False"
|
"Value": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Column": "Reactor",
|
"Column": "Reactor",
|
||||||
"Value": "99"
|
"Value": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Column": "RDS",
|
"Column": "RDS",
|
||||||
"Value": "999999"
|
"Value": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Column": "PSN",
|
"Column": "PSN",
|
||||||
"Value": "9999"
|
"Value": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Column": "Path",
|
"Column": "Path",
|
||||||
@ -78,12 +78,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Column": "Layer",
|
"Column": "Layer",
|
||||||
"Value": "1"
|
"Value": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Column": "Zone",
|
"Column": "Zone",
|
||||||
"Value": ""
|
"Value": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Column": "Tool",
|
||||||
|
"Value": ""
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"TotalRows": 21
|
"TotalRows": 22
|
||||||
}
|
}
|
138742
Server/Data/Tests/ToolTypes-GetHeaderTitles.json
Normal file
138742
Server/Data/Tests/ToolTypes-GetHeaderTitles.json
Normal file
File diff suppressed because it is too large
Load Diff
1
Server/Data/Tests/ToolTypes-GetHeaders.json
Normal file
1
Server/Data/Tests/ToolTypes-GetHeaders.json
Normal file
File diff suppressed because one or more lines are too long
@ -134,8 +134,8 @@
|
|||||||
"ApiName": "Layer",
|
"ApiName": "Layer",
|
||||||
"ColumnName": "Layer",
|
"ColumnName": "Layer",
|
||||||
"DisplayTitle": "Layer",
|
"DisplayTitle": "Layer",
|
||||||
"GridDisplayOrder": 5,
|
"GridDisplayOrder": 6,
|
||||||
"GridAttributes": null,
|
"GridAttributes": "{ \u0022formatter\u0022: \u0022isNull\u0022 }",
|
||||||
"TableDisplayOrder": 20
|
"TableDisplayOrder": 20
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -155,7 +155,7 @@
|
|||||||
"ColumnName": "Operator",
|
"ColumnName": "Operator",
|
||||||
"DisplayTitle": "Operator",
|
"DisplayTitle": "Operator",
|
||||||
"GridDisplayOrder": 8,
|
"GridDisplayOrder": 8,
|
||||||
"GridAttributes": null,
|
"GridAttributes": "{ \u0022formatter\u0022: \u0022isNull\u0022 }",
|
||||||
"TableDisplayOrder": 6
|
"TableDisplayOrder": 6
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -174,8 +174,8 @@
|
|||||||
"ApiName": "PSN",
|
"ApiName": "PSN",
|
||||||
"ColumnName": "PSN",
|
"ColumnName": "PSN",
|
||||||
"DisplayTitle": "PSN",
|
"DisplayTitle": "PSN",
|
||||||
"GridDisplayOrder": 4,
|
"GridDisplayOrder": 5,
|
||||||
"GridAttributes": null,
|
"GridAttributes": "{ \u0022formatter\u0022: \u0022isNull\u0022 }",
|
||||||
"TableDisplayOrder": 18
|
"TableDisplayOrder": 18
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -184,8 +184,8 @@
|
|||||||
"ApiName": "RDS",
|
"ApiName": "RDS",
|
||||||
"ColumnName": "RDS",
|
"ColumnName": "RDS",
|
||||||
"DisplayTitle": "RDS",
|
"DisplayTitle": "RDS",
|
||||||
"GridDisplayOrder": 3,
|
"GridDisplayOrder": 4,
|
||||||
"GridAttributes": null,
|
"GridAttributes": "{ \u0022formatter\u0022: \u0022isNull\u0022 }",
|
||||||
"TableDisplayOrder": 17
|
"TableDisplayOrder": 17
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -194,7 +194,7 @@
|
|||||||
"ApiName": "Reactor",
|
"ApiName": "Reactor",
|
||||||
"ColumnName": "Reactor",
|
"ColumnName": "Reactor",
|
||||||
"DisplayTitle": "Reactor",
|
"DisplayTitle": "Reactor",
|
||||||
"GridDisplayOrder": 2,
|
"GridDisplayOrder": 3,
|
||||||
"GridAttributes": null,
|
"GridAttributes": null,
|
||||||
"TableDisplayOrder": 16
|
"TableDisplayOrder": 16
|
||||||
},
|
},
|
||||||
@ -223,7 +223,7 @@
|
|||||||
"Header": true,
|
"Header": true,
|
||||||
"ApiName": "SentToMetrology",
|
"ApiName": "SentToMetrology",
|
||||||
"ColumnName": "SentToMetrology",
|
"ColumnName": "SentToMetrology",
|
||||||
"DisplayTitle": "SentToMetrology",
|
"DisplayTitle": "SentToOI",
|
||||||
"GridDisplayOrder": 9,
|
"GridDisplayOrder": 9,
|
||||||
"GridAttributes": "{ \u0022dataType:\u0022: \u0022bool\u0022, \u0022formatter\u0022: \u0022boolToYesNo\u0022 }",
|
"GridAttributes": "{ \u0022dataType:\u0022: \u0022bool\u0022, \u0022formatter\u0022: \u0022boolToYesNo\u0022 }",
|
||||||
"TableDisplayOrder": 14
|
"TableDisplayOrder": 14
|
||||||
@ -234,7 +234,7 @@
|
|||||||
"ApiName": "SentToSPC",
|
"ApiName": "SentToSPC",
|
||||||
"ColumnName": "SentToSPC",
|
"ColumnName": "SentToSPC",
|
||||||
"DisplayTitle": "SentToSPC",
|
"DisplayTitle": "SentToSPC",
|
||||||
"GridDisplayOrder": 10,
|
"GridDisplayOrder": 0,
|
||||||
"GridAttributes": "{ \u0022dataType:\u0022: \u0022bool\u0022, \u0022formatter\u0022: \u0022boolToYesNo\u0022 }",
|
"GridAttributes": "{ \u0022dataType:\u0022: \u0022bool\u0022, \u0022formatter\u0022: \u0022boolToYesNo\u0022 }",
|
||||||
"TableDisplayOrder": 15
|
"TableDisplayOrder": 15
|
||||||
},
|
},
|
||||||
@ -327,8 +327,18 @@
|
|||||||
"GridDisplayOrder": -1,
|
"GridDisplayOrder": -1,
|
||||||
"GridAttributes": null,
|
"GridAttributes": null,
|
||||||
"TableDisplayOrder": -1
|
"TableDisplayOrder": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ToolTypeID": 1,
|
||||||
|
"Header": true,
|
||||||
|
"ApiName": "CellName",
|
||||||
|
"ColumnName": "Tool",
|
||||||
|
"DisplayTitle": "Tool",
|
||||||
|
"GridDisplayOrder": 2,
|
||||||
|
"GridAttributes": null,
|
||||||
|
"TableDisplayOrder": 22
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"TotalRows": 31
|
"TotalRows": 32
|
||||||
}
|
}
|
@ -5,6 +5,7 @@ namespace OI.Metrology.Server.Models;
|
|||||||
public record AppSettings(string ApiLoggingContentTypes,
|
public record AppSettings(string ApiLoggingContentTypes,
|
||||||
string ApiLoggingPathPrefixes,
|
string ApiLoggingPathPrefixes,
|
||||||
string ApiLogPath,
|
string ApiLogPath,
|
||||||
|
string ApiUrl,
|
||||||
string AttachmentPath,
|
string AttachmentPath,
|
||||||
string BuildNumber,
|
string BuildNumber,
|
||||||
string Company,
|
string Company,
|
||||||
|
@ -11,6 +11,7 @@ public class AppSettings
|
|||||||
[Display(Name = "Api Logging Content Types"), Required] public string ApiLoggingContentTypes { get; set; }
|
[Display(Name = "Api Logging Content Types"), Required] public string ApiLoggingContentTypes { get; set; }
|
||||||
[Display(Name = "Api Logging Path Prefixes"), Required] public string ApiLoggingPathPrefixes { get; set; }
|
[Display(Name = "Api Logging Path Prefixes"), Required] public string ApiLoggingPathPrefixes { get; set; }
|
||||||
[Display(Name = "Api Log Path"), Required] public string ApiLogPath { get; set; }
|
[Display(Name = "Api Log Path"), Required] public string ApiLogPath { get; set; }
|
||||||
|
[Display(Name = "Api URL"), Required] public string ApiUrl { get; set; }
|
||||||
[Display(Name = "Attachment Path"), Required] public string AttachmentPath { get; set; }
|
[Display(Name = "Attachment Path"), Required] public string AttachmentPath { get; set; }
|
||||||
[Display(Name = "Build Number"), Required] public string BuildNumber { get; set; }
|
[Display(Name = "Build Number"), Required] public string BuildNumber { get; set; }
|
||||||
[Display(Name = "Company"), Required] public string Company { get; set; }
|
[Display(Name = "Company"), Required] public string Company { get; set; }
|
||||||
@ -46,6 +47,8 @@ public class AppSettings
|
|||||||
throw new NullReferenceException(nameof(ApiLoggingPathPrefixes));
|
throw new NullReferenceException(nameof(ApiLoggingPathPrefixes));
|
||||||
if (appSettings.ApiLogPath is null)
|
if (appSettings.ApiLogPath is null)
|
||||||
throw new NullReferenceException(nameof(ApiLogPath));
|
throw new NullReferenceException(nameof(ApiLogPath));
|
||||||
|
if (appSettings.ApiUrl is null)
|
||||||
|
throw new NullReferenceException(nameof(ApiUrl));
|
||||||
if (appSettings.AttachmentPath is null)
|
if (appSettings.AttachmentPath is null)
|
||||||
throw new NullReferenceException(nameof(AttachmentPath));
|
throw new NullReferenceException(nameof(AttachmentPath));
|
||||||
if (appSettings.BuildNumber is null)
|
if (appSettings.BuildNumber is null)
|
||||||
@ -80,6 +83,7 @@ public class AppSettings
|
|||||||
appSettings.ApiLoggingContentTypes,
|
appSettings.ApiLoggingContentTypes,
|
||||||
appSettings.ApiLoggingPathPrefixes,
|
appSettings.ApiLoggingPathPrefixes,
|
||||||
appSettings.ApiLogPath,
|
appSettings.ApiLogPath,
|
||||||
|
appSettings.ApiUrl,
|
||||||
appSettings.AttachmentPath,
|
appSettings.AttachmentPath,
|
||||||
appSettings.BuildNumber,
|
appSettings.BuildNumber,
|
||||||
appSettings.Company,
|
appSettings.Company,
|
||||||
|
@ -64,40 +64,70 @@
|
|||||||
<None Include="Data\Mike\service-shop.json">
|
<None Include="Data\Mike\service-shop.json">
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
</None>
|
</None>
|
||||||
<None Include="Data\Tests\GetAllServiceShopOrdersApi.json">
|
<None Include="Data\Tests\AppSettings-GetAppSettings.json">
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
</None>
|
</None>
|
||||||
<None Include="Data\Tests\GetAppSettingsApi.json">
|
<None Include="Data\Tests\AppSettings-GetBuildNumberAndGitCommitSeven.json">
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
</None>
|
</None>
|
||||||
<None Include="Data\Tests\GetAwaitingDispositionApi.json">
|
<None Include="Data\Tests\ClientSettings-GetClientSettings.json">
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
</None>
|
</None>
|
||||||
<None Include="Data\Tests\GetBuildNumberAndGitCommitSevenApi.json">
|
<None Include="Data\Tests\ClientSettings-GetIpAddress.json">
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
</None>
|
</None>
|
||||||
<None Include="Data\Tests\GetClientSettingsApi.json">
|
<None Include="Data\Tests\InfinityQS-GetCommandText.sql">
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
</None>
|
</None>
|
||||||
<None Include="Data\Tests\GetDataApi.json">
|
<None Include="Data\Tests\InfinityQS-GetData.json">
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
</None>
|
</None>
|
||||||
<None Include="Data\Tests\GetHeaderFieldsApi.json">
|
<None Include="Data\Tests\InfinityQS-GetDescriptors.json">
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
</None>
|
</None>
|
||||||
<None Include="Data\Tests\GetHeadersApi.json">
|
<None Include="Data\Tests\InfinityQS-GetEvents.json">
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
</None>
|
</None>
|
||||||
<None Include="Data\Tests\GetHeaderTitlesApi.json">
|
<None Include="Data\Tests\InfinityQS-GetHeader.json">
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
</None>
|
</None>
|
||||||
<None Include="Data\Tests\GetIpAddressApi.json">
|
<None Include="Data\Tests\InfinityQSV2-GetCommandText.sql">
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
</None>
|
</None>
|
||||||
<None Include="Data\Tests\GetToolTypeMetadataApi.json">
|
<None Include="Data\Tests\InfinityQSV2-GetData.json">
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
</None>
|
</None>
|
||||||
<None Include="Data\Tests\IndexApi.json">
|
<None Include="Data\Tests\InfinityQSV2-GetDescriptors.json">
|
||||||
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
|
<None Include="Data\Tests\InfinityQSV2-GetEvents.json">
|
||||||
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
|
<None Include="Data\Tests\InfinityQSV2-GetHeader.json">
|
||||||
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
|
<None Include="Data\Tests\Pin-GetPinnedTable.json">
|
||||||
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
|
<None Include="Data\Tests\ServiceShopOrder-GetAllServiceShopOrders.json">
|
||||||
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
|
<None Include="Data\Tests\ToolTypes-GetData.json">
|
||||||
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
|
<None Include="Data\Tests\ToolTypes-GetHeaderFields.json">
|
||||||
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
|
<None Include="Data\Tests\ToolTypes-GetHeaderTitles.json">
|
||||||
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
|
<None Include="Data\Tests\ToolTypes-GetHeaders.json">
|
||||||
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
|
<None Include="Data\Tests\ToolTypes-GetToolTypeMetadata.json">
|
||||||
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
|
<None Include="Data\Tests\ToolTypes-Index.json">
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
</None>
|
</None>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
@ -56,10 +56,10 @@ public class Program
|
|||||||
Serilog.ILogger log = Log.ForContext<Program>();
|
Serilog.ILogger log = Log.ForContext<Program>();
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
_ = webApplicationBuilder.Services.AddMemoryCache();
|
||||||
_ = webApplicationBuilder.Services.Configure<ApiBehaviorOptions>(options => options.SuppressModelStateInvalidFilter = true);
|
_ = webApplicationBuilder.Services.Configure<ApiBehaviorOptions>(options => options.SuppressModelStateInvalidFilter = true);
|
||||||
_ = webApplicationBuilder.Services.AddControllersWithViews();
|
_ = webApplicationBuilder.Services.AddControllersWithViews();
|
||||||
_ = webApplicationBuilder.Services.AddDistributedMemoryCache();
|
_ = webApplicationBuilder.Services.AddDistributedMemoryCache();
|
||||||
_ = webApplicationBuilder.Services.AddMemoryCache();
|
|
||||||
|
|
||||||
AppSettingsRepository appSettingsRepository = new(appSettings);
|
AppSettingsRepository appSettingsRepository = new(appSettings);
|
||||||
SQLDbConnectionFactory sqlDbConnectionFactory = new(appSettings);
|
SQLDbConnectionFactory sqlDbConnectionFactory = new(appSettings);
|
||||||
@ -67,11 +67,14 @@ public class Program
|
|||||||
|
|
||||||
_ = webApplicationBuilder.Services.AddSingleton(_ => appSettings);
|
_ = webApplicationBuilder.Services.AddSingleton(_ => appSettings);
|
||||||
_ = webApplicationBuilder.Services.AddSingleton<IInboundRepository, InboundRepository>();
|
_ = webApplicationBuilder.Services.AddSingleton<IInboundRepository, InboundRepository>();
|
||||||
_ = webApplicationBuilder.Services.AddSingleton<IAppSettingsRepository>(_ => appSettingsRepository);
|
|
||||||
_ = webApplicationBuilder.Services.AddSingleton<IClientSettingsRepository>(_ => clientSettingsRepository);
|
_ = webApplicationBuilder.Services.AddSingleton<IClientSettingsRepository>(_ => clientSettingsRepository);
|
||||||
_ = webApplicationBuilder.Services.AddSingleton<IServiceShopOrderRepository, ServiceShopOrderRepository>();
|
_ = webApplicationBuilder.Services.AddSingleton<IServiceShopOrderRepository, ServiceShopOrderRepository>();
|
||||||
|
_ = webApplicationBuilder.Services.AddSingleton<IPinRepository, PinRepository>(_ => new(appSettings.MockRoot));
|
||||||
_ = webApplicationBuilder.Services.AddSingleton<IDbConnectionFactory, SQLDbConnectionFactory>(_ => sqlDbConnectionFactory);
|
_ = webApplicationBuilder.Services.AddSingleton<IDbConnectionFactory, SQLDbConnectionFactory>(_ => sqlDbConnectionFactory);
|
||||||
_ = webApplicationBuilder.Services.AddSingleton<IToolTypesRepository, ToolTypesRepository>(_ => new(appSettings.MockRoot));
|
_ = webApplicationBuilder.Services.AddSingleton<IToolTypesRepository, ToolTypesRepository>(_ => new(appSettings.MockRoot));
|
||||||
|
_ = webApplicationBuilder.Services.AddSingleton<IAppSettingsRepository<Models.Binder.AppSettings>>(_ => appSettingsRepository);
|
||||||
|
_ = webApplicationBuilder.Services.AddSingleton<IInfinityQSRepository, InfinityQSRepository>(_ => new(appSettings.MockRoot, sqlDbConnectionFactory));
|
||||||
|
_ = webApplicationBuilder.Services.AddSingleton<IInfinityQSV2Repository, InfinityQSV2Repository>(_ => new(appSettings.MockRoot, sqlDbConnectionFactory));
|
||||||
|
|
||||||
_ = webApplicationBuilder.Services.AddScoped<IAttachmentsService, AttachmentsService>();
|
_ = webApplicationBuilder.Services.AddScoped<IAttachmentsService, AttachmentsService>();
|
||||||
_ = webApplicationBuilder.Services.AddScoped<IInboundDataService, InboundDataService>();
|
_ = webApplicationBuilder.Services.AddScoped<IInboundDataService, InboundDataService>();
|
||||||
@ -97,10 +100,11 @@ public class Program
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
WebApplication webApplication = webApplicationBuilder.Build();
|
WebApplication webApplication = webApplicationBuilder.Build();
|
||||||
_ = webApplication.UseCors(corsPolicyBuilder => corsPolicyBuilder.AllowAnyOrigin());
|
_ = webApplication.UseCors(corsPolicyBuilder => corsPolicyBuilder.AllowAnyOrigin().AllowAnyHeader().AllowAnyMethod());
|
||||||
if (!webApplicationBuilder.Environment.IsDevelopment())
|
if (!webApplicationBuilder.Environment.IsDevelopment())
|
||||||
{
|
{
|
||||||
_ = webApplication.UseExceptionHandler("/Error");
|
_ = webApplication.UseExceptionHandler("/Error");
|
||||||
|
_ = webApplication.UseHttpsRedirection();
|
||||||
_ = webApplication.UseHsts();
|
_ = webApplication.UseHsts();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -119,7 +123,6 @@ public class Program
|
|||||||
_ = webApplication.UseFileServer(enableDirectoryBrowsing: true);
|
_ = webApplication.UseFileServer(enableDirectoryBrowsing: true);
|
||||||
_ = webApplication.UseStaticFiles();
|
_ = webApplication.UseStaticFiles();
|
||||||
_ = webApplication.UseSession();
|
_ = webApplication.UseSession();
|
||||||
_ = webApplication.UseHttpsRedirection();
|
|
||||||
_ = webApplication.UseMiddleware<ApiLoggingMiddleware>();
|
_ = webApplication.UseMiddleware<ApiLoggingMiddleware>();
|
||||||
_ = webApplication.MapControllers();
|
_ = webApplication.MapControllers();
|
||||||
log.Information("Starting Web Application");
|
log.Information("Starting Web Application");
|
||||||
|
31
Server/Properties/launchSettings.json
Normal file
31
Server/Properties/launchSettings.json
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
{
|
||||||
|
"profiles": {
|
||||||
|
"http": {
|
||||||
|
"commandName": "Project",
|
||||||
|
"dotnetRunMessages": true,
|
||||||
|
"launchBrowser": false,
|
||||||
|
"applicationUrl": "http://localhost:5126",
|
||||||
|
"environmentVariables": {
|
||||||
|
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"https": {
|
||||||
|
"commandName": "Project",
|
||||||
|
"dotnetRunMessages": true,
|
||||||
|
"launchBrowser": false,
|
||||||
|
"applicationUrl": "https://localhost:7130;http://localhost:5126",
|
||||||
|
"environmentVariables": {
|
||||||
|
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"https-prod": {
|
||||||
|
"commandName": "Project",
|
||||||
|
"dotnetRunMessages": true,
|
||||||
|
"launchBrowser": false,
|
||||||
|
"applicationUrl": "https://localhost:7130;http://localhost:5126",
|
||||||
|
"environmentVariables": {
|
||||||
|
"ASPNETCORE_ENVIRONMENT": "Production"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -1,37 +1,58 @@
|
|||||||
using OI.Metrology.Server.Models;
|
using OI.Metrology.Server.Models;
|
||||||
using OI.Metrology.Shared.Models.Stateless;
|
using OI.Metrology.Shared.Models.Stateless;
|
||||||
using System.Text.Json;
|
|
||||||
|
|
||||||
namespace OI.Metrology.Server.Repository;
|
namespace OI.Metrology.Server.Repository;
|
||||||
|
|
||||||
public class AppSettingsRepository : IAppSettingsRepository
|
public class AppSettingsRepository : IAppSettingsRepository<Models.Binder.AppSettings>
|
||||||
{
|
{
|
||||||
|
|
||||||
private readonly AppSettings _AppSettings;
|
private readonly AppSettings _AppSettings;
|
||||||
|
|
||||||
public AppSettingsRepository(AppSettings appSettings) => _AppSettings = appSettings;
|
public AppSettingsRepository(AppSettings appSettings) => _AppSettings = appSettings;
|
||||||
|
|
||||||
public List<string> GetAppSettings()
|
internal Models.Binder.AppSettings GetAppSettings()
|
||||||
{
|
{
|
||||||
List<string> results = new();
|
Models.Binder.AppSettings result = new()
|
||||||
string json = JsonSerializer.Serialize(_AppSettings);
|
{
|
||||||
JsonElement jsonElement = JsonSerializer.Deserialize<JsonElement>(json);
|
BuildNumber = _AppSettings.BuildNumber,
|
||||||
JsonProperty[] jsonProperties = jsonElement.EnumerateObject().ToArray();
|
Company = _AppSettings.Company,
|
||||||
foreach (JsonProperty jsonProperty in jsonProperties)
|
GitCommitSeven = _AppSettings.GitCommitSeven,
|
||||||
results.Add(jsonProperty.Value.ToString());
|
IsDevelopment = _AppSettings.IsDevelopment,
|
||||||
if (!_AppSettings.IsDevelopment)
|
IsStaging = _AppSettings.IsStaging,
|
||||||
throw new Exception("Shouldn't expose!");
|
};
|
||||||
return results;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
List<string> IAppSettingsRepository.GetAppSettings() => GetAppSettings();
|
Models.Binder.AppSettings IAppSettingsRepository<Models.Binder.AppSettings>.GetAppSettings() => GetAppSettings();
|
||||||
|
|
||||||
public string GetBuildNumberAndGitCommitSeven()
|
internal string GetBuildNumberAndGitCommitSeven()
|
||||||
{
|
{
|
||||||
string result = string.Concat(_AppSettings.BuildNumber, '-', _AppSettings.GitCommitSeven);
|
string result = string.Concat(_AppSettings.BuildNumber, '-', _AppSettings.GitCommitSeven);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
string IAppSettingsRepository.GetBuildNumberAndGitCommitSeven() => GetBuildNumberAndGitCommitSeven();
|
string IAppSettingsRepository<Models.Binder.AppSettings>.GetBuildNumberAndGitCommitSeven() => GetBuildNumberAndGitCommitSeven();
|
||||||
|
|
||||||
|
internal void VerifyConnectionStrings()
|
||||||
|
{
|
||||||
|
if (string.IsNullOrEmpty(_AppSettings.ConnectionString))
|
||||||
|
throw new NotSupportedException();
|
||||||
|
if (string.IsNullOrEmpty(_AppSettings.OI2SqlConnectionString))
|
||||||
|
throw new NotSupportedException();
|
||||||
|
#if DEBUG
|
||||||
|
if (!_AppSettings.ConnectionString.Contains("test", StringComparison.CurrentCultureIgnoreCase))
|
||||||
|
throw new NotSupportedException();
|
||||||
|
if (!_AppSettings.OI2SqlConnectionString.Contains("test", StringComparison.CurrentCultureIgnoreCase))
|
||||||
|
throw new NotSupportedException();
|
||||||
|
#endif
|
||||||
|
#if !DEBUG
|
||||||
|
if (_AppSettings.ConnectionString.Contains("test", StringComparison.CurrentCultureIgnoreCase))
|
||||||
|
throw new NotSupportedException();
|
||||||
|
if (_AppSettings.OI2SqlConnectionString.Contains("test", StringComparison.CurrentCultureIgnoreCase))
|
||||||
|
throw new NotSupportedException();
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
void IAppSettingsRepository<Models.Binder.AppSettings>.VerifyConnectionStrings() => VerifyConnectionStrings();
|
||||||
|
|
||||||
}
|
}
|
@ -11,7 +11,7 @@ public class ClientSettingsRepository : IClientSettingsRepository
|
|||||||
|
|
||||||
public ClientSettingsRepository(AppSettings appSettings) => _AppSettings = appSettings;
|
public ClientSettingsRepository(AppSettings appSettings) => _AppSettings = appSettings;
|
||||||
|
|
||||||
public List<string> GetClientSettings(IPAddress? remoteIpAddress)
|
internal List<string> GetClientSettings(IPAddress? remoteIpAddress)
|
||||||
{
|
{
|
||||||
List<string> results = new();
|
List<string> results = new();
|
||||||
if (remoteIpAddress is null)
|
if (remoteIpAddress is null)
|
||||||
@ -25,7 +25,7 @@ public class ClientSettingsRepository : IClientSettingsRepository
|
|||||||
|
|
||||||
List<string> IClientSettingsRepository.GetClientSettings(IPAddress? remoteIpAddress) => GetClientSettings(remoteIpAddress);
|
List<string> IClientSettingsRepository.GetClientSettings(IPAddress? remoteIpAddress) => GetClientSettings(remoteIpAddress);
|
||||||
|
|
||||||
public string GetIpAddress(IPAddress? remoteIpAddress)
|
internal static string GetIpAddress(IPAddress? remoteIpAddress)
|
||||||
{
|
{
|
||||||
string result = remoteIpAddress is null ? string.Empty : remoteIpAddress.ToString();
|
string result = remoteIpAddress is null ? string.Empty : remoteIpAddress.ToString();
|
||||||
return result;
|
return result;
|
||||||
|
238
Server/Repositories/InfinityQSRepository.cs
Normal file
238
Server/Repositories/InfinityQSRepository.cs
Normal file
@ -0,0 +1,238 @@
|
|||||||
|
using OI.Metrology.Shared.DataModels;
|
||||||
|
using OI.Metrology.Shared.Models.Stateless;
|
||||||
|
using OI.Metrology.Shared.Repositories;
|
||||||
|
using System.Data;
|
||||||
|
using System.Data.Common;
|
||||||
|
using System.Text;
|
||||||
|
using System.Text.Json;
|
||||||
|
|
||||||
|
namespace OI.Metrology.Server.Repository;
|
||||||
|
|
||||||
|
public class InfinityQSRepository : IInfinityQSRepository
|
||||||
|
{
|
||||||
|
|
||||||
|
private readonly string _MockRoot;
|
||||||
|
private readonly string _RepositoryName;
|
||||||
|
private readonly IDbConnectionFactory _DBConnectionFactory;
|
||||||
|
|
||||||
|
public InfinityQSRepository(string mockRoot, IDbConnectionFactory dbConnectionFactory)
|
||||||
|
{
|
||||||
|
_MockRoot = mockRoot;
|
||||||
|
_DBConnectionFactory = dbConnectionFactory;
|
||||||
|
_RepositoryName = nameof(InfinityQSRepository)[..^10];
|
||||||
|
}
|
||||||
|
|
||||||
|
string IInfinityQSRepository.GetCommandText(string subGroupId)
|
||||||
|
{
|
||||||
|
StringBuilder result = new();
|
||||||
|
if (string.IsNullOrEmpty(subGroupId))
|
||||||
|
throw new ArgumentException(nameof(subGroupId));
|
||||||
|
_ = result
|
||||||
|
.AppendLine(" select ")
|
||||||
|
.AppendLine(" sd.f_sgrp sd_sgrp, ")
|
||||||
|
.AppendLine(" sd.f_tsno sd_tsno, ")
|
||||||
|
.AppendLine(" dd.f_dsgp dd_dsgp, ")
|
||||||
|
.AppendLine(" dg.f_name gd_name, ")
|
||||||
|
.AppendLine(" dd.f_name dd_name ")
|
||||||
|
.AppendLine(" from [SPCEPIWORLD].[dbo].[SGRP_DSC] sd ")
|
||||||
|
.AppendLine(" join [SPCEPIWORLD].[dbo].[DESC_DAT] dd ")
|
||||||
|
.AppendLine(" on sd.f_dsgp = dd.f_dsgp ")
|
||||||
|
.AppendLine(" and sd.f_desc = dd.f_desc ")
|
||||||
|
.AppendLine(" join [SPCEPIWORLD].[dbo].[DESC_GRP] dg ")
|
||||||
|
.AppendLine(" on dd.f_dsgp = dg.f_dsgp ");
|
||||||
|
_ = result.Append(" where sd.f_sgrp = ").Append(subGroupId).AppendLine(" ");
|
||||||
|
_ = result.AppendLine(" for json path ");
|
||||||
|
return result.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
string IInfinityQSRepository.GetCommandText(string? subGroupId, string? process, string? job, string? part, string? lot, string? dateTime)
|
||||||
|
{
|
||||||
|
StringBuilder result = new();
|
||||||
|
const string dateTimeFormat = "yyyy-MM-dd HH:mm:ss";
|
||||||
|
if (!string.IsNullOrEmpty(dateTime) && (dateTime.Contains('-') || dateTime.Contains(' ') || dateTime.Contains(':')) && dateTime.Length != dateTimeFormat.Length)
|
||||||
|
throw new ArgumentException(nameof(dateTime));
|
||||||
|
_ = result
|
||||||
|
.AppendLine(" select ")
|
||||||
|
.AppendLine(" se.f_sgrp se_sgrp, ")
|
||||||
|
.AppendLine(" se.f_sgtm se_sgtm, ")
|
||||||
|
.AppendLine(" se.f_tsno se_tsno, ")
|
||||||
|
.AppendLine(" se.f_val se_val, ")
|
||||||
|
.AppendLine(" pr.f_name pr_name, ")
|
||||||
|
.AppendLine(" jd.f_name jd_name, ")
|
||||||
|
.AppendLine(" pl.f_name pl_name, ")
|
||||||
|
.AppendLine(" pd.f_name pd_name, ")
|
||||||
|
.AppendLine(" td.f_test td_test, ")
|
||||||
|
.AppendLine(" td.f_name td_name, ")
|
||||||
|
.AppendLine(" (select count(ev.f_evnt) ")
|
||||||
|
.AppendLine(" from [spcepiworld].[dbo].[evnt_inf] ev ")
|
||||||
|
.AppendLine(" where ev.f_prcs = pr.f_prcs ")
|
||||||
|
.AppendLine(" and ev.f_part = pd.f_part ")
|
||||||
|
.AppendLine(" and ev.f_sgtm = se.f_sgtm) ev_count ")
|
||||||
|
.AppendLine(" from [spcepiworld].[dbo].[sgrp_ext] se ")
|
||||||
|
.AppendLine(" join [spcepiworld].[dbo].[prcs_dat] pr ")
|
||||||
|
.AppendLine(" on se.f_prcs = pr.f_prcs ")
|
||||||
|
.AppendLine(" join [spcepiworld].[dbo].[job_dat] jd ")
|
||||||
|
.AppendLine(" on se.f_job = jd.f_job ")
|
||||||
|
.AppendLine(" join [spcepiworld].[dbo].[part_lot] pl ")
|
||||||
|
.AppendLine(" on se.f_lot = pl.f_lot ")
|
||||||
|
.AppendLine(" join [spcepiworld].[dbo].[part_dat] pd ")
|
||||||
|
.AppendLine(" on se.f_part = pd.f_part ")
|
||||||
|
.AppendLine(" join [spcepiworld].[dbo].[test_dat] td ")
|
||||||
|
.AppendLine(" on se.f_test = td.f_test ")
|
||||||
|
.AppendLine(" where se.f_flag = 0 ");
|
||||||
|
if (!string.IsNullOrEmpty(subGroupId))
|
||||||
|
_ = result.Append(" and se.f_sgrp = ").Append(subGroupId.Split(" ")[0]).AppendLine(" ");
|
||||||
|
if (!string.IsNullOrEmpty(process))
|
||||||
|
_ = result.Append(" and pr.f_name = '").Append(process).AppendLine("' ");
|
||||||
|
if (!string.IsNullOrEmpty(part))
|
||||||
|
_ = result.Append(" and pd.f_name = '").Append(part).AppendLine("' ");
|
||||||
|
if (!string.IsNullOrEmpty(job))
|
||||||
|
_ = result.Append(" and jd.f_name = '").Append(job).AppendLine("' ");
|
||||||
|
if (!string.IsNullOrEmpty(lot))
|
||||||
|
_ = result.Append(" and pl.f_name = '").Append(lot).AppendLine("' ");
|
||||||
|
if (!string.IsNullOrEmpty(dateTime) && (dateTime.Contains('-') || dateTime.Contains(' ') || dateTime.Contains(':')))
|
||||||
|
_ = result.Append(" and dateadd(HH, -7, (dateadd(SS, convert(bigint, se.f_sgtm), '19700101'))) = '").Append(dateTime).AppendLine("' ");
|
||||||
|
_ = result.AppendLine(" for json path ");
|
||||||
|
return result.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
private static StringBuilder GetForJsonPath(IDbConnectionFactory dbConnectionFactory, string commandText)
|
||||||
|
{
|
||||||
|
StringBuilder stringBuilder = new();
|
||||||
|
using DbConnection dbConnection = dbConnectionFactory.GetDbConnection();
|
||||||
|
DbCommand dbCommand = dbConnection.CreateCommand();
|
||||||
|
dbCommand.CommandText = commandText;
|
||||||
|
DbDataReader dbDataReader = dbCommand.ExecuteReader(CommandBehavior.SequentialAccess);
|
||||||
|
while (dbDataReader.Read())
|
||||||
|
_ = stringBuilder.Append(dbDataReader.GetString(0));
|
||||||
|
return stringBuilder;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static InfinityQSBase GetInfinityQSBase(IDbConnectionFactory dbConnectionFactory, IInfinityQSRepository infinityQSRepository, string subGroupId)
|
||||||
|
{
|
||||||
|
InfinityQSBase result;
|
||||||
|
string commandText = infinityQSRepository.GetCommandText(subGroupId, process: string.Empty, job: string.Empty, part: string.Empty, lot: string.Empty, dateTime: string.Empty);
|
||||||
|
StringBuilder stringBuilder = GetForJsonPath(dbConnectionFactory, commandText);
|
||||||
|
InfinityQSBase[]? results = JsonSerializer.Deserialize<InfinityQSBase[]>(stringBuilder.ToString(), new JsonSerializerOptions { PropertyNameCaseInsensitive = true });
|
||||||
|
if (results is null)
|
||||||
|
throw new NullReferenceException(nameof(results));
|
||||||
|
if (results.Select(l => l.SE_SGRP).Distinct().Count() != 1)
|
||||||
|
throw new NotSupportedException("Multiple ids are present!");
|
||||||
|
result = (from l in results orderby l.SE_TSNO, l.TD_TEST select l).First();
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
Result<InfinityQSBase[]> IInfinityQSRepository.GetData(string subGroupId)
|
||||||
|
{
|
||||||
|
Result<InfinityQSBase[]>? result;
|
||||||
|
if (!string.IsNullOrEmpty(_MockRoot))
|
||||||
|
{
|
||||||
|
string json = File.ReadAllText(Path.Combine(string.Concat(AppContext.BaseDirectory, _MockRoot), $"{_RepositoryName}-{nameof(IInfinityQSRepository.GetData)}.json"));
|
||||||
|
result = JsonSerializer.Deserialize<Result<InfinityQSBase[]>>(json);
|
||||||
|
if (result is null)
|
||||||
|
throw new NullReferenceException(nameof(result));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
IInfinityQSRepository infinityQSRepository = this;
|
||||||
|
InfinityQSBase infinityQSBase = GetInfinityQSBase(_DBConnectionFactory, infinityQSRepository, subGroupId);
|
||||||
|
string commandText = infinityQSRepository.GetCommandText(subGroupId, process: infinityQSBase.PR_NAME, job: infinityQSBase.JD_NAME, part: infinityQSBase.PD_NAME, lot: infinityQSBase.PL_NAME, dateTime: string.Concat(infinityQSBase.SE_SGTM));
|
||||||
|
StringBuilder stringBuilder = GetForJsonPath(_DBConnectionFactory, commandText);
|
||||||
|
InfinityQSBase[]? results = JsonSerializer.Deserialize<InfinityQSBase[]>(stringBuilder.ToString(), new JsonSerializerOptions { PropertyNameCaseInsensitive = true });
|
||||||
|
if (results is null)
|
||||||
|
throw new NullReferenceException(nameof(results));
|
||||||
|
result = new()
|
||||||
|
{
|
||||||
|
Results = results,
|
||||||
|
TotalRows = results.Length,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
Result<InfinityQSDescriptor[]> IInfinityQSRepository.GetDescriptors(string subGroupId)
|
||||||
|
{
|
||||||
|
Result<InfinityQSDescriptor[]>? result;
|
||||||
|
if (!string.IsNullOrEmpty(_MockRoot))
|
||||||
|
{
|
||||||
|
string json = File.ReadAllText(Path.Combine(string.Concat(AppContext.BaseDirectory, _MockRoot), $"{_RepositoryName}-{nameof(IInfinityQSRepository.GetDescriptors)}.json"));
|
||||||
|
result = JsonSerializer.Deserialize<Result<InfinityQSDescriptor[]>>(json);
|
||||||
|
if (result is null)
|
||||||
|
throw new NullReferenceException(nameof(result));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
IInfinityQSRepository infinityQSRepository = this;
|
||||||
|
string commandText = infinityQSRepository.GetCommandText(subGroupId);
|
||||||
|
StringBuilder stringBuilder = GetForJsonPath(_DBConnectionFactory, commandText);
|
||||||
|
InfinityQSDescriptor[]? results = JsonSerializer.Deserialize<InfinityQSDescriptor[]>(stringBuilder.ToString(), new JsonSerializerOptions { PropertyNameCaseInsensitive = true });
|
||||||
|
if (results is null)
|
||||||
|
throw new NullReferenceException(nameof(results));
|
||||||
|
result = new()
|
||||||
|
{
|
||||||
|
Results = results,
|
||||||
|
TotalRows = results.Length,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
Result<InfinityQSEvent[]> IInfinityQSRepository.GetEvents(string subGroupId)
|
||||||
|
{
|
||||||
|
Result<InfinityQSEvent[]>? result;
|
||||||
|
if (!string.IsNullOrEmpty(_MockRoot))
|
||||||
|
{
|
||||||
|
string json = File.ReadAllText(Path.Combine(string.Concat(AppContext.BaseDirectory, _MockRoot), $"{_RepositoryName}-{nameof(IInfinityQSRepository.GetEvents)}.json"));
|
||||||
|
result = JsonSerializer.Deserialize<Result<InfinityQSEvent[]>>(json);
|
||||||
|
if (result is null)
|
||||||
|
throw new NullReferenceException(nameof(result));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
InfinityQSEvent[]? results;
|
||||||
|
IInfinityQSRepository infinityQSRepository = this;
|
||||||
|
InfinityQSBase infinityQSBase = GetInfinityQSBase(_DBConnectionFactory, infinityQSRepository, subGroupId);
|
||||||
|
if (!infinityQSBase.EV_COUNT.HasValue || infinityQSBase.EV_COUNT.Value <= 0)
|
||||||
|
results = Array.Empty<InfinityQSEvent>();
|
||||||
|
else
|
||||||
|
{
|
||||||
|
string commandText = $"select * from [spcepiworld].[dbo].[evnt_inf] ev where ev.f_prcs = '{infinityQSBase.PR_NAME}' and ev.f_part = '{infinityQSBase.PD_NAME}' and ev.f_sgtm = {infinityQSBase.SE_SGTM} ";
|
||||||
|
StringBuilder stringBuilder = GetForJsonPath(_DBConnectionFactory, commandText);
|
||||||
|
results = JsonSerializer.Deserialize<InfinityQSEvent[]>(stringBuilder.ToString(), new JsonSerializerOptions { PropertyNameCaseInsensitive = true });
|
||||||
|
if (results is null)
|
||||||
|
throw new NullReferenceException(nameof(results));
|
||||||
|
}
|
||||||
|
result = new()
|
||||||
|
{
|
||||||
|
Results = results,
|
||||||
|
TotalRows = results.Length,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
Result<InfinityQSBase[]> IInfinityQSRepository.GetHeader(string subGroupId)
|
||||||
|
{
|
||||||
|
Result<InfinityQSBase[]>? result;
|
||||||
|
if (!string.IsNullOrEmpty(_MockRoot))
|
||||||
|
{
|
||||||
|
string json = File.ReadAllText(Path.Combine(string.Concat(AppContext.BaseDirectory, _MockRoot), $"{_RepositoryName}-{nameof(IInfinityQSRepository.GetHeader)}.json"));
|
||||||
|
result = JsonSerializer.Deserialize<Result<InfinityQSBase[]>>(json);
|
||||||
|
if (result is null)
|
||||||
|
throw new NullReferenceException(nameof(result));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
IInfinityQSRepository infinityQSRepository = this;
|
||||||
|
InfinityQSBase infinityQSBase = GetInfinityQSBase(_DBConnectionFactory, infinityQSRepository, subGroupId);
|
||||||
|
InfinityQSBase[] results = new InfinityQSBase[] { infinityQSBase };
|
||||||
|
result = new()
|
||||||
|
{
|
||||||
|
Results = results,
|
||||||
|
TotalRows = results.Length,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
242
Server/Repositories/InfinityQSV2Repository.cs
Normal file
242
Server/Repositories/InfinityQSV2Repository.cs
Normal file
@ -0,0 +1,242 @@
|
|||||||
|
using OI.Metrology.Shared.DataModels;
|
||||||
|
using OI.Metrology.Shared.Models.Stateless;
|
||||||
|
using OI.Metrology.Shared.Repositories;
|
||||||
|
using System.Data;
|
||||||
|
using System.Data.Common;
|
||||||
|
using System.Text;
|
||||||
|
using System.Text.Json;
|
||||||
|
|
||||||
|
namespace OI.Metrology.Server.Repository;
|
||||||
|
|
||||||
|
public class InfinityQSV2Repository : IInfinityQSV2Repository
|
||||||
|
{
|
||||||
|
|
||||||
|
private readonly string _MockRoot;
|
||||||
|
private readonly string _RepositoryName;
|
||||||
|
private readonly IDbConnectionFactory _DBConnectionFactory;
|
||||||
|
|
||||||
|
public InfinityQSV2Repository(string mockRoot, IDbConnectionFactory dbConnectionFactory)
|
||||||
|
{
|
||||||
|
_MockRoot = mockRoot;
|
||||||
|
_DBConnectionFactory = dbConnectionFactory;
|
||||||
|
_RepositoryName = nameof(InfinityQSV2Repository)[..^10];
|
||||||
|
}
|
||||||
|
|
||||||
|
string IInfinityQSV2Repository.GetCommandText(string subGroupId)
|
||||||
|
{
|
||||||
|
StringBuilder result = new();
|
||||||
|
if (string.IsNullOrEmpty(subGroupId))
|
||||||
|
throw new ArgumentException(nameof(subGroupId));
|
||||||
|
_ = result
|
||||||
|
.AppendLine(" select ")
|
||||||
|
.AppendLine(" sd.f_sgrp sd_sgrp, ")
|
||||||
|
.AppendLine(" sd.f_tsno sd_tsno, ")
|
||||||
|
.AppendLine(" dd.f_dsgp dd_dsgp, ")
|
||||||
|
.AppendLine(" dg.f_name gd_name, ")
|
||||||
|
.AppendLine(" dd.f_name dd_name ")
|
||||||
|
.AppendLine(" from [SPCEPIWORLD].[dbo].[SGRP_DSC] sd ")
|
||||||
|
.AppendLine(" join [SPCEPIWORLD].[dbo].[DESC_DAT] dd ")
|
||||||
|
.AppendLine(" on sd.f_dsgp = dd.f_dsgp ")
|
||||||
|
.AppendLine(" and sd.f_desc = dd.f_desc ")
|
||||||
|
.AppendLine(" join [SPCEPIWORLD].[dbo].[DESC_GRP] dg ")
|
||||||
|
.AppendLine(" on dd.f_dsgp = dg.f_dsgp ");
|
||||||
|
_ = result.Append(" where sd.f_sgrp = ").Append(subGroupId).AppendLine(" ");
|
||||||
|
_ = result.AppendLine(" for json path ");
|
||||||
|
return result.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
string IInfinityQSV2Repository.GetCommandText(string? subGroupId, string? process, string? job, string? part, string? lot, string? dateTime)
|
||||||
|
{
|
||||||
|
StringBuilder result = new();
|
||||||
|
const string dateTimeFormat = "yyyy-MM-dd HH:mm:ss";
|
||||||
|
if (!string.IsNullOrEmpty(dateTime) && (dateTime.Contains('-') || dateTime.Contains(' ') || dateTime.Contains(':')) && dateTime.Length != dateTimeFormat.Length)
|
||||||
|
throw new ArgumentException(nameof(dateTime));
|
||||||
|
_ = result
|
||||||
|
.AppendLine(" select ")
|
||||||
|
.AppendLine(" se.f_sgrp se_sgrp, ")
|
||||||
|
.AppendLine(" se.f_sgtm se_sgtm, ")
|
||||||
|
.AppendLine(" se.f_tsno se_tsno, ")
|
||||||
|
.AppendLine(" se.f_val se_val, ")
|
||||||
|
.AppendLine(" pr.f_name pr_name, ")
|
||||||
|
.AppendLine(" jd.f_name jd_name, ")
|
||||||
|
.AppendLine(" pl.f_name pl_name, ")
|
||||||
|
.AppendLine(" pd.f_name pd_name, ")
|
||||||
|
.AppendLine(" td.f_test td_test, ")
|
||||||
|
.AppendLine(" td.f_name td_name, ")
|
||||||
|
.AppendLine(" (select count(ev.f_evnt) ")
|
||||||
|
.AppendLine(" from [spcepiworld].[dbo].[evnt_inf] ev ")
|
||||||
|
.AppendLine(" where ev.f_prcs = pr.f_prcs ")
|
||||||
|
.AppendLine(" and ev.f_part = pd.f_part ")
|
||||||
|
.AppendLine(" and ev.f_sgtm = se.f_sgtm) ev_count ")
|
||||||
|
.AppendLine(" from [spcepiworld].[dbo].[sgrp_ext] se ")
|
||||||
|
.AppendLine(" join [spcepiworld].[dbo].[prcs_dat] pr ")
|
||||||
|
.AppendLine(" on se.f_prcs = pr.f_prcs ")
|
||||||
|
.AppendLine(" join [spcepiworld].[dbo].[job_dat] jd ")
|
||||||
|
.AppendLine(" on se.f_job = jd.f_job ")
|
||||||
|
.AppendLine(" join [spcepiworld].[dbo].[part_lot] pl ")
|
||||||
|
.AppendLine(" on se.f_lot = pl.f_lot ")
|
||||||
|
.AppendLine(" join [spcepiworld].[dbo].[part_dat] pd ")
|
||||||
|
.AppendLine(" on se.f_part = pd.f_part ")
|
||||||
|
.AppendLine(" join [spcepiworld].[dbo].[test_dat] td ")
|
||||||
|
.AppendLine(" on se.f_test = td.f_test ")
|
||||||
|
.AppendLine(" where se.f_flag = 0 ");
|
||||||
|
if (!string.IsNullOrEmpty(subGroupId))
|
||||||
|
_ = result.Append(" and se.f_sgrp = ").Append(subGroupId.Split(" ")[0]).AppendLine(" ");
|
||||||
|
if (!string.IsNullOrEmpty(process))
|
||||||
|
_ = result.Append(" and pr.f_name = '").Append(process).AppendLine("' ");
|
||||||
|
if (!string.IsNullOrEmpty(part))
|
||||||
|
_ = result.Append(" and pd.f_name = '").Append(part).AppendLine("' ");
|
||||||
|
if (!string.IsNullOrEmpty(job))
|
||||||
|
_ = result.Append(" and jd.f_name = '").Append(job).AppendLine("' ");
|
||||||
|
if (!string.IsNullOrEmpty(lot))
|
||||||
|
_ = result.Append(" and pl.f_name = '").Append(lot).AppendLine("' ");
|
||||||
|
if (!string.IsNullOrEmpty(dateTime) && (dateTime.Contains('-') || dateTime.Contains(' ') || dateTime.Contains(':')))
|
||||||
|
_ = result.Append(" and dateadd(HH, -7, (dateadd(SS, convert(bigint, se.f_sgtm), '19700101'))) = '").Append(dateTime).AppendLine("' ");
|
||||||
|
_ = result.AppendLine(" for json path ");
|
||||||
|
return result.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
private static StringBuilder GetForJsonPath(IDbConnectionFactory dbConnectionFactory, string commandText)
|
||||||
|
{
|
||||||
|
StringBuilder stringBuilder = new();
|
||||||
|
using DbConnection dbConnection = dbConnectionFactory.GetDbConnection();
|
||||||
|
DbCommand dbCommand = dbConnection.CreateCommand();
|
||||||
|
dbCommand.CommandText = commandText;
|
||||||
|
DbDataReader dbDataReader = dbCommand.ExecuteReader(CommandBehavior.SequentialAccess);
|
||||||
|
while (dbDataReader.Read())
|
||||||
|
_ = stringBuilder.Append(dbDataReader.GetString(0));
|
||||||
|
return stringBuilder;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static InfinityQSBaseV2 GetInfinityQSBase(IDbConnectionFactory dbConnectionFactory, IInfinityQSV2Repository infinityQSV2Repository, string subGroupId)
|
||||||
|
{
|
||||||
|
InfinityQSBaseV2 result;
|
||||||
|
string commandText = infinityQSV2Repository.GetCommandText(subGroupId, process: string.Empty, job: string.Empty, part: string.Empty, lot: string.Empty, dateTime: string.Empty);
|
||||||
|
StringBuilder stringBuilder = GetForJsonPath(dbConnectionFactory, commandText);
|
||||||
|
InfinityQSBase[]? collection = JsonSerializer.Deserialize<InfinityQSBase[]>(stringBuilder.ToString(), new JsonSerializerOptions { PropertyNameCaseInsensitive = true });
|
||||||
|
if (collection is null)
|
||||||
|
throw new NullReferenceException(nameof(collection));
|
||||||
|
InfinityQSBaseV2[] results = InfinityQSBase.Convert(collection);
|
||||||
|
if (results.Select(l => l.SubGroupId).Distinct().Count() != 1)
|
||||||
|
throw new NotSupportedException("Multiple ids are present!");
|
||||||
|
result = (from l in results orderby l.SiteNumber, l.VariableNumber select l).First();
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
Result<InfinityQSBaseV2[]> IInfinityQSV2Repository.GetData(string subGroupId)
|
||||||
|
{
|
||||||
|
Result<InfinityQSBaseV2[]>? result;
|
||||||
|
if (!string.IsNullOrEmpty(_MockRoot))
|
||||||
|
{
|
||||||
|
string json = File.ReadAllText(Path.Combine(string.Concat(AppContext.BaseDirectory, _MockRoot), $"{_RepositoryName}-{nameof(IInfinityQSV2Repository.GetData)}.json"));
|
||||||
|
result = JsonSerializer.Deserialize<Result<InfinityQSBaseV2[]>>(json);
|
||||||
|
if (result is null)
|
||||||
|
throw new NullReferenceException(nameof(result));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
IInfinityQSV2Repository infinityQSV2Repository = this;
|
||||||
|
InfinityQSBaseV2 infinityQSBase = GetInfinityQSBase(_DBConnectionFactory, infinityQSV2Repository, subGroupId);
|
||||||
|
string commandText = infinityQSV2Repository.GetCommandText(subGroupId, process: infinityQSBase.Process, job: infinityQSBase.Job, part: infinityQSBase.Part, lot: infinityQSBase.Lot, dateTime: string.Concat(infinityQSBase.SubGroupDateTime));
|
||||||
|
StringBuilder stringBuilder = GetForJsonPath(_DBConnectionFactory, commandText);
|
||||||
|
InfinityQSBase[]? collection = JsonSerializer.Deserialize<InfinityQSBase[]>(stringBuilder.ToString(), new JsonSerializerOptions { PropertyNameCaseInsensitive = true });
|
||||||
|
if (collection is null)
|
||||||
|
throw new NullReferenceException(nameof(collection));
|
||||||
|
InfinityQSBaseV2[] results = InfinityQSBase.Convert(collection);
|
||||||
|
result = new()
|
||||||
|
{
|
||||||
|
Results = results,
|
||||||
|
TotalRows = results.Length,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
Result<InfinityQSDescriptorV2[]> IInfinityQSV2Repository.GetDescriptors(string subGroupId)
|
||||||
|
{
|
||||||
|
Result<InfinityQSDescriptorV2[]>? result;
|
||||||
|
if (!string.IsNullOrEmpty(_MockRoot))
|
||||||
|
{
|
||||||
|
string json = File.ReadAllText(Path.Combine(string.Concat(AppContext.BaseDirectory, _MockRoot), $"{_RepositoryName}-{nameof(IInfinityQSV2Repository.GetDescriptors)}.json"));
|
||||||
|
result = JsonSerializer.Deserialize<Result<InfinityQSDescriptorV2[]>>(json);
|
||||||
|
if (result is null)
|
||||||
|
throw new NullReferenceException(nameof(result));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
IInfinityQSV2Repository infinityQSV2Repository = this;
|
||||||
|
string commandText = infinityQSV2Repository.GetCommandText(subGroupId);
|
||||||
|
StringBuilder stringBuilder = GetForJsonPath(_DBConnectionFactory, commandText);
|
||||||
|
InfinityQSDescriptor[]? collection = JsonSerializer.Deserialize<InfinityQSDescriptor[]>(stringBuilder.ToString(), new JsonSerializerOptions { PropertyNameCaseInsensitive = true });
|
||||||
|
if (collection is null)
|
||||||
|
throw new NullReferenceException(nameof(collection));
|
||||||
|
InfinityQSDescriptorV2[] results = InfinityQSDescriptor.Convert(collection);
|
||||||
|
result = new()
|
||||||
|
{
|
||||||
|
Results = results,
|
||||||
|
TotalRows = results.Length,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
Result<InfinityQSEventV2[]> IInfinityQSV2Repository.GetEvents(string subGroupId)
|
||||||
|
{
|
||||||
|
Result<InfinityQSEventV2[]>? result;
|
||||||
|
if (!string.IsNullOrEmpty(_MockRoot))
|
||||||
|
{
|
||||||
|
string json = File.ReadAllText(Path.Combine(string.Concat(AppContext.BaseDirectory, _MockRoot), $"{_RepositoryName}-{nameof(IInfinityQSV2Repository.GetEvents)}.json"));
|
||||||
|
result = JsonSerializer.Deserialize<Result<InfinityQSEventV2[]>>(json);
|
||||||
|
if (result is null)
|
||||||
|
throw new NullReferenceException(nameof(result));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
InfinityQSEvent[]? collection;
|
||||||
|
IInfinityQSV2Repository infinityQSV2Repository = this;
|
||||||
|
InfinityQSBaseV2 infinityQSBase = GetInfinityQSBase(_DBConnectionFactory, infinityQSV2Repository, subGroupId);
|
||||||
|
if (!infinityQSBase.EventCount.HasValue || infinityQSBase.EventCount.Value <= 0)
|
||||||
|
collection = Array.Empty<InfinityQSEvent>();
|
||||||
|
else
|
||||||
|
{
|
||||||
|
string commandText = $"select * from [spcepiworld].[dbo].[evnt_inf] ev where ev.f_prcs = '{infinityQSBase.Process}' and ev.f_part = '{infinityQSBase.Part}' and ev.f_sgtm = {infinityQSBase.SubGroupDateTime} ";
|
||||||
|
StringBuilder stringBuilder = GetForJsonPath(_DBConnectionFactory, commandText);
|
||||||
|
collection = JsonSerializer.Deserialize<InfinityQSEvent[]>(stringBuilder.ToString(), new JsonSerializerOptions { PropertyNameCaseInsensitive = true });
|
||||||
|
if (collection is null)
|
||||||
|
throw new NullReferenceException(nameof(collection));
|
||||||
|
}
|
||||||
|
InfinityQSEventV2[] results = InfinityQSEvent.Convert(collection);
|
||||||
|
result = new()
|
||||||
|
{
|
||||||
|
Results = results,
|
||||||
|
TotalRows = results.Length,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
Result<InfinityQSBaseV2[]> IInfinityQSV2Repository.GetHeader(string subGroupId)
|
||||||
|
{
|
||||||
|
Result<InfinityQSBaseV2[]>? result;
|
||||||
|
if (!string.IsNullOrEmpty(_MockRoot))
|
||||||
|
{
|
||||||
|
string json = File.ReadAllText(Path.Combine(string.Concat(AppContext.BaseDirectory, _MockRoot), $"{_RepositoryName}-{nameof(IInfinityQSV2Repository.GetHeader)}.json"));
|
||||||
|
result = JsonSerializer.Deserialize<Result<InfinityQSBaseV2[]>>(json);
|
||||||
|
if (result is null)
|
||||||
|
throw new NullReferenceException(nameof(result));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
IInfinityQSV2Repository infinityQSV2Repository = this;
|
||||||
|
InfinityQSBaseV2 infinityQSBase = GetInfinityQSBase(_DBConnectionFactory, infinityQSV2Repository, subGroupId);
|
||||||
|
InfinityQSBaseV2[] results = new InfinityQSBaseV2[] { infinityQSBase };
|
||||||
|
result = new()
|
||||||
|
{
|
||||||
|
Results = results,
|
||||||
|
TotalRows = results.Length,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -7,6 +7,7 @@ using OI.Metrology.Shared.Models.Stateless;
|
|||||||
using OI.Metrology.Shared.Repositories;
|
using OI.Metrology.Shared.Repositories;
|
||||||
using System.Data;
|
using System.Data;
|
||||||
using System.Data.Common;
|
using System.Data.Common;
|
||||||
|
using System.Text;
|
||||||
using System.Transactions;
|
using System.Transactions;
|
||||||
|
|
||||||
#pragma warning disable CS8600, CS8602, CS8603, CS8604, CS8625
|
#pragma warning disable CS8600, CS8602, CS8603, CS8604, CS8625
|
||||||
@ -16,38 +17,38 @@ namespace OI.Metrology.Server.Repositories;
|
|||||||
public class MetrologyRepository : IMetrologyRepository
|
public class MetrologyRepository : IMetrologyRepository
|
||||||
{
|
{
|
||||||
private readonly string _MockRoot;
|
private readonly string _MockRoot;
|
||||||
private readonly IMemoryCache _Cache;
|
private readonly string _RepositoryName;
|
||||||
|
private readonly IMemoryCache _MemoryCache;
|
||||||
private readonly IDbConnectionFactory _DBConnectionFactory;
|
private readonly IDbConnectionFactory _DBConnectionFactory;
|
||||||
|
|
||||||
public MetrologyRepository(AppSettings appSettings, IDbConnectionFactory dbConnectionFactory, IMemoryCache memoryCache)
|
public MetrologyRepository(AppSettings appSettings, IDbConnectionFactory dbConnectionFactory, IMemoryCache memoryCache)
|
||||||
{
|
{
|
||||||
_Cache = memoryCache;
|
_MemoryCache = memoryCache;
|
||||||
_MockRoot = appSettings.MockRoot;
|
_MockRoot = appSettings.MockRoot;
|
||||||
_DBConnectionFactory = dbConnectionFactory;
|
_DBConnectionFactory = dbConnectionFactory;
|
||||||
|
_RepositoryName = nameof(MetrologyRepository)[..^10];
|
||||||
}
|
}
|
||||||
|
|
||||||
private DbConnection GetDbConnection() => _DBConnectionFactory.GetDbConnection();
|
|
||||||
|
|
||||||
protected DbProviderFactory GetDbProviderFactory(IDbConnection conn) =>
|
protected DbProviderFactory GetDbProviderFactory(IDbConnection conn) =>
|
||||||
DbProviderFactories.GetFactory(conn.GetType().Namespace);
|
DbProviderFactories.GetFactory(conn.GetType().Namespace);
|
||||||
|
|
||||||
public TransactionScope StartTransaction() => new();
|
internal static TransactionScope StartTransaction() => new();
|
||||||
|
|
||||||
protected void CacheItem(string key, object v)
|
protected void CacheItem(string key, object v)
|
||||||
{
|
{
|
||||||
System.Diagnostics.Debug.WriteLine("CacheItem: " + key);
|
System.Diagnostics.Debug.WriteLine("CacheItem: " + key);
|
||||||
|
|
||||||
_ = _Cache.Set(key, v, new MemoryCacheEntryOptions().SetSlidingExpiration(TimeSpan.FromHours(1)));
|
_ = _MemoryCache.Set(key, v, new MemoryCacheEntryOptions().SetSlidingExpiration(TimeSpan.FromHours(1)));
|
||||||
}
|
}
|
||||||
|
|
||||||
public IEnumerable<ToolType> GetToolTypes()
|
internal IEnumerable<ToolType> GetToolTypes()
|
||||||
{
|
{
|
||||||
IEnumerable<ToolType> cached;
|
IEnumerable<ToolType> cached;
|
||||||
string cacheKey = "GetToolTypes";
|
string cacheKey = "GetToolTypes";
|
||||||
if (_Cache.TryGetValue(cacheKey, out cached))
|
if (_MemoryCache.TryGetValue(cacheKey, out cached))
|
||||||
return cached;
|
return cached;
|
||||||
|
|
||||||
using DbConnection conn = GetDbConnection();
|
using DbConnection conn = _DBConnectionFactory.GetDbConnection();
|
||||||
IEnumerable<ToolType> r = conn.Query<ToolType>("SELECT * FROM ToolType");
|
IEnumerable<ToolType> r = conn.Query<ToolType>("SELECT * FROM ToolType");
|
||||||
|
|
||||||
CacheItem(cacheKey, r);
|
CacheItem(cacheKey, r);
|
||||||
@ -55,14 +56,14 @@ public class MetrologyRepository : IMetrologyRepository
|
|||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ToolType GetToolTypeByName(string name)
|
internal ToolType GetToolTypeByName(string name)
|
||||||
{
|
{
|
||||||
ToolType cached;
|
ToolType cached;
|
||||||
string cacheKey = "GetToolTypeByName_" + name;
|
string cacheKey = "GetToolTypeByName_" + name;
|
||||||
if (_Cache.TryGetValue(cacheKey, out cached))
|
if (_MemoryCache.TryGetValue(cacheKey, out cached))
|
||||||
return cached;
|
return cached;
|
||||||
|
|
||||||
using DbConnection conn = GetDbConnection();
|
using DbConnection conn = _DBConnectionFactory.GetDbConnection();
|
||||||
ToolType r = conn.QueryFirstOrDefault<ToolType>(
|
ToolType r = conn.QueryFirstOrDefault<ToolType>(
|
||||||
"SELECT * FROM ToolType WHERE ToolTypeName = @name",
|
"SELECT * FROM ToolType WHERE ToolTypeName = @name",
|
||||||
new { name });
|
new { name });
|
||||||
@ -72,14 +73,14 @@ public class MetrologyRepository : IMetrologyRepository
|
|||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ToolType GetToolTypeByID(int id)
|
internal ToolType GetToolTypeByID(int id)
|
||||||
{
|
{
|
||||||
ToolType cached;
|
ToolType cached;
|
||||||
string cacheKey = "GetToolTypeByID_" + id.ToString();
|
string cacheKey = "GetToolTypeByID_" + id.ToString();
|
||||||
if (_Cache.TryGetValue(cacheKey, out cached))
|
if (_MemoryCache.TryGetValue(cacheKey, out cached))
|
||||||
return cached;
|
return cached;
|
||||||
|
|
||||||
using DbConnection conn = GetDbConnection();
|
using DbConnection conn = _DBConnectionFactory.GetDbConnection();
|
||||||
ToolType r = conn.QueryFirstOrDefault<ToolType>(
|
ToolType r = conn.QueryFirstOrDefault<ToolType>(
|
||||||
"SELECT * FROM ToolType WHERE ID = @id",
|
"SELECT * FROM ToolType WHERE ID = @id",
|
||||||
new { id });
|
new { id });
|
||||||
@ -89,14 +90,14 @@ public class MetrologyRepository : IMetrologyRepository
|
|||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
public IEnumerable<ToolTypeMetadata> GetToolTypeMetadataByToolTypeID(int id)
|
internal IEnumerable<ToolTypeMetadata> GetToolTypeMetadataByToolTypeID(int id)
|
||||||
{
|
{
|
||||||
IEnumerable<ToolTypeMetadata> cached;
|
IEnumerable<ToolTypeMetadata> cached;
|
||||||
string cacheKey = "GetToolTypeMetadataByToolTypeID_" + id.ToString();
|
string cacheKey = "GetToolTypeMetadataByToolTypeID_" + id.ToString();
|
||||||
if (_Cache.TryGetValue(cacheKey, out cached))
|
if (_MemoryCache.TryGetValue(cacheKey, out cached))
|
||||||
return cached;
|
return cached;
|
||||||
|
|
||||||
using DbConnection conn = GetDbConnection();
|
using DbConnection conn = _DBConnectionFactory.GetDbConnection();
|
||||||
IEnumerable<ToolTypeMetadata> r = conn.Query<ToolTypeMetadata>(
|
IEnumerable<ToolTypeMetadata> r = conn.Query<ToolTypeMetadata>(
|
||||||
"SELECT * FROM ToolTypeMetadata WHERE ToolTypeID = @id",
|
"SELECT * FROM ToolTypeMetadata WHERE ToolTypeID = @id",
|
||||||
new { id });
|
new { id });
|
||||||
@ -106,10 +107,10 @@ public class MetrologyRepository : IMetrologyRepository
|
|||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
public long InsertToolDataJSON(JToken jsonrow, long headerId, List<ToolTypeMetadata> metaData, string tableName)
|
internal long InsertToolDataJSON(JToken jsonrow, long headerId, List<ToolTypeMetadata> metaData, string tableName)
|
||||||
{
|
{
|
||||||
long r = -1;
|
long r = -1;
|
||||||
using (DbConnection conn = GetDbConnection())
|
using (DbConnection conn = _DBConnectionFactory.GetDbConnection())
|
||||||
{
|
{
|
||||||
bool isHeader = headerId <= 0;
|
bool isHeader = headerId <= 0;
|
||||||
|
|
||||||
@ -261,12 +262,12 @@ public class MetrologyRepository : IMetrologyRepository
|
|||||||
return Convert.ToInt64(o);
|
return Convert.ToInt64(o);
|
||||||
}
|
}
|
||||||
|
|
||||||
public DataTable ExportData(string spName, DateTime startTime, DateTime endTime)
|
internal DataTable ExportData(string spName, DateTime startTime, DateTime endTime)
|
||||||
{
|
{
|
||||||
DataTable dt = new();
|
DataTable dt = new();
|
||||||
DateTime endTimeLocal = endTime.ToLocalTime();
|
DateTime endTimeLocal = endTime.ToLocalTime();
|
||||||
DateTime startTimeLocal = startTime.ToLocalTime();
|
DateTime startTimeLocal = startTime.ToLocalTime();
|
||||||
using (DbConnection conn = GetDbConnection())
|
using (DbConnection conn = _DBConnectionFactory.GetDbConnection())
|
||||||
{
|
{
|
||||||
DbProviderFactory factory = GetDbProviderFactory(conn);
|
DbProviderFactory factory = GetDbProviderFactory(conn);
|
||||||
|
|
||||||
@ -287,7 +288,7 @@ public class MetrologyRepository : IMetrologyRepository
|
|||||||
|
|
||||||
protected string FormDynamicSelectQuery(IEnumerable<ToolTypeMetadata> fields, string tableName)
|
protected string FormDynamicSelectQuery(IEnumerable<ToolTypeMetadata> fields, string tableName)
|
||||||
{
|
{
|
||||||
System.Text.StringBuilder sb = new();
|
StringBuilder sb = new();
|
||||||
_ = sb.Append("SELECT ");
|
_ = sb.Append("SELECT ");
|
||||||
bool firstField = true;
|
bool firstField = true;
|
||||||
foreach (ToolTypeMetadata f in fields)
|
foreach (ToolTypeMetadata f in fields)
|
||||||
@ -311,7 +312,7 @@ public class MetrologyRepository : IMetrologyRepository
|
|||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
public DataTable GetHeaders(int toolTypeId, DateTime? startTime, DateTime? endTime, int? pageNo, int? pageSize, long? headerId, out long totalRecords)
|
internal DataTable GetHeaders(int toolTypeId, DateTime? startTime, DateTime? endTime, int? pageNo, int? pageSize, long? headerId, out long totalRecords)
|
||||||
{
|
{
|
||||||
ToolType tt = GetToolTypeByID(toolTypeId);
|
ToolType tt = GetToolTypeByID(toolTypeId);
|
||||||
if (tt is null)
|
if (tt is null)
|
||||||
@ -322,9 +323,9 @@ public class MetrologyRepository : IMetrologyRepository
|
|||||||
throw new Exception("Invalid tool type metadata");
|
throw new Exception("Invalid tool type metadata");
|
||||||
|
|
||||||
DataTable dt = new();
|
DataTable dt = new();
|
||||||
using (DbConnection conn = GetDbConnection())
|
using (DbConnection conn = _DBConnectionFactory.GetDbConnection())
|
||||||
{
|
{
|
||||||
System.Text.StringBuilder sb = new();
|
StringBuilder sb = new();
|
||||||
_ = sb.Append(
|
_ = sb.Append(
|
||||||
FormDynamicSelectQuery(
|
FormDynamicSelectQuery(
|
||||||
md.Where(m => m.Header == true).ToList(),
|
md.Where(m => m.Header == true).ToList(),
|
||||||
@ -404,7 +405,7 @@ public class MetrologyRepository : IMetrologyRepository
|
|||||||
return dt;
|
return dt;
|
||||||
}
|
}
|
||||||
|
|
||||||
public DataTable GetData(int toolTypeId, long headerid)
|
internal DataTable GetData(int toolTypeId, long headerid)
|
||||||
{
|
{
|
||||||
ToolType tt = GetToolTypeByID(toolTypeId);
|
ToolType tt = GetToolTypeByID(toolTypeId);
|
||||||
if (tt is null)
|
if (tt is null)
|
||||||
@ -415,9 +416,9 @@ public class MetrologyRepository : IMetrologyRepository
|
|||||||
throw new Exception("Invalid tool type metadata");
|
throw new Exception("Invalid tool type metadata");
|
||||||
|
|
||||||
DataTable dt = new();
|
DataTable dt = new();
|
||||||
using (DbConnection conn = GetDbConnection())
|
using (DbConnection conn = _DBConnectionFactory.GetDbConnection())
|
||||||
{
|
{
|
||||||
System.Text.StringBuilder sb = new();
|
StringBuilder sb = new();
|
||||||
_ = sb.Append(
|
_ = sb.Append(
|
||||||
FormDynamicSelectQuery(
|
FormDynamicSelectQuery(
|
||||||
md.Where(m => m.Header == false).OrderBy(m => m.GridDisplayOrder).ToList(),
|
md.Where(m => m.Header == false).OrderBy(m => m.GridDisplayOrder).ToList(),
|
||||||
@ -499,32 +500,32 @@ public class MetrologyRepository : IMetrologyRepository
|
|||||||
return dt;
|
return dt;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Guid GetHeaderAttachmentID(int toolTypeId, long headerId)
|
internal Guid GetHeaderAttachmentID(int toolTypeId, long headerId)
|
||||||
{
|
{
|
||||||
ToolType tt = GetToolTypeByID(toolTypeId);
|
ToolType tt = GetToolTypeByID(toolTypeId);
|
||||||
if (tt is null)
|
if (tt is null)
|
||||||
throw new Exception("Invalid tool type ID");
|
throw new Exception("Invalid tool type ID");
|
||||||
|
|
||||||
using DbConnection conn = GetDbConnection();
|
using DbConnection conn = _DBConnectionFactory.GetDbConnection();
|
||||||
string sql =
|
string sql =
|
||||||
$"UPDATE [{tt.HeaderTableName}] SET AttachmentID = NEWID() WHERE ID = @HeaderID AND AttachmentID IS NULL; " +
|
$"UPDATE [{tt.HeaderTableName}] SET AttachmentID = NEWID() WHERE ID = @HeaderID AND AttachmentID IS NULL; " +
|
||||||
$"SELECT AttachmentID FROM [{tt.HeaderTableName}] WHERE ID = @HeaderID";
|
$"SELECT AttachmentID FROM [{tt.HeaderTableName}] WHERE ID = @HeaderID";
|
||||||
return conn.ExecuteScalar<Guid>(sql, param: new { HeaderID = headerId });
|
return conn.ExecuteScalar<Guid>(sql, param: new { HeaderID = headerId });
|
||||||
}
|
}
|
||||||
public string GetHeaderInsertDate(int toolTypeId, long headerId)
|
internal string GetHeaderInsertDate(int toolTypeId, long headerId)
|
||||||
{
|
{
|
||||||
ToolType tt = GetToolTypeByID(toolTypeId);
|
ToolType tt = GetToolTypeByID(toolTypeId);
|
||||||
if (tt is null)
|
if (tt is null)
|
||||||
throw new Exception("Invalid tool type ID");
|
throw new Exception("Invalid tool type ID");
|
||||||
|
|
||||||
using DbConnection conn = GetDbConnection();
|
using DbConnection conn = _DBConnectionFactory.GetDbConnection();
|
||||||
string sql =
|
string sql =
|
||||||
$"SELECT CONVERT(varchar, case when [InsertDate] < [Date] or [Date] is null then [InsertDate] else [Date] end, 120) d FROM[{tt.HeaderTableName}] where ID = @HeaderID";
|
$"SELECT CONVERT(varchar, case when [InsertDate] < [Date] or [Date] is null then [InsertDate] else [Date] end, 120) d FROM[{tt.HeaderTableName}] where ID = @HeaderID";
|
||||||
return conn.ExecuteScalar<string>(sql, param: new { HeaderID = headerId });
|
return conn.ExecuteScalar<string>(sql, param: new { HeaderID = headerId });
|
||||||
}
|
}
|
||||||
public string GetAttachmentInsertDateByGUID(string tableName, Guid attachmentId)
|
internal string GetAttachmentInsertDateByGUID(string tableName, Guid attachmentId)
|
||||||
{
|
{
|
||||||
using DbConnection conn = GetDbConnection();
|
using DbConnection conn = _DBConnectionFactory.GetDbConnection();
|
||||||
string sql = "";
|
string sql = "";
|
||||||
if (tableName is "SP1RunData" or "TencorRunData")
|
if (tableName is "SP1RunData" or "TencorRunData")
|
||||||
{
|
{
|
||||||
@ -537,32 +538,32 @@ public class MetrologyRepository : IMetrologyRepository
|
|||||||
|
|
||||||
return conn.ExecuteScalar<string>(sql, param: new { AttachmentID = attachmentId });
|
return conn.ExecuteScalar<string>(sql, param: new { AttachmentID = attachmentId });
|
||||||
}
|
}
|
||||||
public void SetHeaderDirName(string tableName, long headerId, string dateDir)
|
internal void SetHeaderDirName(string tableName, long headerId, string dateDir)
|
||||||
{
|
{
|
||||||
using DbConnection conn = GetDbConnection();
|
using DbConnection conn = _DBConnectionFactory.GetDbConnection();
|
||||||
_ = conn.Execute($"UPDATE [{tableName}] SET AttachDirName = @AttachDirName WHERE ID = @HeaderID;", new { HeaderID = headerId, AttachDirName = dateDir });
|
_ = conn.Execute($"UPDATE [{tableName}] SET AttachDirName = @AttachDirName WHERE ID = @HeaderID;", new { HeaderID = headerId, AttachDirName = dateDir });
|
||||||
}
|
}
|
||||||
|
|
||||||
public Guid GetDataAttachmentID(int toolTypeId, long headerId, string title)
|
internal Guid GetDataAttachmentID(int toolTypeId, long headerId, string title)
|
||||||
{
|
{
|
||||||
ToolType tt = GetToolTypeByID(toolTypeId);
|
ToolType tt = GetToolTypeByID(toolTypeId);
|
||||||
if (tt is null)
|
if (tt is null)
|
||||||
throw new Exception("Invalid tool type ID");
|
throw new Exception("Invalid tool type ID");
|
||||||
|
|
||||||
using DbConnection conn = GetDbConnection();
|
using DbConnection conn = _DBConnectionFactory.GetDbConnection();
|
||||||
string sql =
|
string sql =
|
||||||
$"UPDATE [{tt.DataTableName}] SET AttachmentID = NEWID() WHERE HeaderID = @HeaderID AND Title = @Title AND AttachmentID IS NULL; " +
|
$"UPDATE [{tt.DataTableName}] SET AttachmentID = NEWID() WHERE HeaderID = @HeaderID AND Title = @Title AND AttachmentID IS NULL; " +
|
||||||
$"SELECT AttachmentID FROM [{tt.DataTableName}] WHERE HeaderID = @HeaderID AND Title = @Title";
|
$"SELECT AttachmentID FROM [{tt.DataTableName}] WHERE HeaderID = @HeaderID AND Title = @Title";
|
||||||
return conn.ExecuteScalar<Guid>(sql, param: new { HeaderID = headerId, Title = title });
|
return conn.ExecuteScalar<Guid>(sql, param: new { HeaderID = headerId, Title = title });
|
||||||
}
|
}
|
||||||
// J Ouellette Added
|
// J Ouellette Added
|
||||||
public string GetDataInsertDate(int toolTypeId, long headerId, string title)
|
internal string GetDataInsertDate(int toolTypeId, long headerId, string title)
|
||||||
{
|
{
|
||||||
ToolType tt = GetToolTypeByID(toolTypeId);
|
ToolType tt = GetToolTypeByID(toolTypeId);
|
||||||
if (tt is null)
|
if (tt is null)
|
||||||
throw new Exception("Invalid tool type ID");
|
throw new Exception("Invalid tool type ID");
|
||||||
|
|
||||||
using DbConnection conn = GetDbConnection();
|
using DbConnection conn = _DBConnectionFactory.GetDbConnection();
|
||||||
string sql = "";
|
string sql = "";
|
||||||
if (tt.DataTableName is "" or "")
|
if (tt.DataTableName is "" or "")
|
||||||
{
|
{
|
||||||
@ -575,21 +576,21 @@ public class MetrologyRepository : IMetrologyRepository
|
|||||||
|
|
||||||
return conn.ExecuteScalar<string>(sql, param: new { HeaderID = headerId, Title = title });
|
return conn.ExecuteScalar<string>(sql, param: new { HeaderID = headerId, Title = title });
|
||||||
}
|
}
|
||||||
public void SetDataDirName(string tableName, long headerId, string title, string dateDir)
|
internal void SetDataDirName(string tableName, long headerId, string title, string dateDir)
|
||||||
{
|
{
|
||||||
using DbConnection conn = GetDbConnection();
|
using DbConnection conn = _DBConnectionFactory.GetDbConnection();
|
||||||
string sql =
|
string sql =
|
||||||
$"UPDATE [{tableName}] SET AttachDirName = @AttachDirName WHERE HeaderID = @HeaderID AND Title = @Title;";
|
$"UPDATE [{tableName}] SET AttachDirName = @AttachDirName WHERE HeaderID = @HeaderID AND Title = @Title;";
|
||||||
_ = conn.Execute(sql, param: new { HeaderID = headerId, Title = title, AttachDirName = dateDir });
|
_ = conn.Execute(sql, param: new { HeaderID = headerId, Title = title, AttachDirName = dateDir });
|
||||||
}
|
}
|
||||||
|
|
||||||
public void PurgeExistingData(int toolTypeId, string title)
|
internal void PurgeExistingData(int toolTypeId, string title)
|
||||||
{
|
{
|
||||||
using DbConnection conn = GetDbConnection();
|
using DbConnection conn = _DBConnectionFactory.GetDbConnection();
|
||||||
_ = conn.Execute("PurgeExistingData", param: new { ToolTypeID = toolTypeId, Title = title }, commandType: CommandType.StoredProcedure);
|
_ = conn.Execute("PurgeExistingData", param: new { ToolTypeID = toolTypeId, Title = title }, commandType: CommandType.StoredProcedure);
|
||||||
}
|
}
|
||||||
|
|
||||||
public DataSet GetOIExportData(int toolTypeId, long headerid)
|
internal DataSet GetOIExportData(int toolTypeId, long headerid)
|
||||||
{
|
{
|
||||||
ToolType tt = GetToolTypeByID(toolTypeId);
|
ToolType tt = GetToolTypeByID(toolTypeId);
|
||||||
if (tt is null)
|
if (tt is null)
|
||||||
@ -599,7 +600,7 @@ public class MetrologyRepository : IMetrologyRepository
|
|||||||
throw new Exception("OpenInsight export not available for " + tt.ToolTypeName);
|
throw new Exception("OpenInsight export not available for " + tt.ToolTypeName);
|
||||||
|
|
||||||
DataSet ds = new();
|
DataSet ds = new();
|
||||||
using (DbConnection conn = GetDbConnection())
|
using (DbConnection conn = _DBConnectionFactory.GetDbConnection())
|
||||||
{
|
{
|
||||||
DbProviderFactory factory = GetDbProviderFactory(conn);
|
DbProviderFactory factory = GetDbProviderFactory(conn);
|
||||||
|
|
||||||
@ -618,26 +619,60 @@ public class MetrologyRepository : IMetrologyRepository
|
|||||||
return ds;
|
return ds;
|
||||||
}
|
}
|
||||||
|
|
||||||
public IEnumerable<HeaderCommon> GetHeaderTitles(int toolTypeId, int? pageNo, int? pageSize, out long totalRecords)
|
private HeaderCommon[] GetHeaderTitles()
|
||||||
{
|
{
|
||||||
ToolType tt = GetToolTypeByID(toolTypeId);
|
IEnumerable<HeaderCommon> results;
|
||||||
|
ToolType[] toolTypes = GetToolTypes().ToArray();
|
||||||
|
|
||||||
|
if (!toolTypes.Any() || toolTypes.FirstOrDefault() is null)
|
||||||
|
throw new Exception("Invalid tool type ID");
|
||||||
|
|
||||||
|
ToolType tt;
|
||||||
|
StringBuilder stringBuilder = new();
|
||||||
|
using DbConnection conn = _DBConnectionFactory.GetDbConnection();
|
||||||
|
_ = stringBuilder.Append(" SELECT * FROM ( ");
|
||||||
|
for (int i = 0; i < toolTypes.Length; i++)
|
||||||
|
{
|
||||||
|
tt = toolTypes[i];
|
||||||
|
_ = stringBuilder.Append($" SELECT ID, InsertDate, AttachmentID, Title, [Date], {tt.ID} AS ToolTypeID, '{tt.ToolTypeName}' AS ToolTypeName, Reactor, RDS, PSN FROM {tt.HeaderTableName} ");
|
||||||
|
if (i != toolTypes.Length - 1)
|
||||||
|
_ = stringBuilder.Append(" UNION ALL ");
|
||||||
|
}
|
||||||
|
_ = stringBuilder.Append(" ) AS A ORDER BY A.[Date] DESC ");
|
||||||
|
results = conn.Query<HeaderCommon>(stringBuilder.ToString()).ToArray();
|
||||||
|
|
||||||
|
return results.ToArray();
|
||||||
|
}
|
||||||
|
|
||||||
|
internal HeaderCommon[] GetHeaderTitles(int? toolTypeId, int? pageNo, int? pageSize, out long totalRecords)
|
||||||
|
{
|
||||||
|
HeaderCommon[] headers;
|
||||||
|
if (toolTypeId is not null && (pageNo is not null || pageSize is not null))
|
||||||
|
throw new Exception();
|
||||||
|
|
||||||
|
if (toolTypeId is null)
|
||||||
|
{
|
||||||
|
headers = GetHeaderTitles();
|
||||||
|
totalRecords = headers.Length;
|
||||||
|
return headers;
|
||||||
|
}
|
||||||
|
|
||||||
|
ToolType tt = GetToolTypeByID(toolTypeId.Value);
|
||||||
if (tt is null)
|
if (tt is null)
|
||||||
throw new Exception("Invalid tool type ID");
|
throw new Exception("Invalid tool type ID");
|
||||||
|
|
||||||
using DbConnection conn = GetDbConnection();
|
using DbConnection conn = _DBConnectionFactory.GetDbConnection();
|
||||||
string sql = $"SELECT ID, InsertDate, AttachmentID, Title, [Date] FROM {tt.HeaderTableName} ORDER BY [Date] DESC ";
|
string sql = $"SELECT ID, InsertDate, AttachmentID, Title, [Date], {tt.ID} AS ToolTypeID, '{tt.ToolTypeName}' AS ToolTypeName, Reactor, RDS, PSN FROM {tt.HeaderTableName} ORDER BY [Date] DESC ";
|
||||||
|
|
||||||
IEnumerable<HeaderCommon> headers;
|
|
||||||
|
|
||||||
if (pageNo.HasValue && pageSize.HasValue)
|
if (pageNo.HasValue && pageSize.HasValue)
|
||||||
{
|
{
|
||||||
sql += "OFFSET @PageNum * @PageSize ROWS FETCH NEXT @PageSize ROWS ONLY";
|
sql += "OFFSET @PageNum * @PageSize ROWS FETCH NEXT @PageSize ROWS ONLY";
|
||||||
|
|
||||||
headers = conn.Query<HeaderCommon>(sql, param: new { PageNum = pageNo.Value, PageSize = pageSize.Value }).ToList();
|
headers = conn.Query<HeaderCommon>(sql, param: new { PageNum = pageNo.Value, PageSize = pageSize.Value }).ToArray();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
headers = conn.Query<HeaderCommon>(sql).ToList();
|
headers = conn.Query<HeaderCommon>(sql).ToArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
sql = $"SELECT COUNT(*) FROM [{tt.HeaderTableName}] ";
|
sql = $"SELECT COUNT(*) FROM [{tt.HeaderTableName}] ";
|
||||||
@ -647,7 +682,7 @@ public class MetrologyRepository : IMetrologyRepository
|
|||||||
return headers;
|
return headers;
|
||||||
}
|
}
|
||||||
|
|
||||||
public IEnumerable<KeyValuePair<string, string>> GetHeaderFields(int toolTypeId, long headerid)
|
internal IEnumerable<KeyValuePair<string, string>> GetHeaderFields(int toolTypeId, long headerid)
|
||||||
{
|
{
|
||||||
ToolType tt = GetToolTypeByID(toolTypeId);
|
ToolType tt = GetToolTypeByID(toolTypeId);
|
||||||
if (tt is null)
|
if (tt is null)
|
||||||
@ -659,7 +694,7 @@ public class MetrologyRepository : IMetrologyRepository
|
|||||||
|
|
||||||
List<KeyValuePair<string, string>> r = new();
|
List<KeyValuePair<string, string>> r = new();
|
||||||
|
|
||||||
using (DbConnection conn = GetDbConnection())
|
using (DbConnection conn = _DBConnectionFactory.GetDbConnection())
|
||||||
{
|
{
|
||||||
DbProviderFactory factory = GetDbProviderFactory(conn);
|
DbProviderFactory factory = GetDbProviderFactory(conn);
|
||||||
|
|
||||||
@ -694,31 +729,31 @@ public class MetrologyRepository : IMetrologyRepository
|
|||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
public IEnumerable<AwaitingDisposition> GetAwaitingDisposition()
|
internal IEnumerable<AwaitingDisposition> GetAwaitingDisposition()
|
||||||
{
|
{
|
||||||
IEnumerable<AwaitingDisposition>? r;
|
IEnumerable<AwaitingDisposition>? r;
|
||||||
if (!string.IsNullOrEmpty(_MockRoot))
|
if (!string.IsNullOrEmpty(_MockRoot))
|
||||||
{
|
{
|
||||||
string json = File.ReadAllText(Path.Combine(string.Concat(AppContext.BaseDirectory, _MockRoot), "GetAwaitingDispositionApi.json"));
|
string json = File.ReadAllText(Path.Combine(string.Concat(AppContext.BaseDirectory, _MockRoot), $"{_RepositoryName}-{nameof(IMetrologyRepository.GetAwaitingDisposition)}.json"));
|
||||||
r = System.Text.Json.JsonSerializer.Deserialize<IEnumerable<AwaitingDisposition>>(json);
|
r = System.Text.Json.JsonSerializer.Deserialize<IEnumerable<AwaitingDisposition>>(json);
|
||||||
if (r is null)
|
if (r is null)
|
||||||
throw new NullReferenceException(nameof(r));
|
throw new NullReferenceException(nameof(r));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
using DbConnection conn = GetDbConnection();
|
using DbConnection conn = _DBConnectionFactory.GetDbConnection();
|
||||||
r = conn.Query<AwaitingDisposition>("GetAwaitingDispo", commandType: CommandType.StoredProcedure);
|
r = conn.Query<AwaitingDisposition>("GetAwaitingDispo", commandType: CommandType.StoredProcedure);
|
||||||
}
|
}
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int UpdateReviewDate(int toolTypeId, long headerId, bool clearDate)
|
internal int UpdateReviewDate(int toolTypeId, long headerId, bool clearDate)
|
||||||
{
|
{
|
||||||
ToolType tt = GetToolTypeByID(toolTypeId);
|
ToolType tt = GetToolTypeByID(toolTypeId);
|
||||||
if (tt is null)
|
if (tt is null)
|
||||||
throw new Exception("Invalid tool type ID");
|
throw new Exception("Invalid tool type ID");
|
||||||
|
|
||||||
using DbConnection conn = GetDbConnection();
|
using DbConnection conn = _DBConnectionFactory.GetDbConnection();
|
||||||
if (clearDate)
|
if (clearDate)
|
||||||
{
|
{
|
||||||
// if it's already past the 6 hour window, then it won't show in queue anyway, so need to return value so we can show that
|
// if it's already past the 6 hour window, then it won't show in queue anyway, so need to return value so we can show that
|
||||||
@ -734,29 +769,55 @@ public class MetrologyRepository : IMetrologyRepository
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public Guid GetHeaderAttachmentIDByTitle(int toolTypeId, string title)
|
internal Guid GetHeaderAttachmentIDByTitle(int toolTypeId, string title)
|
||||||
{
|
{
|
||||||
ToolType tt = GetToolTypeByID(toolTypeId);
|
ToolType tt = GetToolTypeByID(toolTypeId);
|
||||||
if (tt is null)
|
if (tt is null)
|
||||||
throw new Exception("Invalid tool type ID");
|
throw new Exception("Invalid tool type ID");
|
||||||
|
|
||||||
using DbConnection conn = GetDbConnection();
|
using DbConnection conn = _DBConnectionFactory.GetDbConnection();
|
||||||
string sql =
|
string sql =
|
||||||
$"SELECT TOP 1 AttachmentID FROM [{tt.HeaderTableName}] WHERE Title = @Title ORDER BY InsertDate DESC";
|
$"SELECT TOP 1 AttachmentID FROM [{tt.HeaderTableName}] WHERE Title = @Title ORDER BY InsertDate DESC";
|
||||||
return conn.ExecuteScalar<Guid>(sql, param: new { Title = title });
|
return conn.ExecuteScalar<Guid>(sql, param: new { Title = title });
|
||||||
}
|
}
|
||||||
|
|
||||||
public Guid GetDataAttachmentIDByTitle(int toolTypeId, string title)
|
internal Guid GetDataAttachmentIDByTitle(int toolTypeId, string title)
|
||||||
{
|
{
|
||||||
ToolType tt = GetToolTypeByID(toolTypeId);
|
ToolType tt = GetToolTypeByID(toolTypeId);
|
||||||
if (tt is null)
|
if (tt is null)
|
||||||
throw new Exception("Invalid tool type ID");
|
throw new Exception("Invalid tool type ID");
|
||||||
|
|
||||||
using DbConnection conn = GetDbConnection();
|
using DbConnection conn = _DBConnectionFactory.GetDbConnection();
|
||||||
string sql =
|
string sql =
|
||||||
$"SELECT TOP 1 AttachmentID FROM [{tt.DataTableName}] WHERE Title = @Title ORDER BY InsertDate DESC";
|
$"SELECT TOP 1 AttachmentID FROM [{tt.DataTableName}] WHERE Title = @Title ORDER BY InsertDate DESC";
|
||||||
return conn.ExecuteScalar<Guid>(sql, param: new { Title = title });
|
return conn.ExecuteScalar<Guid>(sql, param: new { Title = title });
|
||||||
}
|
}
|
||||||
|
|
||||||
DataTable IMetrologyRepository.GetDataSharePoint(int toolTypeId, string headerId) => throw new NotImplementedException();
|
DataTable IMetrologyRepository.GetDataSharePoint(int toolTypeId, string headerId) => throw new NotImplementedException();
|
||||||
|
|
||||||
|
IEnumerable<ToolType> IMetrologyRepository.GetToolTypes() => GetToolTypes();
|
||||||
|
ToolType IMetrologyRepository.GetToolTypeByName(string name) => GetToolTypeByName(name);
|
||||||
|
ToolType IMetrologyRepository.GetToolTypeByID(int id) => GetToolTypeByID(id);
|
||||||
|
IEnumerable<ToolTypeMetadata> IMetrologyRepository.GetToolTypeMetadataByToolTypeID(int id) => GetToolTypeMetadataByToolTypeID(id);
|
||||||
|
TransactionScope IMetrologyRepository.StartTransaction() => StartTransaction();
|
||||||
|
void IMetrologyRepository.PurgeExistingData(int toolTypeId, string title) => PurgeExistingData(toolTypeId, title);
|
||||||
|
long IMetrologyRepository.InsertToolDataJSON(JToken jsonbody, long headerId, List<ToolTypeMetadata> metaData, string tableName) => InsertToolDataJSON(jsonbody, headerId, metaData, tableName);
|
||||||
|
DataTable IMetrologyRepository.ExportData(string spName, DateTime startTime, DateTime endTime) => ExportData(spName, startTime, endTime);
|
||||||
|
DataTable IMetrologyRepository.GetHeaders(int toolTypeId, DateTime? startTime, DateTime? endTime, int? pageNo, int? pageSize, long? headerid, out long totalRecords) => GetHeaders(toolTypeId, startTime, endTime, pageNo, pageSize, headerid, out totalRecords);
|
||||||
|
DataTable IMetrologyRepository.GetData(int toolTypeId, long headerId) => GetData(toolTypeId, headerId);
|
||||||
|
HeaderCommon[] IMetrologyRepository.GetHeaderTitles(int? toolTypeId, int? pageNo, int? pageSize, out long totalRecords) => GetHeaderTitles(toolTypeId, pageNo, pageSize, out totalRecords);
|
||||||
|
Guid IMetrologyRepository.GetHeaderAttachmentIDByTitle(int toolTypeId, string title) => GetHeaderAttachmentIDByTitle(toolTypeId, title);
|
||||||
|
Guid IMetrologyRepository.GetDataAttachmentIDByTitle(int toolTypeId, string title) => GetDataAttachmentIDByTitle(toolTypeId, title);
|
||||||
|
Guid IMetrologyRepository.GetHeaderAttachmentID(int toolTypeId, long headerId) => GetHeaderAttachmentID(toolTypeId, headerId);
|
||||||
|
string IMetrologyRepository.GetHeaderInsertDate(int toolTypeId, long headerId) => GetHeaderInsertDate(toolTypeId, headerId);
|
||||||
|
string IMetrologyRepository.GetAttachmentInsertDateByGUID(string tableName, Guid attachmentId) => GetAttachmentInsertDateByGUID(tableName, attachmentId);
|
||||||
|
void IMetrologyRepository.SetHeaderDirName(string tableName, long headerId, string dateDir) => SetHeaderDirName(tableName, headerId, dateDir);
|
||||||
|
Guid IMetrologyRepository.GetDataAttachmentID(int toolTypeId, long headerId, string title) => GetDataAttachmentID(toolTypeId, headerId, title);
|
||||||
|
string IMetrologyRepository.GetDataInsertDate(int toolTypeId, long headerId, string title) => GetDataInsertDate(toolTypeId, headerId, title);
|
||||||
|
void IMetrologyRepository.SetDataDirName(string tableName, long headerId, string title, string dateDir) => SetDataDirName(tableName, headerId, title, dateDir);
|
||||||
|
DataSet IMetrologyRepository.GetOIExportData(int toolTypeId, long headerid) => GetOIExportData(toolTypeId, headerid);
|
||||||
|
IEnumerable<KeyValuePair<string, string>> IMetrologyRepository.GetHeaderFields(int toolTypeId, long headerid) => GetHeaderFields(toolTypeId, headerid);
|
||||||
|
IEnumerable<AwaitingDisposition> IMetrologyRepository.GetAwaitingDisposition() => GetAwaitingDisposition();
|
||||||
|
int IMetrologyRepository.UpdateReviewDate(int toolTypeId, long headerId, bool clearDate) => UpdateReviewDate(toolTypeId, headerId, clearDate);
|
||||||
|
|
||||||
}
|
}
|
122
Server/Repositories/PinRepository.cs
Normal file
122
Server/Repositories/PinRepository.cs
Normal file
@ -0,0 +1,122 @@
|
|||||||
|
using OI.Metrology.Shared.DataModels;
|
||||||
|
using OI.Metrology.Shared.Models.Stateless;
|
||||||
|
using System.Text.Json;
|
||||||
|
|
||||||
|
namespace OI.Metrology.Server.Repository;
|
||||||
|
|
||||||
|
public class PinRepository : IPinRepository
|
||||||
|
{
|
||||||
|
|
||||||
|
private readonly string _MockRoot;
|
||||||
|
private readonly Serilog.ILogger _Log;
|
||||||
|
private readonly string _RepositoryName;
|
||||||
|
private readonly Dictionary<string, Dictionary<long, HeaderCommon>> _RdsToHeaderCommonCollection;
|
||||||
|
|
||||||
|
public PinRepository(string mockRoot)
|
||||||
|
{
|
||||||
|
_MockRoot = mockRoot;
|
||||||
|
_RdsToHeaderCommonCollection = new();
|
||||||
|
_RepositoryName = nameof(PinRepository)[..^10];
|
||||||
|
_Log = Serilog.Log.ForContext<PinRepository>();
|
||||||
|
}
|
||||||
|
|
||||||
|
void IPinRepository.SetPinnedTable(HeaderCommon headerCommon)
|
||||||
|
{
|
||||||
|
Dictionary<long, HeaderCommon>? toolIdToHeader;
|
||||||
|
if (!string.IsNullOrEmpty(headerCommon.RDS))
|
||||||
|
{
|
||||||
|
if (!_RdsToHeaderCommonCollection.TryGetValue(headerCommon.RDS, out toolIdToHeader))
|
||||||
|
{
|
||||||
|
_RdsToHeaderCommonCollection.Add(headerCommon.RDS, new());
|
||||||
|
if (!_RdsToHeaderCommonCollection.TryGetValue(headerCommon.RDS, out toolIdToHeader))
|
||||||
|
throw new Exception();
|
||||||
|
}
|
||||||
|
if (toolIdToHeader.ContainsKey(headerCommon.ToolTypeID))
|
||||||
|
toolIdToHeader[headerCommon.ToolTypeID] = headerCommon;
|
||||||
|
else
|
||||||
|
toolIdToHeader.Add(headerCommon.ToolTypeID, headerCommon);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private (HeaderCommon?, HeaderCommon?) GetBoth(string rds, long bioRadId, long cdeId)
|
||||||
|
{
|
||||||
|
Dictionary<long, HeaderCommon>? toolIdToHeader;
|
||||||
|
if (!_RdsToHeaderCommonCollection.TryGetValue(rds, out toolIdToHeader))
|
||||||
|
{
|
||||||
|
_RdsToHeaderCommonCollection.Add(rds, new());
|
||||||
|
if (!_RdsToHeaderCommonCollection.TryGetValue(rds, out toolIdToHeader))
|
||||||
|
throw new Exception();
|
||||||
|
}
|
||||||
|
_ = toolIdToHeader.TryGetValue(cdeId, out HeaderCommon? cdeHeader);
|
||||||
|
_ = toolIdToHeader.TryGetValue(bioRadId, out HeaderCommon? bioRadHeader);
|
||||||
|
return new(bioRadHeader, cdeHeader);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static Pinned? GetPinned(IMetrologyRepository metrologyRepository, HeaderCommon headerCommon, int points, int column)
|
||||||
|
{
|
||||||
|
Pinned? result;
|
||||||
|
List<string> values;
|
||||||
|
System.Data.DataTable dataTable = metrologyRepository.GetData((int)headerCommon.ToolTypeID, headerCommon.ID);
|
||||||
|
if (dataTable.Rows.Count <= points || dataTable.Columns.Count <= column)
|
||||||
|
result = null;
|
||||||
|
else
|
||||||
|
{
|
||||||
|
values = new();
|
||||||
|
for (int i = 0; i < dataTable.Rows.Count - 1; i++)
|
||||||
|
{
|
||||||
|
if (dataTable.Rows[i]?.ItemArray[column] is null)
|
||||||
|
break;
|
||||||
|
values.Add(string.Concat(dataTable.Rows[i].ItemArray[column]));
|
||||||
|
}
|
||||||
|
if (values.Count <= points)
|
||||||
|
result = null;
|
||||||
|
else
|
||||||
|
result = new(headerCommon, values);
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
Result<Pinned[]> IPinRepository.GetPinnedTable(IMetrologyRepository metrologyRepository, int id, string? biorad_id, string? cde_id, string? rds)
|
||||||
|
{
|
||||||
|
Result<Pinned[]>? r;
|
||||||
|
if (!string.IsNullOrEmpty(_MockRoot))
|
||||||
|
{
|
||||||
|
string json = File.ReadAllText(Path.Combine(string.Concat(AppContext.BaseDirectory, _MockRoot), $"{_RepositoryName}-{nameof(IPinRepository.GetPinnedTable)}.json"));
|
||||||
|
r = JsonSerializer.Deserialize<Result<Pinned[]>>(json);
|
||||||
|
if (r is null)
|
||||||
|
throw new NullReferenceException(nameof(r));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (string.IsNullOrEmpty(rds) || !long.TryParse(biorad_id, out long bioRadId) || !long.TryParse(cde_id, out long cdeId))
|
||||||
|
r = new() { Results = Array.Empty<Pinned>(), TotalRows = 0 };
|
||||||
|
else
|
||||||
|
{
|
||||||
|
const int points = 9;
|
||||||
|
List<Pinned> results = new();
|
||||||
|
(HeaderCommon? bioRadHeader, HeaderCommon? cdeHeader) = GetBoth(rds, bioRadId, cdeId);
|
||||||
|
if (bioRadHeader is not null)
|
||||||
|
{
|
||||||
|
const int thickness = 5;
|
||||||
|
Pinned? pinned = GetPinned(metrologyRepository, bioRadHeader, points, column: thickness);
|
||||||
|
if (pinned is not null)
|
||||||
|
results.Add(pinned);
|
||||||
|
}
|
||||||
|
if (cdeHeader is not null)
|
||||||
|
{
|
||||||
|
const int rs = 6;
|
||||||
|
Pinned? pinned = GetPinned(metrologyRepository, cdeHeader, points, column: rs);
|
||||||
|
if (pinned is not null)
|
||||||
|
results.Add(pinned);
|
||||||
|
}
|
||||||
|
r = new()
|
||||||
|
{
|
||||||
|
Results = results.ToArray(),
|
||||||
|
TotalRows = results.Count,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return r;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -2,6 +2,7 @@ using OI.Metrology.Shared.DataModels;
|
|||||||
using OI.Metrology.Shared.Models.Stateless;
|
using OI.Metrology.Shared.Models.Stateless;
|
||||||
using OI.Metrology.Shared.Services;
|
using OI.Metrology.Shared.Services;
|
||||||
using System.Data;
|
using System.Data;
|
||||||
|
using System.Text;
|
||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
|
|
||||||
namespace OI.Metrology.Server.Repository;
|
namespace OI.Metrology.Server.Repository;
|
||||||
@ -11,11 +12,13 @@ public class ToolTypesRepository : IToolTypesRepository
|
|||||||
|
|
||||||
private readonly string _MockRoot;
|
private readonly string _MockRoot;
|
||||||
private readonly Serilog.ILogger _Log;
|
private readonly Serilog.ILogger _Log;
|
||||||
|
private readonly string _RepositoryName;
|
||||||
|
|
||||||
public ToolTypesRepository(string mockRoot)
|
public ToolTypesRepository(string mockRoot)
|
||||||
{
|
{
|
||||||
_MockRoot = mockRoot;
|
_MockRoot = mockRoot;
|
||||||
_Log = Serilog.Log.ForContext<ToolTypesRepository>();
|
_Log = Serilog.Log.ForContext<ToolTypesRepository>();
|
||||||
|
_RepositoryName = nameof(ToolTypesRepository)[..^10];
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get a list of tooltypes, returns just Name and ID
|
// Get a list of tooltypes, returns just Name and ID
|
||||||
@ -24,7 +27,7 @@ public class ToolTypesRepository : IToolTypesRepository
|
|||||||
Result<ToolTypeNameId[]>? r;
|
Result<ToolTypeNameId[]>? r;
|
||||||
if (!string.IsNullOrEmpty(_MockRoot))
|
if (!string.IsNullOrEmpty(_MockRoot))
|
||||||
{
|
{
|
||||||
string json = File.ReadAllText(Path.Combine(string.Concat(AppContext.BaseDirectory, _MockRoot), "IndexApi.json"));
|
string json = File.ReadAllText(Path.Combine(string.Concat(AppContext.BaseDirectory, _MockRoot), $"{_RepositoryName}-{nameof(IToolTypesRepository.Index)}.json"));
|
||||||
r = JsonSerializer.Deserialize<Result<ToolTypeNameId[]>>(json);
|
r = JsonSerializer.Deserialize<Result<ToolTypeNameId[]>>(json);
|
||||||
if (r is null)
|
if (r is null)
|
||||||
throw new NullReferenceException(nameof(r));
|
throw new NullReferenceException(nameof(r));
|
||||||
@ -48,7 +51,7 @@ public class ToolTypesRepository : IToolTypesRepository
|
|||||||
Result<ToolTypeMetadataResult>? r;
|
Result<ToolTypeMetadataResult>? r;
|
||||||
if (!string.IsNullOrEmpty(_MockRoot))
|
if (!string.IsNullOrEmpty(_MockRoot))
|
||||||
{
|
{
|
||||||
string json = File.ReadAllText(Path.Combine(string.Concat(AppContext.BaseDirectory, _MockRoot), "GetToolTypeMetadataApi.json"));
|
string json = File.ReadAllText(Path.Combine(string.Concat(AppContext.BaseDirectory, _MockRoot), $"{_RepositoryName}-{nameof(IToolTypesRepository.GetToolTypeMetadata)}.json"));
|
||||||
r = JsonSerializer.Deserialize<Result<ToolTypeMetadataResult>>(json);
|
r = JsonSerializer.Deserialize<Result<ToolTypeMetadataResult>>(json);
|
||||||
if (r is null)
|
if (r is null)
|
||||||
throw new NullReferenceException(nameof(r));
|
throw new NullReferenceException(nameof(r));
|
||||||
@ -81,7 +84,7 @@ public class ToolTypesRepository : IToolTypesRepository
|
|||||||
Result<DataTable>? r;
|
Result<DataTable>? r;
|
||||||
if (!string.IsNullOrEmpty(_MockRoot))
|
if (!string.IsNullOrEmpty(_MockRoot))
|
||||||
{
|
{
|
||||||
string json = File.ReadAllText(Path.Combine(string.Concat(AppContext.BaseDirectory, _MockRoot), "GetHeadersApi.json"));
|
string json = File.ReadAllText(Path.Combine(string.Concat(AppContext.BaseDirectory, _MockRoot), $"{_RepositoryName}-{nameof(IToolTypesRepository.GetHeaders)}.json"));
|
||||||
r = Newtonsoft.Json.JsonConvert.DeserializeObject<Result<DataTable>>(json);
|
r = Newtonsoft.Json.JsonConvert.DeserializeObject<Result<DataTable>>(json);
|
||||||
if (r is null)
|
if (r is null)
|
||||||
throw new NullReferenceException(nameof(r));
|
throw new NullReferenceException(nameof(r));
|
||||||
@ -105,7 +108,7 @@ public class ToolTypesRepository : IToolTypesRepository
|
|||||||
Result<HeaderCommon[]>? r;
|
Result<HeaderCommon[]>? r;
|
||||||
if (!string.IsNullOrEmpty(_MockRoot))
|
if (!string.IsNullOrEmpty(_MockRoot))
|
||||||
{
|
{
|
||||||
string json = File.ReadAllText(Path.Combine(string.Concat(AppContext.BaseDirectory, _MockRoot), "GetHeaderTitlesApi.json"));
|
string json = File.ReadAllText(Path.Combine(string.Concat(AppContext.BaseDirectory, _MockRoot), $"{_RepositoryName}-{nameof(IToolTypesRepository.GetHeaderTitles)}.json"));
|
||||||
r = JsonSerializer.Deserialize<Result<HeaderCommon[]>>(json);
|
r = JsonSerializer.Deserialize<Result<HeaderCommon[]>>(json);
|
||||||
if (r is null)
|
if (r is null)
|
||||||
throw new NullReferenceException(nameof(r));
|
throw new NullReferenceException(nameof(r));
|
||||||
@ -113,7 +116,8 @@ public class ToolTypesRepository : IToolTypesRepository
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
long totalRecs;
|
long totalRecs;
|
||||||
HeaderCommon[] headerCommonCollection = metrologyRepository.GetHeaderTitles(id, page, pagesize, out totalRecs).ToArray();
|
int? toolTypeId = id > -1 ? id : null;
|
||||||
|
HeaderCommon[] headerCommonCollection = metrologyRepository.GetHeaderTitles(toolTypeId, page, pagesize, out totalRecs).ToArray();
|
||||||
r = new()
|
r = new()
|
||||||
{
|
{
|
||||||
Results = headerCommonCollection,
|
Results = headerCommonCollection,
|
||||||
@ -129,7 +133,7 @@ public class ToolTypesRepository : IToolTypesRepository
|
|||||||
Result<ColumnValue[]>? r;
|
Result<ColumnValue[]>? r;
|
||||||
if (!string.IsNullOrEmpty(_MockRoot))
|
if (!string.IsNullOrEmpty(_MockRoot))
|
||||||
{
|
{
|
||||||
string json = File.ReadAllText(Path.Combine(string.Concat(AppContext.BaseDirectory, _MockRoot), "GetHeaderFieldsApi.json"));
|
string json = File.ReadAllText(Path.Combine(string.Concat(AppContext.BaseDirectory, _MockRoot), $"{_RepositoryName}-{nameof(IToolTypesRepository.GetHeaderFields)}.json"));
|
||||||
r = JsonSerializer.Deserialize<Result<ColumnValue[]>>(json);
|
r = JsonSerializer.Deserialize<Result<ColumnValue[]>>(json);
|
||||||
if (r is null)
|
if (r is null)
|
||||||
throw new NullReferenceException(nameof(r));
|
throw new NullReferenceException(nameof(r));
|
||||||
@ -152,7 +156,7 @@ public class ToolTypesRepository : IToolTypesRepository
|
|||||||
Result<DataTable>? r;
|
Result<DataTable>? r;
|
||||||
if (!string.IsNullOrEmpty(_MockRoot))
|
if (!string.IsNullOrEmpty(_MockRoot))
|
||||||
{
|
{
|
||||||
string json = File.ReadAllText(Path.Combine(string.Concat(AppContext.BaseDirectory, _MockRoot), "GetDataApi.json"));
|
string json = File.ReadAllText(Path.Combine(string.Concat(AppContext.BaseDirectory, _MockRoot), $"{_RepositoryName}-{nameof(IToolTypesRepository.GetData)}.json"));
|
||||||
r = Newtonsoft.Json.JsonConvert.DeserializeObject<Result<DataTable>>(json);
|
r = Newtonsoft.Json.JsonConvert.DeserializeObject<Result<DataTable>>(json);
|
||||||
if (r is null)
|
if (r is null)
|
||||||
throw new NullReferenceException(nameof(r));
|
throw new NullReferenceException(nameof(r));
|
||||||
@ -215,7 +219,7 @@ public class ToolTypesRepository : IToolTypesRepository
|
|||||||
// The second table has the header data
|
// The second table has the header data
|
||||||
if (ds.Tables[1].Rows.Count != 1)
|
if (ds.Tables[1].Rows.Count != 1)
|
||||||
throw new Exception("Error exporting, invalid header data");
|
throw new Exception("Error exporting, invalid header data");
|
||||||
System.Text.StringBuilder sb = new();
|
StringBuilder sb = new();
|
||||||
foreach (object? o in ds.Tables[1].Rows[0].ItemArray)
|
foreach (object? o in ds.Tables[1].Rows[0].ItemArray)
|
||||||
{
|
{
|
||||||
if ((o is not null) && (!Convert.IsDBNull(o)))
|
if ((o is not null) && (!Convert.IsDBNull(o)))
|
||||||
@ -243,4 +247,96 @@ public class ToolTypesRepository : IToolTypesRepository
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Result<DataTable> IToolTypesRepository.GetExportData(IMetrologyRepository metrologyRepository, int toolTypeId, DateTime? datebegin, DateTime? dateend)
|
||||||
|
{
|
||||||
|
Result<DataTable>? r;
|
||||||
|
if (!string.IsNullOrEmpty(_MockRoot))
|
||||||
|
{
|
||||||
|
string json = File.ReadAllText(Path.Combine(string.Concat(AppContext.BaseDirectory, _MockRoot), $"{_RepositoryName}-{nameof(IToolTypesRepository.GetExportData)}.json"));
|
||||||
|
r = Newtonsoft.Json.JsonConvert.DeserializeObject<Result<DataTable>>(json);
|
||||||
|
if (r is null)
|
||||||
|
throw new NullReferenceException(nameof(r));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
dateend ??= DateTime.Now;
|
||||||
|
datebegin ??= dateend.Value.AddMonths(-1);
|
||||||
|
ToolType tt = metrologyRepository.GetToolTypeByID(toolTypeId);
|
||||||
|
if (string.IsNullOrEmpty(tt.ExportSPName))
|
||||||
|
throw new NullReferenceException(nameof(tt.ExportSPName));
|
||||||
|
DataTable dataTable = metrologyRepository.ExportData(tt.ExportSPName, datebegin.Value, dateend.Value);
|
||||||
|
r = new()
|
||||||
|
{
|
||||||
|
Results = dataTable,
|
||||||
|
TotalRows = dataTable.Rows.Count,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
return r;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected static string GetRowData(DataRow dr)
|
||||||
|
{
|
||||||
|
StringBuilder result = new();
|
||||||
|
for (int i = 0; i < dr.Table.Columns.Count; i++)
|
||||||
|
{
|
||||||
|
if (i > 0)
|
||||||
|
_ = result.Append(',');
|
||||||
|
object v = dr[i];
|
||||||
|
if (v is not null && !Convert.IsDBNull(v))
|
||||||
|
_ = result.Append(FormatForCSV(string.Concat(Convert.ToString(v))));
|
||||||
|
}
|
||||||
|
return result.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected static string GetColumnHeaders(DataTable dataTable)
|
||||||
|
{
|
||||||
|
StringBuilder result = new();
|
||||||
|
for (int i = 0; i < dataTable.Columns.Count; i++)
|
||||||
|
{
|
||||||
|
if (i > 0)
|
||||||
|
_ = result.Append(',');
|
||||||
|
_ = result.Append(FormatForCSV(dataTable.Columns[i].ColumnName.TrimEnd('_')));
|
||||||
|
}
|
||||||
|
return result.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected static string FormatForCSV(string v)
|
||||||
|
{
|
||||||
|
StringBuilder result = new(v.Length + 2);
|
||||||
|
bool doubleQuoted = false;
|
||||||
|
if (v.StartsWith(' ') || v.EndsWith(' ') || v.Contains(',') || v.Contains('"'))
|
||||||
|
{
|
||||||
|
_ = result.Append('"');
|
||||||
|
doubleQuoted = true;
|
||||||
|
}
|
||||||
|
foreach (char c in v)
|
||||||
|
{
|
||||||
|
_ = c switch
|
||||||
|
{
|
||||||
|
'\r' or '\n' => result.Append(' '),
|
||||||
|
'"' => result.Append("\"\""),
|
||||||
|
_ => result.Append(c),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
if (doubleQuoted)
|
||||||
|
_ = result.Append('"');
|
||||||
|
return result.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
byte[] IToolTypesRepository.GetCSVExport(IMetrologyRepository metrologyRepository, int toolTypeId, DateTime? datebegin, DateTime? dateend)
|
||||||
|
{
|
||||||
|
byte[] results;
|
||||||
|
Result<DataTable> result;
|
||||||
|
IToolTypesRepository repository = this;
|
||||||
|
result = repository.GetExportData(metrologyRepository, toolTypeId, datebegin, dateend);
|
||||||
|
if (result.Results is null)
|
||||||
|
throw new NullReferenceException(nameof(result.Results));
|
||||||
|
StringBuilder stringBuilder = new();
|
||||||
|
_ = stringBuilder.AppendLine(GetColumnHeaders(result.Results));
|
||||||
|
foreach (DataRow dr in result.Results.Rows)
|
||||||
|
_ = stringBuilder.AppendLine(GetRowData(dr));
|
||||||
|
results = Encoding.UTF8.GetBytes(stringBuilder.ToString());
|
||||||
|
return results;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -48,8 +48,10 @@
|
|||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
|
|
||||||
|
var apiUrl = "@ViewBag.ApiUrl";
|
||||||
|
|
||||||
$("#ToolType").igCombo({
|
$("#ToolType").igCombo({
|
||||||
dataSource: '@Url.Content("~/api/tooltypes")',
|
dataSource: apiUrl + '/tooltypes',
|
||||||
responseDataKey: "Results",
|
responseDataKey: "Results",
|
||||||
textKey: "ToolTypeName",
|
textKey: "ToolTypeName",
|
||||||
valueKey: "ID",
|
valueKey: "ID",
|
||||||
|
@ -18,59 +18,11 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
|
|
||||||
$("#grid").igGrid({
|
initAwaitingDisposition("@ViewBag.ApiUrl");
|
||||||
autoGenerateColumns: false,
|
|
||||||
width: "70%",
|
|
||||||
height: "100%",
|
|
||||||
primaryKey: "PK",
|
|
||||||
columns: [
|
|
||||||
{ key: "PK", dataType: "string", hidden: true, },
|
|
||||||
{ key: "ID", dataType: "number", hidden: true, },
|
|
||||||
{ key: "ToolTypeID", dataType: "number", hidden: true, },
|
|
||||||
{ headerText: "Tool Type", key: "ToolType", dataType: "string", width: "15%" },
|
|
||||||
{ key: "Tool", dataType: "string", width: "10%" },
|
|
||||||
{ key: "Reactor", dataType: "string", width: "10%" },
|
|
||||||
{ key: "RDS", dataType: "string", width: "10%" },
|
|
||||||
{ key: "PSN", dataType: "string", width: "10%" },
|
|
||||||
{ key: "Layer", dataType: "string", width: "10%" },
|
|
||||||
{ key: "Zone", dataType: "string", width: "10%" },
|
|
||||||
{ key: "InsertDate", dataType: "date", width: "10%", format: "dateTime" },
|
|
||||||
{ key: "Expiration", dataType: "date", width: "10%", format: "dateTime" }
|
|
||||||
],
|
|
||||||
dataSource: "@Url.Content("~/api/awaitingdispo/")",
|
|
||||||
responseDataKey: "Results",
|
|
||||||
tabIndex: 1,
|
|
||||||
features: [
|
|
||||||
{ name: "Selection", mode: "row", multipleSelection: false },
|
|
||||||
{ name: "Filtering", type: "local" },
|
|
||||||
{ name: "Sorting", type: "local" },
|
|
||||||
]
|
|
||||||
});
|
|
||||||
|
|
||||||
function LoadRunInfo() {
|
|
||||||
var row = $("#grid").igGrid("selectedRow");
|
|
||||||
if (row == null)
|
|
||||||
return;
|
|
||||||
var data = $("#grid").igGrid("findRecordByKey", row.id);
|
|
||||||
if (data == null)
|
|
||||||
return;
|
|
||||||
var targetURL = "@Url.Action("RunInfo")?tooltypeid=" + data.ToolTypeID + "&headerid=" + data.ID;
|
|
||||||
window.location.href = targetURL;
|
|
||||||
}
|
|
||||||
|
|
||||||
$("#RefreshButton").click(function () {
|
|
||||||
$("#grid").igGrid("dataBind");
|
|
||||||
});
|
|
||||||
|
|
||||||
$("#OpenButton").click(LoadRunInfo);
|
|
||||||
|
|
||||||
$("#grid").on("dblclick", "tr", LoadRunInfo);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
setInterval(function () {
|
|
||||||
$("#RefreshButton").click();
|
|
||||||
}, 60000);
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
@ -48,87 +48,10 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
function LoadHeaderGrid() {
|
|
||||||
|
|
||||||
var toolTypeID = $("#ToolType").igCombo("value");
|
|
||||||
|
|
||||||
var gridCreated = $("#HeaderGrid").data("igGrid");
|
|
||||||
if (gridCreated)
|
|
||||||
$("#HeaderGrid").igGrid("destroy");
|
|
||||||
|
|
||||||
ClearFieldsGrid();
|
|
||||||
|
|
||||||
var headerURL = "@Url.Content("~/api/tooltypes/")" + toolTypeID + "/headertitles";
|
|
||||||
|
|
||||||
$("#HeaderGrid").igGrid({
|
|
||||||
autoGenerateColumns: false,
|
|
||||||
primaryKey: "ID",
|
|
||||||
height: "100%",
|
|
||||||
width: "100%",
|
|
||||||
features: [
|
|
||||||
{ name: "Paging", type: "local", recordCountKey: "TotalRows", pageSize: 25, pageSizeUrlKey: "pageSize", "pageIndexUrlKey": "page", showPageSizeDropDown: false },
|
|
||||||
{ name: "Selection", mode: "row", rowSelectionChanged: HeaderSelectionChanged },
|
|
||||||
{ name: "Filtering", type: "local" }
|
|
||||||
],
|
|
||||||
columns: [
|
|
||||||
{ key: "ID", dataType: "number", hidden: true },
|
|
||||||
{ key: "Title", dataType: "string", width: "80%" },
|
|
||||||
{ key: "InsertDate", dataType: "date", format: "dateTime", width: "20%" }
|
|
||||||
],
|
|
||||||
dataSource: headerURL,
|
|
||||||
responseDataKey: "Results",
|
|
||||||
});
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
function ClearFieldsGrid() {
|
|
||||||
var gridCreated = $("#FieldsGrid").data("igGrid");
|
|
||||||
if (gridCreated)
|
|
||||||
$("#FieldsGrid").igGrid("destroy");
|
|
||||||
}
|
|
||||||
|
|
||||||
function HeaderSelectionChanged(evt, ui) {
|
|
||||||
|
|
||||||
var toolTypeID = $("#ToolType").igCombo("value");
|
|
||||||
|
|
||||||
ClearFieldsGrid();
|
|
||||||
|
|
||||||
var url = "@Url.Content("~/api/tooltypes/")" + toolTypeID + "/headers/" + ui.row.id + "/fields";
|
|
||||||
|
|
||||||
$("#FieldsGrid").igGrid({
|
|
||||||
autoGenerateColumns: false,
|
|
||||||
primaryKey: "Column",
|
|
||||||
height: "100%",
|
|
||||||
width: "100%",
|
|
||||||
features: [
|
|
||||||
{ name: 'Resizing' }
|
|
||||||
],
|
|
||||||
columns: [
|
|
||||||
{ key: "Column", dataType: "string", width: "20%", columnCssClass: "FieldTitle", },
|
|
||||||
{ key: "Value", dataType: "string", }
|
|
||||||
],
|
|
||||||
enableHoverStyles: false,
|
|
||||||
dataSource: url,
|
|
||||||
responseDataKey: "Results",
|
|
||||||
});
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
|
|
||||||
$("#ToolType").igCombo({
|
initRunHeaders("@ViewBag.ApiUrl");
|
||||||
dataSource: '@Url.Content("~/api/tooltypes")',
|
|
||||||
responseDataKey: "Results",
|
|
||||||
textKey: "ToolTypeName",
|
|
||||||
valueKey: "ID",
|
|
||||||
mode: "dropdown",
|
|
||||||
width: 150,
|
|
||||||
dataBound: function (evt, ui) {
|
|
||||||
$("#ToolType").igCombo("index", 0);
|
|
||||||
LoadHeaderGrid();
|
|
||||||
},
|
|
||||||
selectionChanged: LoadHeaderGrid,
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
@ -49,6 +49,9 @@
|
|||||||
<div class="col-xs-1">
|
<div class="col-xs-1">
|
||||||
<input type="button" class="btn" id="ReviewButton" value="Review" disabled />
|
<input type="button" class="btn" id="ReviewButton" value="Review" disabled />
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-xs-1">
|
||||||
|
<input type="button" class="btn" id="PinButton" value="Pin" disabled />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="DetailsDiv" hidden>
|
<div id="DetailsDiv" hidden>
|
||||||
@ -73,409 +76,9 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
var toolType = null;
|
|
||||||
var toolTypeMetaData = null;
|
|
||||||
|
|
||||||
function LoadHeaderGrid() {
|
|
||||||
|
|
||||||
var toolTypeID = $("#ToolType").igCombo("value");
|
|
||||||
|
|
||||||
$("#ToolTypeID").text(toolTypeID);
|
|
||||||
|
|
||||||
HideDetailsDiv();
|
|
||||||
DisableHeaderButtons();
|
|
||||||
|
|
||||||
$("#HeaderId").text("");
|
|
||||||
$("#HeaderAttachmentId").text("");
|
|
||||||
|
|
||||||
var gridCreated = $("#HeaderGrid").data("igGrid");
|
|
||||||
if (gridCreated)
|
|
||||||
$("#HeaderGrid").igGrid("destroy");
|
|
||||||
|
|
||||||
$.ajax({
|
|
||||||
type: "GET",
|
|
||||||
url: "@Url.Content("~/api/tooltypes/")" + toolTypeID + "?sortby=grid",
|
|
||||||
success: function (r) {
|
|
||||||
if ((r.Results == null) || (r.Results.ToolType == null) || (r.Results.Metadata == null))
|
|
||||||
ShowErrorMessage("Invalid tool type: " + toolTypeID);
|
|
||||||
else {
|
|
||||||
toolType = r.Results.ToolType;
|
|
||||||
toolTypeMetaData = r.Results.Metadata;
|
|
||||||
RequestHeaderData();
|
|
||||||
}
|
|
||||||
},
|
|
||||||
error: function (e) {
|
|
||||||
DisplayWSMessage("error", "There was an error getting tooltype info.", e);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
function DisableHeaderButtons() {
|
|
||||||
$("#GetDataButton").prop("disabled", true);
|
|
||||||
$("#ReviewButton").prop("disabled", true);
|
|
||||||
}
|
|
||||||
|
|
||||||
function EnableHeaderButtons() {
|
|
||||||
$("#GetDataButton").prop("disabled", false);
|
|
||||||
$("#ReviewButton").prop("disabled", false);
|
|
||||||
}
|
|
||||||
|
|
||||||
function HideDetailsDiv() {
|
|
||||||
$("#DetailsDiv").prop("hidden", true);
|
|
||||||
$("#DataAttachmentFrame").prop("src", "");
|
|
||||||
}
|
|
||||||
|
|
||||||
function ShowDetailsDiv() {
|
|
||||||
$("#DetailsDiv").prop("hidden", false);
|
|
||||||
|
|
||||||
$("#ExportDiv").prop("hidden", true);
|
|
||||||
if ((toolType != null) && (toolType.OIExportSPName != null) && (toolType.OIExportSPName.length > 0)) {
|
|
||||||
$("#ExportDiv").prop("hidden", false);
|
|
||||||
$("#OIExportButton").prop("disabled", false);
|
|
||||||
$("#OIExportResult").text('');
|
|
||||||
}
|
|
||||||
|
|
||||||
$("#DataAttachmentFrame").prop("hidden", true);
|
|
||||||
$("#HeaderAttachmentFrame").prop("hidden", true);
|
|
||||||
if (toolType != null) {
|
|
||||||
var visibleFrames = 0;
|
|
||||||
if (toolType.DisplayDataAttachment && toolType.DisplayDataAttachment.length > 0) {
|
|
||||||
visibleFrames += 1;
|
|
||||||
$("#DataAttachmentFrame").prop("hidden", false);
|
|
||||||
}
|
|
||||||
if (toolType.DisplayHeaderAttachment && toolType.DisplayHeaderAttachment.length > 0) {
|
|
||||||
visibleFrames += 1;
|
|
||||||
$("#HeaderAttachmentFrame").prop("hidden", false);
|
|
||||||
}
|
|
||||||
var frameWidth = (98 / visibleFrames) + "%";
|
|
||||||
$("#DataAttachmentFrame,#HeaderAttachmentFrame").css('width', frameWidth);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function HeaderSelectionChanged(evt, ui) {
|
|
||||||
if (ui.row.index >= 0) {
|
|
||||||
if ($("#HeaderId").text() == ui.row.id) {
|
|
||||||
EnableHeaderButtons();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
DisableHeaderButtons();
|
|
||||||
HideDetailsDiv();
|
|
||||||
if (ui.row.index >= 0) {
|
|
||||||
EnableHeaderButtons();
|
|
||||||
$("#HeaderId").text(ui.row.id);
|
|
||||||
var rowData = ui.owner.grid.dataSource.dataView()[ui.row.index];
|
|
||||||
$("#HeaderAttachmentId").text(rowData.AttachmentID);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function CancelHandler(evt, ui) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
function DetailSelectionChanged(evt, ui) {
|
|
||||||
|
|
||||||
$("#DataAttachmentFrame").prop("src", "");
|
|
||||||
|
|
||||||
if (ui.row.index >= 0) {
|
|
||||||
var rowData = ui.owner.grid.dataSource.dataView()[ui.row.index];
|
|
||||||
var toolTypeID = $("#ToolTypeID").text();
|
|
||||||
var attachmentUrlBase = '@Url.Content("~/api/tooltypes/")' + toolTypeID;
|
|
||||||
var attachmentId = rowData.AttachmentID;
|
|
||||||
|
|
||||||
if ((attachmentId == null) || (attachmentId === ''))
|
|
||||||
return;
|
|
||||||
|
|
||||||
if ((toolType.DisplayDataAttachment == null) || (toolType.DisplayDataAttachment === ''))
|
|
||||||
return;
|
|
||||||
|
|
||||||
$("#DataAttachmentFrame").prop("src", attachmentUrlBase + "/data/files/" + attachmentId + "/" + toolType.DisplayDataAttachment);
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function LoadHeaderAttachment() {
|
|
||||||
var toolTypeID = $("#ToolTypeID").text();
|
|
||||||
var attachmentId = $("#HeaderAttachmentId").text();
|
|
||||||
var attachmentUrlBase = '@Url.Content("~/api/tooltypes/")' + toolTypeID;
|
|
||||||
if ((attachmentId == null) || (attachmentId === '') || (toolType.DisplayHeaderAttachment == null) || (toolType.DisplayHeaderAttachment === '')) {
|
|
||||||
$("#HeaderAttachmentFrame").prop("src", "");
|
|
||||||
} else {
|
|
||||||
$("#HeaderAttachmentFrame").prop("src", attachmentUrlBase + "/header/files/" + attachmentId + "/" + toolType.DisplayHeaderAttachment);
|
|
||||||
}
|
|
||||||
|
|
||||||
$("#DataAttachmentFrame").prop("src", "");
|
|
||||||
}
|
|
||||||
|
|
||||||
function MarkAsReviewed() {
|
|
||||||
|
|
||||||
var toolTypeId = $("#ToolTypeID").text();
|
|
||||||
var headerId = $("#HeaderId").text();
|
|
||||||
|
|
||||||
$.ajax({
|
|
||||||
type: "POST",
|
|
||||||
url: "@Url.Content("~/api/awaitingdispo/markasreviewed")?tooltypeid=" + toolTypeId + "&headerid=" + headerId,
|
|
||||||
success: function () {
|
|
||||||
},
|
|
||||||
error: function (e, ajaxOptions, ex) {
|
|
||||||
DisplayWSMessage("error", "There was an error marking header as reviewed.", e, ex);
|
|
||||||
$("#ReviewButton").prop("disabled", false);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function LoadDetails() {
|
|
||||||
|
|
||||||
ShowDetailsDiv();
|
|
||||||
|
|
||||||
LoadHeaderAttachment();
|
|
||||||
|
|
||||||
var gridCreated = $("#DetailsGrid").data("igGrid");
|
|
||||||
if (gridCreated)
|
|
||||||
$("#DetailsGrid").igGrid("destroy");
|
|
||||||
|
|
||||||
var headerId = $("#HeaderId").text();
|
|
||||||
var toolTypeID = $("#ToolTypeID").text();
|
|
||||||
|
|
||||||
var detailsURL = "@Url.Content("~/api/tooltypes/")" + toolTypeID + "/headers/" + headerId + "/data";
|
|
||||||
|
|
||||||
var gridColumns = [
|
|
||||||
{ key: "AttachmentID", dataType: "string", hidden: true },
|
|
||||||
{ key: "Title", dataType: "string", hidden: true },
|
|
||||||
];
|
|
||||||
|
|
||||||
for (var i = 0; i < toolTypeMetaData.length; i++) {
|
|
||||||
var f = toolTypeMetaData[i];
|
|
||||||
if ((f.Header == false) && (f.GridDisplayOrder > 0)) {
|
|
||||||
var col = {
|
|
||||||
key: f.ColumnName,
|
|
||||||
headerText: f.DisplayTitle,
|
|
||||||
width: "150px",
|
|
||||||
};
|
|
||||||
if (f.GridAttributes != null)
|
|
||||||
jQuery.extend(col, JSON.parse(f.GridAttributes));
|
|
||||||
if (col.formatter != null) {
|
|
||||||
if (col.formatter == "boolToYesNo")
|
|
||||||
col.formatter = boolToYesNo;
|
|
||||||
else
|
|
||||||
col.formatter = null;
|
|
||||||
}
|
|
||||||
gridColumns.push(col);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
var gridParms = {
|
|
||||||
autoGenerateColumns: false,
|
|
||||||
primaryKey: "ID",
|
|
||||||
features: [
|
|
||||||
{ name: "Selection", mode: "row", rowSelectionChanging: DetailSelectionChanged },
|
|
||||||
{ name: "Resizing" },
|
|
||||||
{ name: "Sorting", type: "local" }
|
|
||||||
],
|
|
||||||
columns: gridColumns,
|
|
||||||
dataSource: detailsURL,
|
|
||||||
responseDataKey: "Results",
|
|
||||||
dataBound: MarkAsReviewed,
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
if ((toolType != null) && (toolType.DataGridAttributes != null)) {
|
|
||||||
jQuery.extend(gridParms, JSON.parse(toolType.DataGridAttributes));
|
|
||||||
}
|
|
||||||
|
|
||||||
$("#DetailsGrid").igGrid(gridParms);
|
|
||||||
}
|
|
||||||
|
|
||||||
var initialHeaderId = @Model.HeaderID;
|
|
||||||
var initialHeaderAttachmentId = "@Model.HeaderAttachmentID";
|
|
||||||
|
|
||||||
function RequestHeaderData() {
|
|
||||||
var startDate = $("#StartDate").igDatePicker("value");
|
|
||||||
var startTime = $("#StartTime").igTimePicker("value");
|
|
||||||
|
|
||||||
var endDate = $("#EndDate").igDatePicker("value");
|
|
||||||
var endTime = $("#EndTime").igTimePicker("value");
|
|
||||||
|
|
||||||
var parms = {
|
|
||||||
datebegin: new Date(
|
|
||||||
startDate.getFullYear(), startDate.getMonth(), startDate.getDate(),
|
|
||||||
startTime.getHours(), startTime.getMinutes(), startTime.getSeconds()).toISOString(),
|
|
||||||
dateend: new Date(
|
|
||||||
endDate.getFullYear(), endDate.getMonth(), endDate.getDate(),
|
|
||||||
endTime.getHours(), endTime.getMinutes(), endTime.getSeconds()).toISOString(),
|
|
||||||
}
|
|
||||||
|
|
||||||
var headerId = 0;
|
|
||||||
if (initialHeaderId > 0) {
|
|
||||||
headerId = initialHeaderId;
|
|
||||||
parms.headerid = headerId;
|
|
||||||
$("#HeaderId").text(headerId);
|
|
||||||
$("#HeaderAttachmentId").text(initialHeaderAttachmentId);
|
|
||||||
initialHeaderId = -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
var headerURL = "@Url.Content("~/api/tooltypes/")" + toolType.ID + "/headers?" + $.param(parms);
|
|
||||||
|
|
||||||
var gridColumns = [
|
|
||||||
{ key: "ID", dataType: "number", hidden: true },
|
|
||||||
{ key: "AttachmentID", dataType: "string", hidden: true },
|
|
||||||
{ key: "Title", dataType: "string", hidden: true },
|
|
||||||
];
|
|
||||||
|
|
||||||
for (var i = 0; i < toolTypeMetaData.length; i++) {
|
|
||||||
var f = toolTypeMetaData[i];
|
|
||||||
if ((f.Header == true) && (f.GridDisplayOrder > 0)) {
|
|
||||||
var col = {
|
|
||||||
key: f.ColumnName,
|
|
||||||
headerText: f.DisplayTitle,
|
|
||||||
width: "150px",
|
|
||||||
};
|
|
||||||
if (f.GridAttributes != null)
|
|
||||||
jQuery.extend(col, JSON.parse(f.GridAttributes));
|
|
||||||
if (col.formatter != null) {
|
|
||||||
if (col.formatter == "boolToYesNo")
|
|
||||||
col.formatter = boolToYesNo;
|
|
||||||
else
|
|
||||||
col.formatter = null;
|
|
||||||
}
|
|
||||||
gridColumns.push(col);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
var gridParms = {
|
|
||||||
autoGenerateColumns: false,
|
|
||||||
primaryKey: "ID",
|
|
||||||
height: "100%",
|
|
||||||
width: "100%",
|
|
||||||
features: [
|
|
||||||
{ name: "Paging", type: "local", recordCountKey: "TotalRows", pageSize: 100, pageSizeList: [50, 100, 250, 500], pageSizeUrlKey: "pageSize", "pageIndexUrlKey": "page" },
|
|
||||||
{ name: "Selection", mode: "row", rowSelectionChanged: HeaderSelectionChanged },
|
|
||||||
{ name: "Filtering", type: "local" },
|
|
||||||
{ name: 'Resizing' },
|
|
||||||
{ name: "Sorting", type: "local" }
|
|
||||||
],
|
|
||||||
columns: gridColumns,
|
|
||||||
dataSource: headerURL,
|
|
||||||
responseDataKey: "Results",
|
|
||||||
};
|
|
||||||
|
|
||||||
if ((toolType != null) && (toolType.HeaderGridAttributes != null)) {
|
|
||||||
jQuery.extend(gridParms, JSON.parse(toolType.HeaderGridAttributes));
|
|
||||||
}
|
|
||||||
|
|
||||||
$("#HeaderGrid").igGrid(gridParms);
|
|
||||||
|
|
||||||
if (headerId > 0) {
|
|
||||||
LoadDetails();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function ReviewButton() {
|
|
||||||
|
|
||||||
var toolTypeId = $("#ToolTypeID").text();
|
|
||||||
var headerId = parseInt($("#HeaderId").text());
|
|
||||||
|
|
||||||
$("#ReviewButton").prop("disabled", true);
|
|
||||||
$.ajax({
|
|
||||||
type: "POST",
|
|
||||||
url: "@Url.Content("~/api/awaitingdispo/markasawaiting")?tooltypeid=" + toolTypeId + "&headerid=" + headerId,
|
|
||||||
success: function (e) {
|
|
||||||
DisplayWSMessage("info", "Marked as awaiting disposition", e);
|
|
||||||
$("#ReviewButton").prop("disabled", false);
|
|
||||||
},
|
|
||||||
error: function (e, ajaxOptions, ex) {
|
|
||||||
DisplayWSMessage("error", "There was an error marking header as awaiting disposition.", e, ex);
|
|
||||||
$("#ReviewButton").prop("disabled", false);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function OIExportButton() {
|
|
||||||
|
|
||||||
var headerId = $("#HeaderId").text();
|
|
||||||
var toolTypeID = $("#ToolTypeID").text();
|
|
||||||
|
|
||||||
$("#OIExportButton").prop("disabled", true);
|
|
||||||
|
|
||||||
$.ajax({
|
|
||||||
type: "POST",
|
|
||||||
url: "@Url.Content("~/api/tooltypes/")" + toolTypeID + "/headers/" + headerId + "/oiexport",
|
|
||||||
success: function (r) {
|
|
||||||
$("#OIExportResult").text("Exported!");
|
|
||||||
},
|
|
||||||
error: function (e, ajaxOptions, ex) {
|
|
||||||
DisplayWSMessage("error", "There was an error exporting.", e, ex);
|
|
||||||
$("#OIExportButton").prop("disabled", false);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function SetInitialDateTimes() {
|
|
||||||
|
|
||||||
var startTime = new Date(Date.now() - 6 * 60 * 60 * 1000);//6 hours back from now
|
|
||||||
|
|
||||||
$("#StartDate").igDatePicker({
|
|
||||||
dateInputFormat: "date",
|
|
||||||
value: startTime,
|
|
||||||
width: 125
|
|
||||||
});
|
|
||||||
|
|
||||||
$("#StartTime").igTimePicker({
|
|
||||||
dateInputFormat: "time",
|
|
||||||
value: startTime,
|
|
||||||
width: 110
|
|
||||||
});
|
|
||||||
|
|
||||||
var endTime = new Date(Date.now());
|
|
||||||
|
|
||||||
$("#EndDate").igDatePicker({
|
|
||||||
dateInputFormat: "date",
|
|
||||||
value: endTime,
|
|
||||||
width: 125
|
|
||||||
});
|
|
||||||
|
|
||||||
$("#EndTime").igTimePicker({
|
|
||||||
dateInputFormat: "time",
|
|
||||||
value: endTime,
|
|
||||||
width: 110
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
|
|
||||||
$("#ToolType").igCombo({
|
initRunInfo("@ViewBag.ApiUrl", "@Model.ToolTypeID", "@Model.HeaderID", "@Model.HeaderAttachmentID");
|
||||||
dataSource: '@Url.Content("~/api/tooltypes")',
|
|
||||||
responseDataKey: "Results",
|
|
||||||
textKey: "ToolTypeName",
|
|
||||||
valueKey: "ID",
|
|
||||||
mode: "dropdown",
|
|
||||||
width: 150,
|
|
||||||
itemsRendered: function (evt, ui) {
|
|
||||||
LoadHeaderGrid();
|
|
||||||
},
|
|
||||||
selectionChanged: LoadHeaderGrid,
|
|
||||||
initialSelectedItems: [{ value: @Model.ToolTypeID }]
|
|
||||||
});
|
|
||||||
|
|
||||||
SetInitialDateTimes();
|
|
||||||
|
|
||||||
$("#HeaderGrid").on("dblclick", "tr", LoadDetails);
|
|
||||||
|
|
||||||
$("#LoadHeadersButton").click(LoadHeaderGrid);
|
|
||||||
|
|
||||||
$("#GetDataButton").click(LoadDetails);
|
|
||||||
|
|
||||||
$("#ReviewButton").click(ReviewButton);
|
|
||||||
|
|
||||||
$("#OIExportButton").click(OIExportButton);
|
|
||||||
|
|
||||||
setInterval(function () {
|
|
||||||
if ($("#chkAutoRefresh").is(':checked')) {
|
|
||||||
SetInitialDateTimes();
|
|
||||||
$("#LoadHeadersButton").click();
|
|
||||||
}
|
|
||||||
}, 180000);
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user