bus_workOrder_detail.cs 4.82 KB
using System;
using SqlSugar;
using System.ComponentModel.DataAnnotations.Schema;

namespace Hh.Mes.POJO.Entity
{
    [SugarTable("bus_workOrder_detail")]
    public partial class bus_workOrder_detail
    {
        /// <summary>
        /// 主键
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int id { get; set; }

        [SugarColumn(IsNullable = true)]
        public Guid bodyKeys { get; set; }

        [SugarColumn(IsNullable = true)]
        public Guid headKeys { get; set; }

        /// <summary>
        /// 序号
        /// </summary>
        [SugarColumn(ColumnDescription = "序号", IsNullable = true)]
        public int serialNumber { get; set; }

        /// <summary>
        /// 产线Code
        /// </summary>
        [SugarColumn(Length = 40, ColumnDescription = "产线Code", IsNullable = true)]
        public string lineCode { get; set; }

        /// <summary>
        /// 工位code
        /// </summary>
        [SugarColumn(Length = 40, ColumnDescription = "工位code", IsNullable = true)]
        public string stationCode { get; set; }

        /// <summary>
        /// 工序code
        /// </summary>
        [SugarColumn(Length = 40, ColumnDescription = "工序code", IsNullable = true)]
        public string oprSequenceCode { get; set; }

        /// <summary>
        /// 工序名称
        /// </summary>
        [SugarColumn(Length = 40, ColumnDescription = "工序名称", IsNullable = true)]
        public string oprSequenceName { get; set; }

        [SugarColumn(Length = 40, IsNullable = true)]
        public string equipmentCode { get; set; }

        /// <summary>
        /// 任务状态 初始化10、开始10、完成100
        /// </summary>
        [SugarColumn(ColumnDescription = "任务状态 初始化10、开始10、完成100", IsNullable = true)]
        public int state { get; set; }

        /// <summary>
        /// true返工 false未返工
        /// </summary>
        [SugarColumn(ColumnDescription = "true返工 false未返工", IsNullable = true)]
        public bool isRework { get; set; }

        /// <summary>
        /// 计划开始时间
        /// </summary>
        [SugarColumn(ColumnDescription = "计划开始时间", IsNullable = true)]
        public DateTime? planStartTime { get; set; }

        /// <summary>
        /// 计划结束时间
        /// </summary>
        [SugarColumn(ColumnDescription = "计划结束时间", IsNullable = true)]
        public DateTime? planEndTime { get; set; }

        /// <summary>
        /// 实际开始时间
        /// </summary>
        [SugarColumn(ColumnDescription = "实际开始时间", IsNullable = true)]
        public DateTime? actualStartTime { get; set; }

        /// <summary>
        /// 实际结束时间
        /// </summary>
        [SugarColumn(ColumnDescription = "实际结束时间", IsNullable = true)]
        public DateTime? actualEndTime { get; set; }

        /// <summary>
        /// 建立时间
        /// </summary>
        [SugarColumn(ColumnDescription = "建立时间", IsNullable = true)]
        public DateTime? createTime { get; set; }

        /// <summary>
        /// 建立者
        /// </summary>
        [SugarColumn(Length = 16, ColumnDescription = "建立者", IsNullable = true)]
        public string createBy { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        [SugarColumn(ColumnDescription = "更新时间", IsNullable = true)]
        public DateTime updateTime { get; set; }

        /// <summary>
        /// 更新者
        /// </summary>
        [SugarColumn(Length = 16, ColumnDescription = "更新者", IsNullable = true)]
        public string updateBy { get; set; }

        /// <summary>
        /// 产品表code
        /// </summary>
        [SugarColumn(Length = 100, ColumnDescription = "产品表code", IsNullable = true)]
        public string productHeaderCode { get; set; }

        [SugarColumn(IsNullable = true)]
        public int isDelete { get; set; }

        /// <summary>
        /// 物料编码
        /// </summary>
        [SugarColumn(Length = 40, ColumnDescription = "物料编码", IsNullable = true)]
        public string materialCode { get; set; }

        /// <summary>
        /// 物料名称
        /// </summary>
        [SugarColumn(Length = 40, ColumnDescription = "物料名称", IsNullable = true)]
        public string materialName { get; set; }

        /// <summary>
        /// 需求数据
        /// </summary>
        [SugarColumn(ColumnDescription = "需求数据", IsNullable = true)]
        public Decimal qty { get; set; }

        /// <summary>
        /// 需求单位
        /// </summary>
        [SugarColumn(Length = 40, ColumnDescription = "需求单位", IsNullable = true)]
        public string whCode { get; set; }

        /// <summary>
        /// 工单code/生产订单号
        /// </summary>
        [SugarColumn(Length = 50, ColumnDescription = "生产订单号", IsNullable = true)]
        public string workOrderCode { get; set; }

    }
}