Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
VIZ.Package
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘龙飞
VIZ.Package
Commits
ddb514c8
Commit
ddb514c8
authored
May 09, 2023
by
wangonghui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
F12清屏操作功能开发
parent
5d63e771
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
48 additions
and
8 deletions
+48
-8
VIZ.Package.Domain/Model/Conn/ConnGroupModel.cs
+18
-0
VIZ.Package.Module/Control/ViewModel/ControlViewModel.cs
+16
-8
VIZ.Package.Module/Setting/Conn/View/ConnSettingView.xaml
+7
-0
VIZ.Package.Service/DB/Conn/ConnService.cs
+2
-0
VIZ.Package.Storage/Entity/Conn/ConnGroupEntity.cs
+5
-0
No files found.
VIZ.Package.Domain/Model/Conn/ConnGroupModel.cs
View file @
ddb514c8
...
@@ -128,6 +128,22 @@ namespace VIZ.Package.Domain
...
@@ -128,6 +128,22 @@ namespace VIZ.Package.Domain
#
endregion
#
endregion
#
region
CleanScreen
/// <summary>
/// 是否清屏操作
/// </summary>
private
bool
cleanScreen
;
public
bool
CleanScreen
{
get
{
return
cleanScreen
;
}
set
{
cleanScreen
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
CleanScreen
));
}
}
#
endregion
/// <summary>
/// <summary>
/// 更新状态
/// 更新状态
/// </summary>
/// </summary>
...
@@ -150,5 +166,7 @@ namespace VIZ.Package.Domain
...
@@ -150,5 +166,7 @@ namespace VIZ.Package.Domain
// 部分连接
// 部分连接
this
.
Status
=
ConnGroupStatus
.
AnyConnection
;
this
.
Status
=
ConnGroupStatus
.
AnyConnection
;
}
}
}
}
}
}
VIZ.Package.Module/Control/ViewModel/ControlViewModel.cs
View file @
ddb514c8
...
@@ -258,20 +258,28 @@ namespace VIZ.Package.Module
...
@@ -258,20 +258,28 @@ namespace VIZ.Package.Module
public
void
ClearSceen
()
public
void
ClearSceen
()
{
{
var
pageModel
=
ApplicationDomainEx
.
CurrentPage
as
PageModel
;
ConnGroupModel
group
=
ApplicationDomainEx
.
ConnGroups
.
FirstOrDefault
(
p
=>
p
.
GroupID
==
pageModel
.
ConnGroupID
);
//var pageModel = ApplicationDomainEx.CurrentPage as PageModel;
//ConnGroupModel group = ApplicationDomainEx.ConnGroups.FirstOrDefault(p => p.GroupID == pageModel.ConnGroupID);
foreach
(
var
item
in
group
.
Items
)
//清除默认勾选的连接引擎
foreach
(
var
group
in
ApplicationDomainEx
.
ConnGroups
)
{
{
if
(!
item
.
IsEnabled
||
!
item
.
IsConnected
)
if
(
group
.
CleanScreen
)
continue
;
{
foreach
(
var
item
in
group
.
Items
)
{
if
(!
item
.
IsEnabled
||
!
item
.
IsConnected
)
continue
;
vizCommandService
.
ClearSceen
(
item
,
VizLayer
.
FRONT_LAYER
);
vizCommandService
.
ClearSceen
(
item
,
VizLayer
.
FRONT_LAYER
);
vizCommandService
.
ClearSceen
(
item
,
VizLayer
.
MAIN_LAYER
);
vizCommandService
.
ClearSceen
(
item
,
VizLayer
.
MAIN_LAYER
);
vizCommandService
.
ClearSceen
(
item
,
VizLayer
.
BACK_LAYER
);
vizCommandService
.
ClearSceen
(
item
,
VizLayer
.
BACK_LAYER
);
}
}
}
}
}
}
#
endregion
#
endregion
...
...
VIZ.Package.Module/Setting/Conn/View/ConnSettingView.xaml
View file @
ddb514c8
...
@@ -86,6 +86,13 @@
...
@@ -86,6 +86,13 @@
</dxg:GridColumn>
</dxg:GridColumn>
<dxg:GridColumn Header="引擎类型" FieldName="EngineType" AllowSorting="False" AllowColumnFiltering="False"
<dxg:GridColumn Header="引擎类型" FieldName="EngineType" AllowSorting="False" AllowColumnFiltering="False"
ReadOnly="True"></dxg:GridColumn>
ReadOnly="True"></dxg:GridColumn>
<dxg:GridColumn Header="是否清屏" FieldName="CleanScreen" Width="80" AllowSorting="False" AllowColumnFiltering="False">
<dxg:GridColumn.EditSettings>
<dxe:CheckEditSettings></dxe:CheckEditSettings>
</dxg:GridColumn.EditSettings>
</dxg:GridColumn>
</dxg:GridControl.Columns>
</dxg:GridControl.Columns>
<dxg:GridControl.View>
<dxg:GridControl.View>
<dxg:TableView AllowEditing="True" ShowIndicator="False"
<dxg:TableView AllowEditing="True" ShowIndicator="False"
...
...
VIZ.Package.Service/DB/Conn/ConnService.cs
View file @
ddb514c8
...
@@ -32,6 +32,7 @@ namespace VIZ.Package.Service
...
@@ -32,6 +32,7 @@ namespace VIZ.Package.Service
model
.
IsDefault
=
entity
.
IsDefault
;
model
.
IsDefault
=
entity
.
IsDefault
;
model
.
Name
=
entity
.
Name
;
model
.
Name
=
entity
.
Name
;
model
.
EngineType
=
entity
.
EngineType
;
model
.
EngineType
=
entity
.
EngineType
;
model
.
CleanScreen
=
entity
.
CleanScreen
;
groups
.
Add
(
model
);
groups
.
Add
(
model
);
}
}
...
@@ -74,6 +75,7 @@ namespace VIZ.Package.Service
...
@@ -74,6 +75,7 @@ namespace VIZ.Package.Service
groupEntity
.
IsDefault
=
group
.
IsDefault
;
groupEntity
.
IsDefault
=
group
.
IsDefault
;
groupEntity
.
Name
=
group
.
Name
;
groupEntity
.
Name
=
group
.
Name
;
groupEntity
.
EngineType
=
group
.
EngineType
;
groupEntity
.
EngineType
=
group
.
EngineType
;
groupEntity
.
CleanScreen
=
group
.
CleanScreen
;
groupList
.
Add
(
groupEntity
);
groupList
.
Add
(
groupEntity
);
...
...
VIZ.Package.Storage/Entity/Conn/ConnGroupEntity.cs
View file @
ddb514c8
...
@@ -42,5 +42,10 @@ namespace VIZ.Package.Storage
...
@@ -42,5 +42,10 @@ namespace VIZ.Package.Storage
/// 是否是默认分组
/// 是否是默认分组
/// </summary>
/// </summary>
public
bool
IsDefault
{
get
;
set
;
}
public
bool
IsDefault
{
get
;
set
;
}
/// <summary>
/// 是否清屏
/// </summary>
public
bool
CleanScreen
{
get
;
set
;
}
}
}
}
}
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