SVN r245
SVN-Revision: r245
This commit is contained in:
@@ -6011,7 +6011,7 @@ namespace Lskj.Control
|
||||
{
|
||||
if (focusedRow.Table.Columns.Contains(resultField))
|
||||
{
|
||||
focusedRow[resultField] = modelLookUp.EditValue;
|
||||
focusedRow[resultField] = modelLookUp.EditText;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
using DevExpress.Utils.Menu;
|
||||
using DevExpress.XtraEditors;
|
||||
using DevExpress.XtraEditors;
|
||||
using DevExpress.XtraGrid.Columns;
|
||||
using DevExpress.XtraGrid.Menu;
|
||||
using DevExpress.XtraGrid.Views.Grid;
|
||||
using Lskj.Business;
|
||||
using Lskj.Business.Impl;
|
||||
@@ -10,13 +8,9 @@ using Lskj.Data;
|
||||
using Lskj.Model;
|
||||
using Lskj.Util;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Lskj.Control.MultiModelLookUp
|
||||
@@ -641,7 +635,7 @@ namespace Lskj.Control.MultiModelLookUp
|
||||
LeftTreeViewEx.TreeView.SelectedNode = LeftTreeViewEx.TreeView.Nodes[0];//重新打开时默认选中第一条
|
||||
LeftTreeViewEx.TreeView.Nodes[0].Expand();
|
||||
}
|
||||
else if (LeftGridEx != null)
|
||||
else if (LeftGridEx != null)
|
||||
{
|
||||
LeftGridEx.GridView.SelectRow(0);
|
||||
}
|
||||
@@ -1045,40 +1039,4 @@ namespace Lskj.Control.MultiModelLookUp
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
this.splitMain.PanelVisibility = SplitPanelVisibility.Panel2;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
//设置选中框的值
|
||||
private void SetSelectionBox()
|
||||
{
|
||||
if (this.DataSource != null)
|
||||
{
|
||||
if (!this.DataSource.Columns.Contains(_checkFieldName))
|
||||
{
|
||||
this.DataSource.Columns.Add(_checkFieldName, typeof(bool));
|
||||
this.DataSource.Columns.Add(_id, typeof(int));
|
||||
|
||||
for (int i = 0; i < DataSource.Rows.Count; i++)
|
||||
{
|
||||
DataSource.Rows[i][_checkFieldName] = 0;
|
||||
DataSource.Rows[i][_id] = i;
|
||||
}
|
||||
}
|
||||
this.gcDetail.GridControl.DataSource = this.gcMain.gridControl.DataSourceTable().Clone();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user