diff options
author | Sergey Chebotar <s.chebotar@gmail.com> | 2023-06-08 06:44:11 +0300 |
---|---|---|
committer | Sergey Chebotar <s.chebotar@gmail.com> | 2023-06-08 06:44:11 +0300 |
commit | bfab7eb02bc19a1ab0c53b786139986f10f6275b (patch) | |
tree | 90919cc7da000f90365eb2c62d8a8636348a8d39 | |
parent | 8b125e475e4f6970d1948e77fdf832c5e77f2cec (diff) |
Edit caller function names
-rw-r--r-- | RhSolutions.AddIn/AddIn/RhSolutionsFunctions.cs (renamed from RhSolutions.AddIn/AddIn/RhSolutionsFunction.cs) | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/RhSolutions.AddIn/AddIn/RhSolutionsFunction.cs b/RhSolutions.AddIn/AddIn/RhSolutionsFunctions.cs index b46a930..4341ddf 100644 --- a/RhSolutions.AddIn/AddIn/RhSolutionsFunction.cs +++ b/RhSolutions.AddIn/AddIn/RhSolutionsFunctions.cs @@ -7,7 +7,7 @@ namespace RhSolutions.AddIn; #if !NET472 [SupportedOSPlatform("windows")] #endif -public class RhSolutionsFunction +public class RhSolutionsFunctions { [ExcelFunction(Description = "Поиск артикула в базе данных")] public static object RHSOLUTIONS([ExcelArgument(Name = "СТРОКА", Description = "Ячейка с артикулом РЕХАУ или поисковый запрос в свободной форме")] string line) @@ -16,7 +16,7 @@ public class RhSolutionsFunction ProductSku.TryParse(line, out var skus); - if (ExcelAsyncUtil.Run("Database request", line, delegate + if (ExcelAsyncUtil.Run(nameof(RHSOLUTIONS), line, delegate { return databaseClient.GetProducts(line) .GetAwaiter() @@ -80,7 +80,7 @@ public class RhSolutionsFunction var article = skus.First().Id; IDatabaseClient databaseClient = RhSolutionsAddIn.ServiceProvider.GetService<IDatabaseClient>(); - if (ExcelAsyncUtil.Run("Database request", line, delegate + if (ExcelAsyncUtil.Run(nameof(РЕХАУИМЯ), line, delegate { return databaseClient.GetProducts(article) .GetAwaiter() @@ -116,7 +116,7 @@ public class RhSolutionsFunction var article = skus.First().Id; IDatabaseClient databaseClient = RhSolutionsAddIn.ServiceProvider.GetService<IDatabaseClient>(); - if (ExcelAsyncUtil.Run("Database request", line, delegate + if (ExcelAsyncUtil.Run(nameof(РЕХАУЦЕНА), line, delegate { return databaseClient.GetProducts(article) .GetAwaiter() @@ -154,7 +154,7 @@ public class RhSolutionsFunction IDatabaseClient databaseClient = RhSolutionsAddIn.ServiceProvider.GetService<IDatabaseClient>(); ICurrencyClient currencyClient = RhSolutionsAddIn.ServiceProvider.GetRequiredService<ICurrencyClient>(); - if (ExcelAsyncUtil.Run("Database request", line, delegate + if (ExcelAsyncUtil.Run(nameof(РЕХАУЦЕНАРУБ), line, delegate { var product = databaseClient.GetProducts(article) .GetAwaiter() @@ -191,7 +191,7 @@ public class RhSolutionsFunction { ICurrencyClient currencyClient = RhSolutionsAddIn.ServiceProvider.GetRequiredService<ICurrencyClient>(); - if (ExcelAsyncUtil.Run("Database request", dateField, delegate + if (ExcelAsyncUtil.Run(nameof(КУРСЕВРО), dateField, delegate { DateTime date = dateField == 0 ? DateTime.Today : DateTime.FromOADate(dateField); var exchangeRate = currencyClient.GetCurrencyCourse(date) |