SVN-Revision: r461
This commit is contained in:
wyf
2025-04-08 08:07:16 +00:00
parent 2b60b09ed5
commit 294d2a3070
+6 -29
View File
@@ -1495,6 +1495,11 @@ namespace Lskj.Control
if (cells.Length == 1 && focusedRowHandle + 1 < totalRowCount) 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) if (MessageUtil.Show(e.KeyCode == Keys.F6 ? ResourceKeys.IsReplaceAllEmptyColumn : ResourceKeys.IsReplaceAllColumn, MessageBoxButtons.YesNo) == DialogResult.Yes)
{ {
object obj = this.bandedGridView.GetFocusedRowCellValue(column); 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); string tempSql = string.Format(@"insert i
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;// 确保第一行被聚焦
}
}
}