GageInfoServiceClient.cs 1.82 KB
Newer Older
1
using FLY.Thick.Base.IService;
潘栩锋's avatar
潘栩锋 committed
2 3
using FObjBase;
using FObjBase.Reflect;
4
using System;
潘栩锋's avatar
潘栩锋 committed
5 6 7

namespace FLY.Thick.Base.Client
{
8
    public class GageInfoServiceClient : FObjBase.Reflect.Reflect_SeviceClient, IGageInfoService
潘栩锋's avatar
潘栩锋 committed
9 10
    {

11 12
        protected override Type InterfaceType => typeof(IGageInfoService);

13
        public GageInfoServiceClient(UInt32 serviceId) : base(serviceId) { }
潘栩锋's avatar
潘栩锋 committed
14

15
        public GageInfoServiceClient(UInt32 serviceId, string connName) : base(serviceId, connName) { }
16

潘栩锋's avatar
潘栩锋 committed
17 18


潘栩锋's avatar
潘栩锋 committed
19 20 21 22

        /// <summary>
        /// 机架总长,脉冲
        /// </summary>
23 24 25
        public int PosLen { get; set; } = 9123;


潘栩锋's avatar
潘栩锋 committed
26 27 28
        /// <summary>
        /// 1个grid = N个pos
        /// </summary>
29
        public int PosOfGrid { get; set; } = 11;
潘栩锋's avatar
潘栩锋 committed
30

潘栩锋's avatar
潘栩锋 committed
31 32 33 34 35
        /// <summary>
        /// 数据好了!!!!
        /// 当 flyad7 的poslen, posOfGrid 发生变化时,DataOK = false, 需要重新记录。
        /// </summary>
        public bool DataOK { get; set; }
潘栩锋's avatar
潘栩锋 committed
36 37

        /// <summary>
潘栩锋's avatar
潘栩锋 committed
38
        /// 当前进度 0 - 100 
潘栩锋's avatar
潘栩锋 committed
39
        /// </summary>
40 41
        public int Progress { get; set; }

潘栩锋's avatar
潘栩锋 committed
42 43 44 45
        /// <summary>
        /// 数据更新时间
        /// </summary>
        public DateTime[] UpdateTimes { get; set; }
潘栩锋's avatar
潘栩锋 committed
46 47 48 49

        /// <summary>
        /// 正在机架修正中
        /// </summary>
50 51
        public bool IsRunning { get; set; }

潘栩锋's avatar
潘栩锋 committed
52 53 54
        /// <summary>
        /// 数据录制,记下来回扫描的AD值数组
        /// </summary>
55
        public void Start()
潘栩锋's avatar
潘栩锋 committed
56
        {
57 58
            Call(nameof(Start));

潘栩锋's avatar
潘栩锋 committed
59 60 61
        }
        public void Stop()
        {
62
            Call(nameof(Stop));
潘栩锋's avatar
潘栩锋 committed
63
        }
潘栩锋's avatar
潘栩锋 committed
64 65 66 67 68
        [Call(typeof(GetGageInfoResponse))]
        public void GetGageInfo(int idx, AsyncCBHandler asyncDelegate, object asyncContext)
        {
            Call(nameof(GetGageInfo), new { idx = idx }, asyncDelegate, asyncContext);
        }
潘栩锋's avatar
潘栩锋 committed
69 70 71

    }
}