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

interface

uses
    SynCommons,
  mORMot, Classes, Generics.Collections,

  Atributos, Constantes, DTO;

type
  TVIEW_TRIBUTACAO_ICMS_CUSTOM = class(TDTO)
  private
    FID: Integer;
    FDESCRICAO: RawUTF8;
    FORIGEM_MERCADORIA: RawUTF8;
    FUF_DESTINO: RawUTF8;
    FCFOP: Integer;
    FCSOSN_B: RawUTF8;
    FCST_B: RawUTF8;
    FMODALIDADE_BC: RawUTF8;
    FALIQUOTA: Double;
    FVALOR_PAUTA: Double;
    FVALOR_PRECO_MAXIMO: Double;
    FMVA: Double;
    FPORCENTO_BC: Double;
    FMODALIDADE_BC_ST: RawUTF8;
    FALIQUOTA_INTERNA_ST: Double;
    FALIQUOTA_INTERESTADUAL_ST: Double;
    FPORCENTO_BC_ST: Double;
    FALIQUOTA_ICMS_ST: Double;
    FVALOR_PAUTA_ST: Double;
    FVALOR_PRECO_MAXIMO_ST: Double;

  public 
    [TId('ID')]
    [TGeneratedValue(sAuto)]
    [TFormatter(ftZerosAEsquerda, taCenter)]
    property Id: Integer  read FID write FID;
	
  published
    [TColumn('DESCRICAO', 'Descricao', 450, [ldGrid, ldLookup, ldCombobox], False)]
    property Descricao: RawUTF8  read FDESCRICAO write FDESCRICAO;
    [TColumn('ORIGEM_MERCADORIA', 'Origem Mercadoria', 8, [ldGrid, ldLookup, ldCombobox], False)]
    property OrigemMercadoria: RawUTF8  read FORIGEM_MERCADORIA write FORIGEM_MERCADORIA;
    [TColumn('UF_DESTINO', 'Uf Destino', 16, [ldGrid, ldLookup, ldCombobox], False)]
    property UfDestino: RawUTF8  read FUF_DESTINO write FUF_DESTINO;
    [TColumn('CFOP', 'Cfop', 80, [ldGrid, ldLookup, ldCombobox], False)]
    [TFormatter(ftZerosAEsquerda, taCenter)]
    property Cfop: Integer  read FCFOP write FCFOP;
    [TColumn('CSOSN_B', 'Csosn B', 24, [ldGrid, ldLookup, ldCombobox], False)]
    property CsosnB: RawUTF8  read FCSOSN_B write FCSOSN_B;
    [TColumn('CST_B', 'Cst B', 16, [ldGrid, ldLookup, ldCombobox], False)]
    property CstB: RawUTF8  read FCST_B write FCST_B;
    [TColumn('MODALIDADE_BC', 'Modalidade Bc', 8, [ldGrid, ldLookup, ldCombobox], False)]
    property ModalidadeBc: RawUTF8  read FMODALIDADE_BC write FMODALIDADE_BC;
    [TColumn('ALIQUOTA', 'Aliquota', 168, [ldGrid, ldLookup, ldCombobox], False)]
    [TFormatter(ftFloatComSeparador, taRightJustify)]
    property Aliquota: Double  read FALIQUOTA write FALIQUOTA;
    [TColumn('VALOR_PAUTA', 'Valor Pauta', 168, [ldGrid, ldLookup, ldCombobox], False)]
    [TFormatter(ftFloatComSeparador, taRightJustify)]
    property ValorPauta: Double  read FVALOR_PAUTA write FVALOR_PAUTA;
    [TColumn('VALOR_PRECO_MAXIMO', 'Valor Preco Maximo', 168, [ldGrid, ldLookup, ldCombobox], False)]
    [TFormatter(ftFloatComSeparador, taRightJustify)]
    property ValorPrecoMaximo: Double  read FVALOR_PRECO_MAXIMO write FVALOR_PRECO_MAXIMO;
    [TColumn('MVA', 'Mva', 168, [ldGrid, ldLookup, ldCombobox], False)]
    [TFormatter(ftFloatComSeparador, taRightJustify)]
    property Mva: Double  read FMVA write FMVA;
    [TColumn('PORCENTO_BC', 'Porcento Bc', 168, [ldGrid, ldLookup, ldCombobox], False)]
    [TFormatter(ftFloatComSeparador, taRightJustify)]
    property PorcentoBc: Double  read FPORCENTO_BC write FPORCENTO_BC;
    [TColumn('MODALIDADE_BC_ST', 'Modalidade Bc St', 8, [ldGrid, ldLookup, ldCombobox], False)]
    property ModalidadeBcSt: RawUTF8  read FMODALIDADE_BC_ST write FMODALIDADE_BC_ST;
    [TColumn('ALIQUOTA_INTERNA_ST', 'Aliquota Interna St', 168, [ldGrid, ldLookup, ldCombobox], False)]
    [TFormatter(ftFloatComSeparador, taRightJustify)]
    property AliquotaInternaSt: Double  read FALIQUOTA_INTERNA_ST write FALIQUOTA_INTERNA_ST;
    [TColumn('ALIQUOTA_INTERESTADUAL_ST', 'Aliquota Interestadual St', 168, [ldGrid, ldLookup, ldCombobox], False)]
    [TFormatter(ftFloatComSeparador, taRightJustify)]
    property AliquotaInterestadualSt: Double  read FALIQUOTA_INTERESTADUAL_ST write FALIQUOTA_INTERESTADUAL_ST;
    [TColumn('PORCENTO_BC_ST', 'Porcento Bc St', 168, [ldGrid, ldLookup, ldCombobox], False)]
    [TFormatter(ftFloatComSeparador, taRightJustify)]
    property PorcentoBcSt: Double  read FPORCENTO_BC_ST write FPORCENTO_BC_ST;
    [TColumn('ALIQUOTA_ICMS_ST', 'Aliquota Icms St', 168, [ldGrid, ldLookup, ldCombobox], False)]
    [TFormatter(ftFloatComSeparador, taRightJustify)]
    property AliquotaIcmsSt: Double  read FALIQUOTA_ICMS_ST write FALIQUOTA_ICMS_ST;
    [TColumn('VALOR_PAUTA_ST', 'Valor Pauta St', 168, [ldGrid, ldLookup, ldCombobox], False)]
    [TFormatter(ftFloatComSeparador, taRightJustify)]
    property ValorPautaSt: Double  read FVALOR_PAUTA_ST write FVALOR_PAUTA_ST;
    [TColumn('VALOR_PRECO_MAXIMO_ST', 'Valor Preco Maximo St', 168, [ldGrid, ldLookup, ldCombobox], False)]
    [TFormatter(ftFloatComSeparador, taRightJustify)]
    property ValorPrecoMaximoSt: Double  read FVALOR_PRECO_MAXIMO_ST write FVALOR_PRECO_MAXIMO_ST;

  end;

implementation


end.
