| Quintiq file version 2.0 | 
| #parent: #root | 
| Method EnableDisableBatch () id:Method_DialogCreateEditTransportationCost_EnableDisableBatch | 
| { | 
|   #keys: '[145730.1.944936499]' | 
|   Body: | 
|   [* | 
|     // Enable/disable fields during batch create/edit | 
|     isBatchCreate := DataHolderFormLaneLeg.Data().Size() > 1; | 
|     isBatch := DataHolderDialogDatas.Data().Size() > 1; | 
|      | 
|     tooltip := Translations::MP_Batch_Disabled_Create_Edit(); | 
|      | 
|     // Non-editable fields during batch create/edit | 
|     DropDownListLane.Enabled( not (isBatchCreate or isBatch), tooltip ); | 
|     DropDownListOrigin.Enabled( not (isBatchCreate or isBatch), tooltip ); | 
|     DropDownListDestination.Enabled( not (isBatchCreate or isBatch), tooltip ); | 
|      | 
|     // Non-visible fields during batch edit | 
|     CheckboxBatchEditTimeUnit.Visible( isBatch ); | 
|     CheckboxBatchEditLengthOfTime.Visible( isBatch ); | 
|     CheckboxBatchEditCost.Visible( isBatch ); | 
|      | 
|     tooltip := Translations::MP_Batch_Disabled_Edit(); | 
|      | 
|     // Non-editable fields during batch edit | 
|     EditFieldCost.Enabled( not isBatch, ''  ); | 
|     DropDownListAccount.Enabled( not isBatch, tooltip ); | 
|     DateSelectorCostStart.Enabled( not isBatch, tooltip ); | 
|     DropDownStringListCostDriver.Enabled( not isBatch, tooltip ) | 
|   *] | 
| } |