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
5317f1a0
Commit
5317f1a0
authored
May 26, 2021
by
tr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、数据库链接维护:增加去重
parent
1f977c4d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
wDbLinkMngr.cs
Tools/UI/wDbLinkMngr.cs
+11
-2
No files found.
Tools/UI/wDbLinkMngr.cs
View file @
5317f1a0
...
...
@@ -105,10 +105,19 @@ namespace Tools.UI
/// </summary>
private
void
AddRow
()
{
var
note
=
this
.
tbNote
.
Text
.
Trim
();
var
link
=
this
.
tbLink
.
Text
.
Trim
();
//重复判断
var
isExist
=
this
.
_db
.
IsExist
(
$"SELECT COUNT(*) FROM dbo.FTT_DbLinkManager WHERE Note='
{
note
}
' AND Link = '
{
link
}
'"
);
if
(
isExist
)
{
Utils
.
Tip
(
"数据已存在,请勿重复录入!"
);
return
;
}
//増行
var
drNew
=
this
.
_ds
.
Tables
[
0
].
NewRow
();
drNew
[
"Note"
]
=
this
.
tbNote
.
Text
;
drNew
[
"Link"
]
=
this
.
tbLink
.
Text
.
Trim
()
;
drNew
[
"Note"
]
=
note
;
drNew
[
"Link"
]
=
link
;
this
.
_ds
.
Tables
[
0
].
Rows
.
Add
(
drNew
);
}
/// <summary>
...
...
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