PosInfo.cs
1.7 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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CtuDeviceLib
{
/// <summary>
/// 位置信息
/// </summary>
public class PosInfo
{
/// <summary>
/// 位置名
/// </summary>
public string Name { get; set; }
/// <summary>
/// 地标码
/// </summary>
public uint PointCode { get; set; }
/// <summary>
/// 货架码--用于ctu对接
/// </summary>
public string ShelveCode { get; set; }
/// <summary>
/// 1=左侧
/// 2=右侧
/// </summary>
public byte Dir { get; set; }
/// <summary>
/// 巷道编码
/// </summary>
public string Lanway { get; set; }
/// <summary>
/// 升降高度
/// </summary>
public int UpDownHeight { get; set; }
/// <summary>
/// 进出深度
/// </summary>
public int InoutDepth { get; set; }
/// <summary>
/// 料箱码读码偏移距离
/// </summary>
public int ScanCodeShift { get; set; }
/// <summary>
/// 层数
/// </summary>
public int Row { get; set; }
public string[] ToDataGrid()
{
List<string> lst = new List<string>
{
Name,
PointCode.ToString(),
InoutDepth.ToString(),
ScanCodeShift.ToString(),
Dir==1?"左侧":"右侧",
ShelveCode.ToString()
};
return lst.ToArray();
}
}
}