UpstreamService_WorkOrder.cs 2.45 KB
using Hh.Mes.Common.log;
using Hh.Mes.POJO.ApiEntity;
using Hh.Mes.POJO.Entity;
using Hh.Mes.POJO.Response;
using Hh.Mes.POJO.WebEntity;
using NPOI.POIFS.FileSystem;
using System;
using System.Collections.Generic;
using System.Text;

namespace Hh.Mes.Service.ApiService
{
    public partial class UpstreamService
    {
        #region 属性

        /// <summary>
        /// 华恒线体code
        /// </summary>
        private string Sys_LineCode { get; set; }

        private base_work_center work_center { get; set; }

        /// <summary>
        /// 产品表
        /// </summary>
        private base_product_header Sys_ProductHeader { get; set; }



        /// <summary>
        /// 工艺路线头
        /// </summary>
        private base_process_route_head Sys_ProcessHead { get; set; }

        /// <summary>
        /// 工艺路线明细
        /// </summary>
        private List<base_process_route_detail> Sys_ProcessDetail { get; set; }

        /// <summary>
        /// 输出返回实体
        /// </summary>
        private ResponseUpstream<string> ResponseOrder { get; set; }

        /// <summary>
        /// Json 接受实体
        /// </summary>
        private MomWorkOrder MomEntity { get; set; }


        #region 切割、组队、焊接工序
        /// <summary>
        /// 切割工序
        /// </summary>
        private base_process_route_detail Sys_process_cut { get; set; }

        /// <summary>
        /// 组队工序
        /// </summary>
        private base_process_route_detail Sys_process_fitUp { get; set; }

        /// <summary>
        /// 焊接工序
        /// </summary>
        private base_process_route_detail Sys_process_weld { get; set; }
        #endregion

        //工序任务 管段号 同一组工序明细的值 一样
        private string Part_Code { get; set; }

        /// <summary>
        /// 更新数据使用 缓存工序任务头变量
        /// </summary>
        private bus_workOrder_head busWkHead { get; set; }

        /// <summary>
        /// 订单类型名称
        /// </summary>
        private string proOrderTypeName { get; set; }
        #endregion

        public dynamic SendWorkOrder(MomWorkOrder requestData)
        {
            return ExceptionsHelp.Instance.ExecuteT(() =>
            {
                this.MomEntity = requestData;
                ResponseOrder = new ResponseUpstream<string>(requestData.plmeid);

                return "";
            });
        }
    }
}