Commit 6ae94c0c authored by 潘栩锋's avatar 潘栩锋 🚴

添加 称重 把测厚仪测到的膜宽 写入到 TotalFilmWidth

parent fe788247
......@@ -51,6 +51,6 @@ using System.Windows;
// 可以指定所有这些值,也可以使用“内部版本号”和“修订号”的默认值,
// 方法是按如下所示使用“*”:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("6.36.0.0")]
[assembly: AssemblyFileVersion("6.36.0.0")]
[assembly: AssemblyVersion("6.36.2")]
[assembly: AssemblyFileVersion("6.36.2")]
[assembly: Guid("AC4FFE57-FF42-4B4D-9E23-FF583D78187D")]
......@@ -36,6 +36,8 @@ namespace FLY.Weight.Server
/// 吹膜测厚仪, 旋转架模型
/// </summary>
FLY.Thick.Blowing.Client.BlowingDetectServiceClient mBDetect;
FLY.Thick.Base.Client.DynAreaServiceClient dynAreaServiceClient;
#endregion
public TDGage(string nam)
......@@ -76,14 +78,24 @@ namespace FLY.Weight.Server
#region 与服务器同步的数据
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
Init2();
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)
{
if (e.PropertyName == nameof(mBDetect.FilmVelocity))
......@@ -103,7 +115,8 @@ namespace FLY.Weight.Server
var addr = Misc.StringConverter.ToIPEndPoint(mSysParam.BlowingAddr);
FObjSys.Current.Connect_to_Another_OBJSys(
addr,
mBDetect.ID
mBDetect.ID,
dynAreaServiceClient.ID
);
#endregion
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment