Class: ArquivoEmpregadoAfastamentoTermino
- Inherits:
-
Object
- Object
- ArquivoEmpregadoAfastamentoTermino
show all
- Includes:
- ArquivoData
- Defined in:
- lib/odorico/arquivo_empregado_afastamento_termino.rb
Constant Summary
collapse
- ATRIBUTOS =
{
nr_recibo_evento_original: { key: 'NrReciboEventoOriginal', type: Types::String },
cpf: { key: 'ESX_CPF', type: Types::String },
matricula: { key: 'ESX_MATRICULA', type: Types::String },
cod_motivo_afastamento_antigo: { key: 'IniAfastamento_CodMotivoAfastamento',
type: Types::MotivosAfastamento.optional },
codigo_motivo: { key: 'CodigoMotivo', type: Types::MotivosAfastamento.optional },
codigo_motivo_retificacao: { key: 'CodMotivoAfastamentoRetif', type: Types::String.optional },
data_inicio_afastamento: { key: 'ESX_INICIO', type: Types::AnoMesDia },
observacao_inicio_de_afastamento: { key: 'IniAfastamento_Observacao', type: Types::String.optional },
mesmo_motivo: { key: 'IniAfastamento_InfoMesmoMotivo', type: Types::SNBool.optional },
data_termino_afastamento: { key: 'ESX_TERMINO', type: Types::AnoMesDia },
inicio_termino_enviados_juntos: { key: 'DataTerminoAfastamentoInformada', type: Types::TrueFalseBool.optional },
descricao_proc_emi: { key: 'DescricaoProcEmi', type: Types::String.optional }
}.freeze
- ATRIBUTOS_NAO_SUPORTADOS =
{}.freeze
- ATRIBUTOS_DESCARTADOS =
{
'Tipo de acidente de trĂ¢nsito': %w[
IniAfastamento_TipoAcidenteTransito
]
}.freeze
- ATRIBUTOS_DOS_ATESTADOS =
(0..8).flat_map do |indice|
[
"IniAfastamento_ListaInfoAtestado_#{indice}_CodigoCID",
"IniAfastamento_ListaInfoAtestado_#{indice}_QuantidadeDiasAfastados",
"IniAfastamento_ListaInfoAtestado_#{indice}_Emitente_NomeEmitente",
"IniAfastamento_ListaInfoAtestado_#{indice}_Emitente_IdOrgaoClasse",
"IniAfastamento_ListaInfoAtestado_#{indice}_Emitente_NumeroOrgaoClasse",
"IniAfastamento_ListaInfoAtestado_#{indice}_Emitente_UFOrgaoClasse",
"IniAfastamento_ListaInfoAtestado_#{indice}_Emitente_DescricaoOrgaoClasse"
]
end.freeze
- ATRIBUTOS_IGNORADOS =
ATRIBUTOS_DOS_ATESTADOS + %w[
IdEventoXml
ExibirBotoes
IniAfastamento_CodMotivoAfastamento_TEXT
CheckPreencherAcidenteTransito
checkbox_preencher_grupo0
VerProc
IdContrato
IndicadorRetificacao
PreencherCID
PreencherAcidenteTransito
PreencherEmpregadoCedido
PreencherMandatoSindical
SomenteLeitura
UrlRetorno
ContratoSemVinculo
PreencherDataFimAfastamento
ESX_DATAADMISSAO
ESX_SEMVINCULO
DesejaIncluirInfoAtestado
RequestVerificationToken
TipoEventoCadastro
IdEventoAfastamento
CodigoMotivo
Motivo
DataInicio
DataFim
IniAfastamento_DataInicioAfastamento
FimAfastamento_DataTerminoAfastamento
IniAfastamento_TipoAcidenteTransito_TEXT
DataLimitePeriodoAquis
RegraFeriasCategoria
PreencherMandatoEletivo
IdEvento
].freeze
Method Summary
#alertas, #atributos, #erros, #processar