Class MdfeProc
MDFe Processado + Protocolo de autorização
Implements
Inherited Members
Namespace: Unimake.Business.DFe.Xml.MDFe
Assembly: Unimake.Business.DFe.dll
Syntax
[Serializable]
[XmlRoot("mdfeProc", Namespace = "http://www.portalfiscal.inf.br/mdfe", IsNullable = false)]
public class MdfeProc : XMLBase, IXmlSerializable
Properties
DhConexao
Data e hora da conexão.
Declaration
[XmlIgnore]
public DateTimeOffset DhConexao { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTimeOffset |
DhConexaoField
Propriedade auxiliar para serialização/desserialização do XML (Utilize sempre a propriedade "DhConexao" para atribuir ou resgatar o valor)
Declaration
[XmlAttribute("dhConexao")]
public string DhConexaoField { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
IpTransmissor
Endereço IP do transmissor.
Declaration
[XmlAttribute("ipTransmissor")]
public string IpTransmissor { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
MDFe
Manifesto Eletrônico de Documentos Fiscais (MDFe).
Declaration
[XmlElement("MDFe")]
public MDFe MDFe { get; set; }
Property Value
| Type | Description |
|---|---|
| MDFe |
NPortaCon
Número da porta de conexão.
Declaration
[XmlAttribute("nPortaCon")]
public int NPortaCon { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
NomeArquivoDistribuicao
Nome do arquivo de distribuição.
Declaration
[XmlIgnore]
public string NomeArquivoDistribuicao { get; }
Property Value
| Type | Description |
|---|---|
| string |
ProtMDFe
Protocolo de autorização do MDFe.
Declaration
[XmlElement("protMDFe")]
public ProtMDFe ProtMDFe { get; set; }
Property Value
| Type | Description |
|---|---|
| ProtMDFe |
Versao
Versão do leiaute.
Declaration
[XmlAttribute(AttributeName = "versao", DataType = "token")]
public string Versao { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
GerarXML()
Gera o XML do objeto MdfeProc.
Declaration
public override XmlDocument GerarXML()
Returns
| Type | Description |
|---|---|
| XmlDocument | XmlDocument contendo o XML gerado. |
Overrides
LoadFromFile(string)
Deserializar o XML no objeto MdfeProc.
Declaration
public MdfeProc LoadFromFile(string filename)
Parameters
| Type | Name | Description |
|---|---|---|
| string | filename | Localização do arquivo XML de distribuição do MDFe |
Returns
| Type | Description |
|---|---|
| MdfeProc | Objeto do XML de distribuição do MDFe |
LoadFromXML(string)
Desserializar a string do XML MdfeProc no objeto MdfeProc
Declaration
public MdfeProc LoadFromXML(string xml)
Parameters
| Type | Name | Description |
|---|---|---|
| string | xml | string do XML MdfeProc |
Returns
| Type | Description |
|---|---|
| MdfeProc | Objeto da MdfeProc |