bus_workOrder_report_fail.cs 3.63 KB
using System;
using Hh.Mes.POJO.EnumEntitys;
using SqlSugar;

namespace Hh.Mes.POJO.Entity
{
    /// <summary>
    /// 工序反馈失败记录
    /// </summary>
    [SugarTable("bus_workOrder_report_fail")]
    public partial class bus_workOrder_report_fail : base_Entity
    {
        /// <summary>
        /// 主键
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int id { get; set; }

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

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

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

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

        /// <summary>
        /// 1:MES原因.10:华恒原因(获取焊接工艺)
        /// </summary>
        [SugarColumn(ColumnDescription = "1:MES原因.10:华恒原因(获取焊接工艺)", IsNullable = true)]
        public EnumWorkOrderReportFail? failType { get; set; }

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

        /// <summary>
        /// 工作中心编码
        /// </summary>
        [SugarColumn(Length = 50, ColumnDescription = "工作中心编码", IsNullable = true)]
        public string workCenterCode { 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; }

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

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

        /// <summary>
        /// 发送给MES的Json
        /// </summary>
        [SugarColumn(ColumnDescription = "发送给MES的Json", IsNullable = true)]
        public string requestJson { get; set; }

        /// <summary>
        /// 发送给MES的Json
        /// </summary>
        [SugarColumn(ColumnDescription = "发送给MES的Json", IsNullable = true)]
        public string responseJson { get; set; }

        [SugarColumn(IsNullable = true)]
        public string remark { 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; }

    }
}