if (container.getObject() instanceof PartnerClass) {
String defaultFileName = "partner";
boolean selected = initFileChooser("Export", defaultFileName);
if (selected) {
RealCIXFile realCIXFile = PartnerClass.exportPartnerCIXFile(container.getCurrentRow(), container.banks, container.address);
String fileName = fileChooser.getSelectedFile().getAbsolutePath();
File file = realCIXFile.exportFile(fileName);
StringBuffer sb = new StringBuffer(TxtManager.getTxt("INFORMATION.EXPORTPART1"));
String ns = ObjectUtil.findNewCell(container.getCurrentRow(), "P", "NS").getColumnValue().toString();
String p = ObjectUtil.findNewCell(container.getCurrentRow(), "P", "P").getColumnValue().toString();
sb.append(ns + ":" + p);
sb.append(TxtManager.getTxt("INFORMATION.EXPORTPART2"));
sb.append(file.getAbsolutePath() + " . ");
DialogManager.showMessageDialog(container, sb.toString());
saveObjectToDB();
container.getContainer().updateTable();
container.getContainer().setEnabled(true);
container.dispose();
}
} else if (container.getObject() instanceof CorrespondenceClass) {
String defaultFileName = "corr";
boolean selected = initFileChooser("Export", defaultFileName);
if (selected) {
RealCIXFile realCIXFile = CorrespondenceClass.exportCorrespondenceCIXFile(container.getCurrentRow());
//String fileName = fileChooser.getSelectedFile().getName();
String fileName = fileChooser.getSelectedFile().getAbsolutePath();
File file = realCIXFile.exportFile(fileName);
StringBuffer sb = new StringBuffer(TxtManager.getTxt("INFORMATION.EXPORT.CORRESONDENCE1"));
sb.append(file.getAbsolutePath() + " ");
sb.append(TxtManager.getTxt("INFORMATION.EXPORT.CORRESONDENCE2"));
String ns = ObjectUtil.findNewCell(container.getCurrentRow(), "T", "NS").getColumnValue().toString();
String p = ObjectUtil.findNewCell(container.getCurrentRow(), "T", "P").getColumnValue().toString();