Compare commits
No commits in common. "a065c4c6990e959742faa1bf8bb7ef960146978b" and "6d3f2bf55c9242fb2eabb573fb6945a2a61d3065" have entirely different histories.
a065c4c699
...
6d3f2bf55c
3
.vscode/launch.json
vendored
3
.vscode/launch.json
vendored
@ -15,8 +15,7 @@
|
|||||||
],
|
],
|
||||||
"cwd": "${workspaceFolder}",
|
"cwd": "${workspaceFolder}",
|
||||||
"console": "internalConsole",
|
"console": "internalConsole",
|
||||||
"stopAtEntry": false,
|
"stopAtEntry": false
|
||||||
"requireExactSource": false
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": ".NET Core Attach",
|
"name": ".NET Core Attach",
|
||||||
|
@ -8,21 +8,8 @@ public static class RhSolutionsFunctions
|
|||||||
RhSolutionsAddIn.ServiceProvider.GetRequiredService<ICurrencyClient>();
|
RhSolutionsAddIn.ServiceProvider.GetRequiredService<ICurrencyClient>();
|
||||||
|
|
||||||
[ExcelFunction(Name = "РЕХАУ")]
|
[ExcelFunction(Name = "РЕХАУ")]
|
||||||
public static object ProductSearch(object[,] values)
|
public static object ProductSearch(string query)
|
||||||
{
|
{
|
||||||
List<string> strings = new();
|
|
||||||
int rows = values.GetLength(0);
|
|
||||||
int columns = values.GetLength(1);
|
|
||||||
for (int row = 0; row < rows; row++)
|
|
||||||
{
|
|
||||||
for (int column = 0; column < columns; column++)
|
|
||||||
{
|
|
||||||
object value = values[row, column];
|
|
||||||
strings.Add(value.ToString());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
string query = string.Join(" ", strings.ToArray());
|
|
||||||
var functionName = nameof(ProductSearch);
|
var functionName = nameof(ProductSearch);
|
||||||
var parameters = new object[] { query };
|
var parameters = new object[] { query };
|
||||||
if (ExcelAsyncUtil.RunTask(functionName, parameters, async () =>
|
if (ExcelAsyncUtil.RunTask(functionName, parameters, async () =>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFrameworks>net472;net6.0-windows</TargetFrameworks>
|
<TargetFrameworks>net472</TargetFrameworks>
|
||||||
<LangVersion>10</LangVersion>
|
<LangVersion>10</LangVersion>
|
||||||
<OutputType>Library</OutputType>
|
<OutputType>Library</OutputType>
|
||||||
<RootNamespace>RhSolutions</RootNamespace>
|
<RootNamespace>RhSolutions</RootNamespace>
|
||||||
@ -17,8 +17,8 @@
|
|||||||
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="8.0.0" />
|
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="8.0.0" />
|
||||||
<PackageReference Include="Microsoft.Bcl.HashCode" Version="1.1.1" />
|
<PackageReference Include="Microsoft.Bcl.HashCode" Version="1.1.1" />
|
||||||
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
|
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
|
||||||
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="8.0.1" />
|
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="8.0.0" />
|
||||||
<PackageReference Include="Microsoft.Extensions.Http" Version="8.0.1" />
|
<PackageReference Include="Microsoft.Extensions.Http" Version="8.0.0" />
|
||||||
<PackageReference Include="netDxf" Version="2022.11.2" />
|
<PackageReference Include="netDxf" Version="2022.11.2" />
|
||||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
||||||
<PackageReference Include="System.Buffers" Version="4.5.1" />
|
<PackageReference Include="System.Buffers" Version="4.5.1" />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user