| | |
| | | |
| | | activeScenario := DataHolderActiveScenario.Data(); |
| | | currentScenario := DataHolderScenario.Data(); |
| | | businessType := ddlBusinessType.Data(); |
| | | |
| | | if ( activeScenario = currentScenario ) { |
| | | if ( activeScenario = currentScenario or isnull( businessType ) ) { |
| | | flag := false; |
| | | feedback := "无法对当前选中场景进行分发"; |
| | | } |
| | |
| | | [* |
| | | Form.ApplyChanges(); |
| | | |
| | | businessType := select( GlobalOTDTable, |
| | | BusinessType, |
| | | b, |
| | | b.ScenarioName() = dropDownStringListGeneral.Text() |
| | | ); |
| | | |
| | | DataDistributionLog::Create( GlobalOTDLog, ApplicationMacroPlanner.GetUserName(), DataHolderScenario.Data().DatasetMDSID(), DataHolderScenario.Data().Name() ); |
| | | MacroPlan::DoASync( DataHolderScenario.Data(), |
| | | businessType.BusinessTypeName(), |
| | | ddlBusinessType.Data(), |
| | | checkboxIsKeyProduct.Checked(), |
| | | checkboxCreatePurchaseSupplyProduct.Checked(), |
| | | GlobalOTDTable ); |