using FLY.Thick.Blowing.IService;
using FLY.Thick.Blowing.OBJ_INTERFACE;
using FObjBase;
using FObjBase.Reflect;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
namespace FLY.Thick.Blowing.Client
{
public class BlowingServiceClient : FObjBase.Reflect.Reflect_SeviceClient, IBlowingService
{
protected override Type InterfaceType => typeof(IBlowingFixService);
#region IBlowing 成员变量
#region 分区设定
///
/// 加热通道数
///
public int ChannelCnt { get; set; } = 44;
///
/// 分区数/加热通道数
///
public int BPC { get; set; } = 2;
///
/// 风环螺丝数
///
public int NBolts => ChannelCnt * BPC;
public int OrgBoltNo { get; set; } = 1;
///
/// 使用分区表
///
public bool IsUsedMap { get; set; }
///
/// 分区表
///
public BoltMapCell[] Map { get; set; }
#endregion
///
/// 测厚仪类型, 追边 or 扫描
///
public BlowingType BType { get; set; }
public bool IsProbeRight { get; set; }
#endregion
///
/// 每次有新数据时候推送。 修改参数,不会推送
///
[Push(typeof(RenZiJiaDataEventArgs))]
public event EventHandler DataEvent;
public BlowingServiceClient(UInt32 serviceId) : base(serviceId) { }
public BlowingServiceClient(UInt32 serviceId, string connName) : base(serviceId, connName) { }
public void Trigger_DataEvent(RenZiJiaDataEventArgs e) {
DataEvent?.Invoke(this, e);
}
#region 功能
public virtual void Apply()
{
Call(nameof(Apply));
}
#endregion
}
}