SVN r1104

SVN-Revision: r1104
This commit is contained in:
cyf
2026-01-30 07:48:24 +00:00
parent 5ccfe15fee
commit 47cf35aa28
45 changed files with 4096 additions and 449 deletions
@@ -40,6 +40,8 @@ using Lskj.Control.MultiModelLookUp;
using System.Text.RegularExpressions;
using DevExpress.XtraGrid.Views.BandedGrid;
using System.Collections;
using System.Data.Common;
using Lskj.Core;
namespace Lskj.Control
{
@@ -2053,7 +2055,7 @@ namespace Lskj.Control
// this.TreeListObj.FocusedNode = lastNode;
//}
}
public override int SetGridViewDataSource(SqlDataAdapter adapter, bool selectRowHandler = true)
public override int SetGridViewDataSource(DbDataAdapter adapter, bool selectRowHandler = true)
{
if (adapter == null) return 0;
if (this.ColumnList == null || this.ColumnList.Count == 0)
@@ -2103,8 +2105,9 @@ namespace Lskj.Control
}
SqlCommandBuilder cb = new SqlCommandBuilder(this.AdapterObj);
DbCommandBuilder cb = SqlHelper.dbFactory.CreateCommandBuilder();
cb.DataAdapter = this.AdapterObj;
//SqlCommandBuilder cb = new SqlCommandBuilder(this.AdapterObj);
GetTreeExpanded();
this.gcMain.DataSource = dataSet.Tables[0];