Quintiq file version 2.0 
 | 
#parent: MatrixEditorProductPlanning 
 | 
Response OnCheckEditability ( 
 | 
  structured[ProductInStockingPointInPeriodPlanning] cell, 
 | 
  Real value 
 | 
) id:Response_MatrixEditorProductPlanning_OnCheckEditability 
 | 
{ 
 | 
  #keys: '[136682.2.1137897468]' 
 | 
  CanBindMultiple: false 
 | 
  DefinitionID: 'Responsedef_WebMatrixEditor_OnCheckEditability' 
 | 
  QuillAction 
 | 
  { 
 | 
    Body: 
 | 
    [* 
 | 
      //Precondition 
 | 
      attributes := construct( Strings ); 
 | 
      attributes.Add(focusedattribute); 
 | 
      isSupply_o := false; 
 | 
      feedback :=""; 
 | 
       
 | 
      cond := MacroPlan.CanPlan( feedback ) 
 | 
              and ProductInStockingPointInPeriod::CanEnterSupplyQuantity( feedback, 
 | 
                                                                          cell, 
 | 
                                                                          attributes, 
 | 
                                                                          isSupply_o ); 
 | 
      if( cond ) 
 | 
      { 
 | 
        if( isSupply_o ) 
 | 
        { 
 | 
          periods := selectset( cell, Elements.Period_MP, period, true ); 
 | 
          cond := ScenarioManager::CanStartSmartPlan( ScenarioManager, 
 | 
                                                      DataHolderActiveScenario.Data(), 
 | 
                                                      true, 
 | 
                                                      periods, 
 | 
                                                      feedback ); 
 | 
        }                                             
 | 
      } 
 | 
      editinfo.CanEdit( cond ); 
 | 
      editinfo.UserHint( feedback ); 
 | 
    *] 
 | 
    GroupServerCalls: false 
 | 
  } 
 | 
} 
 |