Copyright © Unimake Software
Generated with DocFX

Search Results for

    Class Format

    Formatar/Definir máscara de valores

    Inheritance
    System.Object
    Format
    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.Utility
    Assembly: Unimake.Business.DFe.dll
    Syntax
    public static class Format

    Methods

    ChaveDFe(String)

    Formatar a string da chave da NFe, MDFe, CTe, CTeOS em um formato com uma máscara

    Declaration
    public static string ChaveDFe(string chave)
    Parameters
    Type Name Description
    System.String chave
    Returns
    Type Description
    System.String

    Chave formatada, com uma mascara

    Examples

    var chave = "35220100000000000100580020000004351000005350"; MessageBox.Show(Format.ChaveDFe(chave)); //Resultado será: 35-2201-00000000000100-58-002-000000435-1-00000535-0

    ChaveNF3eDFe(String)

    Formatar a string da chave da NF3e em um formato com uma máscara

    Declaration
    public static string ChaveNF3eDFe(string chave)
    Parameters
    Type Name Description
    System.String chave
    Returns
    Type Description
    System.String

    Chave formatada, com uma mascara

    Examples

    var chave = "35220100000000000100580020000004351000005350"; MessageBox.Show(Format.ChaveDFe(chave)); //Resultado será: 35-2201-00000000000100-58-002-000000435-1-0-0000535-0

    ChaveNFComDFe(String)

    Formatar a string da chave da NFCom em um formato com uma máscara

    Declaration
    public static string ChaveNFComDFe(string chave)
    Parameters
    Type Name Description
    System.String chave
    Returns
    Type Description
    System.String

    Chave formatada, com uma mascara

    Examples

    var chave = "35220100000000000100580020000004351000005350"; MessageBox.Show(Format.ChaveDFe(chave)); //Resultado será: 35-2201-00000000000100-58-002-000000435-1-0-0000535-0