SVN r461
SVN-Revision: r461
This commit is contained in:
@@ -1495,6 +1495,11 @@ namespace Lskj.Control
|
||||
|
||||
if (cells.Length == 1 && focusedRowHandle + 1 < totalRowCount)
|
||||
{
|
||||
DataTable sourceTab = GridView.GridControl.DataSourceTable();
|
||||
if (sourceTab.Columns.Contains("PrecomputedMaxDate") && column.Tag == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (MessageUtil.Show(e.KeyCode == Keys.F6 ? ResourceKeys.IsReplaceAllEmptyColumn : ResourceKeys.IsReplaceAllColumn, MessageBoxButtons.YesNo) == DialogResult.Yes)
|
||||
{
|
||||
object obj = this.bandedGridView.GetFocusedRowCellValue(column);
|
||||
@@ -3135,32 +3140,4 @@ namespace Lskj.Control
|
||||
|
||||
}
|
||||
}
|
||||
string tempSql = string.Format(@"insert into {3}(GroupName,GroupAmount,OperAtorId) values('{0}','{1}','{2}');", editValue, groupText, ERPInfo.Instance.UserId, ResourceKeys.SettingGrouprptab);
|
||||
SqlHelper.ExecuteNonQuery(tempSql);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex, Model.ModuleCode);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 点击标题行排序后,默认选中第一行
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void BandedGridView_EndSorting(object sender, EventArgs e)
|
||||
{
|
||||
this.bandedGridView.MoveFirst(); // 将焦点行移动到第一行
|
||||
this.bandedGridView.FocusedRowHandle = 0;// 确保第一行被聚焦
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
string tempSql = string.Format(@"insert i
|
||||
Reference in New Issue
Block a user