{*******************************************************************************
Title: T2Ti ERP                                                                 
Description:  DTO  relacionado à tabela [NFE_CONFIGURACAO] 
                                                                                
The MIT License                                                                 
                                                                                
Copyright: Copyright (C) 2017 T2Ti.COM                                          
                                                                                
Permission is hereby granted, free of charge, to any person                     
obtaining a copy of this software and associated documentation                  
files (the "Software"), to deal in the Software without                         
restriction, including without limitation the rights to use,                    
copy, modify, merge, publish, distribute, sublicense, and/or sell               
copies of the Software, and to permit persons to whom the                       
Software is furnished to do so, subject to the following                        
conditions:                                                                     
                                                                                
The above copyright notice and this permission notice shall be                  
included in all copies or substantial portions of the Software.                 
                                                                                
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,                 
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES                 
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND                        
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT                     
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,                    
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING                    
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR                   
OTHER DEALINGS IN THE SOFTWARE.                                                 
                                                                                
       The author may be contacted at:                                          
           t2ti.com@gmail.com                                                   
                                                                                
@author Albert Eije (t2ti.com@gmail.com)                    
@version 1.0                                                                    
*******************************************************************************}
unit NfeConfiguracaoDTO;

interface

uses
    SynCommons,
  mORMot, Classes,

  Atributos, Constantes, DTO;

