From 6c5dd4c6d423d24cec0082ba7c5ab0f72bd6e18b Mon Sep 17 00:00:00 2001 From: koechlm Date: Thu, 3 Sep 2020 15:34:40 +0200 Subject: [PATCH] code fix on GetNewNumber issue (#8) --- .gitignore | 1 + iLogic-Vault-QuickstartLibrary/Properties/AssemblyInfo.cs | 4 ++-- .../iLogic-Vault QuickstartLibrary.cs | 7 +------ 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index 2f64599..bbd9891 100644 --- a/.gitignore +++ b/.gitignore @@ -34,3 +34,4 @@ /iLogic-Vault-QuickstartLibrary/QuickstartiLogicLibrary2020.25.2.1.zip /iLogic-VaultInvServer Library/obj/x64/Release /iLogic-VaultInvServer Library/bin/x64/Release +/iLogic-VaultInvServer Library/obj/x64/Debug diff --git a/iLogic-Vault-QuickstartLibrary/Properties/AssemblyInfo.cs b/iLogic-Vault-QuickstartLibrary/Properties/AssemblyInfo.cs index b75b507..be7df8c 100644 --- a/iLogic-Vault-QuickstartLibrary/Properties/AssemblyInfo.cs +++ b/iLogic-Vault-QuickstartLibrary/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("2021.26.0.0")] -[assembly: AssemblyFileVersion("2021.26.0.0")] +[assembly: AssemblyVersion("2021.26.0.1")] +[assembly: AssemblyFileVersion("2021.26.0.1")] diff --git a/iLogic-Vault-QuickstartLibrary/iLogic-Vault QuickstartLibrary.cs b/iLogic-Vault-QuickstartLibrary/iLogic-Vault QuickstartLibrary.cs index 5efba65..33c3f67 100644 --- a/iLogic-Vault-QuickstartLibrary/iLogic-Vault QuickstartLibrary.cs +++ b/iLogic-Vault-QuickstartLibrary/iLogic-Vault QuickstartLibrary.cs @@ -696,11 +696,6 @@ public IList CheckFilesExistBySearchCriteria(Dictionary public string GetNewNumber(string mSchmName, string[] mSchmPrms = null) { AWS.NumSchm NmngSchm = null; - if (mSchmPrms == null) - { - mSchmPrms = Array.Empty(); - } - try { if (mSchmName == "Default") @@ -711,7 +706,7 @@ public string GetNewNumber(string mSchmName, string[] mSchmPrms = null) { NmngSchm = conn.WebServiceManager.NumberingService.GetNumberingSchemes("FILE", AWS.NumSchmType.Activated).First(n => n.Name == mSchmName); } - return conn.WebServiceManager.DocumentService.GenerateFileNumber(NmngSchm.SchmID, null); + return conn.WebServiceManager.DocumentService.GenerateFileNumber(NmngSchm.SchmID, mSchmPrms); } catch (Exception) {