{*******************************************************************************
Title: T2Ti ERP                                                                 
Description:  DTO  relacionado à tabela [NFE_DET_ESPECIFICO_VEICULO] 
                                                                                
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 NfeDetEspecificoVeiculoDTO;

interface

uses
    SynCommons,
  mORMot, Classes,

  Atributos, Constantes, DTO;

type
  TNfe_Det_Especifico_Veiculo = class(TDTO)
   
  private
    FPK: Integer;
    FID_NFE_DETALHE: Integer;
    FTIPO_OPERACAO: RawUTF8;
    FCHASSI: RawUTF8;
    FCOR: RawUTF8;
    FDESCRICAO_COR: RawUTF8;
    FPOTENCIA_MOTOR: RawUTF8;
    FCILINDRADAS: RawUTF8;
    FPESO_LIQUIDO: RawUTF8;
    FPESO_BRUTO: RawUTF8;
    FNUMERO_SERIE: RawUTF8;
    FTIPO_COMBUSTIVEL: RawUTF8;
    FNUMERO_MOTOR: RawUTF8;
    FCAPACIDADE_MAXIMA_TRACAO: RawUTF8;
    FDISTANCIA_EIXOS: RawUTF8;
    FANO_MODELO: RawUTF8;
    FANO_FABRICACAO: RawUTF8;
    FTIPO_PINTURA: RawUTF8;
    FTIPO_VEICULO: RawUTF8;
    FESPECIE_VEICULO: RawUTF8;
    FCONDICAO_VIN: RawUTF8;
    FCONDICAO_VEICULO: RawUTF8;
    FCODIGO_MARCA_MODELO: RawUTF8;
    FCODIGO_COR: RawUTF8;
    FLOTACAO: Integer;
    FRESTRICAO: RawUTF8;

    //Usado no lado cliente para controlar quais registros serão persistidos
    FPersiste: RawUTF8;

  public 
    [TId('ID')]
    [TGeneratedValue(sAuto)]
    [TFormatter(ftZerosAEsquerda, taCenter)]
    property PK: Integer  read FPK write FPK;
  
    [TColumn('PERSISTE', 'Persiste', 60, [], True)]
    property Persiste: RawUTF8  read FPersiste write FPersiste;
  
  published
    [TColumn('ID_NFE_DETALHE', 'Id Nfe Detalhe', 80, [ldGrid, ldLookup, ldCombobox], False)]
    [TFormatter(ftZerosAEsquerda, taCenter)]
    property IdNfeDetalhe: Integer  read FID_NFE_DETALHE write FID_NFE_DETALHE;
    [TColumn('TIPO_OPERACAO', 'Tipo Operacao', 8, [ldGrid, ldLookup, ldCombobox], False)]
    property TipoOperacao: RawUTF8  read FTIPO_OPERACAO write FTIPO_OPERACAO;
    [TColumn('CHASSI', 'Chassi', 136, [ldGrid, ldLookup, ldCombobox], False)]
    property Chassi: RawUTF8  read FCHASSI write FCHASSI;
    [TColumn('COR', 'Cor', 32, [ldGrid, ldLookup, ldCombobox], False)]
    property Cor: RawUTF8  read FCOR write FCOR;
    [TColumn('DESCRICAO_COR', 'Descricao Cor', 320, [ldGrid, ldLookup, ldCombobox], False)]
    property DescricaoCor: RawUTF8  read FDESCRICAO_COR write FDESCRICAO_COR;
    [TColumn('POTENCIA_MOTOR', 'Potencia Motor', 32, [ldGrid, ldLookup, ldCombobox], False)]
    property PotenciaMotor: RawUTF8  read FPOTENCIA_MOTOR write FPOTENCIA_MOTOR;
    [TColumn('CILINDRADAS', 'Cilindradas', 32, [ldGrid, ldLookup, ldCombobox], False)]
    property Cilindradas: RawUTF8  read FCILINDRADAS write FCILINDRADAS;
    [TColumn('PESO_LIQUIDO', 'Peso Liquido', 72, [ldGrid, ldLookup, ldCombobox], False)]
    property PesoLiquido: RawUTF8  read FPESO_LIQUIDO write FPESO_LIQUIDO;
    [TColumn('PESO_BRUTO', 'Peso Bruto', 72, [ldGrid, ldLookup, ldCombobox], False)]
    property PesoBruto: RawUTF8  read FPESO_BRUTO write FPESO_BRUTO;
    [TColumn('NUMERO_SERIE', 'Numero Serie', 72, [ldGrid, ldLookup, ldCombobox], False)]
    property NumeroSerie: RawUTF8  read FNUMERO_SERIE write FNUMERO_SERIE;
    [TColumn('TIPO_COMBUSTIVEL', 'Tipo Combustivel', 16, [ldGrid, ldLookup, ldCombobox], False)]
    property TipoCombustivel: RawUTF8  read FTIPO_COMBUSTIVEL write FTIPO_COMBUSTIVEL;
    [TColumn('NUMERO_MOTOR', 'Numero Motor', 168, [ldGrid, ldLookup, ldCombobox], False)]
    property NumeroMotor: RawUTF8  read FNUMERO_MOTOR write FNUMERO_MOTOR;
    [TColumn('CAPACIDADE_MAXIMA_TRACAO', 'Capacidade Maxima Tracao', 72, [ldGrid, ldLookup, ldCombobox], False)]
    property CapacidadeMaximaTracao: RawUTF8  read FCAPACIDADE_MAXIMA_TRACAO write FCAPACIDADE_MAXIMA_TRACAO;
    [TColumn('DISTANCIA_EIXOS', 'Distancia Eixos', 32, [ldGrid, ldLookup, ldCombobox], False)]
    property DistanciaEixos: RawUTF8  read FDISTANCIA_EIXOS write FDISTANCIA_EIXOS;
    [TColumn('ANO_MODELO', 'Ano Modelo', 32, [ldGrid, ldLookup, ldCombobox], False)]
    property AnoModelo: RawUTF8  read FANO_MODELO write FANO_MODELO;
    [TColumn('ANO_FABRICACAO', 'Ano Fabricacao', 32, [ldGrid, ldLookup, ldCombobox], False)]
    property AnoFabricacao: RawUTF8  read FANO_FABRICACAO write FANO_FABRICACAO;
    [TColumn('TIPO_PINTURA', 'Tipo Pintura', 8, [ldGrid, ldLookup, ldCombobox], False)]
    property TipoPintura: RawUTF8  read FTIPO_PINTURA write FTIPO_PINTURA;
    [TColumn('TIPO_VEICULO', 'Tipo Veiculo', 16, [ldGrid, ldLookup, ldCombobox], False)]
    property TipoVeiculo: RawUTF8  read FTIPO_VEICULO write FTIPO_VEICULO;
    [TColumn('ESPECIE_VEICULO', 'Especie Veiculo', 8, [ldGrid, ldLookup, ldCombobox], False)]
    property EspecieVeiculo: RawUTF8  read FESPECIE_VEICULO write FESPECIE_VEICULO;
    [TColumn('CONDICAO_VIN', 'Condicao Vin', 8, [ldGrid, ldLookup, ldCombobox], False)]
    property CondicaoVin: RawUTF8  read FCONDICAO_VIN write FCONDICAO_VIN;
    [TColumn('CONDICAO_VEICULO', 'Condicao Veiculo', 8, [ldGrid, ldLookup, ldCombobox], False)]
    property CondicaoVeiculo: RawUTF8  read FCONDICAO_VEICULO write FCONDICAO_VEICULO;
    [TColumn('CODIGO_MARCA_MODELO', 'Codigo Marca Modelo', 48, [ldGrid, ldLookup, ldCombobox], False)]
    property CodigoMarcaModelo: RawUTF8  read FCODIGO_MARCA_MODELO write FCODIGO_MARCA_MODELO;
    [TColumn('CODIGO_COR', 'Codigo Cor', 16, [ldGrid, ldLookup, ldCombobox], False)]
    property CodigoCor: RawUTF8  read FCODIGO_COR write FCODIGO_COR;
    [TColumn('LOTACAO', 'Lotacao', 80, [ldGrid, ldLookup, ldCombobox], False)]
    [TFormatter(ftZerosAEsquerda, taCenter)]
    property Lotacao: Integer  read FLOTACAO write FLOTACAO;
    [TColumn('RESTRICAO', 'Restricao', 8, [ldGrid, ldLookup, ldCombobox], False)]
    property Restricao: RawUTF8  read FRESTRICAO write FRESTRICAO;


  end;

implementation


end.
