| | |
| | | #parent: #root |
| | | StaticMethod GenerateData ( |
| | | MacroPlan macroPlan, |
| | | InterfaceDataset interfaceDataset |
| | | InterfaceDataset interfaceDataset, |
| | | Number versionFlag |
| | | ) |
| | | { |
| | | TextBody: |
| | | [* |
| | | interfaceDataset.InterfacePlanInventoryDataPush( relflush ); |
| | | ipidps := selectset( interfaceDataset, InterfacePlanInventoryDataPush, tempIPIDP, tempIPIDP.VersionFlag() = versionFlag ); |
| | | MacroPlan::DeleteObjects( ipidps ); |
| | | |
| | | actualDateTime := DateTime::ActualTime(); |
| | | |
| | | traverse ( macroPlan, Product_MP.ProductInStockingPoint_MP, pispmp, not pispmp.IsSystem() and pispmp.IsLeaf() ) { |
| | | traverse ( pispmp, ProductInStockingPointInPeriodPlanning.astype( ProductInStockingPointInPeriodPlanningLeaf ), pispippl, not pispippl.IsPeriodFrozen() ) { |
| | |
| | | PlanningInventory := [Number]pispippl.InventoryLevelEnd(), |
| | | 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 |
| | | ); |
| | | } |
| | | } |