Tabela CRE - Alteracao de Afastamento Temp
Chave Unica: CRE_FILIAL + CRE_ID + CRE_VERSAO
Modo: E
Modo Unid.: E
Modo Empr.: E
Sumario:
Campos
| Campo | Titulo | Descricao | Tipo | Contexto | Tamanho |
|---|---|---|---|---|---|
| CRE_FILIAL | Filial | Filial | C | Real | 2 |
| CRE_ID | ID | Identificador do registro | C | Real | 6 |
| CRE_VERSAO | Id. Ver. Reg | Id da versao do registro | C | Real | 14 |
| CRE_FUNC | Id.Func. | Id.Funcionario | C | Real | 6 |
| CRE_DFUNC | Des.Func. | Des.Funcionario | C | Virtual | 220 |
| CRE_DTALTM | Dt.Alt Mot. | Dt.Alteracao Motivo | D | Real | 8 |
| CRE_MOTANT | Id.Mot.Ant. | Id.Mot.Anterior | C | Real | 6 |
| CRE_DMOTAN | Des.Mot.Ant. | Des.Mot.Anterior | C | Virtual | 220 |
| CRE_MOTVAF | Id.Mot.Afast | Id.Mot.Afastamento | C | Real | 6 |
| CRE_DMOTVA | Des.Mot.Afas | Des.Mot.Afastamento | C | Virtual | 220 |
| CRE_INDERT | Ind.Ef Retro | Ind.Efeito Retro. | C | Real | 1 |
| CRE_VERANT | Ver Ant Reg | Versao anterior registro | C | Real | 14 |
| CRE_STATUS | Status Reg. | Status do registro | C | Real | 1 |
| CRE_PROTUL | Ult. Prot. | Prot. ultima transmissao | C | Real | 44 |
| CRE_PROTPN | Pnlt. Prot. | Prot. penultima transm. | C | Real | 44 |
| CRE_EVENTO | Id. Evento | Identificacao do evento | C | Real | 1 |
| CRE_ATIVO | Reg. Ativo? | Registro ativo? | C | Real | 1 |
Indices
| Ordem | Chave | Descricao | Nickname |
|---|---|---|---|
| 1 | CRE_FILIAL + CRE_ID + CRE_VERSAO | ID + Id. Ver. Reg | |
| 2 | CRE_FILIAL + CRE_FUNC + CRE_MOTVAF + DTOS(CRE_DTALTM) + CRE_ATIVO | Id.Func. + Id.Mot.Afast + Dt.Alt Mot. + Reg. Ativo? | |
| 3 | CRE_FILIAL + CRE_ID + CRE_ATIVO | ID + Reg. Ativo? | |
| 4 | CRE_FILIAL + CRE_PROTUL | Ult. Prot. | |
| 5 | CRE_FILIAL + CRE_FUNC + CRE_MOTVAF + CRE_ATIVO | Id.Func. + Id.Mot.Afast + Reg. Ativo? |
Relacionamentos
| Tabela Origem | Tabela Destino | Expressao Origem | Expressao Destino | Relacionamento |
|---|---|---|---|---|
| C8N (Motivos de Afastamento) | CRE (Alteracao de Afastamento Temp) | C8N_ID | CRE_MOTANT | 1 para N |
| C8N (Motivos de Afastamento) | CRE (Alteracao de Afastamento Temp) | C8N_ID | CRE_MOTVAF | 1 para N |
| C9V (Dados do Trabalhador) | CRE (Alteracao de Afastamento Temp) | C9V_ID | CRE_FUNC | 1 para N |