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
2f1a3a52
Commit
2f1a3a52
authored
Sep 12, 2020
by
tr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、数据库工具:默认路径自动创建
parent
31893332
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
1 deletion
+24
-1
.gitignore
.gitignore
+1
-0
wDBTools.cs
Tools/UI/wDBTools.cs
+23
-1
No files found.
.gitignore
View file @
2f1a3a52
...
...
@@ -16,3 +16,4 @@ bin
/.vs/Ftt_Common/DesignTimeBuild
/.vs/Ftt_Common
.vs
/AppHome/save
Tools/UI/wDBTools.cs
View file @
2f1a3a52
...
...
@@ -145,6 +145,8 @@ namespace Tools.UI
this
.
tstbDbLink
.
Text
=
Utils
.
GetDbItemModel
(
this
.
_link
).
ToString
();
//基本信息绑定
this
.
BindBaseInfo
();
//系统路径初始化
this
.
InitDefaultPath
();
//数据表格初始化
this
.
dgvData
.
AutoGenerateColumns
=
false
;
this
.
dgvData
.
AllowUserToAddRows
=
false
;
...
...
@@ -450,7 +452,27 @@ namespace Tools.UI
//执行SQL语句
this
.
_db
.
ExecNonSql
(
this
.
_link
,
sqlist
);
}
/// <summary>
/// 初始化默认路径
/// </summary>
private
void
InitDefaultPath
()
{
this
.
CreatePath
(
Utils
.
ConfigPath
);
this
.
CreatePath
(
Utils
.
LogPath
);
this
.
CreatePath
(
Utils
.
SavePath
);
this
.
CreatePath
(
Utils
.
TempPath
);
}
/// <summary>
/// 创建目录
/// </summary>
/// <param name="path"></param>
private
void
CreatePath
(
string
path
)
{
if
(!
Directory
.
Exists
(
path
))
{
Directory
.
CreateDirectory
(
path
);
}
}
...
...
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