分支自 SuZhouGuanHong/TaiYuanTaiZhong

huanghongfeng
2024-07-19 bb929bd0809eefc1108dd779846ff07d997f7ef0
代码管理/PCS/WCS_Server/WIDESEA_WCS/JobsPart/Common/AutoUpdateWork.cs
@@ -8,6 +8,7 @@
using WIDESEA_Entity.DomainModels;
using WIDESEA_WCS.IRepositories;
using WIDESEA_WCS.IServices;
using WIDESEA_WCS.Jobs.Task;
using WIDESEA_WCS.Repositories;
using WIDESEA_WCS.Services;
using WIDESEA_WMS.IRepositories;
@@ -71,7 +72,24 @@
            {
                foreach (var mes_head in mes_head_jcxs)
                {
                    AddHtyMesWork(mes_head, mes_HeadRepository);
                    if (mes_head.quantity == mes_head.agv_finishNum)
                    {
                        if (mes_head.creator == "MES")
                        {
                            var uploadResult = HandleTask_Mes.UploadMESInfo(mes_head.jobID);
                            if (uploadResult.Status)
                            {
                                AddHtyMesWork(mes_head, mes_HeadRepository);
                            }
                        }
                        else
                        {
                            AddHtyMesWork(mes_head, mes_HeadRepository);
                        }
                    }
                }
            }
            #endregion
@@ -83,7 +101,22 @@
                foreach (var mes_head in mes_head_jjgs)
                {
                    if (mes_head.quantity == mes_head.agv_finishNum)
                        AddHtyMesWork(mes_head, mes_HeadRepository);
                    {
                        if (mes_head.creator == "MES")
                        {
                            var uploadResult = HandleTask_Mes.UploadMESInfo(mes_head.jobID);
                            if (uploadResult.Status)
                            {
                                AddHtyMesWork(mes_head, mes_HeadRepository);
                            }
                        }
                        else
                        {
                            AddHtyMesWork(mes_head, mes_HeadRepository);
                        }
                    }
                }
            }
            #endregion