| Quintiq file version 2.0 | 
| #parent: GanttChartCapacityPlanning | 
| Response OnClick ( | 
|   Unit row | 
| ) id:Response_GanttChartCapacityPlanning_MenuEditRow_OnClick | 
| { | 
|   #keys: '[151892.0.49010426]' | 
|   CanBindMultiple: false | 
|   DefinitionID => /GanttChartCapacityPlanning/Responsedef_GanttChartCapacityPlanning_WebMenu_OnClick | 
|   Initiator: 'MenuEditRow' | 
|   Precondition: | 
|   [* | 
|     return row.CanEditCapacity( feedback ); | 
|   *] | 
|   QuillAction | 
|   { | 
|     Body: | 
|     [* | 
|       //Edit unit period for whole planning period | 
|       if ( row.HasCapacityTypeTime() ) | 
|       { | 
|         dlg := construct ( DialogCreateEditUnitAvailability ); | 
|         dlg.EditFromGanttChartRow( row ); | 
|       } | 
|       else if ( row.HasCapacityTypeQuantity() ) | 
|       { | 
|         dlg := construct( DialogCreateEditQuantityCapacity ); | 
|         dlg.EditFromGanttChartRow( row ); | 
|       } | 
|       else if ( row.HasCapacityTypeTransportQuantity() ) | 
|       { | 
|         dlg := construct( DialogCreateEditTransportCapacity ); | 
|         dlg.EditFromGanttChartRow( row ); | 
|       } | 
|     *] | 
|     GroupServerCalls: false | 
|   } | 
| } |