fixes bug #7312
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@54555 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
11b992fc53
commit
7a14096380
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue