| | |
| | | |
| | | data := DataHolderDialogData.Data().WrappedInstance(); |
| | | if ( isnull( data ) ) { |
| | | GlobalOTDTable.CapacityAllocationResultsRuleConfiguration( relnew, |
| | | PanelMaterialCode := efPanelMaterialCode.Text(), |
| | | ModuleMaterialCode := efModuleMaterialCode.Text(), |
| | | Division := efDivision.Text(), |
| | | StockingPointID := efStockingPointID.Text() |
| | | ); |
| | | GlobalOTDSOP.CapacityAllocationResultsRuleConfiguration( relnew, |
| | | PanelMaterialCode := efPanelMaterialCode.Text(), |
| | | ModuleMaterialCode := efModuleMaterialCode.Text(), |
| | | Division := efDivision.Text(), |
| | | StockingPointID := efStockingPointID.Text() |
| | | ); |
| | | } else { |
| | | DataHolderDialogData.Data().PanelMaterialCode( efPanelMaterialCode.Text() ); |
| | | DataHolderDialogData.Data().ModuleMaterialCode( efModuleMaterialCode.Text() ); |
| | | DataHolderDialogData.Data().Division( efDivision.Text() ); |
| | | DataHolderDialogData.Data().StockingPointID( efStockingPointID.Text() ); |
| | | DataHolderDialogData.Data().Commit(); |
| | | data.Delete(); |
| | | GlobalOTDSOP.CapacityAllocationResultsRuleConfiguration( relnew, |
| | | PanelMaterialCode := efPanelMaterialCode.Text(), |
| | | ModuleMaterialCode := efModuleMaterialCode.Text(), |
| | | Division := efDivision.Text(), |
| | | StockingPointID := efStockingPointID.Text() |
| | | ); |
| | | } |
| | | |
| | | |