From cb0739bdf301ce8a70bd5fe7d2d6f5e994e01194 Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期二, 13 八月 2024 16:17:04 +0800 Subject: [PATCH] 获取工单批次更新 --- Tiger.Business/MES/WoContext.cs | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Tiger.Business/MES/WoContext.cs b/Tiger.Business/MES/WoContext.cs index 1781174..f0184b1 100644 --- a/Tiger.Business/MES/WoContext.cs +++ b/Tiger.Business/MES/WoContext.cs @@ -24,23 +24,23 @@ /// <summary> /// 浠庡伐鍗曟壒娆″瓧鍏镐腑鑾峰彇涓�涓伐鍗曟壒娆″璞� /// </summary> - /// <param name="batchNo"></param> + /// <param name="workorder"></param> /// <param name="lineCode"></param> /// <returns></returns> - public static WorkBatch GetBatch(string batchNo, string lineCode = null) + public static WorkBatch GetBatch(string workorder, string lineCode) { - return WoBatchDic.FirstOrDefault(q => q.Value.Batch.BATCH_NO == batchNo && (lineCode.IsNullOrEmpty() || q.Value.Batch.ACT_LINE == lineCode)).Value; + return WoBatchDic.FirstOrDefault(q => q.Value.Batch.ORDER_NO == workorder && q.Value.Batch.ACT_LINE == lineCode).Value; } /// <summary> /// 鍒ゆ柇宸ュ崟鎵规鏄惁瀛樺湪浜庡伐鍗曟壒娆″瓧鍏镐腑 /// </summary> - /// <param name="batchNo"></param> + /// <param name="workorder"></param> /// <param name="lineCode"></param> /// <returns></returns> - public static bool ExistsBatch(string batchNo, string lineCode = null) + public static bool ExistsBatch(string workorder, string lineCode) { - return WoBatchDic.Any(q => q.Value.Batch.BATCH_NO == batchNo && (lineCode.IsNullOrEmpty() || q.Value.Batch.ACT_LINE == lineCode)); + return WoBatchDic.Any(q => q.Value.Batch.ORDER_NO == workorder && q.Value.Batch.ACT_LINE == lineCode); } /// 浠庡伐鍗曟壒娆″瓧鍏镐腑鍒犻櫎涓�涓伐鍗曟壒娆″璞� -- Gitblit v1.9.3