Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
Ftt_Common
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Ftt_Common
Commits
b9c32a0b
Commit
b9c32a0b
authored
Oct 06, 2020
by
tr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、导出检查时,增加数据库链接判断,防止报错
parent
26f8a48f
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
103 additions
and
97 deletions
+103
-97
wDBTools.Designer.cs
Tools/UI/wDBTools.Designer.cs
+97
-97
wDBTools.cs
Tools/UI/wDBTools.cs
+6
-0
No files found.
Tools/UI/wDBTools.Designer.cs
View file @
b9c32a0b
This diff is collapsed.
Click to expand it.
Tools/UI/wDBTools.cs
View file @
b9c32a0b
...
@@ -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
(
""
))
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment