bus_workOrder_head.cs 11.3 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; }


        // 1 是默认 0 是删除
        [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; }

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

        /// <summary>
        /// 管件号
        /// </summary>
        [SugarColumn(Length = 50, ColumnDescription = "管件号", IsNullable = true)]
        public string pipePartsNo { get; set; }

        /// <summary>
        /// 管件9位码
        /// </summary>
        [SugarColumn(Length = 9, ColumnDescription = "管件9位码", IsNullable = true)]
        public string pipePartsCode { get; set; }

        /// <summary>
        /// 涂装代码
        /// </summary>
        [SugarColumn(Length = 20, ColumnDescription = "涂装代码", IsNullable = true)]
        public string paintCode { get; set; }

        /// <summary>
        /// 组立信息
        /// </summary>
        [SugarColumn(Length = 50, ColumnDescription = "组立信息", IsNullable = true)]
        public string assemblageInfo { get; set; }

        /// <summary>
        /// 系列
        /// </summary>
        [SugarColumn(Length = 20, ColumnDescription = "系列", IsNullable = true)]
        public string range { get; set; }

        /// <summary>
        /// 直径
        /// </summary>
        [SugarColumn(Length = 50, ColumnDescription = "直径", IsNullable = true)]
        public string diameter { get; set; }

        /// <summary>
        /// 壁厚
        /// </summary>
       [SugarColumn(Length = 50, ColumnDescription = "壁厚", IsNullable = true)]
        public string thickness { get; set; }

        /// <summary>
        /// 等级
        /// </summary>
        [SugarColumn(Length = 10, ColumnDescription = "等级", IsNullable = true)]
        public string level { get; set; }

        /// <summary>
        /// 物资编码 管材物资编码
        /// </summary>
        [SugarColumn(Length = 50, ColumnDescription = "物资编码 管材物资编码", IsNullable = true)]
        public string materielCode { get; set; }

        /// <summary>
        /// 切断长
        /// </summary>
        [SugarColumn(ColumnDescription = "切断长", IsNullable = true)]
        public int cutLength { get; set; }

        /// <summary>
        /// 流向1 切断管材的流向
        /// </summary>
        [SugarColumn(Length = 255, ColumnDescription = "流向1 切断管材的流向", IsNullable = true)]
        public string flowOrientation1 { get; set; }

        /// <summary>
        /// 流向2 管部件在产线完工后的流向,如果为空则代表完工
        /// </summary>
        [SugarColumn(Length = 255, ColumnDescription = "流向2 管部件在产线完工后的流向,如果为空则代表完工", IsNullable = true)]
        public string flowOrientation2 { get; set; }

        /// <summary>
        /// 附件1 物资编码(如果是套管,传管材物资编码)
        /// </summary>
        [SugarColumn(Length = 255, ColumnDescription = "附件1 物资编码(如果是套管,传管材物资编码)", IsNullable = true)]
        public string attachment1 { get; set; }

        /// <summary>
        /// 说明1 S搭焊/B对焊
        /// </summary>
        [SugarColumn(Length = 255, ColumnDescription = "说明1 S搭焊/B对焊", IsNullable = true)]
        public string instructions1 { get; set; }

        /// <summary>
        /// 附件2 物资编码
        /// </summary>
        [SugarColumn(Length = 255, ColumnDescription = "附件2 物资编码", IsNullable = true)]
        public string attachment2 { get; set; }

        /// <summary>
        /// 说明2 S搭焊/B对焊
        /// </summary>
        [SugarColumn(Length = 255, ColumnDescription = "说明2 S搭焊/B对焊", IsNullable = true)]
        public string instructions2 { get; set; }

        /// <summary>
        /// 坡口2
        /// </summary>
        [SugarColumn(Length = 50, ColumnDescription = "坡口2", IsNullable = true)]
        public string bevels2 { get; set; }

        /// <summary>
        /// 扭转角度 有法兰转角时,存在数据
        /// </summary>
        [SugarColumn(Length = 50, ColumnDescription = "扭转角度 有法兰转角时,存在数据", IsNullable = true)]
        public string turningAngle { get; set; }
        /// <summary>
        /// 工单表keys
        /// </summary>
        [SugarColumn(Length = 50, ColumnDescription = "工单表keys", IsNullable = true)]
        public Guid headKeys { get; set; }
    }
}