| | |
| | | // çæè°æ¨è®¡å |
| | | traverse ( macroPlan, Unit, u, u.HasCapacityTypeTransportQuantity() ) { |
| | | traverse ( u, Lane.LaneLeg.Trip, t ) { |
| | | traverse ( t, ProductInTrip, pit, pit.Quantity() > 0.0 ) { |
| | | traverse ( t, ProductInTrip, pit, pit.Quantity() > 0.0 and exists( pit.Product_MP(), AllParent.AsParent, tempP, tempP.ID() = "æºå ä»¶" ) ) { |
| | | // æ¾è¡ |
| | | tpr := TransferPlanRow::FindTransferPlanRowTypeIndex( TransferPlanRow::IdentifyTheFactory( t.LaneLeg().AsOriginStockingPointLeg().StockingPoint_MP() ), |
| | | TransferPlanRow::IdentifyTheFactory( t.LaneLeg().AsDestinationStockingPointLeg().StockingPoint_MP() ), |
| | |
| | | indexDate := indexDate + 1; |
| | | } |
| | | |
| | | // è¡¥é½ç©ºæ ¼å |
| | | traverse ( macroPlan, TransferPlanRow, tpr ) { |
| | | traverse ( macroPlan, TransferPlanColumn, tpc, tpc.ColumnDate() >= minselect( macroPlan, TransferPlanColumn, tempTPC, true, tempTPC.ColumnDate() ).ColumnDate() ) { |
| | | cell := select( tpr, TransferPlanCell, tempTPC, tempTPC.TransferPlanColumn() = tpc ); |
| | | if ( isnull( cell ) ) { |
| | | cell := tpc.TransferPlanCell( relnew, Value := "" ); |
| | | cell.TransferPlanRow( relset, tpr ); |
| | | } |
| | | } |
| | | } |
| | | |
| | | // çæäº§åå |
| | | minDateTPC := macroPlan.TransferPlanColumn( relnew, |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Method Filter ( |
| | | Product_MPs products |
| | | ) declarative remote as Boolean |
| | | { |
| | | TextBody: |
| | | [* |
| | | flag := exists( products, Elements, tempP, tempP.ID() = this.ProductID() ); |
| | | |
| | | return flag; |
| | | *] |
| | | } |
| | |
| | | Properties: |
| | | [ |
| | | Image: 'LIGHTBULB' |
| | | Label: 'Offline plan' |
| | | Label: 'Output plan' |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | |
| | | [ |
| | | Description: 'AssemblyOnlinePlan' |
| | | Image: 'PALM_TREE' |
| | | Label: 'Assembly online plan' |
| | | Label: 'Filing plan' |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | |
| | | Properties: |
| | | [ |
| | | DataType: 'MacroPlan' |
| | | FilterArguments: 'products:QLibMacroPlannerWebUI::ApplicationMacroPlanner.DataHolderCheckedProduct' |
| | | FixedFilter: 'object.Filter( products )' |
| | | Source: 'MacroPlan' |
| | | Taborder: 0 |
| | | Transformation: 'TransferPlanRow' |