diff options
author | Sergey Chebotar <s.chebotar@gmail.com> | 2021-11-11 16:54:02 +0300 |
---|---|---|
committer | Sergey Chebotar <s.chebotar@gmail.com> | 2021-11-11 16:54:02 +0300 |
commit | 475d981364aa18ba22d4d2f78f837d20af4df6a8 (patch) | |
tree | dfbe96d775cd1129a17de33c21c946ba2eeb1d6b /Functions.cs | |
parent | 3be35e28f6e1c4477772ab74a18cbbdb45046224 (diff) | |
parent | e7d3fe2beae326a2380b4cfed7f33961f40d87ca (diff) |
Merge branch 'dev'
Diffstat (limited to 'Functions.cs')
-rw-r--r-- | Functions.cs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Functions.cs b/Functions.cs new file mode 100644 index 0000000..999a942 --- /dev/null +++ b/Functions.cs @@ -0,0 +1,24 @@ +using ExcelDna.Integration; + +namespace Rehau.Sku.Assist +{ + public class Functions : IExcelAddIn + { + [ExcelFunction(description: "Получение наименования и артикула позиции")] + public static string RAUNAME(string request) + { + SkuAssist.EnsureHttpInitialized(); + return SkuAssist.GetSku(request); + } + + public void AutoClose() + { + ExcelIntegration.RegisterUnhandledExceptionHandler( + delegate (object ex) { return string.Format("!!!ERROR: {0}", ex.ToString()); }); + } + + public void AutoOpen() + { + } + } +}
\ No newline at end of file |