leonardo 2016-04-04 13:19:32 +00:00
parent 11b992fc53
commit 7a14096380
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ public class RelatorioArquivoBGMController extends MyGenericForwardComposer {
con = dataSource.getConnection();
while (cal.before(cf)) {
String fileName = System.getProperty("jboss.server.log.dir") + File.separator + "BGM-" + cal.get(Calendar.YEAR) + "" + DespesaReceita.lpad(Integer.toString(cal.get(Calendar.MONTH) + 1), "0", 2) + "" + DespesaReceita.lpad(Integer.toString(cal.get(Calendar.DAY_OF_MONTH)), "0", 2) + ".txt";
String fileName = System.getProperty("jboss.server.log.dir") + File.separator + "BGM_" + cmbEmpresa.getSelectedItem() == null ? "" : ((Empresa)cmbEmpresa.getSelectedItem().getValue()).getEmpresaId() + "-" + cal.get(Calendar.YEAR) + "" + DespesaReceita.lpad(Integer.toString(cal.get(Calendar.MONTH) + 1), "0", 2) + "" + DespesaReceita.lpad(Integer.toString(cal.get(Calendar.DAY_OF_MONTH)), "0", 2) + ".txt";
File file = new File(fileName);
Totalbus totalbus = new Totalbus(con);