ScanWarningServiceClient.cs 1.4 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

using FObjBase;
using FLY.Thick.Blowing.IService;
using FLY.Thick.Blowing.OBJ_INTERFACE;
using Newtonsoft.Json;

namespace FLY.Thick.Blowing.Client
{
14
    public class ScanWarningServiceClient : FObjBase.Reflect.Reflect_SeviceClient, IScanWarningService
15
    {
16 17 18

        protected override Type InterfaceType => typeof(IScanWarningService);

19 20 21 22 23
        /// <summary>
        /// 
        /// </summary>
        /// <param name="serviceId"></param>
        public ScanWarningServiceClient(UInt32 serviceId) : base(serviceId) { }
24

25 26 27 28 29 30
        /// <summary>
        /// 
        /// </summary>
        /// <param name="serviceId"></param>
        /// <param name="connName"></param>
        public ScanWarningServiceClient(UInt32 serviceId, string connName) : base(serviceId, connName) { }
31 32 33 34 35 36 37 38


        #region IScanWarningService
        /// <summary>
        /// 使能
        /// </summary>
        public bool Enable { get; set; }

39 40 41 42 43
        /// <summary>
        /// 自动目标值
        /// </summary>
        public bool IsAutoTarget { get; set; }

44 45 46 47 48 49 50 51
        /// <summary>
        /// 连续N个点,大于规格线(公差)才算报警
        /// </summary>
        public int AlarmCnt_Tolerance { get; set; }
        #endregion

        public void Apply() 
        {
52
            Call(nameof(Apply));
53 54 55
        }
    }
}