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"
|
"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",
|
"label": "old-watch",
|
||||||
"command": "dotnet",
|
"command": "dotnet",
|
||||||
|
4
.vscode/thunder-tests/thunderActivity.json
vendored
4
.vscode/thunder-tests/thunderActivity.json
vendored
@ -108,11 +108,11 @@
|
|||||||
"colId": "history",
|
"colId": "history",
|
||||||
"containerId": "",
|
"containerId": "",
|
||||||
"name": "OI-RDS",
|
"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",
|
"method": "GET",
|
||||||
"sortNum": 0,
|
"sortNum": 0,
|
||||||
"created": "2023-03-02T18:20:01.561Z",
|
"created": "2023-03-02T18:20:01.561Z",
|
||||||
"modified": "2023-03-06T17:18:56.337Z",
|
"modified": "2023-03-06T18:40:43.162Z",
|
||||||
"headers": [],
|
"headers": [],
|
||||||
"params": [],
|
"params": [],
|
||||||
"tests": [
|
"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">
|
<None Include="Data\Tests\ClientSettings-GetIpAddress.json">
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
</None>
|
</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">
|
<None Include="Data\Tests\InfinityQS-GetCommandText.sql">
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
</None>
|
</None>
|
||||||
|
@ -52,7 +52,7 @@ public class ExportRepository : IExportRepository
|
|||||||
{
|
{
|
||||||
string result;
|
string result;
|
||||||
if (!string.IsNullOrEmpty(_MockRoot))
|
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
|
else
|
||||||
{
|
{
|
||||||
List<string> files = GetFiles(headerCommon, "*.txt");
|
List<string> files = GetFiles(headerCommon, "*.txt");
|
||||||
@ -135,7 +135,7 @@ public class ExportRepository : IExportRepository
|
|||||||
{
|
{
|
||||||
string result;
|
string result;
|
||||||
if (!string.IsNullOrEmpty(_MockRoot))
|
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
|
else
|
||||||
{
|
{
|
||||||
List<string> files = GetFiles(headerCommon, "*.pdsf");
|
List<string> files = GetFiles(headerCommon, "*.pdsf");
|
||||||
|
@ -492,32 +492,44 @@ function recipeParametersButtonRunInfo() {
|
|||||||
var gridCreated = $("#ModalBodyGrid").data("igGrid");
|
var gridCreated = $("#ModalBodyGrid").data("igGrid");
|
||||||
if (gridCreated)
|
if (gridCreated)
|
||||||
$("#ModalBodyGrid").igGrid("destroy");
|
$("#ModalBodyGrid").igGrid("destroy");
|
||||||
// $.getJSON('http://messa020ec.ec.local/apidev/oiWizard/materials/rds/' + jsonObject.RDS, function (data) {
|
$.getJSON('http://messa020ec.ec.local/api/oiWizard/materials/rds/' + jsonObject.RDS, function (data) {
|
||||||
// $("#RecipeParametersButton").prop("disabled", false);
|
$("#RecipeParametersButton").prop("disabled", false);
|
||||||
// var text = "";
|
var text = "";
|
||||||
// for (var i = 0; i < data.rds.rdsLayers.length; i++) {
|
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";
|
text = text
|
||||||
// }
|
+ data.rds.rdsLayers[i].EpiTime
|
||||||
// $("#textareaClipboard").val(text);
|
+ "\t" + data.rds.rdsLayers[i].EpiH2Flow
|
||||||
// $("#ModalBodyGrid").igGrid({
|
+ "\t" + data.rds.rdsLayers[i].TCSFlow
|
||||||
// dataSource: data.rds.rdsLayers,
|
+ "\t" + data.rds.rdsLayers[i].DiluentAdjParam
|
||||||
// features: [
|
+ "\t" + data.rds.rdsLayers[i].EpiH2Flow
|
||||||
// { name: 'Resizing' }
|
+ "\t" + data.rds.rdsLayers[i].DopantFlow
|
||||||
// ],
|
+ "\t" + data.rds.rdsLayers[i].FOffset
|
||||||
// columns: [
|
+ "\t" + data.rds.rdsLayers[i].SOffset
|
||||||
// { headerText: "Dep Time", key: "EpiTime", dataType: "number", width: "10%" },
|
+ "\t" + data.rds.rdsLayers[i].ROffset
|
||||||
// { headerText: "H2", key: "EpiH2Flow", dataType: "number", width: "10%" },
|
+ "\t" + data.rds.rdsLayers[i].SuscEtch
|
||||||
// { headerText: "TCS", key: "TCSFlow", dataType: "number", width: "10%" },
|
+ "\r"
|
||||||
// { headerText: "DIL", key: "DiluentAdjParam", dataType: "string", width: "10%" },
|
}
|
||||||
// { headerText: "DopantFlow", key: "DopantFlow", dataType: "number", width: "10%" },
|
$("#textareaClipboard").val(text);
|
||||||
// { headerText: "HCLFlow", key: "HCLFlow", dataType: "string", width: "10%" },
|
$("#ModalBodyGrid").igGrid({
|
||||||
// { headerText: "BakeTime", key: "BakeTime", dataType: "string", width: "10%" },
|
dataSource: data.rds.rdsLayers,
|
||||||
// { headerText: "DCSFlow", key: "DCSFlow", dataType: "string", width: "10%" },
|
features: [
|
||||||
// { headerText: "FOffset", key: "FOffset", dataType: "string", width: "10%" },
|
{ name: 'Resizing' }
|
||||||
// ],
|
],
|
||||||
// responseDataKey: "Results",
|
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 = "";
|
var text = "";
|
||||||
for (var i = 0; i < data.Results.length; i++) {
|
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);
|
$("#textareaClipboard").val(text);
|
||||||
$("#ModalBodyGrid").igGrid({
|
$("#ModalBodyGrid").igGrid({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user