¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute InterfaceTime |
| | | { |
| | | #keys: '3[415754.0.175798548][415754.0.175798547][415754.0.175798549]' |
| | | Description: 'æ¥å£æ¨éæ¶é´' |
| | | ValueType: DateTime |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute VersionFlag |
| | | { |
| | | #keys: '3[415754.0.176284753][415754.0.176284752][415754.0.176284754]' |
| | | Description: |
| | | [* |
| | | 1ï¼åå¸çæ¬ |
| | | 0ï¼æ±æ¥çæ¬ |
| | | *] |
| | | ValueType: Number |
| | | } |
| | |
| | | #parent: #root |
| | | StaticMethod GenerateData ( |
| | | MacroPlan macroPlan, |
| | | InterfaceDataset interfaceDataset |
| | | InterfaceDataset interfaceDataset, |
| | | Number versionFlag |
| | | ) |
| | | { |
| | | TextBody: |
| | | [* |
| | | interfaceDataset.InterfaceProductionSchedulingPlanPush( relflush ); |
| | | ipspps := selectset( interfaceDataset, InterfaceProductionSchedulingPlanPush, tempIPSPP, tempIPSPP.VersionFlag() = versionFlag ); |
| | | MacroPlan::DeleteObjects( ipspps ); |
| | | |
| | | actualDateTime := DateTime::ActualTime(); |
| | | |
| | | traverse ( macroPlan, Product_MP.ProductInStockingPoint_MP, pispmp, not pispmp.IsSystem() and pispmp.IsLeaf() and ( pispmp.StockingPointID() = "DL-MoMo" or pispmp.StockingPointID() = "CC-MoMo" ) ) { |
| | | info( pispmp.Name() ); |
| | |
| | | PlanningQty := [Number]pispippl.NewSupplyQuantity(), |
| | | VersionName := macroPlan.ScenarioName(), |
| | | FactoryName := ifexpr( pispmp.StockingPointID().Regex( "大è¿" ) or pispmp.StockingPointID().Regex( "DL" ), "大è¿å·¥å", "é¿æ¥å·¥å" ), |
| | | Fac := ifexpr( pispmp.StockingPointID().Regex( "大è¿" ) or pispmp.StockingPointID().Regex( "DL" ), "DL", "CC" ) |
| | | Fac := ifexpr( pispmp.StockingPointID().Regex( "大è¿" ) or pispmp.StockingPointID().Regex( "DL" ), "DL", "CC" ), |
| | | InterfaceTime := actualDateTime, |
| | | VersionFlag := versionFlag |
| | | ); |
| | | } |
| | | } |
| | |
| | | oprQuantity := select( opt, OfflinePlanRow, tempOPR, tempOPR.ProductionLine() = u.ID() and tempOPR.ProductID() = ns.AsProductionSupply().ProductInStockingPoint_MP().ProductID() and tempOPR.Type() = "1" ); |
| | | oprOrder := select( opt, OfflinePlanRow, tempOPR, tempOPR.ProductionLine() = u.ID() and tempOPR.ProductID() = ns.AsProductionSupply().ProductInStockingPoint_MP().ProductID() and tempOPR.Type() = "2" ); |
| | | if ( isnull( oprQuantity ) and isnull( oprOrder ) ) { |
| | | oprQuantity := opt.OfflinePlanRow( relnew, ProductionLine := u.ID(), ProductID := ns.AsProductionSupply().ProductInStockingPoint_MP().ProductID(), Type := "1" ); |
| | | oprQuantity := opt.OfflinePlanRow( relnew, ProductionLine := u.ID(), ProductID := ns.AsProductionSupply().ProductInStockingPoint_MP().ProductID(), Type := "1", Notes := ns.AsProductionSupply().ProductInStockingPoint_MP().Product_MP().Notes() ); |
| | | oprOrder := opt.OfflinePlanRow( relnew, ProductionLine := u.ID(), ProductID := ns.AsProductionSupply().ProductInStockingPoint_MP().ProductID(), Type := "2" ); |
| | | } |
| | | |
| | |
| | | productLineCell := productOPC.OfflinePlanCell( relnew, Value := opr.ProductionLine() ); |
| | | productLineCell.OfflinePlanRow( relset, opr ); |
| | | } else if( opr.Type() = "1" ) { |
| | | productCell := productOPC.OfflinePlanCell( relnew, Value := opr.ProductID() ); |
| | | productCell := productOPC.OfflinePlanCell( relnew, Value := opr.ProductID() + ifexpr( opr.Notes() = "", "", "-" + opr.Notes() ) ); |
| | | productCell.OfflinePlanRow( relset, opr ); |
| | | typeCell := typeOPC.OfflinePlanCell( relnew, Value := "Quantity" ); |
| | | typeCell.OfflinePlanRow( relset, opr ); |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute Notes |
| | | { |
| | | #keys: '3[415754.0.180041713][415754.0.180041712][415754.0.180041714]' |
| | | ValueType: String |
| | | } |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | InterfaceProductionSchedulingPlanPush::GenerateData( MacroPlan, InterfaceDataset ); |
| | | InterfaceProductionSchedulingPlanPush::GenerateData( MacroPlan, InterfaceDataset, Number::Random( 0, 1 ) ); |
| | | |
| | | WebMessageBox::Success( "æ¨éæåï¼" ); |
| | | *] |