Class CteProc
Estrutura de distribuição de CT-e composto pelo CT-e e respectivo protocolo de autorização de uso.
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Unimake.Business.DFe.Xml.CTe
Assembly: Unimake.Business.DFe.dll
Syntax
[Serializable]
public class CteProc : XMLBase, IXmlSerializable
Properties
CTe
Dados do CT-e.
Declaration
public CTe CTe { get; set; }
Property Value
Type | Description |
---|---|
CTe |
DhConexao
Data e hora de conexão.
Declaration
public DateTimeOffset DhConexao { get; set; }
Property Value
Type | Description |
---|---|
System.DateTimeOffset |
DhConexaoField
Data e hora de conexão (campo para serialização XML).
Declaration
public string DhConexaoField { get; set; }
Property Value
Type | Description |
---|---|
System.String |
IpTransmissor
IP do transmissor.
Declaration
public string IpTransmissor { get; set; }
Property Value
Type | Description |
---|---|
System.String |
NomeArquivoDistribuicao
Nome do arquivo de distribuição
Declaration
public string NomeArquivoDistribuicao { get; }
Property Value
Type | Description |
---|---|
System.String |
NPortaCon
Porta de conexão.
Declaration
public int NPortaCon { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
ProtCTe
Protocolo de autorização do CT-e.
Declaration
public ProtCTe ProtCTe { get; set; }
Property Value
Type | Description |
---|---|
ProtCTe |
Versao
Versão do leiaute.
Declaration
public string Versao { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
GerarXML()
Declaration
public override XmlDocument GerarXML()
Returns
Type | Description |
---|---|
System.Xml.XmlDocument |
Overrides
LoadFromFile(String)
Deserializar o arquivo XML no objeto CteProc
Declaration
public CteProc LoadFromFile(string filename)
Parameters
Type | Name | Description |
---|---|---|
System.String | filename | Localização do arquivo XML de distribuição do CTe |
Returns
Type | Description |
---|---|
CteProc | Objeto do XML de distribuição do CTe |
LoadFromXML(String)
Desserializar a string do XML CteProc no objeto CteProc
Declaration
public CteProc LoadFromXML(string xml)
Parameters
Type | Name | Description |
---|---|---|
System.String | xml | string do XML NfeProc |
Returns
Type | Description |
---|---|
CteProc | Objeto da NfeProc |
ShouldSerializeDhConexaoField()
Declaration
public bool ShouldSerializeDhConexaoField()
Returns
Type | Description |
---|---|
System.Boolean |
ShouldSerializeIpTransmissor()
Declaration
public bool ShouldSerializeIpTransmissor()
Returns
Type | Description |
---|---|
System.Boolean |
ShouldSerializeNPortaCon()
Declaration
public bool ShouldSerializeNPortaCon()
Returns
Type | Description |
---|---|
System.Boolean |