Line.cs
2.5 KB
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SmartShelfLight
{
public class Line
{
/// <summary>
/// 产线名称
/// </summary>
public string Name;
/// <summary>
/// LED控制器的IP
/// </summary>
public string LED_IP;
/// <summary>
/// LED控制
/// </summary>
public SmartShelf.DeviceLibrary.LEDBaseModule LED;
/// <summary>
/// RFID的位置信息
/// </summary>
public LinePlace[] RfidPlaces;
/// <summary>
/// 亮灯转移的led位置
/// </summary>
public int TransPlace;
///// <summary>
///// LED亮灯位置,4个位置
///// </summary>
//public int[] LED_Place;
///// <summary>
///// RFID的IP地址,4个位置
///// </summary>
//public string[] RFID_IP;
///// <summary>
///// RFID的标签ID,4个位置
///// </summary>
//public string[] RFID_ID;
///// <summary>
///// RFID的料架停留时间,4个位置
///// </summary>
//public long[] RFID_DwellTime;
///// <summary>
///// RFID的料架获取时间,4个位置
///// </summary>
//public long[] RFID_GainTime;
///// <summary>
///// RFID类型
///// </summary>
//public string[] RFID_Type;
public List<int[]> TransferPlace;
public string GetRfidID()
{
List<string> temp = new List<string>();
for (int i = 0; i < RfidPlaces.Length; i++)
{
temp.Add(RfidPlaces[i].RFID_ID);
}
return string.Join(",", temp.ToArray());
}
}
public class LinePlace
{
/// <summary>
/// LED亮灯位置
/// </summary>
public int LED_Place = 0;
/// <summary>
/// RFID的IP地址
/// </summary>
public string RFID_IP = "";
/// <summary>
/// RFID的标签ID
/// </summary>
public string RFID_ID = "";
/// <summary>
/// RFID的料架停留时
/// </summary>
public long RFID_DwellTime = 0;
/// <summary>
/// RFID的料架获取时间
/// </summary>
public long RFID_GainTime = 0;
/// <summary>
/// RFID类型
/// </summary>
public string RFID_Type = "";
}
}