| _Main/BL/Type_CCEngineLogisticsCostReport/StaticMethod_GetCCFactory.qbl | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| _Main/BL/Type_CCEngineLogisticsCostReport/StaticMethod_Initialize.qbl | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| _Main/BL/Type_CCEngineLogisticsCostReport0/StaticMethod_GetCCFactory.qbl | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| _Main/BL/Type_CCEngineLogisticsCostReport0/StaticMethod_GetDLFactory.qbl | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| _Main/BL/Type_CCEngineLogisticsCostReport0/StaticMethod_InitializeNew.qbl | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
_Main/BL/Type_CCEngineLogisticsCostReport/StaticMethod_GetCCFactory.qbl
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,12 @@ Quintiq file version 2.0 #parent: #root StaticMethod GetCCFactory () const as String { TextBody: [* // çå °é¸½ Jun-25-2024 (created) return 'é¿æ¥å·¥å'; //return 'VWED CC'; //return 'Assembly Plant (France)'; *] } _Main/BL/Type_CCEngineLogisticsCostReport/StaticMethod_Initialize.qbl
@@ -11,6 +11,7 @@ produtparent := CCEngineLogisticsCostReport::GetDefaultProductParent(); name := CCEngineLogisticsCostReport::GetDefaultName(); allunit := CCEngineLogisticsCostReport::GetDefaultAllUnit(); ccfactory := CCEngineLogisticsCostReport::GetCCFactory(); ccunit := CCEngineLogisticsCostReport::GetDefaultCCUnit(); ccline := CCEngineLogisticsCostReport::GetStockingPointCCLine(); ccrent := CCEngineLogisticsCostReport::GetStockingPointCCRent(); @@ -36,7 +37,7 @@ //æ¥è¯¢å¯¹åºçå卿ºææ¬ enginecosts := selectset( owner, LogisticsCostEngine, engine, engine.Generation().ToLower() = product.Generation().ToLower() and engine.MLB_MQB() = product.MQBMLB() and engine.Factory() = ccunit ); and engine.Factory() = ccfactory );//ccunit if( not isnull( enginecosts ) and enginecosts.Size() > 0 ){ ccrow := table.GetRow( row.Name() ); products.Add( product ); @@ -66,7 +67,7 @@ //æ¥è¯¢å¯¹åºçå卿ºææ¬ enginecosts := selectset( owner, LogisticsCostEngine, engine, engine.Generation().ToLower() = product.Generation().ToLower() and engine.MLB_MQB() = product.MQBMLB() and engine.Factory() = ccunit ); and engine.Factory() = ccfactory ); if( not isnull( enginecosts ) and enginecosts.Size() > 0 ){ ccrow := table.GetRow( row.Name() ); products.Add( product ); @@ -110,7 +111,7 @@ //å¨å卿ºææ¬åæ°è¡¨æ¾å°å¯¹åºçå è£ å®¹é enginecost := selectobject( enginecosts, Elements, engine, engine.Generation().ToLower() = product.Generation().ToLower() and engine.MLB_MQB() = product.MQBMLB() and engine.Factory() = ccunit ); and engine.Factory() = ccfactory ); //å¨è¿è¾ææ¬åæ°è¡¨éæ¾å°å卿ºå¯¹åºè¿è¾åä»·åè£ è½½å®¹é transcost := selectobject( transcosts, Elements, trans, trans.Origin() = ccline and trans.Destination() = ccrent @@ -143,7 +144,7 @@ //æ¥è¯¢å¯¹åºçå卿ºææ¬ enginecosts := selectset( owner, LogisticsCostEngine, engine, engine.Generation().ToLower() = product.Generation().ToLower() and engine.MLB_MQB() = product.MQBMLB() and engine.Factory() = ccunit ); and engine.Factory() = ccfactory ); if( not isnull( enginecosts ) and enginecosts.Size() > 0 ){ row := table.GetRow( pisp.ProductID() ); products.Add( product ); _Main/BL/Type_CCEngineLogisticsCostReport0/StaticMethod_GetCCFactory.qbl
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,12 @@ Quintiq file version 2.0 #parent: #root StaticMethod GetCCFactory () const as String { TextBody: [* // çå °é¸½ Jun-25-2024 (created) return 'é¿æ¥å·¥å'; //return 'VWED CC'; //return 'Assembly Plant (France)'; *] } _Main/BL/Type_CCEngineLogisticsCostReport0/StaticMethod_GetDLFactory.qbl
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,12 @@ Quintiq file version 2.0 #parent: #root StaticMethod GetDLFactory () const as String { TextBody: [* // çå °é¸½ Jun-25-2024 (created) return '大è¿å·¥å'; //return 'VWED DL'; //return 'Assembly Plant (France)'; *] } _Main/BL/Type_CCEngineLogisticsCostReport0/StaticMethod_InitializeNew.qbl
@@ -13,6 +13,8 @@ allunit := DLEngineLogisticsCostReport::GetDefaultAllUnit(); ccunit := DLEngineLogisticsCostReport::GetDefaultCCUnit(); dlunit := DLEngineLogisticsCostReport::GetDefaultDLUnit(); ccfactory := DLEngineLogisticsCostReport::GetCCFactory(); dlfactory := DLEngineLogisticsCostReport::GetDLFactory(); //dlline := DLEngineLogisticsCostReport::GetStockingPointDLLine(); //ccrent := DLEngineLogisticsCostReport::GetStockingPointCCRent(); //dlrent := DLEngineLogisticsCostReport::GetStockingPointCCRent(); @@ -59,7 +61,7 @@ if( isccrent or isdltoccrent){ //å¨å卿ºææ¬åæ°è¡¨æ¾å°å¯¹åºçå è£ å®¹é enginecost := selectobject( enginecosts, Elements, engine, engine.StartDate() <= pispip.Start().Date() and engine.EndDate() >= pispip.Start().Date() and engine.Factory() = ccunit ); and engine.Factory() = ccfactory ); if( not isnull( enginecost ) ){ quantity := [Number]pispip.NewSupplyQuantity(); if( isccrent ){ @@ -78,7 +80,7 @@ } else { //å¨å卿ºææ¬åæ°è¡¨æ¾å°å¯¹åºçå è£ å®¹é enginecost := selectobject( enginecosts, Elements, engine, engine.StartDate() <= pispip.Start().Date() and engine.EndDate() >= pispip.Start().Date() and engine.Factory() = dlunit ); and engine.Factory() = dlfactory ); if( not isnull( enginecost ) ){ cost := ceil( [Number]pispip.NewSupplyQuantity() / enginecost.PackagingCapacity() ) * enginecost.StoragePrice();//åèäºå ¥ cell.DLRentStorCost( cell.DLRentStorCost() + cost ); @@ -114,7 +116,7 @@ //å¨å卿ºææ¬åæ°è¡¨æ¾å°å¯¹åºçå è£ å®¹é enginecost := selectobject( enginecosts, Elements, engine, engine.Generation().ToLower() = product.Generation().ToLower() and engine.MLB_MQB() = product.MQBMLB() and engine.Factory() = dlunit ); and engine.Factory() = dlfactory ); //å¨è¿è¾ææ¬åæ°è¡¨éæ¾å°å卿ºå¯¹åºè¿è¾åä»·åè£ è½½å®¹é transcost := selectobject( transcosts, Elements, trans, trans.Origin() = laneleg.OriginStockingPointID() and trans.Destination() = laneleg.DestinationStockingPointID() @@ -141,7 +143,7 @@ //æ¥è¯¢å¯¹åºçå卿ºææ¬ enginecosts := selectset( owner, LogisticsCostEngine, engine, engine.Generation().ToLower() = product.Generation().ToLower() and engine.MLB_MQB() = product.MQBMLB() and engine.Factory() = dlunit ); and engine.Factory() = dlfactory ); if( not isnull( enginecosts ) and enginecosts.Size() > 0 ){ products.Add( product ); ccrow := table.GetRow( row.Name() ); @@ -169,7 +171,7 @@ //æ¥è¯¢å¯¹åºçå卿ºææ¬ enginecosts := selectset( owner, LogisticsCostEngine, engine, engine.Generation().ToLower() = product.Generation().ToLower() and engine.MLB_MQB() = product.MQBMLB() and engine.Factory() = dlunit ); and engine.Factory() = dlfactory ); if( not isnull( enginecosts ) and enginecosts.Size() > 0 ){ products.Add( product ); ccrow := table.GetRow( row.Name() ); @@ -200,7 +202,7 @@ //æ¥è¯¢å¯¹åºçå卿ºææ¬ enginecosts := selectset( owner, LogisticsCostEngine, engine, engine.Generation().ToLower() = product.Generation().ToLower() and engine.MLB_MQB() = product.MQBMLB() and engine.Factory() = ccunit ); and engine.Factory() = ccfactory ); //å¨è¿è¾ææ¬åæ°è¡¨éæ¾å°å卿ºå¯¹åºè¿è¾åä»·åè£ è½½å®¹é transcosts := selectset( owner, LogisticsCostTransport, trans, trans.Origin() = tprow.SourceStockpoingPointID() and trans.Destination() = tprow.TargetStockpoingPointID() @@ -239,7 +241,7 @@ //æ¥è¯¢å¯¹åºçå卿ºææ¬ enginecosts := selectset( owner, LogisticsCostEngine, engine, engine.Generation().ToLower() = product.Generation().ToLower() and engine.MLB_MQB() = product.MQBMLB() and engine.Factory() = ccunit ); and engine.Factory() = ccfactory ); if( not isnull( enginecosts ) and enginecosts.Size() > 0 ){ products.Add( forecast.Product_MP() ); row := table.GetRow( forecast.ProductID() );