bus_workOrder_head.cs 7.15 KB
using System;
using SqlSugar;

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

        [SugarColumn(IsNullable = false)]
        public Guid keys { get; set; }

        /// <summary>
        /// 工序任务包keys
        /// </summary>
        [SugarColumn(ColumnDescription = "工序任务包keys", IsNullable = true)]
        public Guid topKeys { get; set; }

        /// <summary>
        /// 产品/半成品唯一序列号(回传MES)
        /// </summary>
        [SugarColumn(Length = 120, ColumnDescription = "产品/半成品唯一序列号", IsNullable = true)]
        public string projectSerialNumber { get; set; }

        /// <summary>
        /// 工艺路线keys
        /// </summary>
        [SugarColumn(ColumnDescription = "工艺路线keys", IsNullable = true)]
        public Guid processHeadKeys { get; set; }

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

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

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

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

        /// <summary>
        /// 生产计划号 唯一
        /// </summary>
        [SugarColumn(ColumnDescription = "生产计划号", IsNullable = true)]
        public string planCode { get; set; }

        /// <summary>
        /// 工单工作包Code
        /// </summary>
        [SugarColumn(ColumnDescription = "工单工作包Code", IsNullable = true)]
        public string otherOrderCode { get; set; }

        /// <summary>
        /// 订单类型 1:正常订单;2:返工返修订单
        /// </summary>
        [SugarColumn(ColumnDescription = "订单类型 1:正常订单;2:返工返修订单", IsNullable = true)]
        public string orderType { get; set; }

        /// <summary>
        /// 项目编码
        /// </summary>
        [SugarColumn(ColumnDescription = "项目编码", IsNullable = true)]
        public string projectCode { get; set; }

        /// <summary>
        /// 项目名称
        /// </summary>
        [SugarColumn(ColumnDescription = "项目名称", IsNullable = true)]
        public string projectName { get; set; }

        /// <summary>
        /// 管线号/图纸号
        /// </summary>
        [SugarColumn(ColumnDescription = "管线号/单管号", IsNullable = true)]
        public string lineNo { get; set; }

        /// <summary>
        /// 工厂编码
        /// </summary>
        [SugarColumn(ColumnDescription = "工厂编码", IsNullable = true)]
        public string factoryCode { get; set; }

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

        /// <summary>
        /// 当前工序(方便查询)
        /// </summary>
        [SugarColumn(ColumnDescription = "当前工序(方便查询)", IsNullable = true)]
        public string nowOprSequenceCode { get; set; }

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

        /// <summary>
        /// 任务状态
        /// </summary>
        [SugarColumn(ColumnDescription = "任务状态", IsNullable = true)]
        public int? state { 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 string nextOprSequenceCode { get; set; }

        /// <summary>
        /// 当前工位
        /// </summary>
        [SugarColumn(ColumnDescription = "当前工位", IsNullable = true)]
        public string nowStationCode { get; set; }

        /// <summary>
        /// 下一个工位
        /// </summary>
        [SugarColumn(ColumnDescription = "下一个工位", IsNullable = true)]
        public string nextStationCode { get; set; }

        [SugarColumn(IsNullable = true)]
        public string plmeId { get; set; }

        /// <summary>
        /// 工艺路线版本
        /// </summary>
        [SugarColumn(ColumnDescription = "工艺路线版本", IsNullable = true)]
        public decimal edition { get; set; }


        /// <summary>
        /// 扩展字段1
        /// </summary>
        [SugarColumn(ColumnDescription = "扩展字段1", IsNullable = true)]
        public string extend1 { get; set; }

        /// <summary>
        /// 扩展字段2
        /// </summary>
        [SugarColumn(ColumnDescription = "扩展字段2", IsNullable = true)]
        public string extend2 { get; set; }

        /// <summary>
        /// 扩展字段3
        /// </summary>
        [SugarColumn(ColumnDescription = "扩展字段3", IsNullable = true)]
        public string extend3 { get; set; }

        /// <summary>
        /// 扩展字段4
        /// </summary>
        [SugarColumn(ColumnDescription = "扩展字段4", IsNullable = true)]
        public string extend4 { get; set; }


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

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

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

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

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