From 52ee4f24536c33f3ccd1f6ceaa4f97fac7c880b7 Mon Sep 17 00:00:00 2001
From: admin <admin@admin.com>
Date: 星期三, 30 十月 2024 11:51:28 +0800
Subject: [PATCH] 上线计划优化
---
_Main/BL/Type_NewAssemblyOnlinePlanCell/StaticMethod_PostLayingProcessing.qbl | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/_Main/BL/Type_NewAssemblyOnlinePlanCell/StaticMethod_PostLayingProcessing.qbl b/_Main/BL/Type_NewAssemblyOnlinePlanCell/StaticMethod_PostLayingProcessing.qbl
index 9674eb9..157ce39 100644
--- a/_Main/BL/Type_NewAssemblyOnlinePlanCell/StaticMethod_PostLayingProcessing.qbl
+++ b/_Main/BL/Type_NewAssemblyOnlinePlanCell/StaticMethod_PostLayingProcessing.qbl
@@ -13,9 +13,11 @@
// 鏄惁鎵ц澶勭悊鏍囧織
isFlag := false;
- traverse ( pls, Elements, pl, pl = "CC MoMo" ) {
+ traverse ( pls, Elements, pl
+ // , pl = "CC MoMo"
+ ) {
traverse ( macroPlan, NewAssemblyOnlinePlanColumn, naopc
- , naopc.StartDate() <= Date::Construct( 2025, 2, 15 )
+ // , naopc.StartDate() <= Date::Construct( 2025, 2, 15 )
) {
// 闇�瑕佸鐞嗙殑鏁伴噺
targetQuantity := ifexpr( pl = "CC MoMo", guard( macroPlan.AssemblyOnlineQuantity().CCMoMo(), 0 ),
@@ -25,7 +27,7 @@
currentCells := selectset( naopc, NewAssemblyOnlinePlanCell, tempNAOPCell, tempNAOPCell.NewAssemblyOnlinePlanRow().ProductionLine() = pl and tempNAOPCell.Quantity() > 0 );
isFlag := ifexpr( exists( currentCells, Elements, tempNAOPCell, tempNAOPCell.LineLayingOrEmptying() = "閾虹嚎" ), true,
ifexpr( exists( currentCells, Elements, tempNAOPCell, tempNAOPCell.LineLayingOrEmptying() = "鎷夌┖" ), false, isFlag ) );
- info( "鏃ユ湡锛�", naopc.StartDate().Format( "Y-M2-D2" ), " 鏄惁澶勭悊锛�", isFlag, " 褰撳墠鍗曞厓鏍兼暟閲忥細", currentCells.Size(), "----------------------------" );
+ // info( "鏃ユ湡锛�", naopc.StartDate().Format( "Y-M2-D2" ), " 鏄惁澶勭悊锛�", isFlag, " 褰撳墠鍗曞厓鏍兼暟閲忥細", currentCells.Size(), "----------------------------" );
// 澶勭悊閾虹嚎鍚庣殑閫昏緫
if ( isFlag and currentCells.Size() > 0 ) {
@@ -49,7 +51,7 @@
orderNr := maxselect( naopc, NewAssemblyOnlinePlanCell, tempNAOPCell,
tempNAOPCell.NewAssemblyOnlinePlanRow().ProductionLine() = pl and tempNAOPCell.Quantity() > 0,
tempNAOPCell.OrderNr() ).OrderNr() + 1;
- info( orderNr );
+ // info( orderNr );
currentCell.OrderNr( orderNr );
currentCell.Order( "#" + orderNr.Format( "N(LPad0(2))" ) );
}
--
Gitblit v1.9.3