Exportação Fiscal : ECF e RMD (issue 8120)
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@64951 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
83e271d08d
commit
23e835bdaa
|
@ -0,0 +1,39 @@
|
||||||
|
package com.rjconsultores.tests;
|
||||||
|
|
||||||
|
import java.io.BufferedReader;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.io.InputStream;
|
||||||
|
import java.io.InputStreamReader;
|
||||||
|
|
||||||
|
import org.junit.Test;
|
||||||
|
|
||||||
|
public class GerarMapeamentoImpressora {
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test() throws IOException {
|
||||||
|
System.out.println("***");
|
||||||
|
|
||||||
|
InputStream in = this.getClass().getResourceAsStream("/com/rjconsultores/tests/impressoras.csv");
|
||||||
|
BufferedReader br = new BufferedReader(new InputStreamReader(in));
|
||||||
|
|
||||||
|
String line = "";
|
||||||
|
|
||||||
|
while ((line = br.readLine()) != null) {
|
||||||
|
String[] info = line.split(";");
|
||||||
|
|
||||||
|
String estado = info[0];
|
||||||
|
String serie = info[1];
|
||||||
|
String mapeamento = info[2];
|
||||||
|
|
||||||
|
System.out.println("update FISCAL_IMPRESSORA set NUMEROIDENTIFICACAO = '" + mapeamento + "' where NUMSERIE20 = '" + serie + "';");
|
||||||
|
// System.out.println("insert into tmp_map values ('" + estado + "','" + serie + "','" + mapeamento + "');");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (br != null) {
|
||||||
|
br.close();
|
||||||
|
}
|
||||||
|
|
||||||
|
System.out.println("***");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue