OpenConcerto

Dépôt officiel du code source de l'ERP OpenConcerto
sonarqube

svn://code.openconcerto.org/openconcerto

Rev

Rev 177 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 177 Rev 180
Line 205... Line 205...
205
            final String newPath = fileChooser.getSelectedFile().getAbsolutePath();
205
            final String newPath = fileChooser.getSelectedFile().getAbsolutePath();
206
            sddMsgPrefs.put(XML_LOCATION_PREF_KEY, newPath);
206
            sddMsgPrefs.put(XML_LOCATION_PREF_KEY, newPath);
207
            final File directDebitDir = new File(newPath);
207
            final File directDebitDir = new File(newPath);
208
            try {
208
            try {
209
                for (final SQLRowAccessor messageRow : messages) {
209
                for (final SQLRowAccessor messageRow : messages) {
210
                    FileUtils.write(messageRow.getString("XML"), new File(directDebitDir, messageRow.getString("MessageIdentification") + ".xml"), StringUtils.UTF8, false);
210
                    FileUtils.writeUTF8(messageRow.getString("XML"), new File(directDebitDir, messageRow.getString("MessageIdentification") + ".xml"));
211
                }
211
                }
212
            } catch (IOException exn) {
212
            } catch (IOException exn) {
213
                ExceptionHandler.handle(comp, "Impossible d'exporter", exn);
213
                ExceptionHandler.handle(comp, "Impossible d'exporter", exn);
214
            }
214
            }
215
        }
215
        }
Line 420... Line 420...
420
        public final int getIncludedInvoicesCount() {
420
        public final int getIncludedInvoicesCount() {
421
            return this.invoiceCount;
421
            return this.invoiceCount;
422
        }
422
        }
423
 
423
 
424
        public SQLTable getTable() {
424
        public SQLTable getTable() {
425
            return table;
425
            return this.table;
426
        }
426
        }
427
 
427
 
428
        @Override
428
        @Override
429
        public String toString() {
429
        public String toString() {
430
            return this.getClass().getSimpleName() + ": of the " + this.passedIDs.size() + " passed, " + this.withDDWithoutMessage.size() + " needed a SDD message, of those "
430
            return this.getClass().getSimpleName() + ": of the " + this.passedIDs.size() + " passed, " + this.withDDWithoutMessage.size() + " needed a SDD message, of those "