Package org.brerp.sped.cte.util
Class CTeUtil
java.lang.Object
org.brerp.sped.cte.util.CTeUtil
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Filestatic Filestatic br.com.swconsultoria.cte.schema_400.procCTe.TProtCTegeraRodapDistribuicao(String chCTe, String nProt, String tpAmb, String dhRecbto, String digVal, String cStat, String xMotivo, String verAplic) Rodapé padrão Distribuiçãostatic FileGet Attachmentstatic StringgetCTeStatus(String status) static Stringstatic net.sf.jasperreports.engine.JasperPrintCria o JasperPrint a Partir de um XML.getParametersDacte(MCTECTe cte, File jasper) Preenche os Parâmetros da DANFe Frente msgVersaoTeste PreImpresso msgPrevisualizacaostatic Filestatic StringprintDACTe(List<net.sf.jasperreports.engine.JasperPrint> jasperPrintList, PrintInfo printInfo) static StringprintDACTe(net.sf.jasperreports.engine.JasperPrint jasperPrint, PrintInfo printInfo) static voidupdateAttach(MCTECTe cte, File xml) update Attachment
-
Field Details
-
DACTe_PATH
- See Also:
-
EXT_DIST_EVENTO
- See Also:
-
CTeReference
public static final int CTeReferenceReference CTeStatus- See Also:
-
LBR_COUNTRYCODE_Brasil
public static final int LBR_COUNTRYCODE_Brasil- See Also:
-
-
Constructor Details
-
CTeUtil
public CTeUtil()
-
-
Method Details
-
getAttachmentEntryFile
Get Attachment- Parameters:
entry-- Returns:
-
getJasperDACTeTpImpressao
-
getJasperPrint
public static net.sf.jasperreports.engine.JasperPrint getJasperPrint(Map<String, Object> parameters, File xmlCTe, File jasperFile) throws net.sf.jasperreports.engine.JRException, AdempiereException, IOExceptionCria o JasperPrint a Partir de um XML.- Parameters:
parameters-xmlCTe-jasperFile-- Returns:
- Throws:
net.sf.jasperreports.engine.JRExceptionAdempiereExceptionIOException
-
printDACTe
public static String printDACTe(net.sf.jasperreports.engine.JasperPrint jasperPrint, PrintInfo printInfo) throws IOException, net.sf.jasperreports.engine.JRException - Throws:
IOExceptionnet.sf.jasperreports.engine.JRException
-
printDACTe
public static String printDACTe(List<net.sf.jasperreports.engine.JasperPrint> jasperPrintList, PrintInfo printInfo) throws IOException, net.sf.jasperreports.engine.JRException - Throws:
IOExceptionnet.sf.jasperreports.engine.JRException
-
generateDistribution
- Throws:
Exception
-
geraRodapDistribuicao
public static br.com.swconsultoria.cte.schema_400.procCTe.TProtCTe geraRodapDistribuicao(String chCTe, String nProt, String tpAmb, String dhRecbto, String digVal, String cStat, String xMotivo, String verAplic) Rodapé padrão Distribuição- Parameters:
chCTe-nProt-tpAmb-dhRecbto-digVal-cStat-xMotivo-- Returns:
- XML
-
getCTeStatus
-
updateAttach
update Attachment- Parameters:
cte-xml-
-
genDACTe
- Throws:
Exception
-
getPDF
public static File getPDF(net.sf.jasperreports.engine.JasperPrint jasperPrint, String fileName) throws IOException, net.sf.jasperreports.engine.JRException - Throws:
IOExceptionnet.sf.jasperreports.engine.JRException
-
getParametersDacte
Preenche os Parâmetros da DANFe Frente msgVersaoTeste PreImpresso msgPrevisualizacao- Returns:
-