Commit e5fd4dda authored by tr's avatar tr

1、系统检查配置:删除主表时同步删除明细

parent 29107f0c
......@@ -266,6 +266,13 @@ namespace Tools.UI
var rowIndex = dgv.CurrentRow.Index;
if (rowIndex >= 0 && rowIndex < dt.DefaultView.Count)
{
//当为主表时,先删除明细
if (tableName.Equals(this.T_Config))
{
while (this._ds.Tables[this.T_ConfigDetail].DefaultView.Count > 0)
this._ds.Tables[this.T_ConfigDetail].DefaultView[0].Delete();
}
//删除当前行
dt.DefaultView[rowIndex].Delete();
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment