Tabela CM0

Acidente de Trabalho
72camposNome físicoCM0010(empresa 01)

Campos da tabela CM0

72 campos no dicionário de dados do TOTVS Protheus.

72
CampoDescrição
CM0_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
CM0_ID
Caractere (C)(6)
ID
Máscara:
@!
Contexto:
Real
CM0_VERSAO
Caractere (C)(14)
Id. Ver. Reg
Máscara:
@!
Contexto:
Real
CM0_TRABAL
Caractere (C)(6)
Id.Trab.
Máscara:
@!
Contexto:
Real
Consulta F3:
C9VA
Validação:
XFUNVldCmp("C9V",,,,2,) .And. XFUNVldUni("CM0",4, M->CM0_TRABAL+DTOS(M->CM0_DTACID) + M->CM0_HRACID)
CM0_DTRABA
Caractere (C)(220)
Nome do Trab
Máscara:
@!
Contexto:
Virtual (não existe no banco)
CM0_DTACID
Data (D)(8)
Dt. Acidente
Contexto:
Real
Validação:
XFUNVldUni("CM0",4,M->CM0_TRABAL+DTOS(M->CM0_DTACID)+M->CM0_HRACID)
CM0_HRACID
Caractere (C)(4)
Hr. Acidente
Máscara:
@R 99:99
Contexto:
Real
Validação:
xFunVldHor("CM0->CM0_HRACID") .And. XFUNVldUni("CM0",4, M->CM0_TRABAL+DTOS(M->CM0_DTACID) + M->CM0_HRACID)
CM0_HRTRAB
Caractere (C)(4)
Hrs. Trab.
Máscara:
@R 99:99
Contexto:
Real
CM0_TPACID
Caractere (C)(6)
Tp. Acidente
Máscara:
@!
Contexto:
Real
Consulta F3:
LE5
CM0_TPCAT
Caractere (C)(1)
Tipo de CAT
Contexto:
Real
Validação:
Pertence(" 123")
3 valores possíveis
  • 1Inicial
  • 2Reabertura
  • 3Comunicacao de Obito
CM0_INDPAR
Caractere (C)(1)
Ind. Parcial
Máscara:
@!
Contexto:
Real
Validação:
PERTENCE(" 12")
2 valores possíveis
  • 1Sim
  • 2Nao
CM0_INDOBI
Caractere (C)(1)
Ind. Obito
Contexto:
Real
Validação:
Pertence(" 12")
2 valores possíveis
  • 1Sim
  • 2Nao
CM0_COMPOL
Caractere (C)(1)
Com. Polici.
Máscara:
@!
Contexto:
Real
Validação:
Pertence(" 12")
2 valores possíveis
  • 1Sim
  • 2Nao
CM0_CODSIT
Caractere (C)(6)
Cod. Sit
Máscara:
@!
Contexto:
Real
Consulta F3:
C8L
Validação:
XFUNVldCmp("C8L",,,,2,.T.)
CM0_DCODSI
Caractere (C)(220)
Desc. Sit
Máscara:
@!
Contexto:
Virtual (não existe no banco)
CM0_DTCAT
Data (D)(8)
Data CAT
Contexto:
Real
CM0_NRCAT
Caractere (C)(44)
Nr. CAT Ori
Contexto:
Real
CM0_DNRCAT
Caractere (C)(220)
Des. Num Cat
Máscara:
@!
Contexto:
Virtual (não existe no banco)
CM0_TPLOC
Caractere (C)(1)
Tp. Local
Máscara:
@!
Contexto:
Real
Validação:
PERTENCE(" 1234569")
7 valores possíveis
  • 1Estab empreg. Brazil
  • 2Estab empreg. Exterior
  • 3Estab empreg. presta servicos
  • 4Via publica
  • 5Area rural
  • 6Embarcacao
  • 9Outros
