Changeset 2832
- Timestamp:
- Sep 20, 2019 2:22:20 AM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/programs/us_experiment/us_experiment_gui_optima.cpp
r2804 r2832 5159 5159 { 5160 5160 channel_cell = rpSolut->chsols[ ii ].channel; 5161 QStringList sol_split = (rpSolut->chsols[ ii ].ch_comment).split(','); 5162 if ( channel_cell.startsWith(QString::number(j+1)) ) 5161 //QStringList sol_split = (rpSolut->chsols[ ii ].ch_comment).split(','); 5162 5163 QString solution = rpSolut->chsols[ ii ].ch_comment; 5164 solution.replace("'", ""); 5165 QStringList sol_split = solution.split(','); 5166 5167 if ( channel_cell.startsWith(QString::number(j+1)) ) 5163 5168 { 5164 5169 if ( channel_cell.contains("sample") ) // <-- Channel A … … 5184 5189 .arg(cell_sector).arg(solname); 5185 5190 comment = "Dummy stage"; 5191 5192 //qDebug() << "Dummy stage: QUERY: " << cell_query_str; 5186 5193 } 5187 5194 // <-- Active stages … … 5215 5222 else if ( AbsScanIds[i][j] && InterScanIds[i][j] ) 5216 5223 { 5224 //qDebug() << "Writing HERE: Abs & Interfrence !!! "; 5225 //qDebug() << "solname: " << solname; 5217 5226 cell_query_str = QString("INSERT INTO %1 (\"CellPosition\",\"CellSectors\",\"AbsorbanceScan\",\"AbsorbanceScanId\",\"InterferenceScan\",\"InterferenceScanId\",\"SampleName\") VALUES (%2, %3, %4, %5, %6, %7, %8) RETURNING \"CellParamId\"") 5218 5227 .arg(qrytab_cell) … … 5225 5234 .arg(solname); 5226 5235 comment = "Active Stage --> AbsScan and InterferenceScan BOTH EXIST"; 5236 5237 // qDebug() << "Query: " << cell_query_str; 5227 5238 } 5228 5239 // <-- Active Stage: No Scans exist … … 5240 5251 // Query 5241 5252 if(! query_cell.prepare(cell_query_str ) ) 5242 5253 qDebug() << query_cell.lastError().text(); 5243 5254 5244 5255 if (query_cell.exec())
Note: See TracChangeset
for help on using the changeset viewer.