xiaoding721
2024-12-30 a65cbda628612262418e2a6ba86744d88586626a
_Main/BL/Type_MachineStockData/StaticMethod_Synchronize.qbl
@@ -30,10 +30,16 @@
        if( inventory.Fac() = 'DL' and inventory.Lgort() = 'All' ){
          inventoryname := inventory.LineType();
        }
        options := DatasetFindOptions::Construct( 'MacroPlan' ).IncludeOffline( true ); //to load we must search offline datasets.
        options := DatasetFindOptions::Construct( 'ScenarioManager' );//.IncludeOffline( true ); //to load we must search offline datasets.
        mdskey := DatasetController::FindUnique( options );
      
        MDSMacroPlan::Root( mdskey ) -> InventoryInterfaceData::Generate( owner, inventory.DDay(), inventory.MaterialNo(), inventoryname, inventory.Fac(), [Number]inventory.Total() );
        MDSScenarioManager::Root( mdskey ) -> InventoryInterfaceData::Generate( owner, inventory.DDay(), inventory.MaterialNo(), inventoryname, inventory.Fac(), [Number]inventory.Total() );
    //    options := DatasetFindOptions::Construct( 'MacroPlan' );//.IncludeOffline( true ); //to load we must search offline datasets.
    //    mdskey := DatasetController::FindUnique( options );
    //
    //    MDSMacroPlan::Root( mdskey ) -> InventoryInterfaceData::Generate( owner, inventory.DDay(), inventory.MaterialNo(), inventoryname, inventory.Fac(), [Number]inventory.Total() );
    //    sadatalist.Add( sadata );
      }
    }