Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
salimkanoun authored Jan 15, 2018
1 parent e05d256 commit bbc5905
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/org/petctviewer/anonymize/VueAnon.java
Original file line number Diff line number Diff line change
Expand Up @@ -1599,7 +1599,7 @@ public void actionPerformed(ActionEvent e) {
}
}else{
jprefer.put("reportType", "CTP");
boolean[] dataSent = {true};
boolean dataSent = true;
if(!modeleExportStudies.getOrthancIds().isEmpty()){
try {
JDBCConnector jdbc = new JDBCConnector();
Expand All @@ -1616,17 +1616,17 @@ public void actionPerformed(ActionEvent e) {
}

if(!jdbc.sendSizeAndNewUID(study.getPatientName(), size, study.getNewStudyInstanceUID())){
dataSent[0] = false;
dataSent = false;
}
if(remoteFileName != null){
if(!jdbc.sendFileName(study.getPatientName(), remoteFileName.toString())){
dataSent[0] = false;
dataSent = false;
}
}
}
remoteFileName = null;
jdbc.disconnect();
if(!dataSent[0]){
if(!dataSent){
stateExports.setText("<html><font color = 'red'>The report was not sent to the database</font></html>");
}else{
stateExports.setText("<html><font color = 'green'>The report was sent to the database</font></html>");
Expand Down

0 comments on commit bbc5905

Please sign in to comment.