public function actionPriorityinfo($idperson)
 {
     /*
     * {
      "requestPriority":1,
      "idPersonRequest":6927303,
      "personEducationFormName":"Денна",
      "qualificationName":"Бакалавр (4 р. 00 м.)",
      "universityFacultetFullName":"Математичний",
      "specClasifierCode":"6.040201",
      "specSpecialityClasifierCode":"",
      "specIndastryName":"Фізико-математичні науки",
      "specDirectionName":"математика",
      "specSpecialityName":"",
      "specScecializationName":""
      },
     */
     $msg = "";
     $priority = "Доступні пріорітети: ";
     $type = "success";
     $count = 0;
     $model = Person::model()->findByPk($idperson);
     if (!empty($model) && !empty($model->codeU)) {
         try {
             $res = WebServices::getPersonAllPriority($model->codeU);
             $res = CJSON::decode($res);
             Yii::log(print_r($res, 1));
             if (is_array($res)) {
                 foreach ($res as $item) {
                     $item = (object) $item;
                     if ($item->idPersonRequest > 0) {
                         $type = "info";
                         $msg .= "<div>";
                         $msg .= $item->requestPriority . " : " . $item->qualificationName . ", " . $item->specClasifierCode . " - " . $item->specDirectionName;
                         $msg .= "</div>";
                         $count++;
                     } else {
                         $priority .= $item->requestPriority . " | ";
                     }
                 }
             }
             if ($count == 0) {
                 $msg = "Всі пріорітети вільні!";
                 $type = "success";
             }
             $msg .= "<div>" . $priority . "</div>";
         } catch (Exception $e) {
             $msg = $e->getMessage();
             $type = "error";
         }
     } else {
         $msg .= "Необхідно синхронізувати персону!";
         $type = "warning";
     }
     Yii::app()->user->setFlash($type, $msg);
 }