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
dfec0311
Commit
dfec0311
authored
Dec 18, 2018
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.修改winder 主界面 dynarea 显示的单位
2.旋转塔,反向限位 与 反转信号 调换了
parent
ea683036
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
39 additions
and
34 deletions
+39
-34
FLYLayoutManager.cs
Project.FLY.Thick.Base/FLY.Thick.Base.UI/FLYLayoutManager.cs
+1
-0
FLYLayout.cs
...ct.FLY.Thick.Base/FLY.Thick.Base.UI/UIModule/FLYLayout.cs
+8
-4
Page_Main.xaml
...ck.Blowing/FLY.Thick.Blowing.UI.Fix.Client/Page_Main.xaml
+17
-10
Page_Main.xaml.cs
...Blowing/FLY.Thick.Blowing.UI.Fix.Client/Page_Main.xaml.cs
+5
-18
Page_DynArea.xaml
...LY.Winder/FLY.Winder.UI.Client/UIModule/Page_DynArea.xaml
+2
-2
收卷HMI-地址表.xlsm
Resource/收卷/收卷_设备连接变量表/收卷HMI-地址表.xlsm
+0
-0
graphcustom.xml
layout/graphcustom.xml
+6
-0
No files found.
Project.FLY.Thick.Base/FLY.Thick.Base.UI/FLYLayoutManager.cs
View file @
dfec0311
...
@@ -76,6 +76,7 @@ namespace ThickTcpUiInWindow
...
@@ -76,6 +76,7 @@ namespace ThickTcpUiInWindow
/// </summary>
/// </summary>
/// <param name="tabControl"></param>
/// <param name="tabControl"></param>
/// <param name="stackpanel_dynarea"></param>
/// <param name="stackpanel_dynarea"></param>
/// <param name="stackpanel_menu"></param>
/// <param name="layout"></param>
/// <param name="layout"></param>
public
void
Init
(
TabControl
tabControl
,
StackPanel
stackpanel_dynarea
,
StackPanel
stackpanel_menu
,
public
void
Init
(
TabControl
tabControl
,
StackPanel
stackpanel_dynarea
,
StackPanel
stackpanel_menu
,
UIModule
.
FLYLayout
layout
)
UIModule
.
FLYLayout
layout
)
...
...
Project.FLY.Thick.Base/FLY.Thick.Base.UI/UIModule/FLYLayout.cs
View file @
dfec0311
...
@@ -26,7 +26,7 @@ namespace ThickTcpUiInWindow.UIModule
...
@@ -26,7 +26,7 @@ namespace ThickTcpUiInWindow.UIModule
public
List
<
GraphTabItem
>
Items
{
get
;
}
=
new
List
<
GraphTabItem
>();
public
List
<
GraphTabItem
>
Items
{
get
;
}
=
new
List
<
GraphTabItem
>();
private
int
dynareawidth
=
40
0
;
private
int
dynareawidth
=
25
0
;
/// <summary>
/// <summary>
/// 动态区宽度
/// 动态区宽度
/// </summary>
/// </summary>
...
@@ -52,7 +52,12 @@ namespace ThickTcpUiInWindow.UIModule
...
@@ -52,7 +52,12 @@ namespace ThickTcpUiInWindow.UIModule
/// <summary>
/// <summary>
/// 动态区显示
/// 动态区显示
/// </summary>
/// </summary>
public
bool
IsDynAreaVisible
{
get
;
set
;
}
public
bool
IsDynAreaVisible
{
get
;
set
;
}
=
true
;
/// <summary>
/// 当前选了menu, 这个不需要保存
/// </summary>
public
bool
IsInMenuSelect
{
get
;
set
;
}
/// <summary>
/// <summary>
/// 测厚仪的状态不同状态,显示的页面
/// 测厚仪的状态不同状态,显示的页面
/// </summary>
/// </summary>
...
@@ -64,7 +69,7 @@ namespace ThickTcpUiInWindow.UIModule
...
@@ -64,7 +69,7 @@ namespace ThickTcpUiInWindow.UIModule
public
int
Top
{
get
;
set
;
}
public
int
Top
{
get
;
set
;
}
public
int
Width
{
get
;
set
;
}
=
1024
;
public
int
Width
{
get
;
set
;
}
=
1024
;
public
int
Height
{
get
;
set
;
}
=
768
;
public
int
Height
{
get
;
set
;
}
=
768
;
public
WindowState
WindowState
{
get
;
set
;
}
public
WindowState
WindowState
{
get
;
set
;
}
=
WindowState
.
Maximized
;
#
endregion
#
endregion
/// <summary>
/// <summary>
/// 文件路径
/// 文件路径
...
@@ -92,7 +97,6 @@ namespace ThickTcpUiInWindow.UIModule
...
@@ -92,7 +97,6 @@ namespace ThickTcpUiInWindow.UIModule
/// </summary>
/// </summary>
public
FLYLayout
()
public
FLYLayout
()
{
{
Load
();
}
}
/// <summary>
/// <summary>
...
...
Project.FLY.Thick.Blowing/FLY.Thick.Blowing.UI.Fix.Client/Page_Main.xaml
View file @
dfec0311
...
@@ -7,6 +7,8 @@
...
@@ -7,6 +7,8 @@
xmlns:iservice="clr-namespace:FLY.Thick.Blowing.IService;assembly=FLY.Thick.Blowing"
xmlns:iservice="clr-namespace:FLY.Thick.Blowing.IService;assembly=FLY.Thick.Blowing"
xmlns:common="clr-namespace:FLY.Thick.Base.Common;assembly=FLY.Thick.Base"
xmlns:common="clr-namespace:FLY.Thick.Base.Common;assembly=FLY.Thick.Base"
xmlns:blowing_common="clr-namespace:FLY.Thick.Blowing.Common;assembly=FLY.Thick.Blowing"
xmlns:blowing_common="clr-namespace:FLY.Thick.Blowing.Common;assembly=FLY.Thick.Blowing"
xmlns:base_uimodule="clr-namespace:ThickTcpUiInWindow.UIModule;assembly=ThickTcpUiInWindow"
xmlns:misc="clr-namespace:Misc;assembly=MISC"
xmlns:misc="clr-namespace:Misc;assembly=MISC"
mc:Ignorable="d"
mc:Ignorable="d"
d:DesignHeight="768" d:DesignWidth="1024"
d:DesignHeight="768" d:DesignWidth="1024"
...
@@ -38,10 +40,16 @@
...
@@ -38,10 +40,16 @@
</ControlTemplate>
</ControlTemplate>
<blowing_common:BlowingFixProfileParam x:Key="profile_param" MMode="Bag"/>
<blowing_common:BlowingFixProfileParam x:Key="profile_param" MMode="Bag"/>
<base_uimodule:FLYLayout
x:Key="flylayout_unittests"
DynAreaWidth="250"
IsInMenuSelect ="True"
/>
</ResourceDictionary>
</ResourceDictionary>
</Page.Resources>
</Page.Resources>
<Grid>
<Grid>
<Grid Name="grid_initparam"/>
<Grid Name="grid_layout" d:DataContext="{StaticResource flylayout_unittests}"/>
<Grid >
<Grid >
<Grid.ColumnDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto"/>
<ColumnDefinition Width="auto"/>
...
@@ -70,7 +78,7 @@
...
@@ -70,7 +78,7 @@
</Style>
</Style>
</ResourceDictionary>
</ResourceDictionary>
</Grid.Resources>
</Grid.Resources>
<StackPanel
Name="stackpanel_button" Background="#282828"
>
<StackPanel
Background="#282828"
>
<Button Click="button_sysparam_click" >
<Button Click="button_sysparam_click" >
<StackPanel >
<StackPanel >
<Path Data="{StaticResource Geometry_settings}" />
<Path Data="{StaticResource Geometry_settings}" />
...
@@ -83,11 +91,11 @@
...
@@ -83,11 +91,11 @@
<TextBlock Text="产品" />
<TextBlock Text="产品" />
</StackPanel>
</StackPanel>
</Button>
</Button>
<StackPanel >
<StackPanel
DataContext="{Binding ElementName=Border_Blowing,Path=DataContext}"
>
<StackPanel Visibility="{Binding
DataContext.EPCType, ElementName=Border_Blowing
, Converter={StaticResource e2visconv_collapsed}, ConverterParameter={x:Static iservice:RenZiJiaFixEPCType.EPCA10}}">
<StackPanel Visibility="{Binding
EPCType
, Converter={StaticResource e2visconv_collapsed}, ConverterParameter={x:Static iservice:RenZiJiaFixEPCType.EPCA10}}">
<Button
<Button
Click="button_epc_start_click"
Click="button_epc_start_click"
Visibility="{Binding
DataContext.EPCIsRunning, ElementName=Border_Blow
ing, Converter={StaticResource visbilityconv}, ConverterParameter=HiddenWhenTrue}"
Visibility="{Binding
EPCIsRunn
ing, Converter={StaticResource visbilityconv}, ConverterParameter=HiddenWhenTrue}"
>
>
<StackPanel >
<StackPanel >
...
@@ -98,7 +106,7 @@
...
@@ -98,7 +106,7 @@
<Button
<Button
Click="button_epc_stop_click"
Click="button_epc_stop_click"
Visibility="{Binding
DataContext.EPCIsRunning, ElementName=Border_Blow
ing, Converter={StaticResource visbilityconv}, ConverterParameter=Hidden}"
Visibility="{Binding
EPCIsRunn
ing, Converter={StaticResource visbilityconv}, ConverterParameter=Hidden}"
>
>
<StackPanel >
<StackPanel >
<Path Data="{StaticResource Geometry_close-circle}" Fill="Red" />
<Path Data="{StaticResource Geometry_close-circle}" Fill="Red" />
...
@@ -110,7 +118,7 @@
...
@@ -110,7 +118,7 @@
</StackPanel>
</StackPanel>
</StackPanel>
</StackPanel>
<StackPanel
Name="stackpanel_menuselect" Background="#282828
" Visibility="{Binding IsInMenuSelect,Converter={StaticResource visbilityconv}}">
<StackPanel
Background="#282828" DataContext="{Binding ElementName=grid_layout,Path=DataContext}
" Visibility="{Binding IsInMenuSelect,Converter={StaticResource visbilityconv}}">
<Button Click="button_backmenu_click">
<Button Click="button_backmenu_click">
<StackPanel >
<StackPanel >
<Path Data="{StaticResource Geometry_arrow-left}" />
<Path Data="{StaticResource Geometry_arrow-left}" />
...
@@ -133,8 +141,7 @@
...
@@ -133,8 +141,7 @@
<ColumnDefinition Width="395*" />
<ColumnDefinition Width="395*" />
</Grid.ColumnDefinitions>
</Grid.ColumnDefinitions>
<Grid>
<Grid>
<Grid Name="grid_initparam"/>
<Grid Name="grid_layout"/>
<Viewbox Name="viewbox_dynarea" DataContext="{Binding DataContext,ElementName=grid_layout}" MaxWidth="{Binding DynAreaWidth}" Visibility="{Binding IsDynAreaVisible,Converter={StaticResource visbilityconv}, ConverterParameter=Collapsed}" VerticalAlignment="Top" HorizontalAlignment="Left" SnapsToDevicePixels="True" >
<Viewbox Name="viewbox_dynarea" DataContext="{Binding DataContext,ElementName=grid_layout}" MaxWidth="{Binding DynAreaWidth}" Visibility="{Binding IsDynAreaVisible,Converter={StaticResource visbilityconv}, ConverterParameter=Collapsed}" VerticalAlignment="Top" HorizontalAlignment="Left" SnapsToDevicePixels="True" >
<StackPanel Name="stackpanel_dynarea" Orientation="Vertical" Margin="5" Width="250">
<StackPanel Name="stackpanel_dynarea" Orientation="Vertical" Margin="5" Width="250">
<StackPanel.Resources>
<StackPanel.Resources>
...
@@ -511,7 +518,7 @@
...
@@ -511,7 +518,7 @@
</Grid>
</Grid>
<Button RenderTransformOrigin="0.25,0.5" Click="button_option_click"
Template="{StaticResource ResourceKey=picture_button
}" HorizontalAlignment="Left" VerticalAlignment="Bottom" >
<Button RenderTransformOrigin="0.25,0.5" Click="button_option_click"
Style="{StaticResource ButtonStyle_empty
}" HorizontalAlignment="Left" VerticalAlignment="Bottom" >
<Button.RenderTransform>
<Button.RenderTransform>
<TransformGroup>
<TransformGroup>
<RotateTransform Angle="-90"/>
<RotateTransform Angle="-90"/>
...
...
Project.FLY.Thick.Blowing/FLY.Thick.Blowing.UI.Fix.Client/Page_Main.xaml.cs
View file @
dfec0311
...
@@ -32,26 +32,13 @@ namespace FLY.Thick.Blowing.UI.Fix.Client
...
@@ -32,26 +32,13 @@ namespace FLY.Thick.Blowing.UI.Fix.Client
{
{
private
ThickTcpUiInWindow
.
UIModule
.
FLYLayout
mLayout
;
private
ThickTcpUiInWindow
.
UIModule
.
FLYLayout
mLayout
;
private
FLYLayoutManager
mManager
;
private
FLYLayoutManager
mManager
;
private
bool
isInMenuSelect
=
false
;
public
bool
IsInMenuSelect
{
get
{
return
isInMenuSelect
;
}
set
{
if
(
isInMenuSelect
!=
value
)
{
isInMenuSelect
=
value
;
NotifyPropertyChanged
(
"IsInMenuSelect"
);
}
}
}
TDGage
gage
;
TDGage
gage
;
public
Page_Main
()
public
Page_Main
()
{
{
InitializeComponent
();
InitializeComponent
();
stackpanel_menuselect
.
DataContext
=
this
;
}
}
public
void
Init
(
TDGage
gage
)
public
void
Init
(
TDGage
gage
)
{
{
...
@@ -61,7 +48,6 @@ namespace FLY.Thick.Blowing.UI.Fix.Client
...
@@ -61,7 +48,6 @@ namespace FLY.Thick.Blowing.UI.Fix.Client
{
{
this
.
gage
=
gage
;
this
.
gage
=
gage
;
stackpanel_dynarea
.
DataContext
=
gage
.
mDynArea
;
stackpanel_dynarea
.
DataContext
=
gage
.
mDynArea
;
stackpanel_button
.
DataContext
=
gage
.
mSysParam
;
Init_Border_Blowing
();
Init_Border_Blowing
();
Init_Border_Profile
();
Init_Border_Profile
();
...
@@ -72,6 +58,7 @@ namespace FLY.Thick.Blowing.UI.Fix.Client
...
@@ -72,6 +58,7 @@ namespace FLY.Thick.Blowing.UI.Fix.Client
System
.
Windows
.
Application
.
Current
.
Dispatcher
.
Invoke
(
new
Action
(()
=>
System
.
Windows
.
Application
.
Current
.
Dispatcher
.
Invoke
(
new
Action
(()
=>
{
{
mLayout
=
new
ThickTcpUiInWindow
.
UIModule
.
FLYLayout
();
mLayout
=
new
ThickTcpUiInWindow
.
UIModule
.
FLYLayout
();
mLayout
.
Load
();
grid_layout
.
DataContext
=
mLayout
;
grid_layout
.
DataContext
=
mLayout
;
mManager
=
new
FLYLayoutManager
();
mManager
=
new
FLYLayoutManager
();
mManager
.
myUIModules
.
Add
(
"scangraph"
,
mManager
.
myUIModules
.
Add
(
"scangraph"
,
...
@@ -188,7 +175,7 @@ namespace FLY.Thick.Blowing.UI.Fix.Client
...
@@ -188,7 +175,7 @@ namespace FLY.Thick.Blowing.UI.Fix.Client
{
{
if
(
stackpanel_menu
.
Children
.
Count
>
0
)
if
(
stackpanel_menu
.
Children
.
Count
>
0
)
{
{
IsInMenuSelect
=
true
;
mLayout
.
IsInMenuSelect
=
true
;
}
}
else
else
{
{
...
@@ -197,7 +184,7 @@ namespace FLY.Thick.Blowing.UI.Fix.Client
...
@@ -197,7 +184,7 @@ namespace FLY.Thick.Blowing.UI.Fix.Client
}
}
private
void
button_backmenu_click
(
object
sender
,
RoutedEventArgs
e
)
private
void
button_backmenu_click
(
object
sender
,
RoutedEventArgs
e
)
{
{
IsInMenuSelect
=
false
;
mLayout
.
IsInMenuSelect
=
false
;
}
}
private
void
button_menu_click
(
object
sender
,
RoutedEventArgs
e
)
private
void
button_menu_click
(
object
sender
,
RoutedEventArgs
e
)
{
{
...
...
Project.FLY.Winder/FLY.Winder.UI.Client/UIModule/Page_DynArea.xaml
View file @
dfec0311
...
@@ -72,7 +72,7 @@
...
@@ -72,7 +72,7 @@
<Viewbox Margin="5,0" MaxWidth="80" MaxHeight="26">
<Viewbox Margin="5,0" MaxWidth="80" MaxHeight="26">
<StackPanel Orientation="Horizontal" >
<StackPanel Orientation="Horizontal" >
<TextBlock Text="{Binding MeasureLen, StringFormat={}{0:F0}}" FontSize="24" FontFamily="Microsoft Sans Serif" TextAlignment="Center" HorizontalAlignment="Center" Foreground="White" />
<TextBlock Text="{Binding MeasureLen, StringFormat={}{0:F0}}" FontSize="24" FontFamily="Microsoft Sans Serif" TextAlignment="Center" HorizontalAlignment="Center" Foreground="White" />
<TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent_mm}" Text="m
m
" FontSize="12" Foreground="LightGray"/>
<TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent_mm}" Text="m" FontSize="12" Foreground="LightGray"/>
</StackPanel>
</StackPanel>
</Viewbox>
</Viewbox>
...
@@ -98,7 +98,7 @@
...
@@ -98,7 +98,7 @@
<Viewbox Margin="5,0" MaxWidth="80" MaxHeight="26">
<Viewbox Margin="5,0" MaxWidth="80" MaxHeight="26">
<StackPanel Orientation="Horizontal" >
<StackPanel Orientation="Horizontal" >
<TextBlock Text="{Binding MeasureLen, StringFormat={}{0:F0}}" FontSize="24" FontFamily="Microsoft Sans Serif" TextAlignment="Center" HorizontalAlignment="Center" Foreground="White" />
<TextBlock Text="{Binding MeasureLen, StringFormat={}{0:F0}}" FontSize="24" FontFamily="Microsoft Sans Serif" TextAlignment="Center" HorizontalAlignment="Center" Foreground="White" />
<TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent_mm}" Text="m
m
" FontSize="12" Foreground="LightGray"/>
<TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent_mm}" Text="m" FontSize="12" Foreground="LightGray"/>
</StackPanel>
</StackPanel>
</Viewbox>
</Viewbox>
...
...
Resource/收卷/收卷_设备连接变量表/收卷HMI-地址表.xlsm
View file @
dfec0311
No preview for this file type
layout/graphcustom.xml
0 → 100644
View file @
dfec0311
<?xml version="1.0" encoding="utf-8"?>
<FLYLayout
DynAreaWidth=
"400"
IsDynAreaVisible=
"False"
Left=
"0"
Top=
"0"
Width=
"1024"
Height=
"768"
WindowState=
"Normal"
>
<Items
/>
<ControllerStates
/>
<DynAreaItems
/>
</FLYLayout>
\ 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