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
888e7cfa
Commit
888e7cfa
authored
Jun 28, 2021
by
tr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、菜单栏优化:增加分类及顺序调整
parent
bc06d06e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
20 deletions
+42
-20
Common.cs
Tools/MyCommon/Common.cs
+4
-0
wExtend.cs
Tools/wExtend.cs
+26
-20
wMain.cs
Tools/wMain.cs
+12
-0
No files found.
Tools/MyCommon/Common.cs
View file @
888e7cfa
...
...
@@ -20,6 +20,10 @@ namespace Tools.MyCommon
/// </summary>
public
Type
ViewFormType
{
get
;
set
;
}
/// <summary>
/// 所属分组
/// </summary>
public
string
GroupName
{
get
;
set
;
}
/// <summary>
/// 显示名称
/// </summary>
public
string
Text
{
get
;
set
;
}
...
...
Tools/wExtend.cs
View file @
888e7cfa
...
...
@@ -16,25 +16,30 @@ namespace Tools
//为保证显示效果:名称长度尽量少于9个汉字
return
new
List
<
ModuleInfo
>
{
this
.
CreateModule
(
typeof
(
UpdateExecuter
.
frmMain
),
"更新执行工具"
,
"xj:用于客户更新和执行SQL脚本"
),
this
.
CreateModule
(
typeof
(
Ftt
.
PatchPack
.
FrmMain
),
"自动打包工具"
,
"xj:用于CS后端程序自动打包成压缩包"
),
this
.
CreateModule
(
typeof
(
UI
.
wDBTableDevelopTools
),
"表开发工具"
,
"tr:用于创建表,添加描述及生成模型类等"
),
this
.
CreateModule
(
typeof
(
UI
.
wDbAnlysis
),
"SQL效率分析"
,
"tr:用于分析SQL查询效率(执行计划和IO计数)"
),
this
.
CreateModule
(
typeof
(
UI
.
wSysChecker
),
"检查配置工具"
,
"tr:系统通用检查配置服务(通过存储过程检查)"
),
this
.
CreateModule
(
typeof
(
UI
.
wMonitorVisit
),
"APP访问监控"
,
"tb:APP模块的访问统计查看界面"
),
this
.
CreateModule
(
typeof
(
UI
.
wAppModel
),
"APP模块管理"
,
"tb:APP添加模块的图形化界面"
),
this
.
CreateModule
(
typeof
(
UI
.
wSysModule
),
"功能模块管理"
,
"xj:管理功能模块和代码窗体的映射"
),
this
.
CreateModule
(
typeof
(
UI
.
wAutoClass
),
"类生成工具"
,
"tb:将任意数据库表,生成为模型类"
),
this
.
CreateModule
(
typeof
(
UI
.
wAuditDemo
),
"审批示例"
,
"tr:一个审批程序的示例"
),
this
.
CreateModule
(
typeof
(
UI
.
wImageSearch
),
"图片搜索"
,
"tr:一个图片搜索的示例程序"
),
this
.
CreateModule
(
typeof
(
UI
.
wXmlGenerator
),
"XML生成器"
,
"tr:将表生成为XML配置文件"
),
this
.
CreateModule
(
typeof
(
UI
.
wModuleManager
),
"模块管理"
,
"tr:系统模块管理工具(支持生成SQL)"
),
this
.
CreateModule
(
typeof
(
UI
.
wLoginPwd
),
"登录密码"
,
"tr:用于登陆密码的解密加密"
),
this
.
CreateModule
(
typeof
(
UI
.
wEvaluationOfEmployee
),
"员工考核"
,
"tr:员工考核的记录工具"
),
this
.
CreateModule
(
typeof
(
UI
.
wEmptyTable
),
"清空表"
,
"tr:输入主表、自动清空关联表的工具"
),
this
.
CreateModule
(
typeof
(
UI
.
wDbLinkMngr
),
"数据库链接管理"
,
"tr:现有数据库链接的管理和查看"
),
this
.
CreateModule
(
typeof
(
UI
.
wExcelExportSetting
),
"Excel导出设置"
,
"tr:Excel导出配置图形化版本"
),
this
.
CreateModule
(
typeof
(
UI
.
wTaskBoard
),
"任务看板"
,
"tr:任务看板的简易化工具,免除翻页困扰"
),
//-------------------------------
this
.
CreateModule
(
"实施工具"
,
typeof
(
UpdateExecuter
.
frmMain
),
"更新执行工具"
,
"xj:用于客户更新和执行SQL脚本"
),
this
.
CreateModule
(
"实施工具"
,
typeof
(
UI
.
wEmptyTable
),
"清空表"
,
"tr:输入主表、自动清空关联表的工具"
),
this
.
CreateModule
(
"实施工具"
,
typeof
(
UI
.
wExcelExportSetting
),
"Excel导出设置"
,
"tr:Excel导出配置图形化版本"
),
//-------------------------------
this
.
CreateModule
(
"通用工具"
,
typeof
(
UI
.
wLoginPwd
),
"登录密码"
,
"tr:用于登陆密码的解密加密"
),
this
.
CreateModule
(
"通用工具"
,
typeof
(
UI
.
wDbLinkMngr
),
"数据库链接管理"
,
"tr:现有数据库链接的管理和查看"
),
this
.
CreateModule
(
"通用工具"
,
typeof
(
UI
.
wTaskBoard
),
"任务看板"
,
"tr:任务看板的简易化工具,免除翻页困扰"
),
//-------------------------------
this
.
CreateModule
(
"开发工具"
,
typeof
(
Ftt
.
PatchPack
.
FrmMain
),
"自动打包工具"
,
"xj:用于CS后端程序自动打包成压缩包"
),
this
.
CreateModule
(
"开发工具"
,
typeof
(
UI
.
wSysModule
),
"功能模块管理"
,
"xj:管理功能模块和代码窗体的映射"
),
this
.
CreateModule
(
"开发工具"
,
typeof
(
UI
.
wAppModel
),
"APP模块管理"
,
"tb:APP添加模块的图形化界面"
),
this
.
CreateModule
(
"开发工具"
,
typeof
(
UI
.
wAutoClass
),
"类生成工具"
,
"tb:将任意数据库表,生成为模型类"
),
this
.
CreateModule
(
"开发工具"
,
typeof
(
UI
.
wMonitorVisit
),
"APP访问监控"
,
"tb:APP模块的访问统计查看界面"
),
this
.
CreateModule
(
"开发工具"
,
typeof
(
UI
.
wDBTableDevelopTools
),
"表开发工具"
,
"tr:用于创建表,添加描述及生成模型类等"
),
this
.
CreateModule
(
"开发工具"
,
typeof
(
UI
.
wXmlGenerator
),
"XML生成器"
,
"tr:将表生成为XML配置文件"
),
this
.
CreateModule
(
"开发工具"
,
typeof
(
UI
.
wModuleManager
),
"模块管理"
,
"tr:系统模块管理工具(支持生成SQL)"
),
this
.
CreateModule
(
"开发工具"
,
typeof
(
UI
.
wDbAnlysis
),
"SQL效率分析"
,
"tr:用于分析SQL查询效率(执行计划和IO计数)"
),
this
.
CreateModule
(
"开发工具"
,
typeof
(
UI
.
wSysChecker
),
"检查配置工具"
,
"tr:系统通用检查配置服务(通过存储过程检查)"
),
//-------------------------------
this
.
CreateModule
(
"行政工具"
,
typeof
(
UI
.
wEvaluationOfEmployee
),
"员工考核"
,
"tr:员工考核的记录工具"
),
//-------------------------------
this
.
CreateModule
(
"示例程序"
,
typeof
(
UI
.
wAuditDemo
),
"审批示例"
,
"tr:一个审批程序的示例"
),
this
.
CreateModule
(
"示例程序"
,
typeof
(
UI
.
wImageSearch
),
"图片搜索"
,
"tr:一个图片搜索的示例"
),
};
}
...
...
@@ -46,10 +51,11 @@ namespace Tools
/// <param name="tip">提示信息</param>
/// <param name="imgPath">图片路径</param>
/// <returns></returns>
private
ModuleInfo
CreateModule
(
Type
frmType
,
string
text
,
string
tip
=
""
)
private
ModuleInfo
CreateModule
(
string
group
,
Type
frmType
,
string
text
,
string
tip
=
""
)
{
return
new
ModuleInfo
{
ViewFormType
=
frmType
,
GroupName
=
group
,
Text
=
text
,
ToolTipText
=
tip
,
};
...
...
Tools/wMain.cs
View file @
888e7cfa
...
...
@@ -316,11 +316,23 @@ namespace Tools
var
mList
=
this
.
Extend
.
GetModuleList
();
foreach
(
ModuleInfo
m
in
mList
)
{
//获取分组
var
grp
=
this
.
listView1
.
Groups
[
m
.
GroupName
];
if
(
grp
==
null
)
{
grp
=
new
ListViewGroup
()
{
Name
=
m
.
GroupName
,
Header
=
m
.
GroupName
,
};
this
.
listView1
.
Groups
.
Add
(
grp
);
}
//添加项
this
.
listView1
.
Items
.
Add
(
new
ListViewItem
()
{
Text
=
m
.
Text
,
ToolTipText
=
m
.
ToolTipText
,
ImageIndex
=
1
,
Group
=
grp
,
Tag
=
m
.
ViewFormType
,
});
}
...
...
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