{*******************************************************************************
Title: T2Ti ERP                                                                 
Description:  DTO  relacionado à tabela [SINDICATO] 
                                                                                
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 2.0                                                                    
*******************************************************************************}
unit SindicatoDTO;

interface

uses
  Atributos, Classes, Constantes, Generics.Collections,

  SynCommons,
  mORMot;

type
  [TEntity]
  [TTable('SINDICATO')]
  TSindicato = class(TSQLRecord)
  private
    FPK: Integer;
    FNOME: RawUTF8;
    FCODIGO_BANCO: Integer;
    FCODIGO_AGENCIA: Integer;
    FCONTA_BANCO: RawUTF8;
    FCODIGO_CEDENTE: RawUTF8;
    FLOGRADOURO: RawUTF8;
    FNUMERO: RawUTF8;
    FBAIRRO: RawUTF8;
    FMUNICIPIO_IBGE: Integer;
    FUF: RawUTF8;
    FFONE1: RawUTF8;
    FFONE2: RawUTF8;
    FEMAIL: RawUTF8;
    FTIPO_SINDICATO: RawUTF8;
    FDATA_BASE: TDateTime;
    FPISO_SALARIAL: Extended;
    FCNPJ: RawUTF8;
    FCLASSIFICACAO_CONTABIL_CONTA: RawUTF8;

  public
    [TPK('ID', [ldGrid, ldLookup, ldComboBox])]
    [TGeneratedValue(sAuto)]
    [TFormatter(ftZerosAEsquerda, taCenter)]
    property PK: Integer  read FID write FID;
    [TColumn('NOME', 'Nome', 450, [ldGrid, ldLookup, ldCombobox], False)]
    property Nome: RawUTF8  read FNOME write FNOME;
    [TColumn('CODIGO_BANCO', 'Codigo Banco', 80, [ldGrid, ldLookup, ldCombobox], False)]
    [TFormatter(ftZerosAEsquerda, taCenter)]
    property CodigoBanco: Integer  read FCODIGO_BANCO write FCODIGO_BANCO;
    [TColumn('CODIGO_AGENCIA', 'Codigo Agencia', 80, [ldGrid, ldLookup, ldCombobox], False)]
    [TFormatter(ftZerosAEsquerda, taCenter)]
    property CodigoAgencia: Integer  read FCODIGO_AGENCIA write FCODIGO_AGENCIA;
    [TColumn('CONTA_BANCO', 'Conta Banco', 160, [ldGrid, ldLookup, ldCombobox], False)]
    property ContaBanco: RawUTF8  read FCONTA_BANCO write FCONTA_BANCO;
    [TColumn('CODIGO_CEDENTE', 'Codigo Cedente', 240, [ldGrid, ldLookup, ldCombobox], False)]
    property CodigoCedente: RawUTF8  read FCODIGO_CEDENTE write FCODIGO_CEDENTE;
    [TColumn('LOGRADOURO', 'Logradouro', 450, [ldGrid, ldLookup, ldCombobox], False)]
    property Logradouro: RawUTF8  read FLOGRADOURO write FLOGRADOURO;
    [TColumn('NUMERO', 'Numero', 80, [ldGrid, ldLookup, ldCombobox], False)]
    property Numero: RawUTF8  read FNUMERO write FNUMERO;
    [TColumn('BAIRRO', 'Bairro', 450, [ldGrid, ldLookup, ldCombobox], False)]
    property Bairro: RawUTF8  read FBAIRRO write FBAIRRO;
    [TColumn('MUNICIPIO_IBGE', 'Municipio Ibge', 80, [ldGrid, ldLookup, ldCombobox], False)]
    [TFormatter(ftZerosAEsquerda, taCenter)]
    property MunicipioIbge: Integer  read FMUNICIPIO_IBGE write FMUNICIPIO_IBGE;
    [TColumn('UF', 'Uf', 16, [ldGrid, ldLookup, ldCombobox], False)]
    property Uf: RawUTF8  read FUF write FUF;
    [TColumn('FONE1', 'Fone1', 112, [ldGrid, ldLookup, ldCombobox], False)]
    property Fone1: RawUTF8  read FFONE1 write FFONE1;
    [TColumn('FONE2', 'Fone2', 112, [ldGrid, ldLookup, ldCombobox], False)]
    property Fone2: RawUTF8  read FFONE2 write FFONE2;
    [TColumn('EMAIL', 'Email', 450, [ldGrid, ldLookup, ldCombobox], False)]
    property Email: RawUTF8  read FEMAIL write FEMAIL;
    [TColumn('TIPO_SINDICATO', 'Tipo Sindicato', 8, [ldGrid, ldLookup, ldCombobox], False)]
    property TipoSindicato: RawUTF8  read FTIPO_SINDICATO write FTIPO_SINDICATO;
    [TColumn('DATA_BASE', 'Data Base', 80, [ldGrid, ldLookup, ldCombobox], False)]
    property DataBase: TDateTime  read FDATA_BASE write FDATA_BASE;
    [TColumn('PISO_SALARIAL', 'Piso Salarial', 168, [ldGrid, ldLookup, ldCombobox], False)]
    [TFormatter(ftFloatComSeparador, taRightJustify)]
    property PisoSalarial: Extended  read FPISO_SALARIAL write FPISO_SALARIAL;
    [TColumn('CNPJ', 'Cnpj', 112, [ldGrid, ldLookup, ldCombobox], False)]
    [TFormatter(ftCnpj, taLeftJustify)]
    property Cnpj: RawUTF8  read FCNPJ write FCNPJ;
    [TColumn('CLASSIFICACAO_CONTABIL_CONTA', 'Classificacao Contabil Conta', 240, [ldGrid, ldLookup, ldCombobox], False)]
    property ClassificacaoContabilConta: RawUTF8  read FCLASSIFICACAO_CONTABIL_CONTA write FCLASSIFICACAO_CONTABIL_CONTA;

  end;

implementation


end.
