ProcessRouteUpMomEntity.cs 4.24 KB
using System.Collections.Generic;
using Hh.Mes.POJO.EnumEntitys;

namespace Hh.Mes.POJO.ApiEntity
{
    /// <summary>
    /// 产线中控将工序执行信息反馈MOM实体
    /// </summary>
    public class ProcessRouteUpMomEntity
    {
        /// <summary>
        /// 唯一标识ID
        /// </summary>
        public string plmeid { get; set; }
        /// <summary>
        /// 生产订单号
        /// </summary>
        public string pro_order_code { get; set; }
        /// <summary>
        /// 生产计划号
        /// </summary>
        public string plan_code { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public int num { get; set; }
        public string line_code { get; set; }
        /// <summary>
        /// 工序编码,MOM那边要求“工序编码”改为“工序顺序号”
        /// </summary>
        public string proced_code => proced_num;
        /// <summary>
        /// 工序顺序号,固定四位:0010、0020
        /// </summary>
        public string proced_num { get; set; }
        /// <summary>
        /// 工序开始时间
        /// </summary>
        public string proced_start_time { get; set; }
        /// <summary>
        /// 工序结束时间
        /// </summary>
        public string proced_end_time { get; set; }
        /// <summary>
        /// 实际工时
        /// </summary>
        public decimal proced_work_time { get; set; }
        /// <summary>
        /// 状态 0:开工 、1:完工
        /// </summary>
        public string state { get; set; }
        /// <summary>
        /// 操作人
        /// </summary>
        public string @operator { get; set; }

        /// <summary>
        /// 数据传输类型<see cref="EnumAction"/>
        /// </summary>
        public string type { get; set; }
        /// <summary>
        /// 关键执行工艺
        /// </summary>
        public List<Processes> processes { get; set; } = new List<Processes>();
        /// <summary>
        /// 精确追溯件
        /// </summary>
        public List<Maters> maters { get; set; } = new List<Maters>();
    }

    /// <summary>
    /// 关键执行工艺参数
    /// </summary>
    public class Processes
    {
        /// <summary>
        /// 设备编码
        /// </summary>
        public string device_code { get; set; }
        /// <summary>
        /// 设备信息
        /// </summary>
        public string device_information { get; set; }
        /// <summary>
        /// 加工步骤
        /// </summary>
        public string processing_steps { get; set; }
        /// <summary>
        /// 加工参数名称
        /// </summary>
        public string processing_parameters { get; set; }
        /// <summary>
        /// 加工参数执行结果
        /// </summary>
        public string processing_results { get; set; }
    }

    /// <summary>
    /// 精确追溯件
    /// </summary>
    public class Maters
    {
        /// <summary>
        /// 物料号
        /// </summary>
        public string maters_code { get; set; }
        /// <summary>
        /// 追溯码
        /// </summary>
        public string review_code { get; set; }
        /// <summary>
        /// 供应商码
        /// </summary>
        public string supplier_code { get; set; }
        /// <summary>
        /// 条码信息
        /// </summary>
        public string bar_code { get; set; }
        /// <summary>
        /// 扫描工位
        /// </summary>
        public string scan_station { get; set; }
        /// <summary>
        /// 扫描人
        /// </summary>
        public string scanner { get; set; }
        /// <summary>
        /// 扫描类型 0:正常、1:补扫、2:替扫
        /// </summary>
        public string code_type { get; set; }
    }

    /// <summary>
    /// ecs工序完工反馈
    /// </summary>
    public class ProcedureEndEntity 
    {
        /// <summary>
        /// 追踪码
        /// </summary>
        public string barCode { get; set; }

        /// <summary>
        /// 工序 切割=100,打磨=180
        /// </summary>
        public int enumCutHeadState { get; set; }
    }

    public class SendIWPModel { 
        public string taskCode { get; set; }
        public string equipmentCode { get; set; }
    }


}