SVN r1104
SVN-Revision: r1104
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user