public function actionDelete()
 {
     $object = CBaseManager::getWorkPlanFinalControl(CRequest::getInt("id"));
     $plan = $object->plan;
     $object->remove();
     $order = 1;
     foreach ($plan->finalControls as $finalControl) {
         $finalControl->ordering = $order++;
         $finalControl->save();
     }
     $this->redirect("workplanfinalcontrol.php?action=index&plan_id=" . $plan->getId());
 }