CM0_DESLOC
Caractere (C)(80)
Loc. Acident
Máscara:
@!
Contexto:
Real
CM0_DESLOG
Caractere (C)(100)
Des. Logra.
Máscara:
@!
Contexto:
Real
CM0_NRLOG
Caractere (C)(10)
Nr. Logra.
Máscara:
@!
Contexto:
Real
CM0_UF
Caractere (C)(6)
UF
Máscara:
@!
Contexto:
Real
Consulta F3:
C09
Validação:
XFUNVldCmp("C09",3)
CM0_DUF
Caractere (C)(220)
Des. UF
Máscara:
@!
Contexto:
Virtual (não existe no banco)
CM0_CODMUN
Caractere (C)(6)
Cod. Mun.
Máscara:
@!
Contexto:
Real
Consulta F3:
C07
Validação:
XFUNVldCmp("C07",3)
CM0_DCODMU
Caractere (C)(220)
Des. Mun
Máscara:
@!
Contexto:
Virtual (não existe no banco)
CM0_CNPJLO
Caractere (C)(14)
CNPJ Local
Máscara:
@R 99.999.999/9999-99
Contexto:
Real
Validação:
CGC(M->CM0_CNPJLO)
CM0_CODCNE
Caractere (C)(7)
Cod CNES
Máscara:
@!
Contexto:
Real
CM0_DTATEN
Data (D)(8)
Dt. Atendi.
Contexto:
Real
CM0_HRATEN
Caractere (C)(4)
Hr. Atendim.
Máscara:
@R 99:99
Contexto:
Real
Validação:
xFunVldHor("CM0->CM0_HRATEN")
CM0_INDINT
Caractere (C)(1)
Ind. Intern.
Contexto:
Real
Validação:
Pertence(" 12")
2 valores possíveis
  • 1Sim
  • 2Nao
CM0_DURTRA
Caractere (C)(4)
Dur. Tratat.
Máscara:
@!
Contexto:
Real
CM0_INDAFA
Caractere (C)(1)
Ind. Afasta.
Máscara:
@!
Contexto:
Real
Validação:
Pertence(" 12")
2 valores possíveis
  • 1Sim
  • 2Nao
CM0_DESLES
Caractere (C)(220)
Des. Lesao
Máscara:
@!
Contexto:
Real
CM0_DIAPRO
Caractere (C)(100)
Diag. Prov.
Máscara:
@!
Contexto:
Real
CM0_CODCID
Caractere (C)(6)
Cod. CID
Máscara:
@!
Contexto:
Real
Consulta F3:
CMM
CM0_DCODCI
Caractere (C)(220)
Des.CID
Máscara:
@!
Contexto:
Virtual (não existe no banco)
CM0_OBSERV
Caractere (C)(220)
Observacao
Máscara:
@!
Contexto:
Real
CM0_IDPROF
Caractere (C)(6)
Id. Prof.Sau
Máscara:
@!
Contexto:
Real
Consulta F3:
CM7
Validação:
XFUNVldCmp("CM7",1)
CM0_DIDPRO
Caractere (C)(220)
Des.Prof.
Máscara:
@!
Contexto:
Virtual (não existe no banco)
CM0_VERANT
Caractere (C)(14)
Ver Ant Reg
Máscara:
@!
Contexto:
Real
CM0_STATUS
Caractere (C)(1)
Status Reg.
Máscara:
@!
Contexto:
Real
Validação:
Pertence(" 012349")
6 valores possíveis
  • 0Reg.Valido
  • 1Reg.Invalido
  • 2Reg.Transmitido
  • 3Reg.Transmitido com inconsistencia
  • 4Reg.Transmitido valido
  • 9Em Processamento
CM0_PROTUL
Caractere (C)(44)
Ult. Prot.
Máscara:
@!
Contexto:
Real
CM0_PROTPN
Caractere (C)(44)
Pnlt. Prot.
Máscara:
@!
Contexto:
Real
CM0_EVENTO
Caractere (C)(1)
Id. Evento
Máscara:
@!
Contexto:
Real
Validação:
Pertence("IAE")
3 valores possíveis
  • IInclusao
  • AAlteracao
  • EExclusao
CM0_ATIVO
Caractere (C)(1)
Reg. Ativo?
Máscara:
@!
Contexto:
Real
Validação:
Pertence("12")
2 valores possíveis
  • 1Sim
  • 2Nao
CM0_DTPACI
Memo (M)(350)
Des.Tp Acid.
Máscara:
@!
Contexto:
Virtual (não existe no banco)
CM0_INICAT
Caractere (C)(1)
Indic CAT
Máscara:
@!
Contexto:
Real
Validação:
Pertence(" 123")
3 valores possíveis
  • 1Iniciativa do empregador
  • 2Ordem judicial
  • 3Determinacao de orgao fiscalizador
