this.getColMain().add(btnPrint);
}
protected void printDunnings() {
if ((this.getDunningWizard().getCreatedDunnings()!=null) && (this.getDunningWizard().getCreatedDunnings().size()>0)) {
final DunningsPrinter dunningsPrinter = new DunningsPrinter(this.getDunningWizard().getCreatedDunnings(),ClientGlobals.getUser(), ClientGlobals.getCompany());
final FmJbsReportOptions fmReportOptions = new FmJbsReportOptions("dunning");
fmReportOptions.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
if (arg0.getActionCommand().equals(JbsDialogWindowOKCancel.ACTION_OK)) {
dunningsPrinter.setPageTemplate(fmReportOptions.getSelectedPageTemplate());
dunningsPrinter.setReportTemplate(fmReportOptions.getSelectedReportTemplate());
doPrintDunnings(dunningsPrinter);
}
}
});
fmReportOptions.showForm();