public function SetExcReliability($extFlightId, $extExcId, $extState)
 {
     $flightId = $extFlightId;
     $excId = $extExcId;
     $state = $extState;
     $Fl = new Flight();
     $flightInfo = $Fl->GetFlightInfo($flightId);
     unset($Fl);
     $excTableName = $flightInfo['exTableName'];
     if ($state == false || $state == 'false') {
         $state = 1;
     } else {
         if ($state == true || $state == 'true') {
             $state = 0;
         } else {
             $state = 0;
         }
     }
     $FE = new FlightException();
     $res = $FE->UpdateFalseAlarmState($excTableName, $excId, $state);
     unset($FE);
     return $res;
 }