Changeset 997


Ignore:
Timestamp:
May 9, 2011 5:14:13 AM (9 years ago)
Author:
dubbs
Message:

Add investigatorID with get_experiment_info_by_runID.
Add error message if we can't get auc data from the DB.

Location:
trunk/programs/us_edit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/programs/us_edit/us_edit.cpp

    r992 r997  
    334334   int investigator = US_Settings::us_inv_ID();
    335335
    336    US_Investigator* dialog = new US_Investigator( false, investigator );
     336   US_Investigator* dialog = new US_Investigator( true, investigator );
    337337   dialog->exec();
    338338
     
    823823
    824824      QStringList query;
    825       query << "get_experiment_info_by_runID" << runID;
     825      query << "get_experiment_info_by_runID" << runID
     826            << QString::number( US_Settings::us_inv_ID() );
     827
    826828      db.query( query );
    827829      db.next();
  • trunk/programs/us_edit/us_load_db.cpp

    r881 r997  
    125125      QString f = workingDir + "/" + filenames[ runID ][ i ];
    126126      db.readBlobFromDB( f, "download_aucData", dbIDs[ runID ][ i ].toInt() );
     127
     128      if ( db.lastErrno() != US_DB2::OK )
     129      {
     130         QMessageBox::warning( this, tr( "Database Problem" ),
     131           tr( "Error getting auc file from database\n" ) + db.lastError() );
     132         
     133         return;
     134      }
    127135   }
    128136
Note: See TracChangeset for help on using the changeset viewer.