base_inventory.cs 4.29 KB
using System;
using SqlSugar;
using System.ComponentModel.DataAnnotations.Schema;
using Hh.Mes.POJO.EnumEntitys;

namespace Hh.Mes.POJO.Entity
{
    public partial class base_inventory : base_Entity
    {
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int id { get; set; }
        


        /// <summary>
        /// 
        /// </summary>
        public string factoryCode { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string lineCode { get; set; }


        /// <summary>
        /// 仓库类型
        /// </summary>
        public string warehouseCode { get; set; }

        /// <summary>
        /// 区域编码
        /// </summary>
        public string zoneCode { get; set; }

        /// <summary>
        /// 库位id
        /// </summary>
        public int? locationId { get; set; }

        /// <summary>
        /// 库位编号
        /// </summary>
        public string locationCode { get; set; }

        /// <summary>
        /// 容器编码
        /// </summary>
        public string containerCode { get; set; }

        /// <summary>
        /// 上游系统单号
        /// </summary>
        public string sourceCode { get; set; }

        /// <summary>
        /// 物料类型
        /// </summary>
        public string materialType { get; set; }


        /// <summary>
        /// 物料编码
        /// </summary>
        public string materialCode { get; set; }

        /// <summary>
        /// 批号
        /// </summary>
        public string lot { get; set; }

        /// <summary>
        /// 炉批号
        /// </summary>
        public string batchNo { get; set; }

        /// <summary>
        /// 管材或余料的SN码
        /// </summary>
        public string pipeSN { get; set; }

        /// <summary>
        /// 余料切割之前的管材SN码
        /// </summary>
        public string oldSN { get; set; }

        /// <summary>
        /// 图号
        /// </summary>
        public string drawingCode { get; set; }

        /// <summary>
        /// 生产日期
        /// </summary>
        public DateTime? manufactureDate { get; set; }

        /// <summary>
        /// 失效日期
        /// </summary>
        public DateTime? expirationDate { get; set; }

        /// <summary>
        /// 库存状态
        /// </summary>
        public string status { get; set; }

        /// <summary>
        /// 管材长度
        /// </summary>
        public decimal? pipeLength { get; set; }

        /// <summary>
        /// 使用状态 和 库存状态区分 ECS操作使用状态
        /// </summary>
        public int useState { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        public decimal qty { get; set; }

        /// <summary>
        /// 工单code/生产订单号
        /// <see cref="bus_workOrder_head"/>
        /// </summary>
        public string workOrderCode { get; set; }

        /// <summary>
        /// 工序code
        /// <see cref="bus_workOrder_detail"/>
        /// </summary>
        public string oprSequenceCode { get; set; }

        /// <summary>
        /// 物料名称
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        [NotMapped]
        public string materialName { get; set; }

        /// <summary>
        /// 单位名称
        /// </summary>
        public string whCode { get; set; }

        /// <summary>
        /// 工序任务头表
        /// <see cref="bus_workOrder_head"/>
        /// </summary>
        public Guid? headKey { get; set; }

        /// <summary>
        /// 消耗数量
        /// </summary>
        public int consumedQuantity { get; set; }

        /// <summary>
        /// 需求数量
        /// </summary>
        public decimal quantityRequired { get; set; }

        /// <summary>
        /// 收货数量
        /// </summary>
        public int quantityReceived { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? createTime { get; set; }

        /// <summary>
        /// 创建用户
        /// </summary>
        public string createBy { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? updateTime { get; set; }

        /// <summary>
        /// 更新用户
        /// </summary>
        public string updateBy { get; set; }

        }
}