function doStore()
 {
     global $doc_ged_id, $file_id, $_firstModeleGed;
     $file_upload_ok = false;
     if ($msg = $this->_obj->store()) {
         CAppUI::setMsg($msg, UI_MSG_ERROR);
         if ($this->redirectError) {
             $this->redirect =& $this->redirectError;
         }
     } else {
         $this->redirect = null;
         $doc_ged_id = $this->_obj->doc_ged_id;
         if (isset($_FILES["formfile"]) && $_FILES["formfile"]["name"] != "") {
             $objFile = new CFileAddEdit();
             $objFile->redirect = null;
             $objFile->doBind();
             $_POST["object_id"] = $doc_ged_id;
             $objFile->dostore();
             if (CAppUI::isMsgOK()) {
                 $file_upload_ok = true;
                 $file_id = $objFile->_obj->file_id;
             } else {
                 // Erreur Upload
                 if ($this->redirectError) {
                     $this->redirect =& $this->redirectError;
                 }
                 $this->doRedirect();
             }
         }
     }
 }