本文整理汇总了Python中pysped.xml_sped.XMLNFe.get_xml方法的典型用法代码示例。如果您正苦于以下问题:Python XMLNFe.get_xml方法的具体用法?Python XMLNFe.get_xml怎么用?Python XMLNFe.get_xml使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pysped.xml_sped.XMLNFe
的用法示例。
在下文中一共展示了XMLNFe.get_xml方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: get_xml
# 需要导入模块: from pysped.xml_sped import XMLNFe [as 别名]
# 或者: from pysped.xml_sped.XMLNFe import get_xml [as 别名]
def get_xml(self):
xml = XMLNFe.get_xml(self)
xml += ABERTURA
xml += '<nfse:RetornoCancelamentoNFSe xmlns:nfse="http://localhost:8080/WsNFe2/lote">'
xml += self.Cabecalho.xml
if len(self.NotasCanceladas):
xml += '<NotasCanceladas>'
for n in self.NotasCanceladas:
xml += n.xml
xml += '</NotasCanceladas>'
if len(self.Alertas):
xml += '<Alertas>'
for a in self.Alertas:
xml += a.xml
xml += '</Alertas>'
if len(self.Erros):
xml += '<Erros>'
for e in self.Erros:
xml += e.xml
xml += '</Erros>'
xml += '</nfse:RetornoCancelamentoNFSe>'
return xml
示例2: get_xml
# 需要导入模块: from pysped.xml_sped import XMLNFe [as 别名]
# 或者: from pysped.xml_sped.XMLNFe import get_xml [as 别名]
def get_xml(self):
xml = XMLNFe.get_xml(self)
xml += ABERTURA
xml += self.versao.xml
xml += self.versaoDados.xml
xml += '</cabecMsg>'
return xml
示例3: get_xml
# 需要导入模块: from pysped.xml_sped import XMLNFe [as 别名]
# 或者: from pysped.xml_sped.XMLNFe import get_xml [as 别名]
def get_xml(self):
xml = XMLNFe.get_xml(self)
if self.Id.xml:
xml += self.Id.xml
else:
xml += '<infEvento>'
xml += self.tpAmb.xml
xml += self.verAplic.xml
xml += self.cOrgao.xml
xml += self.cStat.xml
xml += self.xMotivo.xml
xml += self.chNFe.xml
xml += self.tpEvento.xml
xml += self.xEvento.xml
xml += self.nSeqEvento.xml
if self.CNPJDest.valor:
xml += self.CNPJDest.xml
elif self.CPFDest.valor:
xml += self.CPFDest.xml
xml += self.emailDest.xml
xml += self.dhRegEvento.xml
xml += self.nProt.xml
xml += '</infEvento>'
return xml
示例4: get_xml
# 需要导入模块: from pysped.xml_sped import XMLNFe [as 别名]
# 或者: from pysped.xml_sped.XMLNFe import get_xml [as 别名]
def get_xml(self):
xml = XMLNFe.get_xml(self)
xml += ABERTURA
xml += '<nfse:RetornoConsultaLote xmlns:nfse="http://localhost:8080/WsNFe2/lote">'
xml += self.Cabecalho.xml
if len(self.Alertas):
xml += '<Alertas>'
for a in self.Alertas:
xml += a.xml
xml += '</Alertas>'
if len(self.Erros):
xml += '<Erros>'
for e in self.Erros:
xml += e.xml
xml += '</Erros>'
if len(self.ListaNFSe):
xml += '<ListaNFSe>'
for c in self.ListaNFSe:
xml += c.xml
xml += '</ListaNFSe>'
xml += '</nfse:RetornoConsultaLote>'
return xml
示例5: get_xml
# 需要导入模块: from pysped.xml_sped import XMLNFe [as 别名]
# 或者: from pysped.xml_sped.XMLNFe import get_xml [as 别名]
def get_xml(self):
xml = XMLNFe.get_xml(self)
xml += '<nfeCabecMsg xmlns="http://www.portalfiscal.inf.br/nfe/wsdl/' + self.webservice + '">'
xml += self.cUF.xml
xml += self.versaoDados.xml
xml += '</nfeCabecMsg>'
return xml
示例6: get_xml
# 需要导入模块: from pysped.xml_sped import XMLNFe [as 别名]
# 或者: from pysped.xml_sped.XMLNFe import get_xml [as 别名]
def get_xml(self):
xml = XMLNFe.get_xml(self)
xml += ABERTURA
xml += '<nfse:RetornoConsultaSeqRps xmlns:nfse="http://localhost:8080/WsNFe2/lote" xmlns:tipos="http://localhost:8080/WsNFe2/tp" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://localhost:8080/WsNFe2/lote http://localhost:8080/WsNFe2/xsd/ConsultaSeqRps.xsd">'
xml += self.Cabecalho.xml
xml += '</nfse:RetornoConsultaSeqRps>'
return xml
示例7: get_xml
# 需要导入模块: from pysped.xml_sped import XMLNFe [as 别名]
# 或者: from pysped.xml_sped.XMLNFe import get_xml [as 别名]
def get_xml(self):
xml = XMLNFe.get_xml(self)
xml += ABERTURA
xml += self.versao.xml
xml += self.infCons.xml
xml += '</ConsCad>'
return xml
示例8: get_xml
# 需要导入模块: from pysped.xml_sped import XMLNFe [as 别名]
# 或者: from pysped.xml_sped.XMLNFe import get_xml [as 别名]
def get_xml(self):
xml = XMLNFe.get_xml(self)
xml += self.versao.xml
xml += self.descEvento.xml
xml += self.xCorrecao.xml
xml += self.xCondUso.xml
xml += '</detEvento>'
return xml
示例9: get_xml
# 需要导入模块: from pysped.xml_sped import XMLNFe [as 别名]
# 或者: from pysped.xml_sped.XMLNFe import get_xml [as 别名]
def get_xml(self):
xml = XMLNFe.get_xml(self)
xml += ABERTURA
xml += self.versao.xml
xml += self.cancNFe.xml.replace(ABERTURA, '')
xml += self.retCancNFe.xml.replace(ABERTURA, '')
xml += '</procCancNFe>'
return xml
示例10: get_xml
# 需要导入模块: from pysped.xml_sped import XMLNFe [as 别名]
# 或者: from pysped.xml_sped.XMLNFe import get_xml [as 别名]
def get_xml(self):
xml = XMLNFe.get_xml(self)
xml += ABERTURA
xml += self.versao.xml
xml += self.NFe.xml.replace(ABERTURA, '')
xml += self.protNFe.xml.replace(ABERTURA, '')
xml += '</nfeProc>'
return xml
示例11: get_xml
# 需要导入模块: from pysped.xml_sped import XMLNFe [as 别名]
# 或者: from pysped.xml_sped.XMLNFe import get_xml [as 别名]
def get_xml(self):
xml = XMLNFe.get_xml(self)
xml += self.versao.xml
xml += self.descEvento.xml
xml += self.nProt.xml
xml += self.xJust.xml
xml += '</detEvento>'
return xml
示例12: get_xml
# 需要导入模块: from pysped.xml_sped import XMLNFe [as 别名]
# 或者: from pysped.xml_sped.XMLNFe import get_xml [as 别名]
def get_xml(self):
xml = XMLNFe.get_xml(self)
xml += ABERTURA
xml += self.versao.xml
xml += self.inutCTe.xml.replace(ABERTURA, '')
xml += self.retInutCTe.xml.replace(ABERTURA, '')
xml += '</procInutCTe>'
return xml
示例13: get_xml
# 需要导入模块: from pysped.xml_sped import XMLNFe [as 别名]
# 或者: from pysped.xml_sped.XMLNFe import get_xml [as 别名]
def get_xml(self):
xml = XMLNFe.get_xml(self)
xml += self.NSU.xml
xml += self.schema.xml
xml += self.base64Binary.xml
xml += '</docZip>'
return xml
示例14: get_xml
# 需要导入模块: from pysped.xml_sped import XMLNFe [as 别名]
# 或者: from pysped.xml_sped.XMLNFe import get_xml [as 别名]
def get_xml(self):
xml = XMLNFe.get_xml(self)
xml += ABERTURA
xml += self.versao.xml
xml += self.tpAmb.xml
xml += self.xServ.xml
xml += self.chNFe.xml
xml += '</consSitCTe>'
return xml
示例15: get_xml
# 需要导入模块: from pysped.xml_sped import XMLNFe [as 别名]
# 或者: from pysped.xml_sped.XMLNFe import get_xml [as 别名]
def get_xml(self):
xml = XMLNFe.get_xml(self)
xml += ABERTURA
xml += self.versao.xml
xml += self.tpAmb.xml
xml += self.cUF.xml
xml += self.xServ.xml
xml += "</consStatServCte>"
return xml