InOutParam.cs
1.2 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
using log4net;
using OnlineStore.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
namespace CtuDeviceLib
{
/// <summary>
/// 出入参数
/// </summary>
public class InOutParam
{
public InOutParam()
{
}
public InOutParam(string boxCode, string dstName)
{
BoxCode = boxCode;
DstName = dstName;
}
public InOutParam Clone()
{
return (InOutParam)this.MemberwiseClone();
}
/// <summary>
/// 料箱码
/// </summary>
public string BoxCode { get; set; }
/// <summary>
/// 目标名
/// </summary>
public string DstName { get; set; }
/// <summary>
/// 目标地码
/// </summary>
public uint DstPointCode { get { return PosInfo?.PointCode ?? 0; } }
/// <summary>
/// 目标位置信息
/// </summary>
public PosInfo PosInfo { get { return MushinyManager.GetCTUBean().GetPosInfoByName(DstName); } }
public string ToStr()
{
return $"{JsonHelper.SerializeObject(this)}";
}
}
}