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
f163a8f6
Commit
f163a8f6
authored
Nov 29, 2023
by
wangonghui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交修改咪咕Bug
parent
00a9fa70
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
57 additions
and
6 deletions
+57
-6
VIZ.Package.Module/Control/Controller/ControlController.cs
+12
-3
VIZ.Package.Service/DB/ControlObject/ControlObjectService.cs
+1
-1
VIZ.Package.Service/Viz/VizCommandService.cs
+40
-1
VIZ.Package.Service/Viz/VizControlObjectDownloadService.cs
+4
-1
No files found.
VIZ.Package.Module/Control/Controller/ControlController.cs
View file @
f163a8f6
...
...
@@ -49,7 +49,7 @@ namespace VIZ.Package.Module
{
//调整上包装顺序
if
(
obj
!=
null
&&
view
==
null
)
if
(
obj
!=
null
)
{
this
.
vizCommandControlObjectService
.
SetControlObject
(
conn
,
obj
,
newPageBase
.
GetVizScene
());
this
.
vizCommandControlObjectService
.
SetCustomControlFieldValue
(
conn
,
obj
.
AllFiledNodes
);
...
...
@@ -58,16 +58,25 @@ namespace VIZ.Package.Module
// 清楚板子上的信息
this
.
vizCommandService
.
SetCue
(
conn
,
ApplicationDomainEx
.
CurrentPage
.
ScenePath
);
this
.
vizCommandService
.
Start
(
conn
,
ApplicationDomainEx
.
CurrentPage
.
Layer
,
ApplicationDomainEx
.
CurrentPage
.
ScenePath
);
if
(
view
==
null
)
{
this
.
vizCommandService
.
Start
(
conn
,
ApplicationDomainEx
.
CurrentPage
.
Layer
,
ApplicationDomainEx
.
CurrentPage
.
ScenePath
);
}
//开始动画
// 设置SetObject 东西
this
.
vizCommandService
.
SetObject
(
conn
,
ApplicationDomainEx
.
CurrentPage
.
ScenePath
,
ApplicationDomainEx
.
CurrentPage
.
Layer
);
//if (view == null)
//{
this
.
vizCommandService
.
SetObject
(
conn
,
ApplicationDomainEx
.
CurrentPage
.
ScenePath
,
ApplicationDomainEx
.
CurrentPage
.
Layer
);
// }
//更新板子的值的值
if
(
view
!=
null
)
{
//this.vizCommandService.Start(conn, null, ApplicationDomainEx.CurrentPage.Layer);
view
.
TakIn
(
conn
);
this
.
vizCommandService
.
Start
(
conn
,
ApplicationDomainEx
.
CurrentPage
.
Layer
,
ApplicationDomainEx
.
CurrentPage
.
ScenePath
);
}
}
catch
(
Exception
ex
)
...
...
VIZ.Package.Service/DB/ControlObject/ControlObjectService.cs
View file @
f163a8f6
...
...
@@ -49,7 +49,7 @@ namespace VIZ.Package.Service
list
.
Add
(
entity
);
}
ApplicationDomainEx
.
ProjectDbContext
.
ControlField
.
In
sert
(
list
);
ApplicationDomainEx
.
ProjectDbContext
.
ControlField
.
Up
sert
(
list
);
}
/// <summary>
...
...
VIZ.Package.Service/Viz/VizCommandService.cs
View file @
f163a8f6
...
...
@@ -26,11 +26,50 @@ namespace VIZ.Package.Service
if
(
string
.
IsNullOrWhiteSpace
(
scene
))
throw
new
ArgumentNullException
(
nameof
(
scene
));
conn
.
EndpointManager
.
Request
(
$"RENDERER*
{
layer
}
SET_OBJECT SCENE*
{
scene
}
"
);
}
/// <summary>
/// 设置重新加载
/// </summary>
/// <param name="conn"></param>
/// <param name="scene"></param>
/// <param name="layer"></param>
/// <exception cref="ArgumentNullException"></exception>
public
void
SetReloadTeampleExist
(
ConnModel
conn
,
string
scene
,
VizLayer
layer
)
{
if
(
conn
==
null
)
throw
new
ArgumentNullException
(
nameof
(
conn
));
if
(
string
.
IsNullOrWhiteSpace
(
scene
))
throw
new
ArgumentNullException
(
nameof
(
scene
));
conn
.
EndpointManager
.
Request
(
$"SCENE*
{
scene
}
EXIST"
);
}
/// <summary>
/// 设置模板的重新加载
/// </summary>
/// <param name="conn"></param>
/// <param name="scene"></param>
/// <param name="layer"></param>
/// <exception cref="ArgumentNullException"></exception>
public
void
SetReloadTeample
(
ConnModel
conn
,
string
scene
,
VizLayer
layer
)
{
if
(
conn
==
null
)
throw
new
ArgumentNullException
(
nameof
(
conn
));
if
(
string
.
IsNullOrWhiteSpace
(
scene
))
throw
new
ArgumentNullException
(
nameof
(
scene
));
conn
.
EndpointManager
.
Request
(
$"SCENE*
{
scene
}
RELOAD"
);
}
/// <summary>
/// /清楚板子信息 根据trio CUE来的
/// </summary>
/// <param name="conn"></param>
...
...
VIZ.Package.Service/Viz/VizControlObjectDownloadService.cs
View file @
f163a8f6
...
...
@@ -78,9 +78,12 @@ namespace VIZ.Package.Service
{
if
(
pageBase
==
null
)
return
;
//判断是否存在
this
.
vizCommandService
.
SetReloadTeampleExist
(
ApplicationDomainEx
.
PreviewConn
,
pageBase
.
ScenePath
,
pageBase
.
Layer
);
// 切换场景
this
.
vizCommandService
.
SetObject
(
ApplicationDomainEx
.
PreviewConn
,
pageBase
.
ScenePath
,
pageBase
.
Layer
);
//更新模板
this
.
vizCommandService
.
SetReloadTeample
(
ApplicationDomainEx
.
PreviewConn
,
pageBase
.
ScenePath
,
pageBase
.
Layer
);
// 获取场景缩略图
pageBase
.
ThumbnailBitmap
=
this
.
vizCommandService
.
GetSceneImage
(
ApplicationDomainEx
.
PreviewConn
,
pageBase
.
ScenePath
);
...
...
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