Commit b9c32a0b authored by tr's avatar tr

1、导出检查时,增加数据库链接判断,防止报错

parent 26f8a48f
This diff is collapsed.
...@@ -372,6 +372,12 @@ namespace Tools.UI ...@@ -372,6 +372,12 @@ namespace Tools.UI
/// <returns></returns> /// <returns></returns>
private bool CheckDetail() private bool CheckDetail()
{ {
//检查数据库链接
if (string.IsNullOrEmpty(this._link) || !this._db.ConnectionTest(this._link))
{
Utils.Tip("数据库链接无效,请选择有效链接!");
return false;
}
//检查表名 //检查表名
if (this.TableName.Equals("")) if (this.TableName.Equals(""))
{ {
......
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