Quintiq file version 2.0
#parent: pOperaction/bCalculating
Response OnClick () id:Response_pOperaction_bCalculating_OnClick
{
  #keys: '[412672.1.33160729]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebButton_OnClick'
  QuillAction
  {
    Body:
    [*
      shiftPlans := selectset( MacroPlan,Unit.UnitPeriod.astype( UnitPeriodTime ).ShiftPlan,shiftPlan,LocalTool::IsOverlap( dsStartDate.Date(),dsEndDate.Date(),shiftPlan.UnitPeriodTime().Period_MP().StartDate(),shiftPlan.UnitPeriodTime().Period_MP().EndDate()));
      
      if( cbStandardHours.Checked() ){
        dhTable.Data( LocalCell_Default::GenerateStandardHoursReport( MacroPlan ,shiftPlans ,RecycleBin )); 
      }
      if( cbComprehensiveHours.Checked()){
        dhTable.Data( LocalCell_Default::GenerateComprehensiveHoursReport( MacroPlan ,shiftPlans ,RecycleBin )); 
      }
    *]
    GroupServerCalls: false
  }
}
