Removed save-open-insight-file to use process-data-standard-format instead
This commit is contained in:
		@ -8,6 +8,7 @@ using System;
 | 
			
		||||
using System.Collections.Generic;
 | 
			
		||||
using System.IO;
 | 
			
		||||
using System.Linq;
 | 
			
		||||
using System.Text;
 | 
			
		||||
using System.Text.Json;
 | 
			
		||||
 | 
			
		||||
namespace Adaptation.FileHandlers.IQSSi;
 | 
			
		||||
@ -107,11 +108,63 @@ public class FileRead : Shared.FileRead, IFileRead
 | 
			
		||||
        return results;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    private static string GetLines(Logistics logistics, List<pcl.Description> descriptions)
 | 
			
		||||
    {
 | 
			
		||||
        StringBuilder result = new();
 | 
			
		||||
        pcl.Description x = descriptions[0];
 | 
			
		||||
        char del = '\t';
 | 
			
		||||
        _ = result.Append(x.AreaCountAvg).Append(del).                   // 001 - AreaCountAvg
 | 
			
		||||
            Append(x.AreaCountMax).Append(del).                      // 002 - AreaCountMax
 | 
			
		||||
            Append(x.AreaCountMin).Append(del).                      // 003 - AreaCountMin
 | 
			
		||||
            Append(x.AreaCountStdDev).Append(del).                   // 004 - AreaCountStdDev
 | 
			
		||||
            Append(x.AreaTotalAvg).Append(del).                      // 005 - AreaTotalAvg
 | 
			
		||||
            Append(x.AreaTotalMax).Append(del).                      // 006 - AreaTotalMax
 | 
			
		||||
            Append(x.AreaTotalMin).Append(del).                      // 007 - AreaTotalMin
 | 
			
		||||
            Append(x.AreaTotalStdDev).Append(del).                   // 008 - AreaTotalStdDev
 | 
			
		||||
            Append(x.Date).Append(del).                              // 009 - 
 | 
			
		||||
            Append(x.HazeAverageAvg).Append(del).                    // 010 - Haze Average
 | 
			
		||||
            Append(x.HazeAverageMax).Append(del).                    // 011 - 
 | 
			
		||||
            Append(x.HazeAverageMin).Append(del).                    // 012 - 
 | 
			
		||||
            Append(x.HazeAverageStdDev).Append(del).                 // 013 - 
 | 
			
		||||
            Append(x.HazeRegionAvg).Append(del).                     // 014 - 
 | 
			
		||||
            Append(x.HazeRegionMax).Append(del).                     // 015 - 
 | 
			
		||||
            Append(x.HazeRegionMin).Append(del).                     // 016 - 
 | 
			
		||||
            Append(x.HazeRegionStdDev).Append(del).                  // 017 - 
 | 
			
		||||
            Append(x.Lot).Append(del).                               // 018 - 
 | 
			
		||||
            Append(x.LPDCM2Avg).Append(del).                         // 019 - 
 | 
			
		||||
            Append(x.LPDCM2Max).Append(del).                         // 020 - 
 | 
			
		||||
            Append(x.LPDCM2Min).Append(del).                         // 021 - 
 | 
			
		||||
            Append(x.LPDCM2StdDev).Append(del).                      // 022 - 
 | 
			
		||||
            Append(x.LPDCountAvg).Append(del).                       // 023 - 
 | 
			
		||||
            Append(x.LPDCountMax).Append(del).                       // 024 - 
 | 
			
		||||
            Append(x.LPDCM2Min).Append(del).                         // 025 - 
 | 
			
		||||
            Append(x.LPDCountStdDev).Append(del).                    // 026 - 
 | 
			
		||||
            Append(x.Employee).Append(del).                          // 027 - 
 | 
			
		||||
            Append(x.RDS).Append(del).                               // 028 - Lot
 | 
			
		||||
            Append(x.Reactor).Append(del).                           // 029 - Process
 | 
			
		||||
            Append(x.Recipe.Replace(";", string.Empty)).Append(del). // 030 - Part
 | 
			
		||||
            Append(x.ScratchCountAvg).Append(del).                   // 031 - Scratch Count
 | 
			
		||||
            Append(x.ScratchCountMax).Append(del).                   // 032 - 
 | 
			
		||||
            Append(x.ScratchCountMin).Append(del).                   // 033 - 
 | 
			
		||||
            Append(x.ScratchTotalStdDev).Append(del).                // 034 - 
 | 
			
		||||
            Append(x.ScratchTotalAvg).Append(del).                   // 035 - Scratch Length
 | 
			
		||||
            Append(x.ScratchTotalMax).Append(del).                   // 036 - 
 | 
			
		||||
            Append(x.ScratchTotalMin).Append(del).                   // 037 - 
 | 
			
		||||
            Append(x.ScratchTotalStdDev).Append(del).                // 038 - 
 | 
			
		||||
            Append(x.SumOfDefectsAvg).Append(del).                   // 039 - Average Sum of Defects
 | 
			
		||||
            Append(x.SumOfDefectsMax).Append(del).                   // 040 - Max Sum of Defects
 | 
			
		||||
            Append(x.SumOfDefectsMin).Append(del).                   // 041 - Min Sum of Defects
 | 
			
		||||
            Append(x.SumOfDefectsStdDev).Append(del).                // 042 - SumOfDefectsStdDev
 | 
			
		||||
            Append(logistics.MesEntity).Append(del).           // 043 - 
 | 
			
		||||
            AppendLine();
 | 
			
		||||
        return result.ToString();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    private void SaveIQSFile(string reportFullPath, DateTime dateTime, List<pcl.Description> descriptions, Test[] tests)
 | 
			
		||||
    {
 | 
			
		||||
        bool isDummyRun = false;
 | 
			
		||||
        List<(Shared.Properties.IScopeInfo, string)> collection = new();
 | 
			
		||||
        string lines = OpenInsight.FileRead.GetLines(_Logistics, descriptions);
 | 
			
		||||
        string lines = GetLines(_Logistics, descriptions);
 | 
			
		||||
        string successDirectory = _FileConnectorConfiguration.AlternateTargetFolder;
 | 
			
		||||
        string duplicateDirectory = Path.Combine(_FileConnectorConfiguration.SourceFileLocation, _CellInstanceName);
 | 
			
		||||
        if (!Directory.Exists(duplicateDirectory))
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user