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
370ee2d5
Commit
370ee2d5
authored
Mar 29, 2023
by
wangonghui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交修改Clock代码
parent
e06f9c9a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
10 deletions
+42
-10
VIZ.Package.Module/ControlObject/FieldEdit/Edit/ClockEdit/ClockEditPanel.xaml
+9
-9
VIZ.Package.Module/ControlObject/FieldEdit/Edit/ClockEdit/ClockEditPanelModel.cs
+33
-1
No files found.
VIZ.Package.Module/ControlObject/FieldEdit/Edit/ClockEdit/ClockEditPanel.xaml
View file @
370ee2d5
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
mc:Ignorable="d"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="650">
d:DesignHeight="300" d:DesignWidth="650">
<Grid>
<Grid
VerticalAlignment="Top"
>
<Grid.ColumnDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="500"/>
<ColumnDefinition Width="500"/>
<ColumnDefinition Width="150"/>
<ColumnDefinition Width="150"/>
...
@@ -14,13 +14,13 @@
...
@@ -14,13 +14,13 @@
</Grid.ColumnDefinitions>
</Grid.ColumnDefinitions>
<StackPanel Height="300">
<StackPanel Height="300"
>
<Grid>
<Grid>
<Grid.RowDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="150"/>
<RowDefinition Height="150"/>
<RowDefinition Height="80"/>
<RowDefinition Height="80"/>
</Grid.RowDefinitions>
</Grid.RowDefinitions>
<StackPanel Grid.Row="0">
<StackPanel Grid.Row="0">
<Grid>
<Grid>
<Grid.RowDefinitions>
<Grid.RowDefinitions>
...
@@ -29,10 +29,10 @@
...
@@ -29,10 +29,10 @@
</Grid.RowDefinitions>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition
Width="100"
/>
<ColumnDefinition/>
<ColumnDefinition
Width="150"
/>
<ColumnDefinition/>
<ColumnDefinition
Width="100"
/>
<ColumnDefinition/>
<ColumnDefinition
Width="100"
/>
</Grid.ColumnDefinitions>
</Grid.ColumnDefinitions>
...
@@ -78,8 +78,8 @@
...
@@ -78,8 +78,8 @@
<Button Content="START" Height="40" Width="75" Grid.Column="0" Command="{Binding StartCommand}"/>
<Button Content="START" Height="40" Width="75" Grid.Column="0" Command="{Binding StartCommand}"/>
<Button Content="STOP" Height="40" Width="75" Grid.Column="1" Command="{Binding StopCommand}"/>
<Button Content="STOP" Height="40" Width="75" Grid.Column="1" Command="{Binding StopCommand}"/>
<Button Content="CONT" Height="40" Width="75" Grid.Column="2" Command="{Binding ContCommand}"/>
<Button Content="CONT" Height="40" Width="75" Grid.Column="2" Command="{Binding ContCommand}"/>
<Button Content="FREEZE" Height="40" Width="70" Grid.Column="3" Command="{Binding FreezeCommand}"/>
<Button Content="FREEZE" Height="40" Width="70" Grid.Column="3" Command="{Binding FreezeCommand}"
Visibility="Hidden"
/>
<Button Content="UNFREEZE" Height="40" Grid.Column="4" Command="{Binding UnFreezeCommand}"/>
<Button Content="UNFREEZE" Height="40" Grid.Column="4" Command="{Binding UnFreezeCommand}"
Visibility="Hidden"
/>
</Grid>
</Grid>
</GroupBox>
</GroupBox>
...
...
VIZ.Package.Module/ControlObject/FieldEdit/Edit/ClockEdit/ClockEditPanelModel.cs
View file @
370ee2d5
...
@@ -29,7 +29,7 @@ namespace VIZ.Package.Module
...
@@ -29,7 +29,7 @@ namespace VIZ.Package.Module
public
override
string
GetFieldValue
()
public
override
string
GetFieldValue
()
{
{
throw
new
NotImplementedException
()
;
return
this
.
ControlField
.
Value
;
}
}
...
@@ -67,6 +67,17 @@ namespace VIZ.Package.Module
...
@@ -67,6 +67,17 @@ namespace VIZ.Package.Module
/// </summary>
/// </summary>
private
void
Start
()
private
void
Start
()
{
{
var
pageModel
=
ApplicationDomainEx
.
CurrentPage
as
PageModel
;
ConnGroupModel
group
=
ApplicationDomainEx
.
ConnGroups
.
FirstOrDefault
(
p
=>
p
.
GroupID
==
pageModel
.
ConnGroupID
);
foreach
(
var
item
in
group
.
Items
)
{
if
(!
item
.
IsEnabled
||
!
item
.
IsConnected
)
continue
;
item
.
EndpointManager
.
Send
(
"CLOCK0 START"
);
}
}
}
...
@@ -80,6 +91,17 @@ namespace VIZ.Package.Module
...
@@ -80,6 +91,17 @@ namespace VIZ.Package.Module
/// </summary>
/// </summary>
private
void
Stop
()
private
void
Stop
()
{
{
var
pageModel
=
ApplicationDomainEx
.
CurrentPage
as
PageModel
;
ConnGroupModel
group
=
ApplicationDomainEx
.
ConnGroups
.
FirstOrDefault
(
p
=>
p
.
GroupID
==
pageModel
.
ConnGroupID
);
foreach
(
var
item
in
group
.
Items
)
{
if
(!
item
.
IsEnabled
||
!
item
.
IsConnected
)
continue
;
item
.
EndpointManager
.
Send
(
"CLOCK0 STOP"
);
}
}
}
...
@@ -93,7 +115,17 @@ namespace VIZ.Package.Module
...
@@ -93,7 +115,17 @@ namespace VIZ.Package.Module
/// </summary>
/// </summary>
private
void
Cont
()
private
void
Cont
()
{
{
var
pageModel
=
ApplicationDomainEx
.
CurrentPage
as
PageModel
;
ConnGroupModel
group
=
ApplicationDomainEx
.
ConnGroups
.
FirstOrDefault
(
p
=>
p
.
GroupID
==
pageModel
.
ConnGroupID
);
foreach
(
var
item
in
group
.
Items
)
{
if
(!
item
.
IsEnabled
||
!
item
.
IsConnected
)
continue
;
item
.
EndpointManager
.
Send
(
"CLOCK0 CONT"
);
}
}
}
/// <summary>
/// <summary>
/// 冻结命令
/// 冻结命令
...
...
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