SVN r1119

SVN-Revision: r1119
This commit is contained in:
tdx
2026-02-24 03:21:50 +00:00
parent bfdbb83708
commit 7572bad78d
+6 -6
View File
@@ -260,7 +260,7 @@ namespace Lskj.Core
adapter.SelectCommand = cmd;//创建对象,与sql命令对象绑定
DataSet dataSet = new DataSet();
adapter.Fill(dataSet, tabName);//填充数据。第二个参数是数据集中内存表的名字,可以与数据库中的不同
if (dataSet.Tables.Count > 0 && commandParameters != null)
if (dataSet.Tables.Count > 0 && commandParameters != null && connectionType == ConnectionType.DmServer)
{
DataTable resultTable = dataSet.Tables[dataSet.Tables.Count - 1];
object returnValue = resultTable.Columns.Contains("returnValue") ? resultTable.Rows[0]["returnValue"] : "";
@@ -359,7 +359,7 @@ namespace Lskj.Core
adapter.SelectCommand = cmd;
DataSet dataSet = new DataSet();
adapter.Fill(dataSet, tabName);
if (dataSet.Tables.Count > 0 && parameterValues != null)
if (dataSet.Tables.Count > 0 && parameterValues != null && connectionType == ConnectionType.DmServer)
{
DataTable resultTable = dataSet.Tables[dataSet.Tables.Count - 1];
object returnValue = resultTable.Columns.Contains("returnValue") ? resultTable.Rows[0]["returnValue"] : "";
@@ -411,7 +411,7 @@ namespace Lskj.Core
adapter.SelectCommand = cmd;
DataSet dataSet = new DataSet();
adapter.Fill(dataSet);
if (dataSet.Tables.Count > 0 && commandParameters != null)
if (dataSet.Tables.Count > 0 && commandParameters != null && connectionType == ConnectionType.DmServer)
{
DataTable resultTable = dataSet.Tables[dataSet.Tables.Count - 1];
int.TryParse(resultTable.Rows[0]["execcount"] + "", out num);
@@ -423,7 +423,7 @@ namespace Lskj.Core
{
sqlParameter.Value = returnValue;
}
if (sqlParameter.Direction == ParameterDirection.Output)
if (sqlParameter.Direction == ParameterDirection.Output || sqlParameter.Direction == ParameterDirection.InputOutput)
{
sqlParameter.Value = resultTable.Rows[0][$"outputValue{i}"];
}
@@ -489,7 +489,7 @@ namespace Lskj.Core
adapter.SelectCommand = cmd;
DataSet dataSet = new DataSet();
adapter.Fill(dataSet);
if (dataSet.Tables.Count > 0 && commandParameters != null)
if (dataSet.Tables.Count > 0 && commandParameters != null && connectionType == ConnectionType.DmServer)
{
DataTable resultTable = dataSet.Tables[dataSet.Tables.Count - 1];
int.TryParse(resultTable.Rows[0]["execcount"] + "", out num);
@@ -804,7 +804,7 @@ namespace Lskj.Core
continue;
}
string value = (parameter.Value + "").Replace("'", "''");
if (parameter.Direction == ParameterDirection.Output)
if (parameter.Direction == ParameterDirection.Output || parameter.Direction == ParameterDirection.InputOutput)
{
if (connectionType == ConnectionType.KdbnServer)
{