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
5b99e5f8
Commit
5b99e5f8
authored
Oct 11, 2021
by
tr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、表开发工具:修复decimal类型显示异常
parent
0cd39660
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
Tools.exe.config
AppHome/Tools.exe.config
+1
-1
wDBTableDevelopTools.cs
Tools/UI/wDBTableDevelopTools.cs
+2
-1
No files found.
AppHome/Tools.exe.config
View file @
5b99e5f8
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
configuration
>
<
configuration
>
<
appSettings
>
<
appSettings
>
<
add
key
=
"UpdateTime"
value
=
"2021-
09-29 16:51:27.897
"
/>
<
add
key
=
"UpdateTime"
value
=
"2021-
10-11 17:24:21.963
"
/>
<
add
key
=
"LoginInfo"
value
=
"wwF/xpBzWek="
/>
<
add
key
=
"LoginInfo"
value
=
"wwF/xpBzWek="
/>
</
appSettings
>
</
appSettings
>
<
startup
>
<
startup
>
...
...
Tools/UI/wDBTableDevelopTools.cs
View file @
5b99e5f8
...
@@ -589,7 +589,8 @@ namespace Tools.UI
...
@@ -589,7 +589,8 @@ namespace Tools.UI
[Description] = CONVERT(VARCHAR(200), isnull(d.[value],'')),
[Description] = CONVERT(VARCHAR(200), isnull(d.[value],'')),
IsNotNull = CASE WHEN a.isnullable=1 THEN 0 ELSE 1 END,
IsNotNull = CASE WHEN a.isnullable=1 THEN 0 ELSE 1 END,
DefaultValue = CASE WHEN e.name='datetime' THEN STUFF(STUFF(c.text, LEN(c.text), 1, ''), 1, 1, '') ELSE REPLACE(REPLACE(c.text, '(', ''), ')', '') END,
DefaultValue = CASE WHEN e.name='datetime' THEN STUFF(STUFF(c.text, LEN(c.text), 1, ''), 1, 1, '') ELSE REPLACE(REPLACE(c.text, '(', ''), ')', '') END,
ColumnType = CASE WHEN CHARINDEX('varchar',e.name,0) > 0 THEN e.name+'('+CAST(a.length AS VARCHAR(50)) +')' ELSE e.name END
ColumnType = CASE WHEN CHARINDEX('varchar',e.name,0) > 0 THEN e.name+'('+CAST(a.length AS VARCHAR(50)) +')'
WHEN CHARINDEX('decimal',e.name,0) > 0 THEN e.name + '(' + CAST(a.prec AS VARCHAR(10)) + ',' + CAST(a.scale AS VARCHAR(10)) + ')' ELSE e.name END
FROM dbo.syscolumns a
FROM dbo.syscolumns a
INNER JOIN dbo.sysobjects b ON b.id = a.id AND b.xtype = 'U' AND b.name <> 'dtproperties'
INNER JOIN dbo.sysobjects b ON b.id = a.id AND b.xtype = 'U' AND b.name <> 'dtproperties'
LEFT JOIN sys.syscomments c ON c.id = a.cdefault
LEFT JOIN sys.syscomments c ON c.id = a.cdefault
...
...
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