using FLY.Thick.Base.IService; using FObjBase; using FObjBase.Reflect; using System; namespace FLY.Thick.Base.Client { public class ScanCorrServiceClient : FObjBase.Reflect.Reflect_SeviceClient, IScanCorrService { protected override Type InterfaceType => typeof(IScanCorrService); public ScanCorrServiceClient(UInt32 serviceId) : base(serviceId) { } public ScanCorrServiceClient(UInt32 serviceId, string connName) : base(serviceId, connName) { } /// /// 使能修正 /// public bool Enable { set; get; } /// /// 当前修正的组 /// public int CurrGroupIndex { get; set; } /// /// 当前进度 0 - 100 /// public int Progress { get; set; } /// /// 数据更新时间 /// public DateTime[] UpdateTimes { get; set; } /// /// 正在机架修正中 /// public bool IsRunning { get; set; } /// /// 来回次数 /// public int ScanCnt { get; set; } /// /// 平滑 /// public int SmoothFactor { get; set; } /// /// 开始机架修正 /// /// 组序号 /// 扫描次数 /// 平滑 public void Start(int groupIndex, int scanCnt, int smoothFactor) { Call(nameof(Start), new { groupIndex = groupIndex, scanCnt = scanCnt, smoothFactor = smoothFactor }); } /// /// 清空组数据 /// /// public void Clear(int groupIndex) { Call(nameof(Clear), new { groupIndex = groupIndex }); } /// /// 设置修正曲线 /// /// 组序号 /// 修正数据 /// 均值 public void SetCorrData(int groupIndex, int[][] corrDatas, int avg) { Call(nameof(SetCorrData), new { groupIndex = groupIndex, corrDatas = corrDatas, avg = avg }); } [Call(typeof(GetScanCorrGroupResponse))] public void GetScanCorrGroup(int groupIndex, AsyncCBHandler asyncDelegate, object asyncContext) { Call(nameof(GetScanCorrGroup), new { groupIndex = groupIndex }, asyncDelegate, asyncContext); } } }