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
Show 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
/// </summary>
/// <param name="tabControl"></param>
/// <param name="stackpanel_dynarea"></param>
/// <param name="stackpanel_menu"></param>
/// <param name="layout"></param>
public
void
Init
(
TabControl
tabControl
,
StackPanel
stackpanel_dynarea
,
StackPanel
stackpanel_menu
,
UIModule
.
FLYLayout
layout
)
...
...
Project.FLY.Thick.Base/FLY.Thick.Base.UI/UIModule/FLYLayout.cs
View file @
dfec0311
...
...
@@ -26,7 +26,7 @@ namespace ThickTcpUiInWindow.UIModule
public
List
<
GraphTabItem
>
Items
{
get
;
}
=
new
List
<
GraphTabItem
>();
private
int
dynareawidth
=
40
0
;
private
int
dynareawidth
=
25
0
;
/// <summary>
/// 动态区宽度
/// </summary>
...
...
@@ -52,7 +52,12 @@ namespace ThickTcpUiInWindow.UIModule
/// <summary>
/// 动态区显示
/// </summary>
public
bool
IsDynAreaVisible
{
get
;
set
;
}
public
bool
IsDynAreaVisible
{
get
;
set
;
}
=
true
;
/// <summary>
/// 当前选了menu, 这个不需要保存
/// </summary>
public
bool
IsInMenuSelect
{
get
;
set
;
}
/// <summary>
/// 测厚仪的状态不同状态,显示的页面
/// </summary>
...
...
@@ -64,7 +69,7 @@ namespace ThickTcpUiInWindow.UIModule
public
int
Top
{
get
;
set
;
}
public
int
Width
{
get
;
set
;
}
=
1024
;
public
int
Height
{
get
;
set
;
}
=
768
;
public
WindowState
WindowState
{
get
;
set
;
}
public
WindowState
WindowState
{
get
;
set
;
}
=
WindowState
.
Maximized
;
#
endregion
/// <summary>
/// 文件路径
...
...
@@ -92,7 +97,6 @@ namespace ThickTcpUiInWindow.UIModule
/// </summary>
public
FLYLayout
()
{
Load
();
}
/// <summary>
...
...
Project.FLY.Thick.Blowing/FLY.Thick.Blowing.UI.Fix.Client/Page_Main.xaml
View file @
dfec0311
...
...
@@ -7,6 +7,8 @@
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: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"
mc:Ignorable="d"
d:DesignHeight="768" d:DesignWidth="1024"
...
...
@@ -38,10 +40,16 @@
</ControlTemplate>
<blowing_common:BlowingFixProfileParam x:Key="profile_param" MMode="Bag"/>
<base_uimodule:FLYLayout
x:Key="flylayout_unittests"
DynAreaWidth="250"
IsInMenuSelect ="True"
/>
</ResourceDictionary>
</Page.Resources>
<Grid>
<Grid Name="grid_initparam"/>
<Grid Name="grid_layout" d:DataContext="{StaticResource flylayout_unittests}"/>
<Grid >
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto"/>
...
...
@@ -70,7 +78,7 @@
</Style>
</ResourceDictionary>
</Grid.Resources>
<StackPanel
Name="stackpanel_button" Background="#282828"
>
<StackPanel
Background="#282828"
>
<Button Click="button_sysparam_click" >
<StackPanel >
<Path Data="{StaticResource Geometry_settings}" />
...
...
@@ -83,11 +91,11 @@
<TextBlock Text="产品" />
</StackPanel>
</Button>
<StackPanel >
<StackPanel Visibility="{Binding
DataContext.EPCType, ElementName=Border_Blowing
, Converter={StaticResource e2visconv_collapsed}, ConverterParameter={x:Static iservice:RenZiJiaFixEPCType.EPCA10}}">
<StackPanel
DataContext="{Binding ElementName=Border_Blowing,Path=DataContext}"
>
<StackPanel Visibility="{Binding
EPCType
, Converter={StaticResource e2visconv_collapsed}, ConverterParameter={x:Static iservice:RenZiJiaFixEPCType.EPCA10}}">
<Button
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 >
...
...
@@ -98,7 +106,7 @@
<Button
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 >
<Path Data="{StaticResource Geometry_close-circle}" Fill="Red" />
...
...
@@ -110,7 +118,7 @@
</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">
<StackPanel >
<Path Data="{StaticResource Geometry_arrow-left}" />
...
...
@@ -133,8 +141,7 @@
<ColumnDefinition Width="395*" />
</Grid.ColumnDefinitions>
<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" >
<StackPanel Name="stackpanel_dynarea" Orientation="Vertical" Margin="5" Width="250">
<StackPanel.Resources>
...
...
@@ -511,7 +518,7 @@
</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>
<TransformGroup>
<RotateTransform Angle="-90"/>
...
...
Project.FLY.Thick.Blowing/FLY.Thick.Blowing.UI.Fix.Client/Page_Main.xaml.cs
View file @
dfec0311
...
...
@@ -33,25 +33,12 @@ namespace FLY.Thick.Blowing.UI.Fix.Client
private
ThickTcpUiInWindow
.
UIModule
.
FLYLayout
mLayout
;
private
FLYLayoutManager
mManager
;
private
bool
isInMenuSelect
=
false
;
public
bool
IsInMenuSelect
{
get
{
return
isInMenuSelect
;
}
set
{
if
(
isInMenuSelect
!=
value
)
{
isInMenuSelect
=
value
;
NotifyPropertyChanged
(
"IsInMenuSelect"
);
}
}
}
TDGage
gage
;
public
Page_Main
()
{
InitializeComponent
();
stackpanel_menuselect
.
DataContext
=
this
;
}
public
void
Init
(
TDGage
gage
)
{
...
...
@@ -61,7 +48,6 @@ namespace FLY.Thick.Blowing.UI.Fix.Client
{
this
.
gage
=
gage
;
stackpanel_dynarea
.
DataContext
=
gage
.
mDynArea
;
stackpanel_button
.
DataContext
=
gage
.
mSysParam
;
Init_Border_Blowing
();
Init_Border_Profile
();
...
...
@@ -72,6 +58,7 @@ namespace FLY.Thick.Blowing.UI.Fix.Client
System
.
Windows
.
Application
.
Current
.
Dispatcher
.
Invoke
(
new
Action
(()
=>
{
mLayout
=
new
ThickTcpUiInWindow
.
UIModule
.
FLYLayout
();
mLayout
.
Load
();
grid_layout
.
DataContext
=
mLayout
;
mManager
=
new
FLYLayoutManager
();
mManager
.
myUIModules
.
Add
(
"scangraph"
,
...
...
@@ -188,7 +175,7 @@ namespace FLY.Thick.Blowing.UI.Fix.Client
{
if
(
stackpanel_menu
.
Children
.
Count
>
0
)
{
IsInMenuSelect
=
true
;
mLayout
.
IsInMenuSelect
=
true
;
}
else
{
...
...
@@ -197,7 +184,7 @@ namespace FLY.Thick.Blowing.UI.Fix.Client
}
private
void
button_backmenu_click
(
object
sender
,
RoutedEventArgs
e
)
{
IsInMenuSelect
=
false
;
mLayout
.
IsInMenuSelect
=
false
;
}
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 @@
<Viewbox Margin="5,0" MaxWidth="80" MaxHeight="26">
<StackPanel Orientation="Horizontal" >
<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>
</Viewbox>
...
...
@@ -98,7 +98,7 @@
<Viewbox Margin="5,0" MaxWidth="80" MaxHeight="26">
<StackPanel Orientation="Horizontal" >
<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>
</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