PosInfo.cs 1.7 KB
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();
        }
    }
}