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
fe788247
Commit
fe788247
authored
Jan 07, 2022
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复 称重V6 没有注册 “厚度%” 更新
parent
9e2e56da
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
113 additions
and
43 deletions
+113
-43
MainGraphV6.xaml
....Weight/FLY.Weight.UI.Client/UiModule/V6/MainGraphV6.xaml
+13
-20
MainGraphV6.xaml.cs
...ight/FLY.Weight.UI.Client/UiModule/V6/MainGraphV6.xaml.cs
+1
-1
MainGraphV6_2.xaml
...eight/FLY.Weight.UI.Client/UiModule/V6/MainGraphV6_2.xaml
+13
-19
MainGraphV6_2.xaml.cs
...ht/FLY.Weight.UI.Client/UiModule/V6/MainGraphV6_2.xaml.cs
+1
-1
UcTotalFlowV6.xaml
...eight/FLY.Weight.UI.Client/UiModule/V6/UcTotalFlowV6.xaml
+56
-0
UcTotalFlowV6.xaml.cs
...ht/FLY.Weight.UI.Client/UiModule/V6/UcTotalFlowV6.xaml.cs
+28
-1
UcWeighterItemV6_2.xaml
.../FLY.Weight.UI.Client/UiModule/V6/UcWeighterItemV6_2.xaml
+1
-1
No files found.
Project.FLY.Weight/FLY.Weight.UI.Client/UiModule/V6/MainGraphV6.xaml
View file @
fe788247
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
xmlns:local="clr-namespace:FLY.Weight.UI.Client.UiModule"
xmlns:local="clr-namespace:FLY.Weight.UI.Client.UiModule"
xmlns:control="clr-namespace:FLY.Weight.UI.Client.Control"
xmlns:control="clr-namespace:FLY.Weight.UI.Client.Control"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
mc:Ignorable="d" d:DesignWidth ="1
600" d:DesignHeight="95
4">
mc:Ignorable="d" d:DesignWidth ="1
060" d:DesignHeight="63
4">
<!--1920*1080 下图表区 1600 * 954
<!--1920*1080 下图表区 1600 * 954
1280*1024 下图表区 960 * 890
1280*1024 下图表区 960 * 890
1388*768 下图表区 1060 * 634-->
1388*768 下图表区 1060 * 634-->
...
@@ -27,13 +27,7 @@
...
@@ -27,13 +27,7 @@
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
</Grid.RowDefinitions>
<local:UcTotalFlowV6 x:Name="ucTotalFlow" Margin="{StaticResource ControlMargin}" />
<local:UcTotalFlowV6 x:Name="ucTotalFlow" Margin="{StaticResource ControlMargin}" />
<ItemsControl x:Name="itemsControl" Grid.Row="1" ItemsSource="{Binding Items}">
<Grid Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto"/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<ItemsControl x:Name="itemsControl" Grid.Column="1" ItemsSource="{Binding Items}">
<ItemsControl.ItemsPanel>
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<ItemsPanelTemplate>
<UniformGrid Columns="{Binding ElementName=itemsControl,Path=Items.Count}"/>
<UniformGrid Columns="{Binding ElementName=itemsControl,Path=Items.Count}"/>
...
@@ -50,6 +44,5 @@
...
@@ -50,6 +44,5 @@
</ItemsControl>
</ItemsControl>
</Grid>
</Grid>
</Grid>
</Grid>
</Grid>
</UserControl>
</UserControl>
Project.FLY.Weight/FLY.Weight.UI.Client/UiModule/V6/MainGraphV6.xaml.cs
View file @
fe788247
...
@@ -39,7 +39,7 @@ namespace FLY.Weight.UI.Client.UiModule
...
@@ -39,7 +39,7 @@ namespace FLY.Weight.UI.Client.UiModule
SetPLCUpdatePlan
plan
=
new
SetPLCUpdatePlan
(
SetPLCUpdatePlan
plan
=
new
SetPLCUpdatePlan
(
this
.
weightSystemService
.
PLCos
,
this
.
weightSystemService
.
PLCos
,
this
.
weightSystemService
.
Items
[
i
],
this
.
weightSystemService
.
Items
[
i
],
UcWeighterItemV
5
.
item_update_propertynames
);
UcWeighterItemV
6
.
item_update_propertynames
);
setPlan_items
.
Add
(
plan
);
setPlan_items
.
Add
(
plan
);
}
}
if
(
weightSystemService
is
WeightSystemServiceClient
)
if
(
weightSystemService
is
WeightSystemServiceClient
)
...
...
Project.FLY.Weight/FLY.Weight.UI.Client/UiModule/V6/MainGraphV6_2.xaml
View file @
fe788247
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
xmlns:local="clr-namespace:FLY.Weight.UI.Client.UiModule"
xmlns:local="clr-namespace:FLY.Weight.UI.Client.UiModule"
xmlns:control="clr-namespace:FLY.Weight.UI.Client.Control"
xmlns:control="clr-namespace:FLY.Weight.UI.Client.Control"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
mc:Ignorable="d" d:DesignWidth ="1
060" d:DesignHeight="63
4">
mc:Ignorable="d" d:DesignWidth ="1
600" d:DesignHeight="95
4">
<!--1920*1080 下图表区 1600 * 954
<!--1920*1080 下图表区 1600 * 954
1280*1024 下图表区 960 * 890
1280*1024 下图表区 960 * 890
1388*768 下图表区 1060 * 634-->
1388*768 下图表区 1060 * 634-->
...
@@ -28,12 +28,7 @@
...
@@ -28,12 +28,7 @@
</Grid.RowDefinitions>
</Grid.RowDefinitions>
<local:UcTotalFlowV6 x:Name="ucTotalFlow" Margin="{StaticResource ControlMargin}" />
<local:UcTotalFlowV6 x:Name="ucTotalFlow" Margin="{StaticResource ControlMargin}" />
<Grid Grid.Row="1">
<ItemsControl x:Name="itemsControl" Grid.Row="1" ItemsSource="{Binding Items}">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto"/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<ItemsControl x:Name="itemsControl" Grid.Column="1" ItemsSource="{Binding Items}">
<ItemsControl.ItemsPanel>
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<ItemsPanelTemplate>
<UniformGrid Columns="{Binding ElementName=itemsControl,Path=Items.Count}"/>
<UniformGrid Columns="{Binding ElementName=itemsControl,Path=Items.Count}"/>
...
@@ -50,6 +45,5 @@
...
@@ -50,6 +45,5 @@
</ItemsControl>
</ItemsControl>
</Grid>
</Grid>
</Grid>
</Grid>
</Grid>
</UserControl>
</UserControl>
Project.FLY.Weight/FLY.Weight.UI.Client/UiModule/V6/MainGraphV6_2.xaml.cs
View file @
fe788247
...
@@ -39,7 +39,7 @@ namespace FLY.Weight.UI.Client.UiModule
...
@@ -39,7 +39,7 @@ namespace FLY.Weight.UI.Client.UiModule
SetPLCUpdatePlan
plan
=
new
SetPLCUpdatePlan
(
SetPLCUpdatePlan
plan
=
new
SetPLCUpdatePlan
(
this
.
weightSystemService
.
PLCos
,
this
.
weightSystemService
.
PLCos
,
this
.
weightSystemService
.
Items
[
i
],
this
.
weightSystemService
.
Items
[
i
],
UcWeighterItemV
5
.
item_update_propertynames
);
UcWeighterItemV
6
.
item_update_propertynames
);
setPlan_items
.
Add
(
plan
);
setPlan_items
.
Add
(
plan
);
}
}
if
(
weightSystemService
is
WeightSystemServiceClient
)
if
(
weightSystemService
is
WeightSystemServiceClient
)
...
...
Project.FLY.Weight/FLY.Weight.UI.Client/UiModule/V6/UcTotalFlowV6.xaml
View file @
fe788247
...
@@ -85,6 +85,62 @@
...
@@ -85,6 +85,62 @@
</Grid>
</Grid>
</StackPanel>
</StackPanel>
</Viewbox>
</Viewbox>
<Viewbox Margin="15,5" MaxHeight="90">
<Button Style="{StaticResource Styles.Button.Empty}" Background="Transparent" Click="button_thickness_Click" >
<StackPanel Orientation="Horizontal">
<StackPanel>
<StackPanel Margin="3" >
<TextBlock Text="吹膜宽度" Style="{StaticResource TextBlockStyle_title_activity}"/>
<TextBlock >
<Run Text="{Binding Accessory.TotalFilmWidth,StringFormat={}{0:F0}}" Style="{StaticResource RunStyle_text_activity}" />
<Run Text="mm" Style="{StaticResource RunStyle_unit}" />
</TextBlock>
</StackPanel>
<StackPanel Margin="3">
<TextBlock Text="平均密度" Style="{StaticResource TextBlockStyle_title}" />
<Viewbox Height="{StaticResource FontSize_text}" HorizontalAlignment="Left" >
<TextBlock >
<Run Text="{Binding Accessory.Density,StringFormat={}{0:F3}}" Style="{StaticResource RunStyle_text}" />
<Run Text="kg/m³" Style="{StaticResource RunStyle_unit}" />
</TextBlock>
</Viewbox>
</StackPanel>
</StackPanel>
<StackPanel>
<StackPanel Margin="3" >
<TextBlock Text="设置厚度" Style="{StaticResource TextBlockStyle_title_activity}"/>
<TextBlock >
<Run Text="{Binding Accessory.SetThickness,StringFormat={}{0:F0}}" Style="{StaticResource RunStyle_text_activity}" />
<Run Text="um" Style="{StaticResource RunStyle_unit}" />
</TextBlock>
</StackPanel>
<StackPanel Margin="3" Background="{StaticResource Color_background2}" >
<TextBlock Text="当前厚度" Style="{StaticResource TextBlockStyle_title}" />
<TextBlock >
<Run Text="{Binding Accessory.Thickness,StringFormat={}{0:F1}}" Style="{StaticResource RunStyle_text}" />
<Run Text="m/min" Style="{StaticResource RunStyle_unit}" />
</TextBlock>
</StackPanel>
</StackPanel>
<StackPanel>
<StackPanel Margin="3" Background="{StaticResource Color_background2}" >
<TextBlock Text="当前线速度" Style="{StaticResource TextBlockStyle_title}" />
<TextBlock >
<Run Text="{Binding Accessory.CurrentVelocity,StringFormat={}{0:F1}}" Style="{StaticResource RunStyle_text}" />
<Run Text="m/min" Style="{StaticResource RunStyle_unit}" />
</TextBlock>
</StackPanel>
<StackPanel Margin="3" >
<TextBlock Text="理论线速度" Style="{StaticResource TextBlockStyle_title}" />
<TextBlock >
<Run Text="{Binding Accessory.TargetVelocity,StringFormat={}{0:F1}}" Style="{StaticResource RunStyle_text}" />
<Run Text="m/min" Style="{StaticResource RunStyle_unit}" />
</TextBlock>
</StackPanel>
</StackPanel>
</StackPanel>
</Button>
</Viewbox>
</StackPanel>
</StackPanel>
</Viewbox>
</Viewbox>
...
...
Project.FLY.Weight/FLY.Weight.UI.Client/UiModule/V6/UcTotalFlowV6.xaml.cs
View file @
fe788247
...
@@ -45,7 +45,14 @@ namespace FLY.Weight.UI.Client.UiModule
...
@@ -45,7 +45,14 @@ namespace FLY.Weight.UI.Client.UiModule
new
string
[]
{
new
string
[]
{
nameof
(
Common
.
WeighterAccessory
.
TotalFlowSetting
),
nameof
(
Common
.
WeighterAccessory
.
TotalFlowSetting
),
nameof
(
Common
.
WeighterAccessory
.
TotalFlow
),
nameof
(
Common
.
WeighterAccessory
.
TotalFlow
),
nameof
(
Common
.
WeighterAccessory
.
TotalProduction
)
nameof
(
Common
.
WeighterAccessory
.
TotalProduction
),
nameof
(
Common
.
WeighterAccessory
.
TotalFilmWidth
),
nameof
(
Common
.
WeighterAccessory
.
SetThickness
),
nameof
(
Common
.
WeighterAccessory
.
Thickness
),
nameof
(
Common
.
WeighterAccessory
.
Density
),
nameof
(
Common
.
WeighterAccessory
.
TargetVelocity
),
nameof
(
Common
.
WeighterAccessory
.
CurrentVelocity
)
});
});
for
(
int
i
=
0
;
i
<
weightSystemService
.
Items
.
Count
();
i
++)
for
(
int
i
=
0
;
i
<
weightSystemService
.
Items
.
Count
();
i
++)
...
@@ -111,6 +118,26 @@ namespace FLY.Weight.UI.Client.UiModule
...
@@ -111,6 +118,26 @@ namespace FLY.Weight.UI.Client.UiModule
}
}
FLY
.
ControlLibrary
.
Window_Tip
.
Show
(
""
,
"清空成功"
,
TimeSpan
.
FromSeconds
(
2
));
FLY
.
ControlLibrary
.
Window_Tip
.
Show
(
""
,
"清空成功"
,
TimeSpan
.
FromSeconds
(
2
));
}
}
private
void
button_thickness_Click
(
object
sender
,
RoutedEventArgs
e
)
{
WdThicknessV5
w
=
new
WdThicknessV5
();
if
(
weightSystemService
.
Items
.
Count
()
<
1
)
return
;
w
.
SetThickness
=
(
int
)
weightSystemService
.
Accessory
.
SetThickness
;
w
.
FilmWidth
=
(
int
)
weightSystemService
.
Accessory
.
TotalFilmWidth
;
w
.
Owner
=
FLY
.
ControlLibrary
.
COMMON
.
GetWindow
(
this
);
if
(
w
.
ShowDialog
()
==
true
)
{
weightSystemService
.
Accessory
.
SetThickness
=
w
.
SetThickness
;
weightSystemService
.
Accessory
.
TotalFilmWidth
=
w
.
FilmWidth
;
FLY
.
ControlLibrary
.
Window_Tip
.
Show
(
""
,
"厚度参数设置成功"
,
TimeSpan
.
FromSeconds
(
2
));
}
}
}
}
}
}
Project.FLY.Weight/FLY.Weight.UI.Client/UiModule/V6/UcWeighterItemV6_2.xaml
View file @
fe788247
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
</ResourceDictionary>
</ResourceDictionary>
</UserControl.Resources>
</UserControl.Resources>
<Border Style="{StaticResource BorderStyle_block}" d:DataContext="{StaticResource unittests_weighters}">
<Border Style="{StaticResource BorderStyle_block}" d:DataContext="{StaticResource unittests_weighters}">
<Viewbox Margin="{StaticResource ControlMargin}" d:DataContext="{Binding Items[
6
]}" HorizontalAlignment="Left" VerticalAlignment="Top">
<Viewbox Margin="{StaticResource ControlMargin}" d:DataContext="{Binding Items[
3
]}" HorizontalAlignment="Left" VerticalAlignment="Top">
<StackPanel >
<StackPanel >
<Button Margin="2" Style="{StaticResource Styles.Button.Empty}" Background="{Binding Color}"
<Button Margin="2" Style="{StaticResource Styles.Button.Empty}" Background="{Binding Color}"
Click="button_ingredient_Click"
Click="button_ingredient_Click"
...
...
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