bus_workOrder_top.cs 4.89 KB
using SqlSugar;
using System;

namespace Hh.Mes.POJO.Entity
{
    /// <summary>
    /// 工序任务包
    /// </summary>
    [SugarTable("bus_workOrder_top")]
    public partial class bus_workOrder_top : base_Entity
    {
        /// <summary>
        /// 主键
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public string id { get; set; }

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

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

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

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

        /// <summary>
        /// 生产数量
        /// </summary>
        [SugarColumn(ColumnDescription = "生产数量", IsNullable = true)]
        public int productQty { get; set; }

        /// <summary>
        /// 产品/半成品唯一序列号结合
        /// </summary>
        [SugarColumn(Length = 1000, ColumnDescription = "产品/半成品唯一序列号结合", IsNullable = true)]
        public string projectSerialNumberList { get; set; }

        /// <summary>
        /// 任务状态 -1 前端默认查询显示全部
        /// </summary>
        /// <remarks><see cref="EnumEntitys.EnumOrderTopStatus"/></remarks>
        [SugarColumn(ColumnDescription = "任务状态", IsNullable = true)]
        public int state { get; set; }

        /// <summary>
        /// 报工(所有产品报工完成了才完成) 
        /// </summary>
        /// <remarks><see cref="EnumEntitys.EnumWorkReportTopStatus"/></remarks>
        [SugarColumn(ColumnDescription = "报工状态", IsNullable = true)]
        public int workReportStatus { 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>
        /// 唯一标识查询清单包也是通过pimeid
        /// </summary>
        [SugarColumn(Length = 80, ColumnDescription = "唯一标识查询清单包也是通过pimeid", IsNullable = true)]
        public string plmeId { get; set; }

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

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

        /// <summary>
        /// 1启用0 删除
        /// </summary>
        [SugarColumn(ColumnDescription = "1启用0 删除", IsNullable = true)]
        public int isDelete { get; set; }

        /// <summary>
        /// 是否收货 1收货0 未收货
        /// </summary>
        [SugarColumn(ColumnDescription = "是否收货", IsNullable = true)]
        public int isReceive { get; set; }

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

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

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

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