Skip to content

Commit

Permalink
GMP 6. REPORT, us_reporter_gmp -- test case, temporary, will be rever…
Browse files Browse the repository at this point in the history
…ted (2)...
  • Loading branch information
alexsav815 committed Jan 22, 2024
1 parent 8e0efe0 commit 34024de
Showing 1 changed file with 26 additions and 22 deletions.
48 changes: 26 additions & 22 deletions programs/us_reporter_gmp/us_reporter_gmp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,28 +50,7 @@ void US_ReporterGMP::write_gmp_report_DB_test( QString report_filepath, QString
return;
}

//// .Tar Blob
int writeStatus= db.writeBlobToDB(report_filepath,
QString( "upload_gmpReportData" ),
autolfowGMPReportID );

if ( writeStatus == US_DB2::DBERROR )
{
QMessageBox::warning(this, "Error", "Error processing file:\n"
+ report_filepath + "\n" + db.lastError() +
"\n" + "Could not open file or no data \n");
clear_GMP_report_record = true;
}

else if ( writeStatus != US_DB2::OK )
{
QMessageBox::warning(this, "Error", "returned processing file:\n" +
report_filepath + "\n" + db.lastError() + "\n");

clear_GMP_report_record = true;
}

/*************************************************************************/

//Write HTML strign to file & later save to DB withing general archive
qDebug() << "[TEST] Writing HTML Blob of filePath -- " << html_filePath;

Expand All @@ -95,6 +74,31 @@ void US_ReporterGMP::write_gmp_report_DB_test( QString report_filepath, QString
clear_GMP_report_record = true;
}

/**********************************************************************************/
//// .Tar Blob
int writeStatus= db.writeBlobToDB(report_filepath,
QString( "upload_gmpReportData" ),
autolfowGMPReportID );

if ( writeStatus == US_DB2::DBERROR )
{
QMessageBox::warning(this, "Error", "Error processing file:\n"
+ report_filepath + "\n" + db.lastError() +
"\n" + "Could not open file or no data \n");
clear_GMP_report_record = true;
}

else if ( writeStatus != US_DB2::OK )
{
QMessageBox::warning(this, "Error", "returned processing file:\n" +
report_filepath + "\n" + db.lastError() + "\n");

clear_GMP_report_record = true;
}

/*************************************************************************/


/*************************************************************************/

QStringList qry;
Expand Down

0 comments on commit 34024de

Please sign in to comment.