Mock files

This commit is contained in:
2023-03-06 11:58:36 -07:00
parent 9b4bbf4275
commit 8ce50cceb7
9 changed files with 114 additions and 31 deletions

View File

@ -0,0 +1 @@
asdf

View File

@ -0,0 +1,4 @@
{
"Results": [],
"TotalRows": 0
}

View File

@ -0,0 +1,4 @@
{
"Results": [],
"TotalRows": 0
}

View File

@ -0,0 +1 @@
asdf

View File

@ -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>

View File

@ -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");

View File

@ -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({