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
cde056df
Commit
cde056df
authored
May 11, 2021
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加 追边测厚仪支持 用编码器测量旋转位置
parent
ab1a5771
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
153 additions
and
65 deletions
+153
-65
PgBlowing.xaml
...ick.Blowing/FLY.Thick.Blowing.UI/PgBlowing/PgBlowing.xaml
+4
-0
PgBlowingVm.cs
...ick.Blowing/FLY.Thick.Blowing.UI/PgBlowing/PgBlowingVm.cs
+5
-2
BlowingServiceClient.cs
....Blowing/FLY.Thick.Blowing/Client/BlowingServiceClient.cs
+1
-1
IBlowingService.cs
...ick.Blowing/FLY.Thick.Blowing/IService/IBlowingService.cs
+5
-0
GM_BlowingFix.cs
...Y.Thick.Blowing/FLY.Thick.Blowing/Server/GM_BlowingFix.cs
+2
-0
PgBlowing.xaml
...owing360/FLY.Thick.Blowing360.UI/PgBlowing/PgBlowing.xaml
+6
-1
PgBlowingVm.cs
...owing360/FLY.Thick.Blowing360.UI/PgBlowing/PgBlowingVm.cs
+3
-1
PgMenu.xaml.cs
...Y.Thick.Blowing360/FLY.Thick.Blowing360.UI/PgMenu.xaml.cs
+15
-4
DynAreaBlowing.xaml.cs
...0/FLY.Thick.Blowing360.UI/UiModule/DynAreaBlowing.xaml.cs
+32
-7
OBJProxy.cs
...owing360/FLY.Thick.Blowing360/Server.OBJProxy/OBJProxy.cs
+8
-2
BlowingDetect360.cs
...lowing360/FLY.Thick.Blowing360/Server/BlowingDetect360.cs
+44
-42
GM_BlowingFix360.cs
...lowing360/FLY.Thick.Blowing360/Server/GM_BlowingFix360.cs
+6
-0
TDGage.cs
...LY.Thick.Blowing360/FLY.Thick.Blowing360/Server/TDGage.cs
+12
-4
GM_BlowingScan.cs
...lowingScan/FLY.Thick.BlowingScan/Server/GM_BlowingScan.cs
+2
-0
thick_public
thick_public
+1
-1
blowing360.service.config
脚本/和美追边360客户端容器描述.unity/unity/blowing360.service.config
+7
-0
和美追边360客户端容器描述.xmind
脚本/和美追边360客户端容器描述.xmind
+0
-0
No files found.
Project.FLY.Thick.Blowing/FLY.Thick.Blowing.UI/PgBlowing/PgBlowing.xaml
View file @
cde056df
...
@@ -324,6 +324,10 @@
...
@@ -324,6 +324,10 @@
</TextBlock>
</TextBlock>
</StackPanel>
</StackPanel>
</StackPanel>
</StackPanel>
<StackPanel Margin="5" >
<TextBlock Style="{StaticResource TextBlockStyle_FieldHeaderEditable}" Text="使用编码器测量旋转" />
<ToggleButton Style="{StaticResource ToggleButtonStyle1}" HorizontalAlignment="Left" IsChecked="{Binding IsUsedEncoder}"/>
</StackPanel>
...
...
Project.FLY.Thick.Blowing/FLY.Thick.Blowing.UI/PgBlowing/PgBlowingVm.cs
View file @
cde056df
...
@@ -113,7 +113,7 @@ namespace FLY.Thick.Blowing.UI.Fix.Client
...
@@ -113,7 +113,7 @@ namespace FLY.Thick.Blowing.UI.Fix.Client
/// 当人字架复位时,探头在右边
/// 当人字架复位时,探头在右边
/// </summary>
/// </summary>
public
bool
IsProbeRight
{
get
;
set
;
}
=
true
;
public
bool
IsProbeRight
{
get
;
set
;
}
=
true
;
public
bool
IsUsedEncoder
{
get
;
set
;
}
=
false
;
/// <summary>
/// <summary>
/// 分区1号 对应时钟的位置 1 ~ 12
/// 分区1号 对应时钟的位置 1 ~ 12
/// </summary>
/// </summary>
...
@@ -174,6 +174,8 @@ namespace FLY.Thick.Blowing.UI.Fix.Client
...
@@ -174,6 +174,8 @@ namespace FLY.Thick.Blowing.UI.Fix.Client
Misc
.
BindingOperations
.
SetBinding
(
bDetect
,
nameof
(
bDetect
.
Is3D
),
this
,
nameof
(
Is3D
));
Misc
.
BindingOperations
.
SetBinding
(
bDetect
,
nameof
(
bDetect
.
Is3D
),
this
,
nameof
(
Is3D
));
Misc
.
BindingOperations
.
SetBinding
(
renZiJiaService
,
nameof
(
renZiJiaService
.
IsProbeRight
),
this
,
nameof
(
IsProbeRight
));
Misc
.
BindingOperations
.
SetBinding
(
renZiJiaService
,
nameof
(
renZiJiaService
.
IsProbeRight
),
this
,
nameof
(
IsProbeRight
));
Misc
.
BindingOperations
.
SetBinding
(
renZiJiaService
,
nameof
(
renZiJiaService
.
IsUsedEncoder
),
this
,
nameof
(
IsUsedEncoder
));
Misc
.
BindingOperations
.
SetBinding
(
renZiJiaService
,
nameof
(
renZiJiaService
.
ChannelCnt
),
this
,
nameof
(
ChannelCnt
));
Misc
.
BindingOperations
.
SetBinding
(
renZiJiaService
,
nameof
(
renZiJiaService
.
ChannelCnt
),
this
,
nameof
(
ChannelCnt
));
Misc
.
BindingOperations
.
SetBinding
(
renZiJiaService
,
nameof
(
renZiJiaService
.
BPC
),
this
,
nameof
(
BPC
));
Misc
.
BindingOperations
.
SetBinding
(
renZiJiaService
,
nameof
(
renZiJiaService
.
BPC
),
this
,
nameof
(
BPC
));
Misc
.
BindingOperations
.
SetBinding
(
renZiJiaService
,
nameof
(
renZiJiaService
.
OrgBoltNo
),
this
,
nameof
(
OrgBoltNo
));
Misc
.
BindingOperations
.
SetBinding
(
renZiJiaService
,
nameof
(
renZiJiaService
.
OrgBoltNo
),
this
,
nameof
(
OrgBoltNo
));
...
@@ -326,6 +328,7 @@ namespace FLY.Thick.Blowing.UI.Fix.Client
...
@@ -326,6 +328,7 @@ namespace FLY.Thick.Blowing.UI.Fix.Client
renZiJiaService
.
OrgBoltNo
=
this
.
OrgBoltNo
;
renZiJiaService
.
OrgBoltNo
=
this
.
OrgBoltNo
;
renZiJiaService
.
IsUsedMap
=
this
.
IsUsedMap
;
renZiJiaService
.
IsUsedMap
=
this
.
IsUsedMap
;
renZiJiaService
.
IsProbeRight
=
this
.
IsProbeRight
;
renZiJiaService
.
IsProbeRight
=
this
.
IsProbeRight
;
renZiJiaService
.
IsUsedEncoder
=
this
.
IsUsedEncoder
;
renZiJiaService
.
Apply
();
renZiJiaService
.
Apply
();
FLY
.
ControlLibrary
.
Window_Tip
.
Show
(
"应用成功"
,
FLY
.
ControlLibrary
.
Window_Tip
.
Show
(
"应用成功"
,
...
@@ -373,7 +376,7 @@ namespace FLY.Thick.Blowing.UI.Fix.Client
...
@@ -373,7 +376,7 @@ namespace FLY.Thick.Blowing.UI.Fix.Client
message
=
"加热通道数"
;
message
=
"加热通道数"
;
return
false
;
return
false
;
}
}
if
(
this
.
BPC
<
1
||
this
.
BPC
>
4
)
if
(
this
.
BPC
<
1
||
this
.
BPC
>
10
)
{
{
message
=
"分区数/加热通道数"
;
message
=
"分区数/加热通道数"
;
return
false
;
return
false
;
...
...
Project.FLY.Thick.Blowing/FLY.Thick.Blowing/Client/BlowingServiceClient.cs
View file @
cde056df
...
@@ -57,7 +57,7 @@ namespace FLY.Thick.Blowing.Client
...
@@ -57,7 +57,7 @@ namespace FLY.Thick.Blowing.Client
/// </summary>
/// </summary>
public
BlowingType
BType
{
get
;
set
;
}
public
BlowingType
BType
{
get
;
set
;
}
public
bool
IsProbeRight
{
get
;
set
;
}
public
bool
IsProbeRight
{
get
;
set
;
}
public
bool
IsUsedEncoder
{
get
;
set
;
}
#
endregion
#
endregion
/// <summary>
/// <summary>
...
...
Project.FLY.Thick.Blowing/FLY.Thick.Blowing/IService/IBlowingService.cs
View file @
cde056df
...
@@ -53,6 +53,11 @@ namespace FLY.Thick.Blowing.IService
...
@@ -53,6 +53,11 @@ namespace FLY.Thick.Blowing.IService
/// </summary>
/// </summary>
BlowingType
BType
{
get
;
}
BlowingType
BType
{
get
;
}
/// <summary>
/// 使用编码器测量旋转架位置
/// </summary>
bool
IsUsedEncoder
{
get
;
set
;
}
/// <summary>
/// <summary>
/// 参数应用
/// 参数应用
/// </summary>
/// </summary>
...
...
Project.FLY.Thick.Blowing/FLY.Thick.Blowing/Server/GM_BlowingFix.cs
View file @
cde056df
...
@@ -120,6 +120,8 @@ namespace FLY.Thick.Blowing.Server
...
@@ -120,6 +120,8 @@ namespace FLY.Thick.Blowing.Server
/// 测厚仪测量点位置方向:Left, Right (也就是三角形在左还是右)
/// 测厚仪测量点位置方向:Left, Right (也就是三角形在左还是右)
/// </summary>
/// </summary>
public
bool
IsProbeRight
{
get
;
set
;
}
=
true
;
public
bool
IsProbeRight
{
get
;
set
;
}
=
true
;
public
bool
IsUsedEncoder
{
get
;
set
;
}
=
false
;
/// <summary>
/// <summary>
/// 应用
/// 应用
/// </summary>
/// </summary>
...
...
Project.FLY.Thick.Blowing360/FLY.Thick.Blowing360.UI/PgBlowing/PgBlowing.xaml
View file @
cde056df
...
@@ -302,7 +302,10 @@
...
@@ -302,7 +302,10 @@
</Border>
</Border>
<WrapPanel Orientation="Horizontal" Grid.Column="1">
<WrapPanel Orientation="Horizontal" Grid.Column="1">
<StackPanel Orientation="Horizontal">
<StackPanel Orientation="Horizontal">
<StackPanel Margin="5" >
<TextBlock Style="{StaticResource TextBlockStyle_FieldHeaderEditable}" Text="使用编码器测量旋转" />
<ToggleButton Style="{StaticResource ToggleButtonStyle1}" HorizontalAlignment="Left" IsChecked="{Binding IsUsedEncoder}"/>
</StackPanel>
<StackPanel Margin="5">
<StackPanel Margin="5">
<TextBlock Style="{StaticResource TextBlockStyle_FieldHeaderEditable}" Text="旋转1圈总脉冲" />
<TextBlock Style="{StaticResource TextBlockStyle_FieldHeaderEditable}" Text="旋转1圈总脉冲" />
<StackPanel Orientation="Horizontal">
<StackPanel Orientation="Horizontal">
...
@@ -317,6 +320,7 @@
...
@@ -317,6 +320,7 @@
<TextBlock Style="{StaticResource TextBlockStyle_FieldContent_mm}" Text="脉冲" />
<TextBlock Style="{StaticResource TextBlockStyle_FieldContent_mm}" Text="脉冲" />
</StackPanel>
</StackPanel>
</StackPanel>
</StackPanel>
<StackPanel Orientation="Horizontal" DataContext="{Binding bDetect}">
<StackPanel Orientation="Horizontal" DataContext="{Binding bDetect}">
<StackPanel Margin="5">
<StackPanel Margin="5">
<TextBlock Style="{StaticResource TextBlockStyle_FieldHeader}" Text="全局位置" />
<TextBlock Style="{StaticResource TextBlockStyle_FieldHeader}" Text="全局位置" />
...
@@ -332,6 +336,7 @@
...
@@ -332,6 +336,7 @@
<TextBlock Style="{StaticResource TextBlockStyle_FieldContent_mm}" Text="脉冲/s" />
<TextBlock Style="{StaticResource TextBlockStyle_FieldContent_mm}" Text="脉冲/s" />
</StackPanel>
</StackPanel>
</StackPanel>
</StackPanel>
</StackPanel>
</StackPanel>
</StackPanel>
</StackPanel>
</WrapPanel>
</WrapPanel>
...
...
Project.FLY.Thick.Blowing360/FLY.Thick.Blowing360.UI/PgBlowing/PgBlowingVm.cs
View file @
cde056df
...
@@ -61,7 +61,7 @@ namespace FLY.Thick.Blowing360.UI
...
@@ -61,7 +61,7 @@ namespace FLY.Thick.Blowing360.UI
/// 当人字架复位时,探头在右边
/// 当人字架复位时,探头在右边
/// </summary>
/// </summary>
public
bool
IsProbeRight
{
get
;
set
;
}
=
true
;
public
bool
IsProbeRight
{
get
;
set
;
}
=
true
;
public
bool
IsUsedEncoder
{
get
;
set
;
}
=
true
;
/// <summary>
/// <summary>
/// 分区1号 对应时钟的位置 1 ~ 12
/// 分区1号 对应时钟的位置 1 ~ 12
/// </summary>
/// </summary>
...
@@ -114,6 +114,7 @@ namespace FLY.Thick.Blowing360.UI
...
@@ -114,6 +114,7 @@ namespace FLY.Thick.Blowing360.UI
Misc
.
BindingOperations
.
SetBinding
(
bDetect
,
nameof
(
bDetect
.
RollPerimeter
),
this
,
nameof
(
RollPerimeter
));
Misc
.
BindingOperations
.
SetBinding
(
bDetect
,
nameof
(
bDetect
.
RollPerimeter
),
this
,
nameof
(
RollPerimeter
));
Misc
.
BindingOperations
.
SetBinding
(
renZiJiaService
,
nameof
(
renZiJiaService
.
IsProbeRight
),
this
,
nameof
(
IsProbeRight
));
Misc
.
BindingOperations
.
SetBinding
(
renZiJiaService
,
nameof
(
renZiJiaService
.
IsProbeRight
),
this
,
nameof
(
IsProbeRight
));
Misc
.
BindingOperations
.
SetBinding
(
renZiJiaService
,
nameof
(
renZiJiaService
.
IsUsedEncoder
),
this
,
nameof
(
IsUsedEncoder
));
Misc
.
BindingOperations
.
SetBinding
(
renZiJiaService
,
nameof
(
renZiJiaService
.
ChannelCnt
),
this
,
nameof
(
ChannelCnt
));
Misc
.
BindingOperations
.
SetBinding
(
renZiJiaService
,
nameof
(
renZiJiaService
.
ChannelCnt
),
this
,
nameof
(
ChannelCnt
));
Misc
.
BindingOperations
.
SetBinding
(
renZiJiaService
,
nameof
(
renZiJiaService
.
BPC
),
this
,
nameof
(
BPC
));
Misc
.
BindingOperations
.
SetBinding
(
renZiJiaService
,
nameof
(
renZiJiaService
.
BPC
),
this
,
nameof
(
BPC
));
Misc
.
BindingOperations
.
SetBinding
(
renZiJiaService
,
nameof
(
renZiJiaService
.
OrgBoltNo
),
this
,
nameof
(
OrgBoltNo
));
Misc
.
BindingOperations
.
SetBinding
(
renZiJiaService
,
nameof
(
renZiJiaService
.
OrgBoltNo
),
this
,
nameof
(
OrgBoltNo
));
...
@@ -308,6 +309,7 @@ namespace FLY.Thick.Blowing360.UI
...
@@ -308,6 +309,7 @@ namespace FLY.Thick.Blowing360.UI
renZiJiaService
.
OrgBoltNo
=
this
.
OrgBoltNo
;
renZiJiaService
.
OrgBoltNo
=
this
.
OrgBoltNo
;
renZiJiaService
.
IsUsedMap
=
this
.
IsUsedMap
;
renZiJiaService
.
IsUsedMap
=
this
.
IsUsedMap
;
renZiJiaService
.
IsProbeRight
=
this
.
IsProbeRight
;
renZiJiaService
.
IsProbeRight
=
this
.
IsProbeRight
;
renZiJiaService
.
IsUsedEncoder
=
this
.
IsUsedEncoder
;
renZiJiaService
.
Apply
();
renZiJiaService
.
Apply
();
FLY
.
ControlLibrary
.
Window_Tip
.
Show
(
"应用成功"
,
FLY
.
ControlLibrary
.
Window_Tip
.
Show
(
"应用成功"
,
...
...
Project.FLY.Thick.Blowing360/FLY.Thick.Blowing360.UI/PgMenu.xaml.cs
View file @
cde056df
...
@@ -12,6 +12,7 @@ using System.Windows.Media.Imaging;
...
@@ -12,6 +12,7 @@ using System.Windows.Media.Imaging;
using
System.Windows.Navigation
;
using
System.Windows.Navigation
;
using
System.Windows.Shapes
;
using
System.Windows.Shapes
;
using
FLY.Thick.Base.UI
;
using
FLY.Thick.Base.UI
;
using
FLY.Thick.Blowing.IService
;
using
FLY.Thick.Blowing.UI.Fix.Client
;
using
FLY.Thick.Blowing.UI.Fix.Client
;
using
Unity
;
using
Unity
;
using
PgFlyAd
=
FLY
.
Thick
.
Blowing
.
UI
.
Fix
.
Client
.
PgFlyAd
;
using
PgFlyAd
=
FLY
.
Thick
.
Blowing
.
UI
.
Fix
.
Client
.
PgFlyAd
;
...
@@ -24,15 +25,18 @@ namespace FLY.Thick.Blowing360.UI
...
@@ -24,15 +25,18 @@ namespace FLY.Thick.Blowing360.UI
/// </summary>
/// </summary>
public
partial
class
PgMenu
:
Page
public
partial
class
PgMenu
:
Page
{
{
IBlowingService
blowingService
;
IUnityContainer
container
;
IUnityContainer
container
;
public
PgMenu
()
public
PgMenu
()
{
{
InitializeComponent
();
InitializeComponent
();
}
}
[
InjectionMethod
]
[
InjectionMethod
]
public
void
Init
(
IUnityContainer
container
)
public
void
Init
(
IUnityContainer
container
,
IBlowingService
blowingService
)
{
{
this
.
container
=
container
;
this
.
container
=
container
;
this
.
blowingService
=
blowingService
;
}
}
...
@@ -74,9 +78,16 @@ namespace FLY.Thick.Blowing360.UI
...
@@ -74,9 +78,16 @@ namespace FLY.Thick.Blowing360.UI
private
void
button_blowing_Click
(
object
sender
,
RoutedEventArgs
e
)
private
void
button_blowing_Click
(
object
sender
,
RoutedEventArgs
e
)
{
{
PgBlowing
p
=
new
PgBlowing
();
if
(
this
.
blowingService
.
IsUsedEncoder
)
container
.
BuildUp
(
p
);
{
NavigationService
.
Navigate
(
p
);
var
p
=
container
.
Resolve
<
PgBlowing
>();
NavigationService
.
Navigate
(
p
);
}
else
{
var
p
=
container
.
Resolve
<
FLY
.
Thick
.
Blowing
.
UI
.
Fix
.
Client
.
PgBlowing
>();
NavigationService
.
Navigate
(
p
);
}
}
}
private
void
button_scanwarning_Click
(
object
sender
,
RoutedEventArgs
e
)
private
void
button_scanwarning_Click
(
object
sender
,
RoutedEventArgs
e
)
...
...
Project.FLY.Thick.Blowing360/FLY.Thick.Blowing360.UI/UiModule/DynAreaBlowing.xaml.cs
View file @
cde056df
...
@@ -16,8 +16,9 @@ namespace FLY.Thick.Blowing360.UI.UiModule
...
@@ -16,8 +16,9 @@ namespace FLY.Thick.Blowing360.UI.UiModule
/// </summary>
/// </summary>
public
partial
class
DynAreaBlowing
:
UserControl
public
partial
class
DynAreaBlowing
:
UserControl
{
{
//IBlowingFixService blowingFixService;
IBlowingService
blowingService
;
//IBlowingDetectService blowingDetectService;
IBlowingDetectService
blowingDetectService
;
IBlowingDetect360EncoderService
blowingDetect360EncoderService
;
IUnityContainer
container
;
IUnityContainer
container
;
public
DynAreaBlowing
()
public
DynAreaBlowing
()
{
{
...
@@ -27,17 +28,41 @@ namespace FLY.Thick.Blowing360.UI.UiModule
...
@@ -27,17 +28,41 @@ namespace FLY.Thick.Blowing360.UI.UiModule
[
InjectionMethod
]
[
InjectionMethod
]
public
void
Init
(
public
void
Init
(
IUnityContainer
container
,
IUnityContainer
container
,
IBlowingDetect360EncoderService
blowingDetectService
)
IBlowingService
blowingService
,
IBlowingDetect360EncoderService
blowingDetect360EncoderService
,
IBlowingDetectService
blowingDetectService
)
{
{
this
.
container
=
container
;
this
.
container
=
container
;
this
.
blowingService
=
blowingService
;
this
.
blowingDetect360EncoderService
=
blowingDetect360EncoderService
;
this
.
blowingDetectService
=
blowingDetectService
;
this
.
DataContext
=
blowingDetectService
;
Misc
.
BindingOperations
.
SetBinding
(
this
.
blowingService
,
nameof
(
this
.
blowingService
.
IsUsedEncoder
),
updateDataContext
);
}
void
updateDataContext
()
{
if
(
this
.
blowingService
.
IsUsedEncoder
)
{
this
.
DataContext
=
blowingDetect360EncoderService
;
}
else
{
this
.
DataContext
=
blowingDetectService
;
}
}
}
private
void
Border_Blowing_Click
(
object
sender
,
RoutedEventArgs
e
)
private
void
Border_Blowing_Click
(
object
sender
,
RoutedEventArgs
e
)
{
{
var
p
=
container
.
Resolve
<
PgBlowing
>();
if
(
this
.
blowingService
.
IsUsedEncoder
)
MultiLayout
.
FlyLayoutManager
.
NavigationService
.
Navigate
(
p
);
{
var
p
=
container
.
Resolve
<
PgBlowing
>();
MultiLayout
.
FlyLayoutManager
.
NavigationService
.
Navigate
(
p
);
}
else
{
var
p
=
container
.
Resolve
<
FLY
.
Thick
.
Blowing
.
UI
.
Fix
.
Client
.
PgBlowing
>();
MultiLayout
.
FlyLayoutManager
.
NavigationService
.
Navigate
(
p
);
}
}
}
}
}
public
class
DynAreaBlowingVmUt
:
INotifyPropertyChanged
public
class
DynAreaBlowingVmUt
:
INotifyPropertyChanged
...
...
Project.FLY.Thick.Blowing360/FLY.Thick.Blowing360/Server.OBJProxy/OBJProxy.cs
View file @
cde056df
...
@@ -26,8 +26,14 @@ namespace FLY.Thick.Blowing360.Server.OBJProxy
...
@@ -26,8 +26,14 @@ namespace FLY.Thick.Blowing360.Server.OBJProxy
var
blowingOBJProxy
=
new
FObjBase
.
Reflect
.
Reflect_Proxy
(
objsys_idx
,
OBJ_INTERFACE_ID
.
RENZIJIA_ID
,
typeof
(
IBlowingFixService
),
mGage
.
gmRenZiJiaFix
);
var
blowingOBJProxy
=
new
FObjBase
.
Reflect
.
Reflect_Proxy
(
objsys_idx
,
OBJ_INTERFACE_ID
.
RENZIJIA_ID
,
typeof
(
IBlowingFixService
),
mGage
.
gmRenZiJiaFix
);
if
(
mGage
.
gmRenZiJiaFix
.
IsUsedEncoder
)
var
bDetectOBJProxy
=
new
FObjBase
.
Reflect
.
Reflect_Proxy
(
objsys_idx
,
OBJ_INTERFACE_ID
.
BDETECT360EN_ID
,
typeof
(
IBlowingDetect360EncoderService
),
mGage
.
blowingDetect
);
{
var
bDetectOBJProxy
=
new
FObjBase
.
Reflect
.
Reflect_Proxy
(
objsys_idx
,
OBJ_INTERFACE_ID
.
BDETECT360EN_ID
,
typeof
(
IBlowingDetect360EncoderService
),
mGage
.
blowingDetect
);
}
else
{
var
bDetectOBJProxy
=
new
FObjBase
.
Reflect
.
Reflect_Proxy
(
objsys_idx
,
OBJ_INTERFACE_ID
.
BDETECT_ID
,
typeof
(
IBlowingDetectService
),
mGage
.
blowingDetect
);
}
var
scanWarningOBJProxy
=
new
FObjBase
.
Reflect
.
Reflect_Proxy
(
objsys_idx
,
OBJ_INTERFACE_ID
.
SCANWARNING_ID
,
typeof
(
IScanWarningService
),
mGage
.
scanWarning
);
var
scanWarningOBJProxy
=
new
FObjBase
.
Reflect
.
Reflect_Proxy
(
objsys_idx
,
OBJ_INTERFACE_ID
.
SCANWARNING_ID
,
typeof
(
IScanWarningService
),
mGage
.
scanWarning
);
...
...
Project.FLY.Thick.Blowing360/FLY.Thick.Blowing360/Server/BlowingDetect360.cs
View file @
cde056df
using
AutoMapper
;
using
AutoMapper
;
using
FLY.Thick.Blowing.IService
;
using
FLY.Thick.Blowing.IService
;
using
FLY.Thick.Blowing360.IService
;
using
FObjBase
;
using
FObjBase
;
using
Misc
;
using
Misc
;
using
Newtonsoft.Json
;
using
Newtonsoft.Json
;
...
@@ -20,7 +21,7 @@ namespace FLY.Thick.Blowing360.Server
...
@@ -20,7 +21,7 @@ namespace FLY.Thick.Blowing360.Server
/// <para>RenZiJiaPeriod预留10s的余量,避免不断修正</para>
/// <para>RenZiJiaPeriod预留10s的余量,避免不断修正</para>
/// <para>并且触发FilmInfoChangedEvent 时间为上一次限位信号</para>
/// <para>并且触发FilmInfoChangedEvent 时间为上一次限位信号</para>
/// </summary>
/// </summary>
public
class
BlowingDetect360
:
IBlowingDetectService
,
INotifyPropertyChanged
public
class
BlowingDetect360
:
IBlowingDetect
InServer
,
IBlowingDetect
Service
,
INotifyPropertyChanged
{
{
#
region
输入口定义
#
region
输入口定义
/// <summary>
/// <summary>
...
@@ -653,29 +654,29 @@ namespace FLY.Thick.Blowing360.Server
...
@@ -653,29 +654,29 @@ namespace FLY.Thick.Blowing360.Server
}
}
public
class
FilmInfo
//
public class FilmInfo
{
//
{
/// <summary>
//
/// <summary>
/// 上层 位于膜泡的角度 0~360°
//
/// 上层 位于膜泡的角度 0~360°
/// </summary>
//
/// </summary>
public
double
angle1
;
//
public double angle1;
/// <summary>
//
/// <summary>
/// 下层 位于膜泡的角度 0~360°
//
/// 下层 位于膜泡的角度 0~360°
/// </summary>
//
/// </summary>
public
double
angle2
;
//
public double angle2;
/// <summary>
//
/// <summary>
/// 膜泡旋转方向
//
/// 膜泡旋转方向
/// </summary>
//
/// </summary>
public
Misc
.
DIRECTION
direction
;
//
public Misc.DIRECTION direction;
/// <summary>
//
/// <summary>
/// 线速度
//
/// 线速度
/// </summary>
//
/// </summary>
public
double
filmVelocity
;
//
public double filmVelocity;
/// <summary>
//
/// <summary>
/// 累计旋转次数
//
/// 累计旋转次数
/// </summary>
//
/// </summary>
public
int
rotationCnt
;
//
public int rotationCnt;
}
//
}
...
@@ -740,6 +741,7 @@ namespace FLY.Thick.Blowing360.Server
...
@@ -740,6 +741,7 @@ namespace FLY.Thick.Blowing360.Server
return
GetFilmInfo
(
out
filminfo
,
dt
,
filmWidth
,
filmPosH
,
filmlen
);
return
GetFilmInfo
(
out
filminfo
,
dt
,
filmWidth
,
filmPosH
,
filmlen
);
}
}
int
GetFilmInfo
(
out
FilmInfo
filminfo
,
DateTime
dt
,
double
filmWidth
,
double
filmPosH
,
double
filmLen
)
int
GetFilmInfo
(
out
FilmInfo
filminfo
,
DateTime
dt
,
double
filmWidth
,
double
filmPosH
,
double
filmLen
)
{
{
filminfo
=
null
;
filminfo
=
null
;
...
@@ -1196,26 +1198,26 @@ namespace FLY.Thick.Blowing360.Server
...
@@ -1196,26 +1198,26 @@ namespace FLY.Thick.Blowing360.Server
{
{
Save
();
Save
();
}
}
public
class
FilmInfoChangedEventArgs
:
EventArgs
//
public class FilmInfoChangedEventArgs : EventArgs
{
//
{
public
FilmInfoChangedEventArgs
(
DateTime
time
)
//
public FilmInfoChangedEventArgs(DateTime time)
{
//
{
Time
=
time
;
//
Time = time;
}
//
}
/// <summary>
//
/// <summary>
/// 开始时间点
//
/// 开始时间点
/// </summary>
//
/// </summary>
public
DateTime
Time
//
public DateTime Time
{
//
{
get
;
//
get;
set
;
//
set;
}
//
}
}
//
}
public
delegate
void
FilmInfoChangedEventHandler
(
object
sender
,
FilmInfoChangedEventArgs
e
);
//
public delegate void FilmInfoChangedEventHandler(object sender, FilmInfoChangedEventArgs e);
public
event
FilmInfoChangedEventHandler
FilmInfoChangedEvent
;
public
event
FilmInfoChangedEventHandler
FilmInfoChangedEvent
;
public
delegate
void
ClearEventHandler
(
object
sender
);
//
public delegate void ClearEventHandler(object sender);
public
event
ClearEventHandler
ClearEvent
;
public
event
ClearEventHandler
ClearEvent
;
...
...
Project.FLY.Thick.Blowing360/FLY.Thick.Blowing360/Server/GM_BlowingFix360.cs
View file @
cde056df
...
@@ -114,6 +114,11 @@ namespace FLY.Thick.Blowing360.Server
...
@@ -114,6 +114,11 @@ namespace FLY.Thick.Blowing360.Server
/// 测厚仪测量点位置方向:Left, Right (也就是三角形在左还是右)
/// 测厚仪测量点位置方向:Left, Right (也就是三角形在左还是右)
/// </summary>
/// </summary>
public
bool
IsProbeRight
{
get
;
set
;
}
=
true
;
public
bool
IsProbeRight
{
get
;
set
;
}
=
true
;
/// <summary>
/// 使用编码器测量旋转架位置
/// </summary>
public
bool
IsUsedEncoder
{
get
;
set
;
}
=
false
;
/// <summary>
/// <summary>
/// 应用
/// 应用
/// </summary>
/// </summary>
...
@@ -1364,5 +1369,6 @@ namespace FLY.Thick.Blowing360.Server
...
@@ -1364,5 +1369,6 @@ namespace FLY.Thick.Blowing360.Server
public
bool
IsUsedMap
;
public
bool
IsUsedMap
;
public
BoltMapCell
[]
Map
;
public
BoltMapCell
[]
Map
;
public
bool
IsProbeRight
=
true
;
public
bool
IsProbeRight
=
true
;
public
bool
IsUsedEncoder
=
false
;
}
}
}
}
Project.FLY.Thick.Blowing360/FLY.Thick.Blowing360/Server/TDGage.cs
View file @
cde056df
...
@@ -169,7 +169,10 @@ namespace FLY.Thick.Blowing360.Server
...
@@ -169,7 +169,10 @@ namespace FLY.Thick.Blowing360.Server
gmManager
=
new
GageModeManager
();
gmManager
=
new
GageModeManager
();
gmFix
=
new
GM_Fix
(
flyAd
);
gmFix
=
new
GM_Fix
(
flyAd
);
gmRenZiJiaFix
=
new
GM_BlowingFix360
(
flyAd
);
gmRenZiJiaFix
=
new
GM_BlowingFix360
(
flyAd
);
blowingDetect
=
new
BlowingDetect360Encoder
();
if
(
gmRenZiJiaFix
.
IsUsedEncoder
)
blowingDetect
=
new
BlowingDetect360Encoder
();
else
blowingDetect
=
new
BlowingDetect360
();
#
endregion
#
endregion
...
@@ -268,11 +271,16 @@ namespace FLY.Thick.Blowing360.Server
...
@@ -268,11 +271,16 @@ namespace FLY.Thick.Blowing360.Server
//---------------------------------------------------------------------------------------------------------------
//---------------------------------------------------------------------------------------------------------------
//Bulkdate_Create
//Bulkdate_Create
if
(
blowingDetect
is
BlowingDetect360Encoder
)
if
(
blowingDetect
is
BlowingDetect360Encoder
)
{
{
var
blowingDetect360Encoder
=
blowingDetect
as
BlowingDetect360Encoder
;
var
blowingDetect360
=
blowingDetect
as
BlowingDetect360Encoder
;
blowingDetect360Encoder
.
Init
(
flyAd
);
blowingDetect360
.
Init
(
flyAd
);
}
else
{
var
blowingDetect360
=
blowingDetect
as
BlowingDetect360
;
blowingDetect360
.
Init
(
flyAd
);
}
}
gmRenZiJiaFix
.
Init
(
blowingDetect
,
Ad2Thk
,
dynArea
,
profile
.
Param
,
historyDb
,
bulkDb
);
gmRenZiJiaFix
.
Init
(
blowingDetect
,
Ad2Thk
,
dynArea
,
profile
.
Param
,
historyDb
,
bulkDb
);
gmRenZiJiaFix
.
Start
();
gmRenZiJiaFix
.
Start
();
...
...
Project.FLY.Thick.BlowingScan/FLY.Thick.BlowingScan/Server/GM_BlowingScan.cs
View file @
cde056df
...
@@ -765,6 +765,8 @@ namespace FLY.Thick.BlowingScan.Server
...
@@ -765,6 +765,8 @@ namespace FLY.Thick.BlowingScan.Server
/// 测厚仪测量点位置方向:Left, Right (也就是三角形在左还是右)
/// 测厚仪测量点位置方向:Left, Right (也就是三角形在左还是右)
/// </summary>
/// </summary>
public
bool
IsProbeRight
{
get
;
set
;
}
=
true
;
public
bool
IsProbeRight
{
get
;
set
;
}
=
true
;
public
bool
IsUsedEncoder
{
get
;
set
;
}
/// <summary>
/// <summary>
/// 应用
/// 应用
/// </summary>
/// </summary>
...
...
thick_public
@
2d5a6d39
Subproject commit
7ea0eeb2e57b0c5c27c90e0d5f60e7ee7d8cf1c4
Subproject commit
2d5a6d3985d9e31ec384e92f00b97075f1fb762a
脚本/和美追边360客户端容器描述.unity/unity/blowing360.service.config
View file @
cde056df
...
@@ -74,6 +74,13 @@
...
@@ -74,6 +74,13 @@
<
param
name
=
"connName"
dependencyName
=
"cn0"
/>
<
param
name
=
"connName"
dependencyName
=
"cn0"
/>
</
constructor
>
</
constructor
>
</
register
>
</
register
>
<
register
type
=
"IBlowingDetectService"
mapTo
=
"BlowingDetectServiceClient"
>
<
lifetime
type
=
"singleton"
/>
<
constructor
>
<
param
name
=
"serviceId"
value
=
"30010"
/>
<
param
name
=
"connName"
dependencyName
=
"cn0"
/>
</
constructor
>
</
register
>
<
register
type
=
"IScanWarningService"
mapTo
=
"ScanWarningServiceClient"
>
<
register
type
=
"IScanWarningService"
mapTo
=
"ScanWarningServiceClient"
>
<
lifetime
type
=
"singleton"
/>
<
lifetime
type
=
"singleton"
/>
<
constructor
>
<
constructor
>
...
...
脚本/和美追边360客户端容器描述.xmind
View file @
cde056df
No preview for this file type
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