From f7112ddf4383030d0e401e211547adfccf5c0977 Mon Sep 17 00:00:00 2001 From: rpm-mcarman <65228808+rpm-mcarman@users.noreply.github.com> Date: Thu, 9 Feb 2023 07:09:51 -0500 Subject: [PATCH] Test Commit --- .vscode/launch.json | 50 +- Global.cs | 2 + PDAImport.cs | 104 + Program.cs | 14 +- bin/Debug/net6.0/ExcelDataReader.DataSet.dll | Bin 0 -> 9728 bytes bin/Debug/net6.0/ExcelDataReader.dll | Bin 0 -> 178176 bytes .../net6.0/System.Text.Encoding.CodePages.dll | Bin 0 -> 740480 bytes bin/Debug/net6.0/foley.json | 21 + bin/Debug/net6.0/importer | Bin 132208 -> 113032 bytes bin/Debug/net6.0/importer.deps.json | 72 +- bin/Debug/net6.0/importer.dll | Bin 68096 -> 71168 bytes bin/Debug/net6.0/importer.pdb | Bin 35612 -> 36648 bytes .../net6.0/System.Text.Encoding.CodePages.dll | Bin 0 -> 742544 bytes importer.csproj | 4 + obj/Debug/net6.0/apphost | Bin 132208 -> 113032 bytes obj/Debug/net6.0/importer.assets.cache | Bin 33586 -> 35761 bytes .../importer.csproj.AssemblyReference.cache | Bin 75822 -> 77252 bytes .../importer.csproj.CoreCompileInputs.cache | 2 +- .../importer.csproj.FileListAbsolute.txt | 30 + obj/Debug/net6.0/importer.dll | Bin 68096 -> 71168 bytes .../net6.0/importer.genruntimeconfig.cache | 2 +- obj/Debug/net6.0/importer.pdb | Bin 35612 -> 36648 bytes obj/Debug/net6.0/ref/importer.dll | Bin 29184 -> 29696 bytes obj/Debug/net6.0/refint/importer.dll | Bin 29184 -> 29696 bytes obj/importer.csproj.nuget.dgspec.json | 41 +- obj/project.assets.json | 2868 ++--------------- obj/project.nuget.cache | 44 +- 27 files changed, 630 insertions(+), 2624 deletions(-) create mode 100644 PDAImport.cs create mode 100644 bin/Debug/net6.0/ExcelDataReader.DataSet.dll create mode 100644 bin/Debug/net6.0/ExcelDataReader.dll create mode 100644 bin/Debug/net6.0/System.Text.Encoding.CodePages.dll create mode 100644 bin/Debug/net6.0/foley.json create mode 100644 bin/Debug/net6.0/runtimes/win/lib/net6.0/System.Text.Encoding.CodePages.dll diff --git a/.vscode/launch.json b/.vscode/launch.json index ae2b2c2..bf8a777 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,26 +1,26 @@ { - "version": "0.2.0", - "configurations": [ - { - // Use IntelliSense to find out which attributes exist for C# debugging - // Use hover for the description of the existing attributes - // For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md - "name": ".NET Core Launch (console)", - "type": "coreclr", - "request": "launch", - "preLaunchTask": "build", - // If you have changed target frameworks, make sure to update the program path. - "program": "${workspaceFolder}/bin/Debug/net6.0/importer.dll", - "args": [], - "cwd": "${workspaceFolder}", - // For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console - "console": "internalConsole", - "stopAtEntry": false - }, - { - "name": ".NET Core Attach", - "type": "coreclr", - "request": "attach" - } - ] -} \ No newline at end of file + "version": "0.2.0", + "configurations": [ + { + // Use IntelliSense to find out which attributes exist for C# debugging + // Use hover for the description of the existing attributes + // For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md + "name": ".NET Core Launch (console)", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "build", + // If you have changed target frameworks, make sure to update the program path. + "program": "${workspaceFolder}/bin/Debug/net6.0/importer.dll", + "args": ["foley", "michielcarman"], + "cwd": "${workspaceFolder}", + // For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console + "console": "internalConsole", + "stopAtEntry": false + }, + { + "name": ".NET Core Attach", + "type": "coreclr", + "request": "attach" + } + ] +} diff --git a/Global.cs b/Global.cs index 8f45860..7abc58b 100644 --- a/Global.cs +++ b/Global.cs @@ -17,6 +17,8 @@ namespace importer { if (Program.Args[0] == "brandt") return JDISImport.ServiceUrl; + else if (Program.Args[0] == "foley") + return PDAImport.ServiceUrl; else return string.Empty; } } diff --git a/PDAImport.cs b/PDAImport.cs new file mode 100644 index 0000000..9462be4 --- /dev/null +++ b/PDAImport.cs @@ -0,0 +1,104 @@ +using System; +using System.Text; +using System.Linq; +using System.Collections.Generic; +using importer.RestObjects; +using importer.ImportObjects; +using System.IO; +using ExcelDataReader; +using System.Data; + +namespace importer +{ + public class PDAImport + { + private static string _serviceUrl; + private static RESTService _rservice; + private static List _customers; + private static List _makes; + private static List _products; + private static List _models; + private static List _inspectionTypes; + private static List