SVN r243
SVN-Revision: r243
This commit is contained in:
@@ -1086,7 +1086,6 @@ namespace Lskj.Control
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
|
||||
lookUp.DataSource = dataTable;
|
||||
break;
|
||||
case ControlType.LabAutoCompleteValue:
|
||||
@@ -6004,8 +6003,19 @@ namespace Lskj.Control
|
||||
if (result == DialogResult.OK)
|
||||
{
|
||||
btnEdit.EditValue = modelLookUp.EditValue;
|
||||
string[] resultFields = model.addModuleResult.Trim().Split(',');
|
||||
DataRow focusedRow = this.gridView.GetFocusedDataRow();
|
||||
if (focusedRow != null)
|
||||
{
|
||||
foreach (string resultField in resultFields)
|
||||
{
|
||||
if (focusedRow.Table.Columns.Contains(resultField))
|
||||
{
|
||||
focusedRow[resultField] = modelLookUp.EditValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@@ -7600,36 +7610,4 @@ namespace Lskj.Control
|
||||
{
|
||||
int returnIndex = 0;
|
||||
isContain = false;
|
||||
DataRow dragEndRow = sourceTab.Rows[dragEndRowIndex];
|
||||
if (selectRows.Contains(dragEndRow))
|
||||
{
|
||||
isContain = true;
|
||||
dragEndRowIndex = dragEndRowIndex - 1;
|
||||
if (dragEndRowIndex >= 0)
|
||||
{
|
||||
dragEndRow = sourceTab.Rows[dragEndRowIndex];
|
||||
if (selectRows.Contains(dragEndRow))
|
||||
{
|
||||
bool iscontain = false;
|
||||
returnIndex = GetDragEndRowIndex(sourceTab, dragEndRowIndex, selectRows, out iscontain);
|
||||
}
|
||||
else
|
||||
{
|
||||
returnIndex = dragEndRowIndex;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
returnIndex = -1;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
returnIndex = dragEndRowIndex;
|
||||
}
|
||||
return returnIndex;
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
DataRow dragEn
|
||||
Reference in New Issue
Block a user