Mock files
This commit is contained in:
parent
9b4bbf4275
commit
8ce50cceb7
39
.vscode/tasks.json
vendored
39
.vscode/tasks.json
vendored
@ -25,6 +25,45 @@
|
||||
],
|
||||
"problemMatcher": "$msCompile"
|
||||
},
|
||||
{
|
||||
"label": "testDebug",
|
||||
"command": "dotnet",
|
||||
"type": "process",
|
||||
"args": [
|
||||
"test",
|
||||
"/property:GenerateFullPaths=true",
|
||||
"/consoleloggerparameters:NoSummary"
|
||||
],
|
||||
"problemMatcher": "$msCompile"
|
||||
},
|
||||
{
|
||||
"label": "testRelease",
|
||||
"command": "dotnet",
|
||||
"type": "process",
|
||||
"args": [
|
||||
"test",
|
||||
"/property:GenerateFullPaths=true",
|
||||
"/consoleloggerparameters:NoSummary",
|
||||
"-c",
|
||||
"Release"
|
||||
],
|
||||
"problemMatcher": "$msCompile"
|
||||
},
|
||||
{
|
||||
"label": "format",
|
||||
"command": "dotnet",
|
||||
"type": "process",
|
||||
"args": [
|
||||
"format",
|
||||
"--report",
|
||||
".vscode",
|
||||
"--verbosity",
|
||||
"detailed",
|
||||
"--severity",
|
||||
"warn"
|
||||
],
|
||||
"problemMatcher": "$msCompile"
|
||||
},
|
||||
{
|
||||
"label": "old-watch",
|
||||
"command": "dotnet",
|
||||
|
4
.vscode/thunder-tests/thunderActivity.json
vendored
4
.vscode/thunder-tests/thunderActivity.json
vendored
@ -108,11 +108,11 @@
|
||||
"colId": "history",
|
||||
"containerId": "",
|
||||
"name": "OI-RDS",
|
||||
"url": "http://messa020ec.ec.local/apidev/oiWizard/materials/rds/578941",
|
||||
"url": "http://messa020ec.ec.local/api/oiWizard/materials/rds/578941",
|
||||
"method": "GET",
|
||||
"sortNum": 0,
|
||||
"created": "2023-03-02T18:20:01.561Z",
|
||||
"modified": "2023-03-06T17:18:56.337Z",
|
||||
"modified": "2023-03-06T18:40:43.162Z",
|
||||
"headers": [],
|
||||
"params": [],
|
||||
"tests": [
|
||||
|
1
Server/Data/Tests/Export-GetExport.txt
Normal file
1
Server/Data/Tests/Export-GetExport.txt
Normal file
@ -0,0 +1 @@
|
||||
asdf
|
4
Server/Data/Tests/Export-GetHeaders.json
Normal file
4
Server/Data/Tests/Export-GetHeaders.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"Results": [],
|
||||
"TotalRows": 0
|
||||
}
|
4
Server/Data/Tests/Export-GetLogistics.json
Normal file
4
Server/Data/Tests/Export-GetLogistics.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"Results": [],
|
||||
"TotalRows": 0
|
||||
}
|
@ -0,0 +1 @@
|
||||
asdf
|
@ -77,6 +77,18 @@
|
||||
<None Include="Data\Tests\ClientSettings-GetIpAddress.json">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Include="Data\Tests\Export-GetExport.txt">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Include="Data\Tests\Export-GetHeaders.json">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Include="Data\Tests\Export-GetLogistics.json">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Include="Data\Tests\Export-GetProcessDataStandardFormat.pdsf">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Include="Data\Tests\InfinityQS-GetCommandText.sql">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
|
@ -52,7 +52,7 @@ public class ExportRepository : IExportRepository
|
||||
{
|
||||
string result;
|
||||
if (!string.IsNullOrEmpty(_MockRoot))
|
||||
result = File.ReadAllText(Path.Combine(string.Concat(AppContext.BaseDirectory, _MockRoot), $"{_RepositoryName}-{nameof(IExportRepository.GetLogistics)}.txt"));
|
||||
result = File.ReadAllText(Path.Combine(string.Concat(AppContext.BaseDirectory, _MockRoot), $"{_RepositoryName}-{nameof(IExportRepository.GetExport)}.txt"));
|
||||
else
|
||||
{
|
||||
List<string> files = GetFiles(headerCommon, "*.txt");
|
||||
@ -135,7 +135,7 @@ public class ExportRepository : IExportRepository
|
||||
{
|
||||
string result;
|
||||
if (!string.IsNullOrEmpty(_MockRoot))
|
||||
result = File.ReadAllText(Path.Combine(string.Concat(AppContext.BaseDirectory, _MockRoot), $"{_RepositoryName}-{nameof(IExportRepository.GetLogistics)}.txt"));
|
||||
result = File.ReadAllText(Path.Combine(string.Concat(AppContext.BaseDirectory, _MockRoot), $"{_RepositoryName}-{nameof(IExportRepository.GetProcessDataStandardFormat)}.pdsf"));
|
||||
else
|
||||
{
|
||||
List<string> files = GetFiles(headerCommon, "*.pdsf");
|
||||
|
@ -492,32 +492,44 @@ function recipeParametersButtonRunInfo() {
|
||||
var gridCreated = $("#ModalBodyGrid").data("igGrid");
|
||||
if (gridCreated)
|
||||
$("#ModalBodyGrid").igGrid("destroy");
|
||||
// $.getJSON('http://messa020ec.ec.local/apidev/oiWizard/materials/rds/' + jsonObject.RDS, function (data) {
|
||||
// $("#RecipeParametersButton").prop("disabled", false);
|
||||
// var text = "";
|
||||
// for (var i = 0; i < data.rds.rdsLayers.length; i++) {
|
||||
// text = text + data.rds.rdsLayers[i].EpiTime + "\t" + data.rds.rdsLayers[i].DiluentAdjParam + "\t" + data.rds.rdsLayers[i].DopantFlow + "\t" + data.rds.rdsLayers[i].HCLFlow + "\t" + data.rds.rdsLayers[i].BakeTime + "\t" + data.rds.rdsLayers[i].EpiH2Flow + "\t" + data.rds.rdsLayers[i].TCSFlow + "\t" + data.rds.rdsLayers[i].DCSFlow + "\t" + data.rds.rdsLayers[i].FOffset + "\r";
|
||||
// }
|
||||
// $("#textareaClipboard").val(text);
|
||||
// $("#ModalBodyGrid").igGrid({
|
||||
// dataSource: data.rds.rdsLayers,
|
||||
// features: [
|
||||
// { name: 'Resizing' }
|
||||
// ],
|
||||
// columns: [
|
||||
// { headerText: "Dep Time", key: "EpiTime", dataType: "number", width: "10%" },
|
||||
// { headerText: "H2", key: "EpiH2Flow", dataType: "number", width: "10%" },
|
||||
// { headerText: "TCS", key: "TCSFlow", dataType: "number", width: "10%" },
|
||||
// { headerText: "DIL", key: "DiluentAdjParam", dataType: "string", width: "10%" },
|
||||
// { headerText: "DopantFlow", key: "DopantFlow", dataType: "number", width: "10%" },
|
||||
// { headerText: "HCLFlow", key: "HCLFlow", dataType: "string", width: "10%" },
|
||||
// { headerText: "BakeTime", key: "BakeTime", dataType: "string", width: "10%" },
|
||||
// { headerText: "DCSFlow", key: "DCSFlow", dataType: "string", width: "10%" },
|
||||
// { headerText: "FOffset", key: "FOffset", dataType: "string", width: "10%" },
|
||||
// ],
|
||||
// responseDataKey: "Results",
|
||||
// });
|
||||
// });
|
||||
$.getJSON('http://messa020ec.ec.local/api/oiWizard/materials/rds/' + jsonObject.RDS, function (data) {
|
||||
$("#RecipeParametersButton").prop("disabled", false);
|
||||
var text = "";
|
||||
for (var i = 0; i < data.rds.rdsLayers.length; i++) {
|
||||
text = text
|
||||
+ data.rds.rdsLayers[i].EpiTime
|
||||
+ "\t" + data.rds.rdsLayers[i].EpiH2Flow
|
||||
+ "\t" + data.rds.rdsLayers[i].TCSFlow
|
||||
+ "\t" + data.rds.rdsLayers[i].DiluentAdjParam
|
||||
+ "\t" + data.rds.rdsLayers[i].EpiH2Flow
|
||||
+ "\t" + data.rds.rdsLayers[i].DopantFlow
|
||||
+ "\t" + data.rds.rdsLayers[i].FOffset
|
||||
+ "\t" + data.rds.rdsLayers[i].SOffset
|
||||
+ "\t" + data.rds.rdsLayers[i].ROffset
|
||||
+ "\t" + data.rds.rdsLayers[i].SuscEtch
|
||||
+ "\r"
|
||||
}
|
||||
$("#textareaClipboard").val(text);
|
||||
$("#ModalBodyGrid").igGrid({
|
||||
dataSource: data.rds.rdsLayers,
|
||||
features: [
|
||||
{ name: 'Resizing' }
|
||||
],
|
||||
columns: [
|
||||
{ headerText: "Dep Time", key: "EpiTime", dataType: "number", width: "10%" },
|
||||
{ headerText: "H2", key: "EpiH2Flow", dataType: "number", width: "10%" },
|
||||
{ headerText: "TCS", key: "TCSFlow", dataType: "number", width: "10%" },
|
||||
{ headerText: "DIL", key: "DiluentAdjParam", dataType: "string", width: "10%" },
|
||||
{ headerText: "SRC", key: "EpiH2Flow", dataType: "number", width: "10%" },
|
||||
{ headerText: "INJ", key: "DopantFlow", dataType: "string", width: "10%" },
|
||||
{ headerText: "F", key: "FOffset", dataType: "string", width: "10%" },
|
||||
{ headerText: "S", key: "SOffset", dataType: "string", width: "10%" },
|
||||
{ headerText: "R", key: "ROffset", dataType: "string", width: "10%" },
|
||||
{ headerText: "Susc Etch", key: "SuscEtch", dataType: "string", width: "10%" },
|
||||
],
|
||||
responseDataKey: "Results",
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@ -633,7 +645,17 @@ function pinButtonRunInfo() {
|
||||
});
|
||||
var text = "";
|
||||
for (var i = 0; i < data.Results.length; i++) {
|
||||
text = text + data.Results[i].Point1 + "\t" + data.Results[i].Point2 + "\t" + data.Results[i].Point3 + "\t" + data.Results[i].Point4 + "\t" + data.Results[i].Point5 + "\t" + data.Results[i].Point6 + "\t" + data.Results[i].Point7 + "\t" + data.Results[i].Point8 + "\t" + data.Results[i].Point9 + "\r";
|
||||
text = text
|
||||
+ data.Results[i].Point1
|
||||
+ "\t" + data.Results[i].Point2
|
||||
+ "\t" + data.Results[i].Point3
|
||||
+ "\t" + data.Results[i].Point4
|
||||
+ "\t" + data.Results[i].Point5
|
||||
+ "\t" + data.Results[i].Point6
|
||||
+ "\t" + data.Results[i].Point7
|
||||
+ "\t" + data.Results[i].Point8
|
||||
+ "\t" + data.Results[i].Point9
|
||||
+ "\r";
|
||||
}
|
||||
$("#textareaClipboard").val(text);
|
||||
$("#ModalBodyGrid").igGrid({
|
||||
|
Loading…
x
Reference in New Issue
Block a user