Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hemei
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
潘栩锋
hemei
Commits
5f3befd6
Commit
5f3befd6
authored
Jan 04, 2023
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复 收卷速度设置, 使用按键的按1松0,解决以前经常速度设置不了问题
parent
bdf31f8e
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
871 additions
and
279 deletions
+871
-279
AssemblyInfo.cs
...LY.Thick.Blowing.UI.Fix.Client/Properties/AssemblyInfo.cs
+2
-2
IBlowingDetectService.cs
...owing/FLY.Thick.Blowing/IService/IBlowingDetectService.cs
+1
-1
AssemblyInfo.cs
...LY.Thick.BlowingScan.UI.Client/Properties/AssemblyInfo.cs
+2
-2
CalFilmLen.cs
...wingScan/FLY.Thick.BlowingScan.UI/PgBlowing/CalFilmLen.cs
+4
-1
FLY.Winder.UI.Client.csproj
...Y.Winder/FLY.Winder.UI.Client/FLY.Winder.UI.Client.csproj
+11
-0
CenterWinderPanel.xaml
....Client/UiModule/CenterWinderPanel/CenterWinderPanel.xaml
+4
-4
CenterWinderPanelStyle.xaml
....UI.Client/UiModule/MainPanel/CenterWinderPanelStyle.xaml
+14
-0
MainPanel.xaml
...er/FLY.Winder.UI.Client/UiModule/MainPanel/MainPanel.xaml
+131
-116
MainPanel.xaml.cs
...FLY.Winder.UI.Client/UiModule/MainPanel/MainPanel.xaml.cs
+32
-15
MainPanel2.xaml
...r/FLY.Winder.UI.Client/UiModule/MainPanel/MainPanel2.xaml
+464
-128
MainPanel2.xaml.cs
...LY.Winder.UI.Client/UiModule/MainPanel/MainPanel2.xaml.cs
+68
-7
UiModule2_MainPanel2.cs
...nder.UI.Client/UiModule/MainPanel/UiModule2_MainPanel2.cs
+1
-1
WdSetVolecity.xaml
...LY.Winder.UI.Client/UiModule/MainPanel/WdSetVolecity.xaml
+77
-0
WdSetVolecity.xaml.cs
...Winder.UI.Client/UiModule/MainPanel/WdSetVolecity.xaml.cs
+57
-0
hemeiInstallZipVersionInfo.json
脚本/hemeiInstallZipVersionInfo.json
+3
-2
No files found.
Project.FLY.Thick.Blowing/FLY.Thick.Blowing.UI.Fix.Client/Properties/AssemblyInfo.cs
View file @
5f3befd6
...
...
@@ -51,6 +51,6 @@ using System.Windows;
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("7.7.
2
.1")]
[assembly: AssemblyFileVersion("7.7.
2
.1")]
[assembly: AssemblyVersion("7.7.
3
.1")]
[assembly: AssemblyFileVersion("7.7.
3
.1")]
[assembly: Guid("D12087A7-EEC4-4D9F-9269-8F20324F4B04")]
Project.FLY.Thick.Blowing/FLY.Thick.Blowing/IService/IBlowingDetectService.cs
View file @
5f3befd6
...
...
@@ -393,7 +393,7 @@ namespace FLY.Thick.Blowing.IService
/// 速度 脉冲/s
/// </summary>
public
int
Speed
{
get
;
set
;
}
public
double
Speed
{
get
;
set
;
}
public
event
PropertyChangedEventHandler
PropertyChanged
;
}
...
...
Project.FLY.Thick.BlowingScan/FLY.Thick.BlowingScan.UI.Client/Properties/AssemblyInfo.cs
View file @
5f3befd6
...
...
@@ -51,6 +51,6 @@ using System.Windows;
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("7.7.
2
.1")]
[assembly: AssemblyFileVersion("7.7.
2
.1")]
[assembly: AssemblyVersion("7.7.
3
.1")]
[assembly: AssemblyFileVersion("7.7.
3
.1")]
[assembly: Guid("38E0D8EC-4D1C-49FF-AB08-6289294C5BD4")]
Project.FLY.Thick.BlowingScan/FLY.Thick.BlowingScan.UI/PgBlowing/CalFilmLen.cs
View file @
5f3befd6
...
...
@@ -715,7 +715,7 @@ namespace FLY.Thick.BlowingScan.UI.Client
Load
(
param
);
}
}
catch
catch
(
Exception
ex
)
{
//异常,没有json 解码失败
...
...
@@ -735,6 +735,9 @@ namespace FLY.Thick.BlowingScan.UI.Client
CurrFilmLength3D
=
param
.
mFilmLength3D
;
param
.
Is3D
=
(
param
.
mFilmLength3D
!=
null
&&
param
.
mFilmLength3D
.
Count
()
>
0
);
param
.
IsRPosMode
=
(
mRPosList
.
Count
()
>
0
);
Is3D
=
param
.
Is3D
;
IsRPosMode
=
param
.
IsRPosMode
;
...
...
Project.FLY.Winder/FLY.Winder.UI.Client/FLY.Winder.UI.Client.csproj
View file @
5f3befd6
...
...
@@ -99,6 +99,9 @@
<Compile
Include=
"UiModule\WdMeasure.xaml.cs"
>
<DependentUpon>
WdMeasure.xaml
</DependentUpon>
</Compile>
<Compile
Include=
"UiModule\MainPanel\WdSetVolecity.xaml.cs"
>
<DependentUpon>
WdSetVolecity.xaml
</DependentUpon>
</Compile>
<Compile
Include=
"UiModule\WdSetValue.xaml.cs"
>
<DependentUpon>
WdSetValue.xaml
</DependentUpon>
</Compile>
...
...
@@ -162,6 +165,10 @@
<SubType>
Designer
</SubType>
<Generator>
MSBuild:Compile
</Generator>
</Page>
<Page
Include=
"UiModule\MainPanel\CenterWinderPanelStyle.xaml"
>
<Generator>
MSBuild:Compile
</Generator>
<SubType>
Designer
</SubType>
</Page>
<Page
Include=
"UiModule\MainPanel\MainPanel2.xaml"
>
<Generator>
MSBuild:Compile
</Generator>
<SubType>
Designer
</SubType>
...
...
@@ -202,6 +209,10 @@
<Generator>
MSBuild:Compile
</Generator>
<SubType>
Designer
</SubType>
</Page>
<Page
Include=
"UiModule\MainPanel\WdSetVolecity.xaml"
>
<Generator>
MSBuild:Compile
</Generator>
<SubType>
Designer
</SubType>
</Page>
<Page
Include=
"UiModule\WdSetValue.xaml"
>
<Generator>
MSBuild:Compile
</Generator>
<SubType>
Designer
</SubType>
...
...
Project.FLY.Winder/FLY.Winder.UI.Client/UiModule/CenterWinderPanel/CenterWinderPanel.xaml
View file @
5f3befd6
...
...
@@ -47,7 +47,7 @@
</i:Interaction.Behaviors>
表面
</flyctrl:NoToggleButton>
<!--<flyctrl:NoToggleButton IsChecked="{Binding IsCenterWindGet}"
DataContext="{Binding Items[0]}"
>
<!--<flyctrl:NoToggleButton IsChecked="{Binding IsCenterWindGet}" >
<i:Interaction.Behaviors>
<flyctrl:ResetBehavior Binding="{Binding IsCenterWindSet}"/>
</i:Interaction.Behaviors>
...
...
@@ -55,7 +55,7 @@
</flyctrl:NoToggleButton>-->
<flyctrl:NoToggleButton Width="130"
OffBrush="{StaticResource Color_off}" OnBrush="{StaticResource Color_on}"
IsChecked="{Binding IsCsWindGet}"
DataContext="{Binding Items[0]}"
>
IsChecked="{Binding IsCsWindGet}" >
<i:Interaction.Behaviors>
<flyctrl:ResetBehavior Binding="{Binding IsCsWindSet}"/>
</i:Interaction.Behaviors>
...
...
@@ -80,7 +80,7 @@
</i:Interaction.Behaviors>
表面
</flyctrl:NoToggleButton>
<!--<flyctrl:NoToggleButton IsChecked="{Binding IsCenterWindGet}"
DataContext="{Binding Items[1]}"
>
<!--<flyctrl:NoToggleButton IsChecked="{Binding IsCenterWindGet}" >
<i:Interaction.Behaviors>
<flyctrl:ResetBehavior Binding="{Binding IsCenterWindSet}"/>
</i:Interaction.Behaviors>
...
...
@@ -88,7 +88,7 @@
</flyctrl:NoToggleButton>-->
<flyctrl:NoToggleButton Width="130"
OffBrush="{StaticResource Color_off}" OnBrush="{StaticResource Color_on}"
IsChecked="{Binding IsCsWindGet}"
DataContext="{Binding Items[1]}"
>
IsChecked="{Binding IsCsWindGet}" >
<i:Interaction.Behaviors>
<flyctrl:ResetBehavior Binding="{Binding IsCsWindSet}"/>
</i:Interaction.Behaviors>
...
...
Project.FLY.Winder/FLY.Winder.UI.Client/UiModule/MainPanel/CenterWinderPanelStyle.xaml
0 → 100644
View file @
5f3befd6
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:flyctrl="clr-namespace:FLY.ControlLibrary;assembly=FLY.ControlLibrary">
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/FLY.Winder.UI.Client;component/Themes/Styles.xaml"/>
</ResourceDictionary.MergedDictionaries>
<Style TargetType="flyctrl:NoToggleButton" BasedOn="{StaticResource NoToggleButtonStyle}" x:Key="NoToggleButton_Separate" >
<Setter Property="OffLabel" Value="分离"/>
<Setter Property="OffBrush" Value="{StaticResource Color_off}"/>
<Setter Property="OnLabel" Value="闭合"/>
<Setter Property="OnBrush" Value="{StaticResource Color_on}" />
</Style>
</ResourceDictionary>
\ No newline at end of file
Project.FLY.Winder/FLY.Winder.UI.Client/UiModule/MainPanel/MainPanel.xaml
View file @
5f3befd6
...
...
@@ -35,11 +35,13 @@
<Border Style="{StaticResource Styles.Module.Border}"
Background="{StaticResource Color_background}" >
<Viewbox HorizontalAlignment="Left" VerticalAlignment="Top" Stretch="Uniform" StretchDirection="DownOnly">
<StackPanel Orientation="Horizontal">
<Button Style="{StaticResource Styles.Button.Empty}"
Click="button_v_set_Click" Margin="30,10
">
<Grid DataContext="{Binding Accessory}">
<Button Style="{StaticResource Styles.Button.Empty}"
Margin="30,10" Click="button_v_set_Click
">
<Grid DataContext="{Binding Accessory}"
>
<Grid.RowDefinitions>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
<RowDefinition />
</Grid.RowDefinitions>
...
...
@@ -85,11 +87,22 @@
FontSize="{StaticResource FontSize_unit}"
Foreground="{StaticResource Color_unit}"
Text="m/min" />
</StackPanel>
<!--<Grid Grid.Row="2" Margin="0,-15,-25,0" HorizontalAlignment="Right" VerticalAlignment="Top" >
<Button Style="{StaticResource ButtonStyle_resizeIcon}" Foreground="{StaticResource Color_on}">
<i:Interaction.Behaviors>
<flyctrl:ResetBehavior Binding="{Binding IsVelocityChanged}"/>
</i:Interaction.Behaviors>
<Grid>
<Ellipse Stretch="Uniform" Fill="White" Margin="2" Width="40" Height="{Binding RelativeSource={RelativeSource Mode=Self},Path=Width}"/>
<iconPacks:PackIconMaterial Kind="CheckCircle" />
</Grid>
</Button>
</Grid>-->
</StackPanel>
<Grid DataContext="{Binding Items[0]}" Margin="30,10">
</Grid>
</Button>
<Grid DataContext="{Binding Items[0]}" Margin="50,10">
<Grid.RowDefinitions>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
...
...
@@ -100,7 +113,7 @@
<ColumnDefinition/>
<ColumnDefinition Width="auto"/>
</Grid.ColumnDefinitions>
<ToggleButton Grid.Row="2" Margin="3
,0" Style="{StaticResource ToggleButtonStyle_measure}" IsChecked="{Binding MeasureStop}"/>
<ToggleButton Grid.Row="2" Margin="-40,-25,0
,0" Style="{StaticResource ToggleButtonStyle_measure}" IsChecked="{Binding MeasureStop}"/>
<Button Style="{StaticResource Styles.Button.Empty}" Grid.RowSpan="2" Grid.ColumnSpan="2" Click="button_measure_Click" Tag="{Binding .}">
<StackPanel >
...
...
@@ -176,7 +189,7 @@
</Grid>
</Grid>
<Grid DataContext="{Binding Items[1]}" Margin="3
0,10">
<Grid DataContext="{Binding Items[1]}" Margin="5
0,10">
<Grid.RowDefinitions>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
...
...
@@ -187,8 +200,7 @@
<ColumnDefinition/>
<ColumnDefinition Width="auto"/>
</Grid.ColumnDefinitions>
<ToggleButton Grid.Row="2" Margin="3,0" Style="{StaticResource ToggleButtonStyle_measure}" IsChecked="{Binding MeasureStop}"/>
<ToggleButton Grid.Row="2" Margin="-40,-25,0,0" Style="{StaticResource ToggleButtonStyle_measure}" IsChecked="{Binding MeasureStop}"/>
<Button Style="{StaticResource Styles.Button.Empty}" Grid.RowSpan="2" Grid.ColumnSpan="2" Click="button_measure_Click" Tag="{Binding .}">
<StackPanel >
<StackPanel Orientation="Horizontal">
...
...
@@ -265,6 +277,7 @@
</StackPanel>
</Viewbox>
</Border>
<Border Grid.Row="1" Style="{StaticResource Styles.Module.Border}"
Background="{StaticResource Color_background}" >
...
...
@@ -274,7 +287,7 @@
<ColumnDefinition Width="auto"/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Grid Margin="30,10">
<Grid Margin="
50,10,
30,10">
<Grid.RowDefinitions>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
...
...
@@ -323,11 +336,13 @@
</StackPanel>
</StackPanel>
</Button>
<flyctrl:NoToggleButton Style="{StaticResource ButonStyle_rOn}" Grid.Row="2" IsChecked="{Binding IsRotaryOn}">
<Grid Grid.Row="2" Margin="-40,-25,0,0" >
<flyctrl:NoToggleButton Style="{StaticResource ButonStyle_rOn}" IsChecked="{Binding IsRotaryOn}">
<i:Interaction.Behaviors>
<flyctrl:ResetBehavior Binding="{Binding RotaryOn}"/>
</i:Interaction.Behaviors>
</flyctrl:NoToggleButton>
</Grid>
<StackPanel Orientation="Horizontal" Grid.Column="2" Grid.RowSpan="2" Background="{StaticResource Color_badgeBg}">
<StackPanel Orientation="Horizontal" Margin="7,3" VerticalAlignment="Top">
<TextBlock FontSize="{StaticResource FontSize_text_large}" Foreground="{StaticResource Color_badgeText}" Height="52" VerticalAlignment="Bottom"
...
...
@@ -627,8 +642,8 @@
</Border>
<Button Grid.Row="1" Click="button_manual_Click" Style="{StaticResource
ButtonStyle_e
mpty}" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="10" >
<Grid Style="{StaticResource
GridStyle_Button
Shadow}">
<Button Grid.Row="1" Click="button_manual_Click" Style="{StaticResource
Styles.Button.E
mpty}" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="10" >
<Grid Style="{StaticResource
Styles.
Shadow}">
<Ellipse Fill="{StaticResource Color_warning}" Stretch="Uniform" HorizontalAlignment="Center" VerticalAlignment="Center" Height="60" Width="60"/>
<TextBlock Margin="0,0,0,-10" Text="手动" Padding="2" Background="{StaticResource Color_warning}" Foreground="White" FontSize="20" VerticalAlignment="Bottom" HorizontalAlignment="Center" FontFamily="YouYuan"/>
<iconPacks:PackIconMaterial Kind="GestureTap" Height="40" Width="40" Foreground="White"/>
...
...
Project.FLY.Winder/FLY.Winder.UI.Client/UiModule/MainPanel/MainPanel.xaml.cs
View file @
5f3befd6
...
...
@@ -29,6 +29,7 @@ namespace FLY.Winder.UI.Client.UiModule
SetPLCUpdatePlan
setPlan_accessory
;
SetPLCUpdatePlan
[]
setPlan_winders
=
new
SetPLCUpdatePlan
[
2
];
bool
isCenter
=
false
;
public
MainPanel
()
{
InitializeComponent
();
...
...
@@ -36,11 +37,15 @@ namespace FLY.Winder.UI.Client.UiModule
[
InjectionMethod
]
public
void
Init
(
IUnityContainer
container
,
IWinderSystemService
winderSystem
)
IWinderSystemService
winderSystem
,
bool
isCenter
=
false
)
{
this
.
container
=
container
;
this
.
winderSystem
=
winderSystem
;
this
.
isCenter
=
isCenter
;
this
.
DataContext
=
winderSystem
;
grid_winder
.
DataContext
=
winderSystem
;
...
...
@@ -102,29 +107,41 @@ namespace FLY.Winder.UI.Client.UiModule
}
private
async
void
button_v_set_Click
(
object
sender
,
RoutedEventArgs
e
)
{
WdSetValue
w
=
new
WdSetValue
();
w
.
Init
(
winderSystem
.
Accessory
.
VelocitySet
,
200
,
1
,
0.1f
,
"速度设置"
,
"m/min"
);
//
WdSetValue w = new WdSetValue();
//
w.Init(winderSystem.Accessory.VelocitySet, 200, 1, 0.1f, "速度设置", "m/min");
w
.
Owner
=
FLY
.
ControlLibrary
.
COMMON
.
GetWindow
(
this
);
if
(
w
.
ShowDialog
()
==
true
)
{
winderSystem
.
Accessory
.
VelocitySet
=
w
.
Value
;
//w.Owner = FLY.ControlLibrary.COMMON.GetWindow(this);
//if (w.ShowDialog() == true)
//{
// winderSystem.Accessory.VelocitySet = w.Value;
//延时 300ms
await
Task
.
Delay
(
300
);
//
//延时 300ms
//
await Task.Delay(300);
winderSystem
.
Accessory
.
IsVelocityChanged
=
false
;
winderSystem
.
Accessory
.
IsVelocityChanged
=
true
;
//
winderSystem.Accessory.IsVelocityChanged = false;
//
winderSystem.Accessory.IsVelocityChanged = true;
//延时 300ms
await
Task
.
Delay
(
300
);
//
//延时 300ms
//
await Task.Delay(300);
winderSystem
.
Accessory
.
IsVelocityChanged
=
false
;
}
// winderSystem.Accessory.IsVelocityChanged = false;
//}
WdSetVolecity
w
=
new
WdSetVolecity
();
w
.
Init
(
container
,
winderSystem
);
w
.
Owner
=
FLY
.
ControlLibrary
.
COMMON
.
GetWindow
(
this
);
w
.
ShowDialog
();
}
private
void
button_manual_Click
(
object
sender
,
RoutedEventArgs
e
)
{
var
w
=
container
.
Resolve
<
WdManual
>();
Window
w
;
if
(!
isCenter
)
{
w
=
container
.
Resolve
<
WdManual
>();
}
else
{
w
=
container
.
Resolve
<
WdManual2
>();
}
w
.
Owner
=
FLY
.
ControlLibrary
.
COMMON
.
GetWindow
(
this
);
w
.
ShowDialog
();
}
...
...
Project.FLY.Winder/FLY.Winder.UI.Client/UiModule/MainPanel/MainPanel2.xaml
View file @
5f3befd6
...
...
@@ -17,6 +17,7 @@
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="MainPanelStyle.xaml"/>
<ResourceDictionary Source="CenterWinderPanelStyle.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
...
...
@@ -24,6 +25,7 @@
<Grid d:DataContext="{StaticResource unittests_windersystem}">
<Grid.RowDefinitions>
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
<RowDefinition />
...
...
@@ -89,7 +91,7 @@
</Grid>
</Button>
<Grid DataContext="{Binding Items[0]}" Margin="
3
0,10">
<Grid DataContext="{Binding Items[0]}" Margin="
4
0,10">
<Grid.RowDefinitions>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
...
...
@@ -100,7 +102,7 @@
<ColumnDefinition/>
<ColumnDefinition Width="auto"/>
</Grid.ColumnDefinitions>
<ToggleButton Grid.Row="2" Margin="
3
,0" Style="{StaticResource ToggleButtonStyle_measure}" IsChecked="{Binding MeasureStop}"/>
<ToggleButton Grid.Row="2" Margin="
-40,-25,0
,0" Style="{StaticResource ToggleButtonStyle_measure}" IsChecked="{Binding MeasureStop}"/>
<Button Style="{StaticResource Styles.Button.Empty}" Grid.RowSpan="2" Grid.ColumnSpan="2" Click="button_measure_Click" Tag="{Binding .}">
<StackPanel >
...
...
@@ -176,7 +178,7 @@
</Grid>
</Grid>
<Grid DataContext="{Binding Items[1]}" Margin="
3
0,10">
<Grid DataContext="{Binding Items[1]}" Margin="
4
0,10">
<Grid.RowDefinitions>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
...
...
@@ -187,8 +189,7 @@
<ColumnDefinition/>
<ColumnDefinition Width="auto"/>
</Grid.ColumnDefinitions>
<ToggleButton Grid.Row="2" Margin="3,0" Style="{StaticResource ToggleButtonStyle_measure}" IsChecked="{Binding MeasureStop}"/>
<ToggleButton Grid.Row="2" Margin="-40,-25,0,0" Style="{StaticResource ToggleButtonStyle_measure}" IsChecked="{Binding MeasureStop}"/>
<Button Style="{StaticResource Styles.Button.Empty}" Grid.RowSpan="2" Grid.ColumnSpan="2" Click="button_measure_Click" Tag="{Binding .}">
<StackPanel >
<StackPanel Orientation="Horizontal">
...
...
@@ -274,7 +275,7 @@
<ColumnDefinition Width="auto"/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Grid Margin="30,10">
<Grid Margin="
50,10,
30,10">
<Grid.RowDefinitions>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
...
...
@@ -323,11 +324,13 @@
</StackPanel>
</StackPanel>
</Button>
<flyctrl:NoToggleButton Style="{StaticResource ButonStyle_rOn}" Grid.Row="2" IsChecked="{Binding IsRotaryOn}">
<Grid Grid.Row="2" Margin="-40,-25,0,0" >
<flyctrl:NoToggleButton Style="{StaticResource ButonStyle_rOn}" IsChecked="{Binding IsRotaryOn}">
<i:Interaction.Behaviors>
<flyctrl:ResetBehavior Binding="{Binding RotaryOn}"/>
</i:Interaction.Behaviors>
</flyctrl:NoToggleButton>
</Grid>
<StackPanel Orientation="Horizontal" Grid.Column="2" Grid.RowSpan="2" Background="{StaticResource Color_badgeBg}">
<StackPanel Orientation="Horizontal" Margin="7,3" VerticalAlignment="Top">
<TextBlock FontSize="{StaticResource FontSize_text_large}" Foreground="{StaticResource Color_badgeText}" Height="52" VerticalAlignment="Bottom"
...
...
@@ -434,10 +437,10 @@
<TextBlock Text="控制模式" Grid.Column="4" Style="{StaticResource TextBlockStyle_Header}"/>
<TextBlock Text="控制开关" Grid.Column="5" Style="{StaticResource TextBlockStyle_Header}"/>
<!--行标题-->
<TextBlock Text="上牵引
" Grid.Row="1" Style="{StaticResource TextBlockStyle_RowHeader}"/>
<TextBlock Text="二牵引
" Grid.Row="2" Style="{StaticResource TextBlockStyle_RowHeader}"/>
<TextBlock Text="内收卷
" Grid.Row="3" Style="{StaticResource TextBlockStyle_RowHeader}" />
<TextBlock Text="外收卷
" Grid.Row="4" Style="{StaticResource TextBlockStyle_RowHeader}"/>
<TextBlock Text=" 上牵引
" Grid.Row="1" Style="{StaticResource TextBlockStyle_RowHeader}"/>
<TextBlock Text=" 二牵引
" Grid.Row="2" Style="{StaticResource TextBlockStyle_RowHeader}"/>
<TextBlock Text=" 内收卷
" Grid.Row="3" Style="{StaticResource TextBlockStyle_RowHeader}" />
<TextBlock Text=" 外收卷
" Grid.Row="4" Style="{StaticResource TextBlockStyle_RowHeader}"/>
<!--一牵引-->
<StackPanel Style="{StaticResource SpStyle_ReadOnly}" Grid.Column="3" Grid.Row="1" >
...
...
@@ -625,8 +628,341 @@
</Viewbox>
</Border>
<Border Grid.Row="3" Style="{StaticResource Styles.Module.Border}"
Background="{StaticResource Color_background}" >
<Grid>
<Viewbox VerticalAlignment="Top" HorizontalAlignment="Left" Margin="10" Stretch="Uniform" StretchDirection="DownOnly">
<StackPanel Orientation="Horizontal">
<Grid >
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto"/>
<ColumnDefinition Width="auto" SharedSizeGroup="A"/>
<ColumnDefinition Width="auto" SharedSizeGroup="A"/>
<ColumnDefinition Width="auto" SharedSizeGroup="A"/>
<ColumnDefinition Width="auto" SharedSizeGroup="A"/>
<ColumnDefinition Width="auto" SharedSizeGroup="A"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="auto" />
<RowDefinition SharedSizeGroup="B"/>
<RowDefinition SharedSizeGroup="B"/>
<RowDefinition SharedSizeGroup="B"/>
<RowDefinition SharedSizeGroup="B"/>
<RowDefinition SharedSizeGroup="B"/>
</Grid.RowDefinitions>
<!--背景-->
<Rectangle Fill="{StaticResource Color_table_alter_row}" Grid.ColumnSpan="6" Grid.Row="1"/>
<Rectangle Fill="{StaticResource Color_table_alter_row}" Grid.ColumnSpan="6" Grid.Row="3"/>
<Rectangle Fill="{StaticResource Color_table_alter_row}" Grid.ColumnSpan="6" Grid.Row="5"/>
<Border Grid.RowSpan="6" Grid.Column="1" BorderThickness="1" BorderBrush="{StaticResource Color_table_border}"/>
<Border Grid.RowSpan="6" Grid.Column="2" BorderThickness="1" BorderBrush="{StaticResource Color_table_border}"/>
<Border Grid.RowSpan="6" Grid.Column="4" BorderThickness="1" BorderBrush="{StaticResource Color_table_border}"/>
<Border Grid.RowSpan="6" Grid.Column="5" BorderThickness="1" BorderBrush="{StaticResource Color_table_border}"/>
<Rectangle Style="{StaticResource RectStyle_RowHeaderEditBackground}" Grid.Column="1" />
<Rectangle Style="{StaticResource RectStyle_RowHeaderEditBackground}" Grid.Column="2"/>
<Rectangle Style="{StaticResource RectStyle_RowHeaderEditBackground}" Grid.Column="4"/>
<Rectangle Style="{StaticResource RectStyle_RowHeaderEditBackground}" Grid.Column="5"/>
<Rectangle Style="{StaticResource RectStyle_RowHeaderEditBackground}" Grid.Row="1" />
<Rectangle Style="{StaticResource RectStyle_RowHeaderEditBackground}" Grid.Row="2" />
<Rectangle Style="{StaticResource RectStyle_RowHeaderEditBackground}" Grid.Row="3" />
<Rectangle Style="{StaticResource RectStyle_RowHeaderBackground}" Grid.Row="4" />
<Rectangle Style="{StaticResource RectStyle_RowHeaderBackground}" Grid.Row="5" />
<Rectangle Style="{StaticResource RectStyle_RowHeaderEditBackground}" Grid.Column="3" Grid.Row="1" />
<Rectangle Style="{StaticResource RectStyle_RowHeaderEditBackground}" Grid.Column="3" Grid.Row="2" />
<Rectangle Style="{StaticResource RectStyle_RowHeaderBackground}" Grid.Column="3" Grid.Row="3" />
<!--列标题-->
<TextBlock Text="内收中心" Grid.Column="1" Style="{StaticResource TextBlockStyle_Header}"/>
<TextBlock Text="外收中心" Grid.Column="2" Style="{StaticResource TextBlockStyle_Header}"/>
<TextBlock Text="内收压辊" Grid.Column="4" Style="{StaticResource TextBlockStyle_Header}"/>
<TextBlock Text="外收压辊" Grid.Column="5" Style="{StaticResource TextBlockStyle_Header}"/>
<!--行标题-->
<TextBlock Text="设定张力" Grid.Row="1" Style="{StaticResource TextBlockStyle_RowHeader}"/>
<TextBlock Text="初始直径" Grid.Row="2" Style="{StaticResource TextBlockStyle_RowHeader}"/>
<TextBlock Text="锥度设定" Grid.Row="3" Style="{StaticResource TextBlockStyle_RowHeader}" />
<TextBlock Text="实际张力" Grid.Row="4" Style="{StaticResource TextBlockStyle_RowHeader}"/>
<TextBlock Text="实际直径" Grid.Row="5" Style="{StaticResource TextBlockStyle_RowHeader}"/>
<!--行标题2-->
<TextBlock Text="初始压力" Grid.Column="3" Grid.Row="1" Style="{StaticResource TextBlockStyle_RowHeader}"/>
<TextBlock Text="锥度设定" Grid.Column="3" Grid.Row="2" Style="{StaticResource TextBlockStyle_RowHeader}"/>
<TextBlock Text="实际压力" Grid.Column="3" Grid.Row="3" Style="{StaticResource TextBlockStyle_RowHeader}"/>
<!--内中心-->
<StackPanel Style="{StaticResource SpStyle_Editable}" Grid.Column="1" Grid.Row="1">
<TextBox Style="{StaticResource Styles.Text.FieldContent.Input}"
Background="Transparent"
Foreground="{StaticResource Color_text_activity}"
Text="{Binding Items[0].CenterTensionSet, StringFormat={}{0:F1}}" />
<TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}"
FontSize="{StaticResource FontSize_unit}"
Foreground="{StaticResource Color_unit}" Text="kg" />
</StackPanel>
<StackPanel Style="{StaticResource SpStyle_Editable}" Grid.Column="1" Grid.Row="2">
<TextBox Style="{StaticResource Styles.Text.FieldContent.Input}"
Foreground="{StaticResource Color_text_activity}"
Background="{StaticResource Color_text_activity_background}"
Text="{Binding Items[0].CenterInitDia, StringFormat={}{0:F0}}" />
<TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}"
FontSize="{StaticResource FontSize_unit}"
Foreground="{StaticResource Color_unit}" Text="mm" />
</StackPanel>
<StackPanel Style="{StaticResource SpStyle_Editable}" Grid.Column="1" Grid.Row="3">
<TextBox Style="{StaticResource Styles.Text.FieldContent.Input}"
Foreground="{StaticResource Color_text_activity}"
Background="{StaticResource Color_text_activity_background}"
Text="{Binding Items[0].CenterTaperSet, StringFormat={}{0:F0}}" />
<TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}"
FontSize="{StaticResource FontSize_unit}"
Foreground="{StaticResource Color_unit}" Text="%" />
</StackPanel>
<StackPanel Grid.Column="1" Grid.Row="4" Margin="5" Orientation="Horizontal">
<TextBlock Style="{StaticResource Styles.Text.FieldContent}"
Foreground="{StaticResource Color_text}"
Text="{Binding Items[0].CenterTensionKg,StringFormat={}{0:F1}}"/>
<TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}"
FontSize="{StaticResource FontSize_unit}"
Foreground="{StaticResource Color_unit}"
Text="kg"/>
</StackPanel>
<StackPanel Grid.Column="1" Grid.Row="5" Margin="5" Orientation="Horizontal">
<TextBlock Style="{StaticResource Styles.Text.FieldContent}"
Foreground="{StaticResource Color_text}"
Text="{Binding Items[0].CenterDia}"/>
<TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}"
FontSize="{StaticResource FontSize_unit}"
Foreground="{StaticResource Color_unit}" Text="mm"/>
</StackPanel>
<!--外中心-->
<StackPanel Style="{StaticResource SpStyle_Editable}" Grid.Column="2" Grid.Row="1" >
<TextBox Style="{StaticResource Styles.Text.FieldContent.Input}"
Foreground="{StaticResource Color_text_activity}"
Background="{StaticResource Color_text_activity_background}"
Text="{Binding Items[1].CenterTensionSet, StringFormat={}{0:F1}}" />
<TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}"
FontSize="{StaticResource FontSize_unit}"
Foreground="{StaticResource Color_unit}"
Text="kg"/>
</StackPanel>
<StackPanel Style="{StaticResource SpStyle_Editable}" Grid.Column="2" Grid.Row="2" >
<TextBox Style="{StaticResource Styles.Text.FieldContent.Input}"
Foreground="{StaticResource Color_text_activity}"
Background="{StaticResource Color_text_activity_background}"
Text="{Binding Items[1].CenterInitDia, StringFormat={}{0:F0}}" />
<TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}"
FontSize="{StaticResource FontSize_unit}"
Foreground="{StaticResource Color_unit}"
Text="mm" />
</StackPanel>
<StackPanel Style="{StaticResource SpStyle_Editable}" Grid.Column="2" Grid.Row="3">
<TextBox Style="{StaticResource Styles.Text.FieldContent.Input}"
Foreground="{StaticResource Color_text_activity}"
Background="{StaticResource Color_text_activity_background}"
Text="{Binding Items[1].CenterTaperSet, StringFormat={}{0:F0}}" />
<TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}"
FontSize="{StaticResource FontSize_unit}"
Foreground="{StaticResource Color_unit}" Text="%" />
</StackPanel>
<StackPanel Style="{StaticResource SpStyle_ReadOnly}" Grid.Column="2" Grid.Row="4" >
<TextBlock Style="{StaticResource Styles.Text.FieldContent}"
FontSize="{StaticResource FontSize_text_large}"
Foreground="{StaticResource Color_text}" Text="{Binding Items[1].CenterTensionKg,StringFormat={}{0:F1}}"/>
<TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}"
FontSize="{StaticResource FontSize_unit}"
Foreground="{StaticResource Color_unit}"
Text="kg"/>
</StackPanel>
<StackPanel Style="{StaticResource SpStyle_ReadOnly}" Grid.Column="2" Grid.Row="5" >
<TextBlock Style="{StaticResource Styles.Text.FieldContent}"
FontSize="{StaticResource FontSize_text_large}"
Foreground="{StaticResource Color_text}"
Text="{Binding Items[1].CenterDia}"/>
<TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}"
FontSize="{StaticResource FontSize_unit}"
Foreground="{StaticResource Color_unit}"
Text="mm"/>
</StackPanel>
<!--内压辊EP-->
<StackPanel Style="{StaticResource SpStyle_Editable}" Grid.Column="4" Grid.Row="1">
<TextBox Style="{StaticResource Styles.Text.FieldContent.Input}"
Foreground="{StaticResource Color_text_activity}"
Background="{StaticResource Color_text_activity_background}"
Text="{Binding Items[0].EPInitPressure,StringFormat={}{0:F1}}" />
<TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}"
FontSize="{StaticResource FontSize_unit}"
Foreground="{StaticResource Color_unit}"
Text="kg" />
</StackPanel>
<StackPanel Style="{StaticResource SpStyle_Editable}" Grid.Column="4" Grid.Row="2">
<TextBox Style="{StaticResource Styles.Text.FieldContent.Input}"
Foreground="{StaticResource Color_text_activity}"
Background="{StaticResource Color_text_activity_background}"
Text="{Binding Items[0].EPTaperSet,StringFormat={}{0:F0}}" />
<TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}"
FontSize="{StaticResource FontSize_unit}"
Foreground="{StaticResource Color_unit}"
Text="%" />
</StackPanel>
<StackPanel Style="{StaticResource SpStyle_ReadOnly}" Grid.Column="4" Grid.Row="3" >
<TextBlock Style="{StaticResource Styles.Text.FieldContent}"
FontSize="{StaticResource FontSize_text_large}"
Foreground="{StaticResource Color_text}"
Text="{Binding Items[0].EPAirPressure,StringFormat={}{0:F1}}"/>
<TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}"
FontSize="{StaticResource FontSize_unit}"
Foreground="{StaticResource Color_unit}" Text="kg"/>
</StackPanel>
<flyctrl:NoToggleButton Grid.Column="4" Grid.Row="4" Grid.RowSpan="2" VerticalAlignment="Center"
OffLabel="分离"
OffBrush="{StaticResource Color_off}"
OnLabel="闭合"
OnBrush="{StaticResource Color_on}"
IsChecked="{Binding IsEPRollerClosed}" DataContext="{Binding Items[0]}">
<i:Interaction.Behaviors>
<flyctrl:ResetBehavior Binding="{Binding EPRollerSeparateSet}"/>
</i:Interaction.Behaviors>
</flyctrl:NoToggleButton>
<!--外压辊EP-->
<StackPanel Style="{StaticResource SpStyle_Editable}" Grid.Column="5" Grid.Row="1">
<TextBox Style="{StaticResource Styles.Text.FieldContent.Input}"
Foreground="{StaticResource Color_text_activity}"
Background="{StaticResource Color_text_activity_background}" Text="{Binding Items[1].EPInitPressure,StringFormat={}{0:F1}}" />
<TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}"
FontSize="{StaticResource FontSize_unit}"
Foreground="{StaticResource Color_unit}"
Text="kg" />
</StackPanel>
<StackPanel Style="{StaticResource SpStyle_Editable}" Grid.Column="5" Grid.Row="2">
<TextBox Style="{StaticResource Styles.Text.FieldContent.Input}"
Foreground="{StaticResource Color_text_activity}"
Background="{StaticResource Color_text_activity_background}"
Text="{Binding Items[1].EPTaperSet,StringFormat={}{0:F0}}" />
<TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}"
FontSize="{StaticResource FontSize_unit}"
Foreground="{StaticResource Color_unit}"
Text="%" />
</StackPanel>
<StackPanel Style="{StaticResource SpStyle_ReadOnly}" Grid.Column="5" Grid.Row="3" >
<TextBlock Style="{StaticResource Styles.Text.FieldContent}"
FontSize="{StaticResource FontSize_text_large}"
Foreground="{StaticResource Color_text}"
Text="{Binding Items[1].EPAirPressure,StringFormat={}{0:F1}}"/>
<TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}"
FontSize="{StaticResource FontSize_unit}"
Foreground="{StaticResource Color_unit}" Text="kg"/>
</StackPanel>
<flyctrl:NoToggleButton Grid.Column="5" Grid.Row="4" Grid.RowSpan="2"
VerticalAlignment="Center"
OffLabel="分离"
OffBrush="{StaticResource Color_off}"
OnLabel="闭合"
OnBrush="{StaticResource Color_on}"
IsChecked="{Binding IsEPRollerClosed}" DataContext="{Binding Items[1]}">
<i:Interaction.Behaviors>
<flyctrl:ResetBehavior Binding="{Binding EPRollerSeparateSet}"/>
</i:Interaction.Behaviors>
</flyctrl:NoToggleButton>
</Grid>
<StackPanel>
<StackPanel Margin="5" DataContext="{Binding Items[0]}">
<StackPanel Orientation="Horizontal" Background="{StaticResource Color_badgeBg}" HorizontalAlignment="Left">
<StackPanel Orientation="Horizontal" Margin="7,3">
<TextBlock FontSize="20" Foreground="{StaticResource Color_badgeText}">
内收卷模式选择
</TextBlock>
</StackPanel>
</StackPanel>
<StackPanel >
<flyctrl:NoToggleButton HorizontalAlignment="Left"
OffBrush="{StaticResource Color_off}" OnBrush="{StaticResource Color_on}"
IsChecked="{Binding IsSurfaceWindGet}">
<i:Interaction.Behaviors>
<flyctrl:ResetBehavior Binding="{Binding IsSurfaceWindSet}"/>
</i:Interaction.Behaviors>
表面
</flyctrl:NoToggleButton>
<!--<flyctrl:NoToggleButton IsChecked="{Binding IsCenterWindGet}" >
<i:Interaction.Behaviors>
<flyctrl:ResetBehavior Binding="{Binding IsCenterWindSet}"/>
</i:Interaction.Behaviors>
中心
</flyctrl:NoToggleButton>-->
<flyctrl:NoToggleButton Width="130" HorizontalAlignment="Left"
OffBrush="{StaticResource Color_off}" OnBrush="{StaticResource Color_on}"
IsChecked="{Binding IsCsWindGet}" >
<i:Interaction.Behaviors>
<flyctrl:ResetBehavior Binding="{Binding IsCsWindSet}"/>
</i:Interaction.Behaviors>
表面+中心
</flyctrl:NoToggleButton>
</StackPanel>
</StackPanel>
<StackPanel Margin="5" Grid.Column="1" DataContext="{Binding Items[1]}">
<StackPanel Orientation="Horizontal" Background="{StaticResource Color_badgeBg}" HorizontalAlignment="Left">
<StackPanel Orientation="Horizontal" Margin="7,3">
<TextBlock FontSize="20" Foreground="{StaticResource Color_badgeText}">
外收卷模式选择
</TextBlock>
</StackPanel>
</StackPanel>
<StackPanel >
<flyctrl:NoToggleButton HorizontalAlignment="Left"
OffBrush="{StaticResource Color_off}" OnBrush="{StaticResource Color_on}"
IsChecked="{Binding IsSurfaceWindGet}" >
<i:Interaction.Behaviors>
<flyctrl:ResetBehavior Binding="{Binding IsSurfaceWindSet}"/>
</i:Interaction.Behaviors>
表面
</flyctrl:NoToggleButton>
<!--<flyctrl:NoToggleButton IsChecked="{Binding IsCenterWindGet}" >
<i:Interaction.Behaviors>
<flyctrl:ResetBehavior Binding="{Binding IsCenterWindSet}"/>
</i:Interaction.Behaviors>
中心
</flyctrl:NoToggleButton>-->
<flyctrl:NoToggleButton Width="130" HorizontalAlignment="Left"
OffBrush="{StaticResource Color_off}" OnBrush="{StaticResource Color_on}"
IsChecked="{Binding IsCsWindGet}" >
<i:Interaction.Behaviors>
<flyctrl:ResetBehavior Binding="{Binding IsCsWindSet}"/>
</i:Interaction.Behaviors>
表面+中心
</flyctrl:NoToggleButton>
</StackPanel>
</StackPanel>
</StackPanel>
</StackPanel>
</Viewbox>
</Grid>
</Border>
<Button Grid.Row="1" Click="button_manual_Click" Style="{StaticResource ButtonStyle_empty}" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="10" >
<Grid Style="{StaticResource GridStyle_ButtonShadow}">
<Ellipse Fill="{StaticResource Color_warning}" Stretch="Uniform" HorizontalAlignment="Center" VerticalAlignment="Center" Height="60" Width="60"/>
...
...
Project.FLY.Winder/FLY.Winder.UI.Client/UiModule/MainPanel/MainPanel2.xaml.cs
View file @
5f3befd6
using
FLY.OBJComponents.Client
;
using
FLY.Winder.Client
;
using
FLY.Winder.Common
;
using
FLY.Winder.IService
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
using
System.Windows
;
using
System.Windows.Controls
;
using
System.Windows.Data
;
...
...
@@ -28,6 +30,7 @@ namespace FLY.Winder.UI.Client.UiModule
SetPLCUpdatePlan
setPlan_accessory
;
SetPLCUpdatePlan
[]
setPlan_winders
=
new
SetPLCUpdatePlan
[
2
];
public
MainPanel2
()
{
InitializeComponent
();
...
...
@@ -39,7 +42,10 @@ namespace FLY.Winder.UI.Client.UiModule
{
this
.
container
=
container
;
this
.
winderSystem
=
winderSystem
;
this
.
DataContext
=
winderSystem
;
grid_winder
.
DataContext
=
winderSystem
;
...
...
@@ -95,29 +101,85 @@ namespace FLY.Winder.UI.Client.UiModule
nameof
(
WinderInsideOutside
.
TensionKg
),
nameof
(
WinderInsideOutside
.
Current
),
nameof
(
WinderInsideOutside
.
IsManual
),
nameof
(
WinderInsideOutside
.
IsOn
)
nameof
(
WinderInsideOutside
.
IsOn
),
//中心收卷
nameof
(
Common
.
WinderInsideOutside
.
CenterTensionSet
),
nameof
(
Common
.
WinderInsideOutside
.
CenterInitDia
),
nameof
(
Common
.
WinderInsideOutside
.
IsCenterInitDiaNotify
),
nameof
(
Common
.
WinderInsideOutside
.
CenterTaperSet
),
nameof
(
Common
.
WinderInsideOutside
.
CenterTensionKg
),
nameof
(
Common
.
WinderInsideOutside
.
CenterDia
),
nameof
(
Common
.
WinderInsideOutside
.
EPInitPressure
),
nameof
(
Common
.
WinderInsideOutside
.
EPTaperSet
),
nameof
(
Common
.
WinderInsideOutside
.
EPAirPressure
),
nameof
(
Common
.
WinderInsideOutside
.
IsEPRollerClosed
),
nameof
(
Common
.
WinderInsideOutside
.
IsSurfaceWindGet
),
nameof
(
Common
.
WinderInsideOutside
.
IsCenterWindGet
),
nameof
(
Common
.
WinderInsideOutside
.
IsCsWindGet
)
});
}
winderSystem
.
Items
[
0
].
PropertyChanged
+=
Items0_PropertyChanged
;
winderSystem
.
Items
[
1
].
PropertyChanged
+=
Items1_PropertyChanged
;
}
private
async
void
Items0_PropertyChanged
(
object
sender
,
System
.
ComponentModel
.
PropertyChangedEventArgs
e
)
{
if
(
e
.
PropertyName
==
nameof
(
Common
.
WinderInsideOutside
.
CenterInitDia
))
{
if
(
winderSystem
is
WinderSystemServiceClient
)
{
if
((
winderSystem
as
WinderSystemServiceClient
).
IsInPushValue
)
return
;
}
await
Task
.
Delay
(
1000
);
//1s后触发通知
winderSystem
.
Items
[
0
].
IsCenterInitDiaNotify
=
true
;
}
private
void
button_v_set_Click
(
object
sender
,
RoutedEventArgs
e
)
}
private
async
void
Items1_PropertyChanged
(
object
sender
,
System
.
ComponentModel
.
PropertyChangedEventArgs
e
)
{
if
(
e
.
PropertyName
==
nameof
(
Common
.
WinderInsideOutside
.
CenterInitDia
))
{
if
(
winderSystem
is
WinderSystemServiceClient
)
{
if
((
winderSystem
as
WinderSystemServiceClient
).
IsInPushValue
)
return
;
}
await
Task
.
Delay
(
1000
);
//1s后触发通知
winderSystem
.
Items
[
1
].
IsCenterInitDiaNotify
=
true
;
}
}
private
async
void
button_v_set_Click
(
object
sender
,
RoutedEventArgs
e
)
{
WdSetValue
w
=
new
WdSetValue
();
w
.
Init
(
winderSystem
.
Accessory
.
VelocitySet
,
200
,
1
,
0.1f
,
"速度设置"
,
"m/min"
);
w
.
Owner
=
FLY
.
ControlLibrary
.
COMMON
.
GetWindow
(
this
);
if
(
w
.
ShowDialog
()
==
true
)
{
if
(
w
.
ShowDialog
()
==
true
)
{
winderSystem
.
Accessory
.
VelocitySet
=
w
.
Value
;
//它需要脉冲信号
//延时 300ms
await
Task
.
Delay
(
300
);
winderSystem
.
Accessory
.
IsVelocityChanged
=
false
;
winderSystem
.
Accessory
.
IsVelocityChanged
=
true
;
//延时 300ms
await
Task
.
Delay
(
300
);
winderSystem
.
Accessory
.
IsVelocityChanged
=
false
;
}
}
private
void
button_manual_Click
(
object
sender
,
RoutedEventArgs
e
)
{
var
w
=
container
.
Resolve
<
WdManual2
>();
Window
w
;
w
=
container
.
Resolve
<
WdManual2
>();
w
.
Owner
=
FLY
.
ControlLibrary
.
COMMON
.
GetWindow
(
this
);
w
.
ShowDialog
();
}
...
...
@@ -131,7 +193,6 @@ namespace FLY.Winder.UI.Client.UiModule
if
(
w
.
ShowDialog
()
==
true
)
{
winderSystem
.
Accessory
.
RotaryFreqSet
=
w
.
Value
;
//它需要上升沿信号
winderSystem
.
Accessory
.
IsRotaryFreqChanged
=
false
;
winderSystem
.
Accessory
.
IsRotaryFreqChanged
=
true
;
}
...
...
Project.FLY.Winder/FLY.Winder.UI.Client/UiModule/MainPanel/UiModule2_MainPanel2.cs
View file @
5f3befd6
...
...
@@ -26,7 +26,7 @@ namespace FLY.Winder.UI.Client.UiModule
/// <returns></returns>
public
FrameworkElement
GetComponent
(
int
id
,
IUnityContainer
container
)
{
var
p
=
container
.
Resolve
<
MainPanel
2
>(
);
var
p
=
container
.
Resolve
<
MainPanel
>(
new
Unity
.
Resolution
.
ParameterOverride
(
"isCenter"
,
true
)
);
return
p
;
}
...
...
Project.FLY.Winder/FLY.Winder.UI.Client/UiModule/MainPanel/WdSetVolecity.xaml
0 → 100644
View file @
5f3befd6
<flyctrllib:WindowBigClose x:Class="FLY.Winder.UI.Client.UiModule.WdSetVolecity"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:flyctrllib="clr-namespace:FLY.ControlLibrary;assembly=FLY.ControlLibrary"
xmlns:local="clr-namespace:FLY.Winder.UI.Client.UiModule"
d:DataContext="{d:DesignInstance local:WdSetValueVm}"
xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
mc:Ignorable="d"
WindowStartupLocation="CenterScreen"
SizeToContent="WidthAndHeight"
>
<Window.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="MainPanelStyle.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Window.Resources>
<StackPanel Margin="5,20" d:DataContext="{StaticResource unittests_windersystem}">
<StackPanel Margin="{StaticResource ControlMargin}">
<TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable}" Text="速度" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="44" />
</StackPanel>
<Grid DataContext="{Binding Accessory}">
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition Width="auto"/>
</Grid.ColumnDefinitions>
<StackPanel>
<StackPanel Orientation="Horizontal" Margin="{StaticResource ControlMargin}" Width="200">
<TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable}" Text="设定" />
<StackPanel Orientation="Horizontal">
<TextBox Style="{StaticResource Styles.Text.FieldContent.Input.Card}" Text="{Binding VelocitySet,StringFormat={}{0:F1}}" MaxWidth="120" />
<TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}" Text="m/min" />
</StackPanel>
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="{StaticResource ControlMargin}" Width="200">
<TextBlock Style="{StaticResource Styles.Text.FieldHeader}" Text="实际" />
<TextBlock Style="{StaticResource Styles.Text.FieldContent}" Text="{Binding Velocity,StringFormat={}{0:F1}}" />
<TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}" Text="m/min" />
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="{StaticResource ControlMargin}">
<Button Style="{StaticResource Styles.Button.Icon.Large}" Foreground="{StaticResource Brushes.Activity}"
VerticalAlignment="Top"
Click="btnPlusClick" >
<iconPacks:PackIconMaterial Kind="PlusCircle"/>
</Button>
<Button Style="{StaticResource Styles.Button.Icon.Large}" Foreground="{StaticResource Brushes.Validation}"
VerticalAlignment="Top"
Click="btnMinusClick" >
<iconPacks:PackIconMaterial Kind="MinusCircle"/>
</Button>
</StackPanel>
</StackPanel>
<Grid Grid.Column="1" VerticalAlignment="Bottom" >
<Viewbox Width="80">
<Button Style="{StaticResource ButtonStyle_resizeIcon}" Foreground="{StaticResource Color_on}" >
<i:Interaction.Behaviors>
<flyctrllib:ResetBehavior Binding="{Binding IsVelocityChanged}"/>
</i:Interaction.Behaviors>
<Grid>
<Ellipse Fill="White" />
<iconPacks:PackIconMaterial Kind="CheckCircle" />
</Grid>
</Button>
</Viewbox>
</Grid>
</Grid>
</StackPanel>
</flyctrllib:WindowBigClose>
Project.FLY.Winder/FLY.Winder.UI.Client/UiModule/MainPanel/WdSetVolecity.xaml.cs
0 → 100644
View file @
5f3befd6
using
FLY.Winder.IService
;
using
GalaSoft.MvvmLight.Command
;
using
System
;
using
System.Collections.Generic
;
using
System.ComponentModel
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
using
System.Windows
;
using
System.Windows.Controls
;
using
System.Windows.Data
;
using
System.Windows.Documents
;
using
System.Windows.Input
;
using
System.Windows.Media
;
using
System.Windows.Media.Imaging
;
using
System.Windows.Shapes
;
using
Unity
;
namespace
FLY.Winder.UI.Client.UiModule
{
/// <summary>
/// Window_Frequency.xaml 的交互逻辑
/// </summary>
public
partial
class
WdSetVolecity
:
FLY
.
ControlLibrary
.
WindowBigClose
{
float
max
=
200.0f
;
float
min
=
1f
;
float
step
=
0.1f
;
IWinderSystemService
winderSystem
;
public
WdSetVolecity
()
{
InitializeComponent
();
}
public
void
Init
(
IUnityContainer
container
,
IWinderSystemService
winderSystem
)
{
this
.
winderSystem
=
winderSystem
;
this
.
DataContext
=
winderSystem
;
}
private
void
btnPlusClick
(
object
sender
,
RoutedEventArgs
e
)
{
if
(
winderSystem
.
Accessory
.
VelocitySet
<
max
)
winderSystem
.
Accessory
.
VelocitySet
+=
step
;
}
private
void
btnMinusClick
(
object
sender
,
RoutedEventArgs
e
)
{
if
(
winderSystem
.
Accessory
.
VelocitySet
>
min
)
winderSystem
.
Accessory
.
VelocitySet
-=
step
;
}
}
}
脚本/hemeiInstallZipVersionInfo.json
View file @
5f3befd6
{
"InstallZipVersion"
:
"7.7.
2.0
"
,
"InstallZipUrl"
:
"http://server.flyautomation.net:8889/download/和美安装包_v7.7.
2.0_2022112
4.7z"
"InstallZipVersion"
:
"7.7.
3.1
"
,
"InstallZipUrl"
:
"http://server.flyautomation.net:8889/download/和美安装包_v7.7.
3.1_2023010
4.7z"
}
\ No newline at end of file
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