MomWorkOrder.cs 3.25 KB
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace Hh.Mes.POJO.ApiEntity
{
    /// <summary>
    /// Mom工单
    /// </summary>
    public class MomWorkOrderHead
    {
        /// <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 string product_code { get; set; }
        /// <summary>
        /// 产品名称
        /// </summary>
        public string product_name { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public decimal num { get; set; }
        /// <summary>
        /// 工厂
        /// </summary>
        public string factory { get; set; }
        /// <summary>
        /// 产线编码
        /// </summary>
        public string line_code { get; set; }
        /// <summary>
        /// 订单类型
        /// </summary>
        public string order_type { get; set; }
        /// <summary>
        /// 工艺路线版本
        /// </summary>
        public string edition { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public string unit_code { get; set; }
        /// <summary>
        /// 计划开始日期
        /// </summary>
        public DateTime playdate { get; set; }
        /// <summary>
        /// 计划结束日期
        /// </summary>
        public DateTime enddate { get; set; }
        /// <summary>
        /// 预留字段2
        /// </summary>
        public string ylzd2 { get; set; }
        /// <summary>
        /// 更新标识 "I:新增        U:修改        D:删除"
        /// </summary>
        public string type { get; set; }

        /// <summary>
        /// 物料需求列表
        /// </summary>
        public List<MomWorkOrderDetail> details = new List<MomWorkOrderDetail>();
    }

    /// <summary>
    /// Mom物料需求信息
    /// </summary>
    public class MomWorkOrderDetail
    {
        /// <summary>
        /// 生产计划号
        /// </summary>
        public string plan_code { get; set; }
        /// <summary>
        /// 物料编码
        /// </summary>
        public string mater_code { get; set; }
        /// <summary>
        /// 物料名称
        /// </summary>
        public string mater_name { get; set; }
        /// <summary>
        /// 需求数量
        /// </summary>
        public decimal qty { get; set; }
        /// <summary>
        /// 需求单位
        /// </summary>
        public string wh_code { get; set; }
        /// <summary>
        /// 工位编码
        /// </summary>
        public string station_code { get; set; }
        /// <summary>
        /// 工序编码
        /// </summary>
        public string proced_code { get; set; }
        /// <summary>
        /// 预留字段3
        /// </summary>
        public string ylzd3 { get; set; }
        /// <summary>
        /// 预留字段4
        /// </summary>
        public string ylzd4 { get; set; }
    }
}