1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
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 分区设定
/// <summary>
/// 加热通道数
/// </summary>
public int ChannelCnt { get; set; } = 44;
/// <summary>
/// 分区数/加热通道数
/// </summary>
public int BPC { get; set; } = 2;
/// <summary>
/// 风环螺丝数
/// </summary>
public int NBolts => ChannelCnt * BPC;
public int OrgBoltNo { get; set; } = 1;
/// <summary>
/// 使用分区表
/// </summary>
public bool IsUsedMap { get; set; }
/// <summary>
/// 分区表
/// </summary>
public BoltMapCell[] Map { get; set; }
#endregion
#endregion
/// <summary>
/// 每次有新数据时候推送。 修改参数,不会推送
/// </summary>
[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
}
}