SVN r1135

SVN-Revision: r1135
This commit is contained in:
tdx
2026-03-10 10:01:17 +00:00
parent 64b62b235c
commit f3eadb18c0
+5 -1
View File
@@ -6,6 +6,7 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel; using System.ComponentModel;
using System.Data; using System.Data;
using System.Data.Common;
using System.Data.SqlClient; using System.Data.SqlClient;
using System.Drawing; using System.Drawing;
using System.IO.Ports; using System.IO.Ports;
@@ -140,7 +141,9 @@ namespace Lskj.PubGetChipInfo
if (!string.IsNullOrEmpty(functionName)) if (!string.IsNullOrEmpty(functionName))
{ {
DataTable sqlParametersTab = BaseImpl.GetDataTableResult($"SELECT PARAMETER_NAME,PARAMETER_MODE,CHARACTER_MAXIMUM_LENGTH,DATA_TYPE FROM INFORMATION_SCHEMA.PARAMETERS WHERE SPECIFIC_NAME = '{functionName}' ORDER BY ORDINAL_POSITION;"); DataTable sqlParametersTab = BaseImpl.GetDataTableResult($"SELECT PARAMETER_NAME,PARAMETER_MODE,CHARACTER_MAXIMUM_LENGTH,DATA_TYPE FROM INFORMATION_SCHEMA.PARAMETERS WHERE SPECIFIC_NAME = '{functionName}' ORDER BY ORDINAL_POSITION;");
using (SqlCommand command = new SqlCommand(functionName, SqlHelper._connection)) using (SqlConnection sqlConnection = new SqlConnection(SqlHelper._connection.ConnectionString))
{
using (SqlCommand command = new SqlCommand(functionName, sqlConnection))
{ {
string[] parametersArray = parameters.Split(','); string[] parametersArray = parameters.Split(',');
foreach (DataRow parameterRow in sqlParametersTab.Rows) foreach (DataRow parameterRow in sqlParametersTab.Rows)
@@ -204,6 +207,7 @@ namespace Lskj.PubGetChipInfo
} }
} }
} }
};
} }
else else
{ {