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

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

parent fe788247
...@@ -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")]
...@@ -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
} }
......
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