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
6ae94c0c
Commit
6ae94c0c
authored
Jan 07, 2022
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加 称重 把测厚仪测到的膜宽 写入到 TotalFilmWidth
parent
fe788247
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
4 deletions
+17
-4
AssemblyInfo.cs
...LY.Weight/FLY.Weight.UI.Server/Properties/AssemblyInfo.cs
+2
-2
TDGage.cs
Project.FLY.Weight/FLY.Weight/Server/TDGage.cs
+15
-2
No files found.
Project.FLY.Weight/FLY.Weight.UI.Server/Properties/AssemblyInfo.cs
View file @
6ae94c0c
...
@@ -51,6 +51,6 @@ using System.Windows;
...
@@ -51,6 +51,6 @@ using System.Windows;
// 可以指定所有这些值,也可以使用“内部版本号”和“修订号”的默认值,
// 可以指定所有这些值,也可以使用“内部版本号”和“修订号”的默认值,
// 方法是按如下所示使用“*”:
// 方法是按如下所示使用“*”:
// [assembly: AssemblyVersion("1.0.*")]
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("6.36.
0.0
")]
[assembly: AssemblyVersion("6.36.
2
")]
[assembly: AssemblyFileVersion("6.36.
0.0
")]
[assembly: AssemblyFileVersion("6.36.
2
")]
[assembly: Guid("AC4FFE57-FF42-4B4D-9E23-FF583D78187D")]
[assembly: Guid("AC4FFE57-FF42-4B4D-9E23-FF583D78187D")]
Project.FLY.Weight/FLY.Weight/Server/TDGage.cs
View file @
6ae94c0c
...
@@ -36,6 +36,8 @@ namespace FLY.Weight.Server
...
@@ -36,6 +36,8 @@ namespace FLY.Weight.Server
/// 吹膜测厚仪, 旋转架模型
/// 吹膜测厚仪, 旋转架模型
/// </summary>
/// </summary>
FLY
.
Thick
.
Blowing
.
Client
.
BlowingDetectServiceClient
mBDetect
;
FLY
.
Thick
.
Blowing
.
Client
.
BlowingDetectServiceClient
mBDetect
;
FLY
.
Thick
.
Base
.
Client
.
DynAreaServiceClient
dynAreaServiceClient
;
#
endregion
#
endregion
public
TDGage
(
string
nam
)
public
TDGage
(
string
nam
)
...
@@ -76,13 +78,23 @@ namespace FLY.Weight.Server
...
@@ -76,13 +78,23 @@ namespace FLY.Weight.Server
#
region
与服务器同步的数据
#
region
与服务器同步的数据
mBDetect
=
new
Thick
.
Blowing
.
Client
.
BlowingDetectServiceClient
(
FLY
.
Thick
.
Blowing
.
OBJ_INTERFACE
.
OBJ_INTERFACE_ID
.
BDETECT_ID
);
mBDetect
=
new
Thick
.
Blowing
.
Client
.
BlowingDetectServiceClient
(
FLY
.
Thick
.
Blowing
.
OBJ_INTERFACE
.
OBJ_INTERFACE_ID
.
BDETECT_ID
);
dynAreaServiceClient
=
new
Thick
.
Base
.
Client
.
DynAreaServiceClient
(
FLY
.
Thick
.
Blowing
.
OBJ_INTERFACE
.
OBJ_INTERFACE_ID
.
DYNAREA_ID
);
#
endregion
#
endregion
Init2
();
Init2
();
mBDetect
.
PropertyChanged
+=
MBDetect_PropertyChanged
;
mBDetect
.
PropertyChanged
+=
MBDetect_PropertyChanged
;
dynAreaServiceClient
.
DynArea
.
PropertyChanged
+=
DynArea_PropertyChanged
;
}
private
void
DynArea_PropertyChanged
(
object
sender
,
System
.
ComponentModel
.
PropertyChangedEventArgs
e
)
{
if
(
e
.
PropertyName
==
nameof
(
dynAreaServiceClient
.
DynArea
.
Width
))
{
mData
.
Accessory
.
TotalFilmWidth
=
(
float
)((
int
)
dynAreaServiceClient
.
DynArea
.
Width
);
}
}
}
private
void
MBDetect_PropertyChanged
(
object
sender
,
System
.
ComponentModel
.
PropertyChangedEventArgs
e
)
private
void
MBDetect_PropertyChanged
(
object
sender
,
System
.
ComponentModel
.
PropertyChangedEventArgs
e
)
{
{
...
@@ -103,7 +115,8 @@ namespace FLY.Weight.Server
...
@@ -103,7 +115,8 @@ namespace FLY.Weight.Server
var
addr
=
Misc
.
StringConverter
.
ToIPEndPoint
(
mSysParam
.
BlowingAddr
);
var
addr
=
Misc
.
StringConverter
.
ToIPEndPoint
(
mSysParam
.
BlowingAddr
);
FObjSys
.
Current
.
Connect_to_Another_OBJSys
(
FObjSys
.
Current
.
Connect_to_Another_OBJSys
(
addr
,
addr
,
mBDetect
.
ID
mBDetect
.
ID
,
dynAreaServiceClient
.
ID
);
);
#
endregion
#
endregion
}
}
...
...
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