分支自 SuZhouGuanHong/TaiYuanTaiZhong

dengjunjie
2024-06-20 58bd958f1fa8a85d0a3ac33a1ab1e2cab5d63dd2
代码管理/PCS/WCS_Server/WIDESEA_WCS/Common/Pipeline.cs
@@ -17,6 +17,7 @@
using WIDESEA_WCS.JobsPart.Common;
using System.Xml.Linq;
using WIDESEA_Common;
using System.Net;
namespace WIDESEA_WCS
{
@@ -218,6 +219,11 @@
                        //    }
                        //}
                        #endregion
                    }
                    else
                    {
                        var count = Gantry_client.ReadByOrder<Int16>("W_IndexNr", number);
                        if (Station.quantity != count) Gantry_client.WriteByOrder("W_RequestUnload", false, number);
                    }
                }
                else
@@ -572,7 +578,7 @@
            Idt_mes_headRepository mes_HeadRepository = new dt_mes_headRepository(Context);
            IVV_Mes_WorkinfoRepository workinfoRepository = new VV_Mes_WorkinfoRepository(Context);
            //var mes_Detail = freeDB.Select<dt_mes_detail>().Where(x => x.SN == SN).First();
            var Mes_Work = workinfoRepository.Find(x => x.SN == SN && x.processCode == "28").FirstOrDefault();
            var Mes_Work = workinfoRepository.Find(x => x.SN == SN && x.processCode == "28").OrderByDescending(x => x.CreateTime).FirstOrDefault();
            var mes_Detail = mes_DetailRepository.Find(x => x.SN == SN && x.jobID == Mes_Work.jobID).FirstOrDefault();
            if (mes_Detail != null)
            {