BaseLocation.cs 4.16 KB
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace HHECS.Model.Entities.BasicData
{
    
    [Serializable]
    [Table("base_location")]
    public class BaseLocation : BaseEntityCU<int>
    {

        [Column("keys")]
        [MaxLength(50)]
        [Required]
        public Guid keys { get; set; }


        ///<summary>
        /// 编码
        /// </summary>
        [Column("locationCode")]
        [MaxLength(50)]
        [Required]
        public string LocationCode { get; set; }

        ///<summary>
        /// 名称
        /// </summary>
        [Column("locationName")]
        [MaxLength(50)]
        [Required]
        public string LocationName { get; set; }

        ///<summary>
        /// 工位编码
        /// </summary>
        [Column("stationCode")]
        [MaxLength(50)]
        [Required]
        public string StationCode { get; set; }

        ///<summary>
        /// 线体编码
        /// </summary>
        [Column("lineCode")]
        [MaxLength(50)]
        [Required]
        public string LineCode { get; set; }

        ///<summary>
        /// 上料区域
        /// </summary>
        [Column("fitupArea")]
        [MaxLength(50)]
        [Required]
        public int FitupArea { get; set; }

        ///<summary>
        /// 库位类型
        /// </summary>
        [Column("locationType")]
        [MaxLength(50)]
        [Required]
        public string LocationType { get; set; }

        ///<summary>
        /// 容器编码
        /// </summary>
        [Column("containerCode")]
        [MaxLength(50)]
        [Required]
        public string ContainerCode { get; set; }

        ///<summary>
        /// 状态
        /// </summary>
        [Column("locationStatus")]
        [MaxLength(50)]
        [Required]
        public int LocationStatus { get; set; }

        ///<summary>
        /// 区域  装料点 上料点
        /// </summary>
        [Column("zoneCode")]
        [MaxLength(50)]
        [Required]
        public int ZoneCode { get; set; }

        ///<summary>
        /// 库位
        /// </summary>
        [Column("warehouseCode")]
        [MaxLength(50)]
        [Required]
        public string WarehouseCode { get; set; }

        ///<summary>
        ///plc属性code
        /// </summary>
        [Column("extensionField1")]
        [MaxLength(50)]
        [Required]
        public string ExtensionField1 { get; set; }

        ///<summary>
        /// 备用字段
        /// </summary>
        [Column("extensionField2")]
        [MaxLength(50)]
        [Required]
        public string ExtensionField2 { get; set; }

        ///<summary>
        /// 备用字段
        /// </summary>
        [Column("extensionField3")]
        [MaxLength(50)]
        [Required]
        public string ExtensionField3 { get; set; }

        ///<summary>
        /// 
        /// </summary>
        [Column("isLightFence")]
        [MaxLength(50)]
        [Required]
        public bool IsLightFence { get; set; }

        ///<summary>
        /// 料点类型(电脑叫料=10、ECS叫料=20)
        /// </summary>
        [Column("callType")]
        [MaxLength(50)]
        [Required]
        public int CallType { get; set; }

        ///<summary>
        /// 上料点位的分组编码  
        /// </summary>
        [Column("feedGroupCode")]
        [MaxLength(50)]
        [Required]
        public string FeedGroupCode { get; set; }

        ///<summary>
        /// 装料点位的分组编码  
        /// </summary>
        [Column("loadGroupCode")]
        [MaxLength(50)]
        [Required]
        public string LoadGroupCode { get; set; }

        ///<summary>
        /// 是否工装
        /// </summary>
        [Column("isWorkClothes")]
        [MaxLength(50)]
        [Required]
        public int IsWorkClothes { get; set; }


        ///<summary>
        /// 绑定料点是否有料框的设备属性code(用于判断料点是否有料框)  
        /// </summary>
        [Column("sensorPropCode")]
        [MaxLength(50)]
        [Required]
        public string SensorPropCode { get; set; }
        

    }
}