type
  TNFE_CONFIGURACAO = class(TDTO)
   
  private
    FPK: Integer;
    FID_EMPRESA: Integer;
    FCERTIFICADO_DIGITAL_SERIE: RawUTF8;
    FCERTIFICADO_DIGITAL_CAMINHO: RawUTF8;
    FCERTIFICADO_DIGITAL_SENHA: RawUTF8;
    FTIPO_EMISSAO: Integer;
    FFORMATO_IMPRESSAO_DANFE: Integer;
    FPROCESSO_EMISSAO: Integer;
    FVERSAO_PROCESSO_EMISSAO: RawUTF8;
    FCAMINHO_LOGOMARCA: RawUTF8;
    FSALVAR_XML: RawUTF8;
    FCAMINHO_SALVAR_XML: RawUTF8;
    FCAMINHO_SCHEMAS: RawUTF8;
    FCAMINHO_ARQUIVO_DANFE: RawUTF8;
    FCAMINHO_SALVAR_PDF: RawUTF8;
    FWEBSERVICE_UF: RawUTF8;
    FWEBSERVICE_AMBIENTE: Integer;
    FWEBSERVICE_PROXY_HOST: RawUTF8;
    FWEBSERVICE_PROXY_PORTA: Integer;
    FWEBSERVICE_PROXY_USUARIO: RawUTF8;
    FWEBSERVICE_PROXY_SENHA: RawUTF8;
    FWEBSERVICE_VISUALIZAR: RawUTF8;
    FEMAIL_SERVIDOR_SMTP: RawUTF8;
    FEMAIL_PORTA: Integer;
    FEMAIL_USUARIO: RawUTF8;
    FEMAIL_SENHA: RawUTF8;
    FEMAIL_ASSUNTO: RawUTF8;
    FEMAIL_AUTENTICA_SSL: RawUTF8;
    FEMAIL_TEXTO: RawUTF8;

  public 
    [TId('ID')]
    [TGeneratedValue(sAuto)]
    [TFormatter(ftZerosAEsquerda, taCenter)]
    property PK: Integer  read FPK write FPK;


  published
    [TColumn('ID_EMPRESA', 'Id Empresa', 80, [ldGrid, ldLookup, ldCombobox], False)]
    [TFormatter(ftZerosAEsquerda, taCenter)]
    property IdEmpresa: Integer  read FID_EMPRESA write FID_EMPRESA;
    [TColumn('CERTIFICADO_DIGITAL_SERIE', 'Certificado Digital Serie', 450, [ldGrid, ldLookup, ldCombobox], False)]
    property CertificadoDigitalSerie: RawUTF8  read FCERTIFICADO_DIGITAL_SERIE write FCERTIFICADO_DIGITAL_SERIE;
    [TColumn('CERTIFICADO_DIGITAL_CAMINHO', 'Certificado Digital Caminho', 450, [ldGrid, ldLookup, ldCombobox], False)]
    property CertificadoDigitalCaminho: RawUTF8  read FCERTIFICADO_DIGITAL_CAMINHO write FCERTIFICADO_DIGITAL_CAMINHO;
    [TColumn('CERTIFICADO_DIGITAL_SENHA', 'Certificado Digital Senha', 450, [ldGrid, ldLookup, ldCombobox], False)]
    property CertificadoDigitalSenha: RawUTF8  read FCERTIFICADO_DIGITAL_SENHA write FCERTIFICADO_DIGITAL_SENHA;
    [TColumn('TIPO_EMISSAO', 'Tipo Emissao', 80, [ldGrid, ldLookup, ldCombobox], False)]
    [TFormatter(ftZerosAEsquerda, taCenter)]
    property TipoEmissao: Integer  read FTIPO_EMISSAO write FTIPO_EMISSAO;
    [TColumn('FORMATO_IMPRESSAO_DANFE', 'Formato Impressao Danfe', 80, [ldGrid, ldLookup, ldCombobox], False)]
    [TFormatter(ftZerosAEsquerda, taCenter)]
    property FormatoImpressaoDanfe: Integer  read FFORMATO_IMPRESSAO_DANFE write FFORMATO_IMPRESSAO_DANFE;
    [TColumn('PROCESSO_EMISSAO', 'Processo Emissao', 80, [ldGrid, ldLookup, ldCombobox], False)]
    [TFormatter(ftZerosAEsquerda, taCenter)]
    property ProcessoEmissao: Integer  read FPROCESSO_EMISSAO write FPROCESSO_EMISSAO;
    [TColumn('VERSAO_PROCESSO_EMISSAO', 'Versao Processo Emissao', 160, [ldGrid, ldLookup, ldCombobox], False)]
    property VersaoProcessoEmissao: RawUTF8  read FVERSAO_PROCESSO_EMISSAO write FVERSAO_PROCESSO_EMISSAO;
    [TColumn('CAMINHO_LOGOMARCA', 'Caminho Logomarca', 450, [ldGrid, ldLookup, ldCombobox], False)]
    property CaminhoLogomarca: RawUTF8  read FCAMINHO_LOGOMARCA write FCAMINHO_LOGOMARCA;
    [TColumn('SALVAR_XML', 'Salvar Xml', 8, [ldGrid, ldLookup, ldCombobox], False)]
    property SalvarXml: RawUTF8  read FSALVAR_XML write FSALVAR_XML;
    [TColumn('CAMINHO_SALVAR_XML', 'Caminho Salvar Xml', 450, [ldGrid, ldLookup, ldCombobox], False)]
    property CaminhoSalvarXml: RawUTF8  read FCAMINHO_SALVAR_XML write FCAMINHO_SALVAR_XML;
    [TColumn('CAMINHO_SCHEMAS', 'Caminho Schemas', 450, [ldGrid, ldLookup, ldCombobox], False)]
    property CaminhoSchemas: RawUTF8  read FCAMINHO_SCHEMAS write FCAMINHO_SCHEMAS;
    [TColumn('CAMINHO_ARQUIVO_DANFE', 'Caminho Arquivo Danfe', 450, [ldGrid, ldLookup, ldCombobox], False)]
    property CaminhoArquivoDanfe: RawUTF8  read FCAMINHO_ARQUIVO_DANFE write FCAMINHO_ARQUIVO_DANFE;
    [TColumn('CAMINHO_SALVAR_PDF', 'Caminho Salvar Pdf', 450, [ldGrid, ldLookup, ldCombobox], False)]
    property CaminhoSalvarPdf: RawUTF8  read FCAMINHO_SALVAR_PDF write FCAMINHO_SALVAR_PDF;
    [TColumn('WEBSERVICE_UF', 'Webservice Uf', 16, [ldGrid, ldLookup, ldCombobox], False)]
    property WebserviceUf: RawUTF8  read FWEBSERVICE_UF write FWEBSERVICE_UF;
    [TColumn('WEBSERVICE_AMBIENTE', 'Webservice Ambiente', 80, [ldGrid, ldLookup, ldCombobox], False)]
    [TFormatter(ftZerosAEsquerda, taCenter)]
    property WebserviceAmbiente: Integer  read FWEBSERVICE_AMBIENTE write FWEBSERVICE_AMBIENTE;
    [TColumn('WEBSERVICE_PROXY_HOST', 'Webservice Proxy Host', 450, [ldGrid, ldLookup, ldCombobox], False)]
    property WebserviceProxyHost: RawUTF8  read FWEBSERVICE_PROXY_HOST write FWEBSERVICE_PROXY_HOST;
    [TColumn('WEBSERVICE_PROXY_PORTA', 'Webservice Proxy Porta', 80, [ldGrid, ldLookup, ldCombobox], False)]
    [TFormatter(ftZerosAEsquerda, taCenter)]
    property WebserviceProxyPorta: Integer  read FWEBSERVICE_PROXY_PORTA write FWEBSERVICE_PROXY_PORTA;
    [TColumn('WEBSERVICE_PROXY_USUARIO', 'Webservice Proxy Usuario', 450, [ldGrid, ldLookup, ldCombobox], False)]
    property WebserviceProxyUsuario: RawUTF8  read FWEBSERVICE_PROXY_USUARIO write FWEBSERVICE_PROXY_USUARIO;
    [TColumn('WEBSERVICE_PROXY_SENHA', 'Webservice Proxy Senha', 450, [ldGrid, ldLookup, ldCombobox], False)]
    property WebserviceProxySenha: RawUTF8  read FWEBSERVICE_PROXY_SENHA write FWEBSERVICE_PROXY_SENHA;
    [TColumn('WEBSERVICE_VISUALIZAR', 'Webservice Visualizar', 8, [ldGrid, ldLookup, ldCombobox], False)]
    property WebserviceVisualizar: RawUTF8  read FWEBSERVICE_VISUALIZAR write FWEBSERVICE_VISUALIZAR;
    [TColumn('EMAIL_SERVIDOR_SMTP', 'Email Servidor Smtp', 450, [ldGrid, ldLookup, ldCombobox], False)]
    property EmailServidorSmtp: RawUTF8  read FEMAIL_SERVIDOR_SMTP write FEMAIL_SERVIDOR_SMTP;
    [TColumn('EMAIL_PORTA', 'Email Porta', 80, [ldGrid, ldLookup, ldCombobox], False)]
    [TFormatter(ftZerosAEsquerda, taCenter)]
    property EmailPorta: Integer  read FEMAIL_PORTA write FEMAIL_PORTA;
    [TColumn('EMAIL_USUARIO', 'Email Usuario', 450, [ldGrid, ldLookup, ldCombobox], False)]
    property EmailUsuario: RawUTF8  read FEMAIL_USUARIO write FEMAIL_USUARIO;
    [TColumn('EMAIL_SENHA', 'Email Senha', 450, [ldGrid, ldLookup, ldCombobox], False)]
    property EmailSenha: RawUTF8  read FEMAIL_SENHA write FEMAIL_SENHA;
    [TColumn('EMAIL_ASSUNTO', 'Email Assunto', 450, [ldGrid, ldLookup, ldCombobox], False)]
    property EmailAssunto: RawUTF8  read FEMAIL_ASSUNTO write FEMAIL_ASSUNTO;
    [TColumn('EMAIL_AUTENTICA_SSL', 'Email Autentica Ssl', 8, [ldGrid, ldLookup, ldCombobox], False)]
    property EmailAutenticaSsl: RawUTF8  read FEMAIL_AUTENTICA_SSL write FEMAIL_AUTENTICA_SSL;
    [TColumn('EMAIL_TEXTO', 'Email Texto', 450, [ldGrid, ldLookup, ldCombobox], False)]
    property EmailTexto: RawUTF8  read FEMAIL_TEXTO write FEMAIL_TEXTO;

  end;

implementation


end.
