TrayInfo.cs 1.1 KB
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
 

namespace OnlineStore.DeviceLibrary
{
    /// <summary>
    /// 托盘信息
    /// </summary>
  public  class TrayInfo
  {

      public TrayInfo(int trayNum, bool isFull, int inOrOut, int bagWidth)
      {
          this.TrayCode = trayNum;
          this.IsFull = isFull;
          this.InOrOutStore = inOrOut;
          BagWidth = bagWidth;
      }
      
      /// <summary>
      /// 夹具编码值(1-6)
      /// </summary>
      public int TrayCode { get; set; }
      /// <summary>
      /// 是否有料盘,true=有料盘
      /// </summary>
      public bool IsFull { get; set; }
      /// <summary>
      /// 出库还是入库(有料盘时才有此操作)0=无操作,1=入库,2=出库
      /// </summary>
      public int InOrOutStore { get; set; }
      /// <summary>
      /// 如果是出库,需要记录盘宽,七寸小盘可以累积到托盘上
      /// 只有出库才会有值
      /// </summary>
      public int BagWidth { get; set; }
    }
}