Added Work Order and change to left join

This commit is contained in:
Mike Phares 2022-10-10 11:49:40 -07:00
parent 5f7450e442
commit 5c50078c04
2 changed files with 4 additions and 3 deletions

View File

@ -77,7 +77,7 @@ public class RdsMaxRepo : IRdsMaxRepo
Append(" ) as qc "). Append(" ) as qc ").
Append(" inner join lsl2sql.dbo.react_run rr "). Append(" inner join lsl2sql.dbo.react_run rr ").
Append(" on qc.rds_no = rr.rds_no "). Append(" on qc.rds_no = rr.rds_no ").
Append(" inner join [lsl2sql].[dbo].[rds_test] rt "). Append(" left join [lsl2sql].[dbo].[rds_test] rt ").
Append(" on rr.rds_no = rt.rds_no "). Append(" on rr.rds_no = rt.rds_no ").
Append(" and rr.ps_no = rt.ps_no "). Append(" and rr.ps_no = rt.ps_no ").
Append(" left join [lsl2sql].[dbo].[clean_insp] ci "). Append(" left join [lsl2sql].[dbo].[clean_insp] ci ").
@ -254,7 +254,7 @@ public class RdsMaxRepo : IRdsMaxRepo
List<string> thick = new(); List<string> thick = new();
List<string> centerRes = new(); List<string> centerRes = new();
StringBuilder stringBuilder = new(); StringBuilder stringBuilder = new();
_ = stringBuilder.Append($"Reactor\tReactorType\tRDS\tPSN\tName\tSpecType\tRes\tThick\tCenter Res\tScan"); _ = stringBuilder.Append($"Reactor\tReactorType\tWO\tRDS\tPSN\tName\tSpecType\tRes\tThick\tCenter Res\tScan");
row = stringBuilder.ToString().Split('\t'); row = stringBuilder.ToString().Split('\t');
results.Add(row); results.Add(row);
Dictionary<int, List<Max>> reactorToRecords = GetReactorToRecords(collection); Dictionary<int, List<Max>> reactorToRecords = GetReactorToRecords(collection);
@ -268,7 +268,7 @@ public class RdsMaxRepo : IRdsMaxRepo
_ = stringBuilder.Clear(); _ = stringBuilder.Clear();
foreach (Max max in reactorToRecord.Value) foreach (Max max in reactorToRecord.Value)
{ {
_ = stringBuilder.Append($"R{max.Reactor}\t{max.ReactorType}\t{max.RdsNo}\t{max.PsNo}\t{max.RecipeName}\t{max.SpecType}\t"); _ = stringBuilder.Append($"R{max.Reactor}\t{max.ReactorType}\t{max.WoNo}\t{max.RdsNo}\t{max.PsNo}\t{max.RecipeName}\t{max.SpecType}\t");
break; break;
} }
layerZoneCollection = GetLayerZoneCollection(layerCollection, comboCollection, zoneCollection, reactorToRecord.Value); layerZoneCollection = GetLayerZoneCollection(layerCollection, comboCollection, zoneCollection, reactorToRecord.Value);

View File

@ -9,6 +9,7 @@ public record Max(
[property: JsonPropertyName("zone")] string Zone, [property: JsonPropertyName("zone")] string Zone,
[property: JsonPropertyName("load_lock_side")] string LoadLockSide, [property: JsonPropertyName("load_lock_side")] string LoadLockSide,
[property: JsonPropertyName("rds_no")] int RdsNo, [property: JsonPropertyName("rds_no")] int RdsNo,
[property: JsonPropertyName("wo_no")] int WoNo,
[property: JsonPropertyName("ps_no")] string PsNo, [property: JsonPropertyName("ps_no")] string PsNo,
[property: JsonPropertyName("recipe_name")] string RecipeName, [property: JsonPropertyName("recipe_name")] string RecipeName,
[property: JsonPropertyName("recipe_no")] int RecipeNo, [property: JsonPropertyName("recipe_no")] int RecipeNo,