CM0_OBSCAT
Caractere (C)(254)
Observacao
Máscara:
@!
Contexto:
Real
CM0_NATLES
Caractere (C)(6)
Cod. Lesao
Máscara:
@!
Contexto:
Real
Consulta F3:
C8M
Validação:
xFunVldCmp("C8M",,,,2,,,.F.)
CM0_DNATLE
Caractere (C)(220)
Desc. Lesao
Máscara:
@!
Contexto:
Virtual (não existe no banco)
CM0_TPREG
Caractere (C)(6)
Tipo Regist.
Máscara:
@!
Contexto:
Real
Consulta F3:
T0I
Validação:
xFunVldCmp("T0I",,,,2,,,.F.)
CM0_DTPRE
Caractere (C)(220)
Desc.Tp.Reg.
Máscara:
@!
Contexto:
Virtual (não existe no banco)
CM0_INSREG
Caractere (C)(1)
Tp Insc Reg
Máscara:
@!
Contexto:
Real
Validação:
Pertence(" 12")
2 valores possíveis
  • 1CNPJ
  • 2CPF
CM0_NRIREG
Caractere (C)(14)
Nr.Insc. Reg
Máscara:
@!
Contexto:
Real
Validação:
XVldTNrIns(FWFLDGET("CM0_INSREG"),M->CM0_NRIREG)
CM0_CODPAI
Caractere (C)(6)
Id Pais
Máscara:
@!
Contexto:
Real
Consulta F3:
C08
Validação:
xFunVldCmp("C08",3)
CM0_DCODPA
Caractere (C)(220)
Desc. Pais
Máscara:
@!
Contexto:
Virtual (não existe no banco)
CM0_DTOBIT
Data (D)(8)
Data Obito
Contexto:
Real
CM0_CODPOS
Caractere (C)(12)
Cod. Postal
Máscara:
@!
Contexto:
Real
CM0_STASEC
Caractere (C)(1)
Status Sec.
Contexto:
Real
CM0_XMLID
Caractere (C)(36)
Id do XML.
Contexto:
Real
CM0_DINSIS
Data (D)(8)
Dt Inc. Sist
Contexto:
Real
CM0_LOGOPE
Caractere (C)(1)
Log Operacao
Máscara:
@!
Contexto:
Real
6 valores possíveis
  • 1Incl.Integr
  • 2Incl.Manual
  • 3Incl.Integr+Alt.Integr
  • 4Incl.Integr+Alt.Manual
  • 5Incl.Manual+Alt.Integr
  • 6Incl.Manual+Alt.Manual
CM0_TPLOGR
Caractere (C)(6)
Id. Tp. Log.
Máscara:
@!
Contexto:
Real
Consulta F3:
C06
Validação:
xFunVldCmp("C06",3)
CM0_CODAMB
Caractere (C)(6)
Cod Amb Trab
Máscara:
@!
Contexto:
Real
Consulta F3:
T04
CM0_COMLOG
Caractere (C)(30)
Compl. Log.
Máscara:
@!
Contexto:
Real
CM0_BAIRRO
Caractere (C)(90)
Bairro
Máscara:
@!
Contexto:
Real
CM0_CEP
Caractere (C)(8)
CEP
Máscara:
@R 99.999-999
Contexto:
Real
CM0_CODCAT
Caractere (C)(6)
Cod. Categor
Máscara:
@!
Contexto:
Real
Consulta F3:
C87
CM0_DCATEG
Caractere (C)(220)
Des Categ
Máscara:
@!
Contexto:
Virtual (não existe no banco)
CM0_INSACI
Caractere (C)(1)
Tp Insc Reg
Máscara:
@!
Contexto:
Real
4 valores possíveis
  • 1CNPJ
  • 2CPF
  • 3CAEPF
  • 4CNO
CM0_NRIACI
Caractere (C)(14)
Nr.Insc. Reg
Máscara:
@!
Contexto:
Real
Validação:
XVldTNrIns(FWFLDGET("CM0_INSACI"),M->CM0_NRIACI)

SELECT de exemplo da tabela CM0

No Protheus a tabela física leva o código da empresa (01 → 010) e registros excluídos ficam com D_E_L_E_T_ = '*'.

SQL · SQL Server
SELECT TOP 100
  CM0.CM0_FILIAL,
  CM0.CM0_ID,
  CM0.CM0_VERSAO,
  CM0.CM0_TRABAL,
  CM0.CM0_DTACID,
  CM0.CM0_HRACID,
  CM0.CM0_HRTRAB,
  CM0.CM0_TPACID
FROM CM0010 CM0
WHERE CM0.D_E_L_E_T_ = ' '

Tabelas próximas no índice do Protheus

O ERPSeeker é um projeto independente, sem vínculo com a TOTVS. A estrutura pode variar conforme a versão e as customizações do seu ambiente.