| | |
| | | [* |
| | | // Disabled button to prevent the possibility of multiple firing |
| | | |
| | | macroPlanOld := MacroPlan; |
| | | //macroPlanOld := MacroPlan; |
| | | |
| | | btnOK.Enabled( false, '' ) |
| | | |
| | |
| | | } |
| | | |
| | | macroPlanNew := MacroPlan; |
| | | ManufactureLTImputation::Transfer( macroPlanOld, macroPlanNew ); |
| | | //ManufactureLTImputation::Transfer( macroPlanOld, macroPlanNew ); |
| | | |
| | | // sync data |
| | | if( data.EnableSync() ) { |
| | | MacroPlan::DoSync( macroPlanNew, |
| | | data.BusinessType(), data.IsKeyProduct(), data.CreatePurchaseSupplyMaterial() ,GlobalOTDTable); |
| | | } |
| | | macroPlanNew.BusinessType( businesstype ); |
| | | macroPlanNew.IsKeyProduct( data.IsKeyProduct() ); |
| | | macroPlanNew.CreatePurchaseSupplyMaterial( data.CreatePurchaseSupplyMaterial() ); |
| | | |
| | | this.Close(); |
| | | *] |