RhSolutions-AddIn/Source/AddIn/Functions.cs

20 lines
546 B
C#
Raw Normal View History

using ExcelDna.Integration;
2021-12-08 14:45:14 +03:00
using RehauSku.Assistant;
2021-11-11 16:33:40 +03:00
2021-12-08 14:45:14 +03:00
namespace RehauSku
2021-11-11 16:33:40 +03:00
{
2021-11-29 15:50:24 +03:00
public class Functions
2021-11-11 16:33:40 +03:00
{
[ExcelFunction]
public static object RAUNAME(string request)
2021-12-03 22:25:20 +03:00
=> SkuAssist.GetProduct(request, ProductField.Name);
2021-12-03 14:15:16 +03:00
[ExcelFunction]
public static object RAUSKU(string request)
2021-12-03 22:25:20 +03:00
=> SkuAssist.GetProduct(request, ProductField.Id);
2021-12-03 14:15:16 +03:00
2021-12-03 22:25:20 +03:00
[ExcelFunction]
public static object RAUPRICE(string request)
2021-12-05 16:32:25 +03:00
=> SkuAssist.GetProduct(request, ProductField.Price);
2021-11-11 16:33:40 +03:00
}
}