当前位置: 首页>>代码示例>>Python>>正文


Python XMLNFe.get_xml方法代码示例

本文整理汇总了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
开发者ID:HostCERT,项目名称:PySPED,代码行数:34,代码来源:retornocancelamentonfse_100.py

示例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
开发者ID:Anferi,项目名称:PySPED,代码行数:9,代码来源:soap_100.py

示例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
开发者ID:HostCERT,项目名称:PySPED,代码行数:30,代码来源:eventonfe_100.py

示例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
开发者ID:HostCERT,项目名称:PySPED,代码行数:35,代码来源:retornoconsultalote_100.py

示例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
开发者ID:HostCERT,项目名称:PySPED,代码行数:9,代码来源:soap_200.py

示例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
开发者ID:HostCERT,项目名称:PySPED,代码行数:9,代码来源:retornoconsultanfserps_100.py

示例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
开发者ID:Anferi,项目名称:PySPED,代码行数:9,代码来源:conscad_101.py

示例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
开发者ID:HostCERT,项目名称:PySPED,代码行数:10,代码来源:evtccenfe_100.py

示例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
开发者ID:Anferi,项目名称:PySPED,代码行数:10,代码来源:cancnfe_107.py

示例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
开发者ID:Anferi,项目名称:PySPED,代码行数:10,代码来源:consrecinfe_110.py

示例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
开发者ID:arthur-debert,项目名称:PySPED,代码行数:10,代码来源:evtcancnfe_100.py

示例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
开发者ID:Anferi,项目名称:PySPED,代码行数:10,代码来源:inutcte_104.py

示例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
开发者ID:odoo-brazil,项目名称:PySPED,代码行数:11,代码来源:distdfeint_100.py

示例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
开发者ID:HostCERT,项目名称:PySPED,代码行数:11,代码来源:conssitcte_104.py

示例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
开发者ID:joselobinho,项目名称:PySPED,代码行数:11,代码来源:consstatserv_104.py


注:本文中的pysped.xml_sped.XMLNFe.get_xml方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。