Tabela CM0
Acidente de Trabalho
72camposNome físicoCM0010(empresa 01)
01
Campos da tabela CM0
72 campos no dicionário de dados do TOTVS Protheus.
72
| Campo | Tipo | Descrição |
|---|---|---|
| CM0_FILIAL Caractere (C)(2) | Caractere (C)(2) | Filial
|
| CM0_ID Caractere (C)(6) | Caractere (C)(6) | ID
|
| CM0_VERSAO Caractere (C)(14) | Caractere (C)(14) | Id. Ver. Reg
|
| CM0_TRABAL Caractere (C)(6) | Caractere (C)(6) | Id.Trab.
|
| CM0_DTRABA Caractere (C)(220) | Caractere (C)(220) | Nome do Trab
|
| CM0_DTACID Data (D)(8) | Data (D)(8) | Dt. Acidente
|
| CM0_HRACID Caractere (C)(4) | Caractere (C)(4) | Hr. Acidente
|
| CM0_HRTRAB Caractere (C)(4) | Caractere (C)(4) | Hrs. Trab.
|
| CM0_TPACID Caractere (C)(6) | Caractere (C)(6) | Tp. Acidente
|
| CM0_TPCAT Caractere (C)(1) | Caractere (C)(1) | Tipo de CAT
3 valores possíveis
|
| CM0_INDPAR Caractere (C)(1) | Caractere (C)(1) | Ind. Parcial
2 valores possíveis
|
| CM0_INDOBI Caractere (C)(1) | Caractere (C)(1) | Ind. Obito
2 valores possíveis
|
| CM0_COMPOL Caractere (C)(1) | Caractere (C)(1) | Com. Polici.
2 valores possíveis
|
| CM0_CODSIT Caractere (C)(6) | Caractere (C)(6) | Cod. Sit
|
| CM0_DCODSI Caractere (C)(220) | Caractere (C)(220) | Desc. Sit
|
| CM0_DTCAT Data (D)(8) | Data (D)(8) | Data CAT
|
| CM0_NRCAT Caractere (C)(44) | Caractere (C)(44) | Nr. CAT Ori
|
| CM0_DNRCAT Caractere (C)(220) | Caractere (C)(220) | Des. Num Cat
|
| CM0_TPLOC Caractere (C)(1) | Caractere (C)(1) | Tp. Local
7 valores possíveis
|
| CM0_DESLOC Caractere (C)(80) | Caractere (C)(80) | Loc. Acident
|
| CM0_DESLOG Caractere (C)(100) | Caractere (C)(100) | Des. Logra.
|
| CM0_NRLOG Caractere (C)(10) | Caractere (C)(10) | Nr. Logra.
|
| CM0_UF Caractere (C)(6) | Caractere (C)(6) | UF
|
| CM0_DUF Caractere (C)(220) | Caractere (C)(220) | Des. UF
|
| CM0_CODMUN Caractere (C)(6) | Caractere (C)(6) | Cod. Mun.
|
| CM0_DCODMU Caractere (C)(220) | Caractere (C)(220) | Des. Mun
|
| CM0_CNPJLO Caractere (C)(14) | Caractere (C)(14) | CNPJ Local
|
| CM0_CODCNE Caractere (C)(7) | Caractere (C)(7) | Cod CNES
|
| CM0_DTATEN Data (D)(8) | Data (D)(8) | Dt. Atendi.
|
| CM0_HRATEN Caractere (C)(4) | Caractere (C)(4) | Hr. Atendim.
|
| CM0_INDINT Caractere (C)(1) | Caractere (C)(1) | Ind. Intern.
2 valores possíveis
|
| CM0_DURTRA Caractere (C)(4) | Caractere (C)(4) | Dur. Tratat.
|
| CM0_INDAFA Caractere (C)(1) | Caractere (C)(1) | Ind. Afasta.
2 valores possíveis
|
| CM0_DESLES Caractere (C)(220) | Caractere (C)(220) | Des. Lesao
|
| CM0_DIAPRO Caractere (C)(100) | Caractere (C)(100) | Diag. Prov.
|
| CM0_CODCID Caractere (C)(6) | Caractere (C)(6) | Cod. CID
|
| CM0_DCODCI Caractere (C)(220) | Caractere (C)(220) | Des.CID
|
| CM0_OBSERV Caractere (C)(220) | Caractere (C)(220) | Observacao
|
| CM0_IDPROF Caractere (C)(6) | Caractere (C)(6) | Id. Prof.Sau
|
| CM0_DIDPRO Caractere (C)(220) | Caractere (C)(220) | Des.Prof.
|
| CM0_VERANT Caractere (C)(14) | Caractere (C)(14) | Ver Ant Reg
|
| CM0_STATUS Caractere (C)(1) | Caractere (C)(1) | Status Reg.
6 valores possíveis
|
| CM0_PROTUL Caractere (C)(44) | Caractere (C)(44) | Ult. Prot.
|
| CM0_PROTPN Caractere (C)(44) | Caractere (C)(44) | Pnlt. Prot.
|
| CM0_EVENTO Caractere (C)(1) | Caractere (C)(1) | Id. Evento
3 valores possíveis
|
| CM0_ATIVO Caractere (C)(1) | Caractere (C)(1) | Reg. Ativo?
2 valores possíveis
|
| CM0_DTPACI Memo (M)(350) | Memo (M)(350) | Des.Tp Acid.
|
| CM0_INICAT Caractere (C)(1) | Caractere (C)(1) | Indic CAT
3 valores possíveis
|
| CM0_OBSCAT Caractere (C)(254) | Caractere (C)(254) | Observacao
|
| CM0_NATLES Caractere (C)(6) | Caractere (C)(6) | Cod. Lesao
|
| CM0_DNATLE Caractere (C)(220) | Caractere (C)(220) | Desc. Lesao
|
| CM0_TPREG Caractere (C)(6) | Caractere (C)(6) | Tipo Regist.
|
| CM0_DTPRE Caractere (C)(220) | Caractere (C)(220) | Desc.Tp.Reg.
|
| CM0_INSREG Caractere (C)(1) | Caractere (C)(1) | Tp Insc Reg
2 valores possíveis
|
| CM0_NRIREG Caractere (C)(14) | Caractere (C)(14) | Nr.Insc. Reg
|
| CM0_CODPAI Caractere (C)(6) | Caractere (C)(6) | Id Pais
|
| CM0_DCODPA Caractere (C)(220) | Caractere (C)(220) | Desc. Pais
|
| CM0_DTOBIT Data (D)(8) | Data (D)(8) | Data Obito
|
| CM0_CODPOS Caractere (C)(12) | Caractere (C)(12) | Cod. Postal
|
| CM0_STASEC Caractere (C)(1) | Caractere (C)(1) | Status Sec.
|
| CM0_XMLID Caractere (C)(36) | Caractere (C)(36) | Id do XML.
|
| CM0_DINSIS Data (D)(8) | Data (D)(8) | Dt Inc. Sist
|
| CM0_LOGOPE Caractere (C)(1) | Caractere (C)(1) | Log Operacao
6 valores possíveis
|
| CM0_TPLOGR Caractere (C)(6) | Caractere (C)(6) | Id. Tp. Log.
|
| CM0_CODAMB Caractere (C)(6) | Caractere (C)(6) | Cod Amb Trab
|
| CM0_COMLOG Caractere (C)(30) | Caractere (C)(30) | Compl. Log.
|
| CM0_BAIRRO Caractere (C)(90) | Caractere (C)(90) | Bairro
|
| CM0_CEP Caractere (C)(8) | Caractere (C)(8) | CEP
|
| CM0_CODCAT Caractere (C)(6) | Caractere (C)(6) | Cod. Categor
|
| CM0_DCATEG Caractere (C)(220) | Caractere (C)(220) | Des Categ
|
| CM0_INSACI Caractere (C)(1) | Caractere (C)(1) | Tp Insc Reg
4 valores possíveis
|
| CM0_NRIACI Caractere (C)(14) | Caractere (C)(14) | Nr.Insc. Reg
|
| Nenhum campo corresponde ao filtro. | ||
02
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_ = ' '03
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.