MomWorkOrder.cs 5.63 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 string factory_code { get; set; }
        /// <summary>
        /// 产线编码
        /// </summary>
        public string line_code { get; set; }
        /// <summary>
        /// 订单类型
        /// </summary>
        public string order_type { get; set; }
        /// <summary>
        /// 工艺路线版本
        /// </summary>
        public decimal edition { get; set; }


        /// <summary>
        /// 项目编码
        /// </summary>
        public string project_code { get; set; }
        /// <summary>
        /// 项目名称
        /// </summary>
        public string project_name { get; set; }
        /// <summary>
        /// 管线号/单管号
        /// </summary>
        public string line_no { get; set; }

        /// <summary>
        /// 计划开始日期
        /// </summary>
        public DateTime oprplan_start_time { get; set; }
        /// <summary>
        /// 计划结束日期
        /// </summary>
        public DateTime oprplan_end_time { get; set; }


        /// <summary>
        /// 预留字段1
        /// </summary>
        public string extend1 { get; set; }
        /// <summary>
        /// 预留字段2
        /// </summary>
        public string extend2 { get; set; }
        /// <summary>
        /// 预留字段3
        /// </summary>
        public string extend3 { get; set; }
        /// <summary>
        /// 预留字段4
        /// </summary>
        public string extend4 { get; set; }



        /// <summary>
        /// 更新标识 "I:新增        U:修改        D:删除"
        /// </summary>
        public string type { get; set; }


        /// <summary>
        /// 子表明细
        /// </summary>
        public List<MomWorkOrderDetail> details = new List<MomWorkOrderDetail>();
    }

    /// <summary>
    /// 子表明细
    /// </summary>
    public class MomWorkOrderDetail
    {
        /// <summary>
        /// 工序编码
        /// </summary>
        public string proced_code { get; set; }


        /// <summary>
        /// 工作中心编码
        /// </summary>
        public string workcenter_code { get; set; }


        /// <summary>
        /// 工序耗时(分)
        /// </summary>
        public decimal oprsequence_time { get; set; }


        /// <summary>
        /// 备注
        /// </summary>
        public string remark { get; set; }

        /// <summary>
        /// 计划开始日期
        /// </summary>
        public DateTime oprplan_start_time { get; set; }
        /// <summary>
        /// 计划结束日期
        /// </summary>
        public DateTime oprplan_end_time { get; set; }


        /// <summary>
        /// 是否成品管0:否,1:是
        /// </summary>
        public int isend_product { get; set; }

        /// <summary>
        /// 预留字段1
        /// </summary>
        public string extend1 { get; set; }
        /// <summary>
        /// 预留字段1
        /// </summary>
        public string extend2 { get; set; }

        /// <summary>
        /// 组件列表
        /// </summary>
        public List<componentDetails> componentDetails { get; set; } 
    }

    /// <summary>
    /// 组件列表
    /// </summary>
    public class componentDetails
    {
        /// <summary>
        /// 图纸URL
        /// </summary>
        public string design_url { get; set; }
        /// <summary>
        /// 图纸页码
        /// </summary>
        public string design_no { get; set; }

        /// <summary>
        /// 切割工序 管段物料编码
        /// </summary>
        public string cut_mater_code { get; set; }
        /// <summary>
        /// 切割工序 管段切割长度
        /// </summary>
        public double cutting_len { get; set; }

        /// <summary>
        /// 管段号
        /// </summary>
        public string part_code { get; set; }

        /// <summary>
        /// 焊接工序 焊口形式 对焊BW/插焊SW/支架角焊缝FW
        /// </summary>
        public string weld_type { get; set; }
        /// <summary>
        /// 焊接工序焊口号 焊口1,焊口2,焊口3...
        /// </summary>
        public string weld_no { get; set; }
        /// <summary>
        /// 焊接工序 焊口物料 焊口使用物料1,焊口使用物料2,焊口使用物料3... 和焊口号 一一对应
        /// </summary>
        public string weld_mater_code { get; set; }

        /// <summary>
        /// 预留字段1
        /// </summary>
        public string extend1 { get; set; }
        /// <summary>
        /// 预留字段2
        /// </summary>
        public string extend2 { get; set; }



        public string extendComp1 { get; set; }
        public string extendComp2{ get; set; }

        public string extendComp3 { get; set; }

        public string extendComp4 { get; set;}

    }
}