From 99a2c28e1eef5e0da651b8e964d135d96ca2fa1f Mon Sep 17 00:00:00 2001
From: yxj <yxj@hz-kingdee.com>
Date: 星期一, 03 七月 2023 15:16:31 +0800
Subject: [PATCH] 称重入库模块优化

---
 APSM/装配智能排程/Sc_ICMOAutoSortBill.cs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git "a/APSM/\350\243\205\351\205\215\346\231\272\350\203\275\346\216\222\347\250\213/Sc_ICMOAutoSortBill.cs" "b/APSM/\350\243\205\351\205\215\346\231\272\350\203\275\346\216\222\347\250\213/Sc_ICMOAutoSortBill.cs"
index 18e8fa9..ffc531e 100644
--- "a/APSM/\350\243\205\351\205\215\346\231\272\350\203\275\346\216\222\347\250\213/Sc_ICMOAutoSortBill.cs"
+++ "b/APSM/\350\243\205\351\205\215\346\231\272\350\203\275\346\216\222\347\250\213/Sc_ICMOAutoSortBill.cs"
@@ -692,7 +692,7 @@
                         //判断资源剩余工时,是否大于 生产周期
                         if (DBUtility.ClsPub.isSingle(ds.Tables[0].Rows[j]["剩余工时"]) > sLeftProdTimes)
                         {
-                            if (iLeftQty > 0)
+                            if (iLeftQty > 0) // 生产订单剩余数量
                             {
                                 //在本资源上生产
                                 //获取该生产资源的剩余工时进行排程。
@@ -705,7 +705,7 @@
                                 dsSub = Sc_ICMOSortBillFun.GetWorkSourceTimeBySource(oCn, lSourceID);
                                 if (dsSub == null || dsSub.Tables[0].Rows.Count == 0)
                                 {
-                                    continue;
+                                    continue;//如果没有剩余则 执行下一个生产订单
                                 }
                                 if (dsSub != null  )//不加班排程
                                 {

--
Gitblit v1.9.1