Tabela CM9

Cond. Amb. Trab Fat. de Risco
28camposNome físicoCM9010(empresa 01)

Campos da tabela CM9

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

28
CampoDescrição
CM9_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
CM9_ID
Caractere (C)(6)
ID
Máscara:
@!
Contexto:
Real
CM9_VERSAO
Caractere (C)(14)
Id. Ver. Reg
Máscara:
@!
Contexto:
Real
CM9_FUNC
Caractere (C)(6)
Id. Trab.
Máscara:
@!
Contexto:
Real
Consulta F3:
C9V
Validação:
xFunVldCmp("C9V",,,,2,) .and. xFunVldUni("CM9",2,M->CM9_FUNC+"1")
CM9_DFUNC
Caractere (C)(220)
Nome Trab.
Máscara:
@!
Contexto:
Virtual (não existe no banco)
CM9_DTINI
Data (D)(8)
Dt. Ini. Con
Contexto:
Real
CM9_TPCOND
Caractere (C)(6)
Tipo Cond.
Máscara:
@!
Contexto:
Real
Consulta F3:
CUN
Validação:
xFunVldCmp("CUN",,,,2,.T.) .and. xFunVldUni("CM9",2,FwFldGet("CM9_FUNC")+M->CM9_TPCOND)
CM9_DTPCON
Caractere (C)(220)
Descr Tp Con
Máscara:
@!
Contexto:
Virtual (não existe no banco)
CM9_MEDPRT
Caractere (C)(1)
Med. Protec
Máscara:
@!
Contexto:
Real
Validação:
Pertence(" 12")
2 valores possíveis
  • 1Sim
  • 2Nao
CM9_CNDFUN
Caractere (C)(1)
Cond.Func.
Máscara:
@!
Contexto:
Real
Validação:
Pertence(" 12")
2 valores possíveis
  • 1Sim
  • 2Nao
CM9_PRZVLD
Caractere (C)(1)
Prazo Valid.
Máscara:
@!
Contexto:
Real
Validação:
Pertence(" 12")
2 valores possíveis
  • 1Sim
  • 2Nao
CM9_PERTRC
Caractere (C)(1)
Period.Troca
Máscara:
@!
Contexto:
Real
Validação:
Pertence(" 12")
2 valores possíveis
  • 1Sim
  • 2Nao
CM9_HIGIEN
Caractere (C)(1)
Higienizacao
Máscara:
@!
Contexto:
Real
Validação:
Pertence(" 12")
2 valores possíveis
  • 1Sim
  • 2Nao
CM9_VERANT
Caractere (C)(14)
Ver Ant Reg
Máscara:
@!
Contexto:
Real
CM9_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
CM9_PROTUL
Caractere (C)(44)
Ult. Prot.
Máscara:
@!
Contexto:
Real
CM9_PROTPN
Caractere (C)(44)
Pnlt. Prot.
Máscara:
@!
Contexto:
Real
CM9_EVENTO
Caractere (C)(1)
Id. Evento
Máscara:
@!
Contexto:
Real
Validação:
Pertence("IAERF")
5 valores possíveis
  • IInclusao
  • AAlteracao
  • EExclusao
  • RRetificacao
  • FFinalizacao
CM9_ATIVO
Caractere (C)(1)
Reg. Ativo?
Máscara:
@!
Contexto:
Real
Validação:
Pertence("12")
2 valores possíveis
  • 1Sim
  • 2Nao
CM9_DTALT
Data (D)(8)
Dt. Alt. Con
Contexto:
Real
CM9_DTFIM
Data (D)(8)
Dt. Fim Con
Contexto:
Real
CM9_STASEC
Caractere (C)(1)
Status Sec.
Contexto:
Real
CM9_XMLID
Caractere (C)(36)
Id do XML.
Contexto:
Real
CM9_DINSIS
Data (D)(8)
Dt Inc. Sist
Contexto:
Real
CM9_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
CM9_DATIVD
Memo (M)(10)
Descr. Ativ.
Contexto:
Real
CM9_METERG
Memo (M)(10)
Met. Ergonom
Contexto:
Real
CM9_OBSCMP
Memo (M)(10)
Obs. Complem
Contexto:
Real

SELECT de exemplo da tabela CM9

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
  CM9.CM9_FILIAL,
  CM9.CM9_ID,
  CM9.CM9_VERSAO,
  CM9.CM9_FUNC,
  CM9.CM9_DTINI,
  CM9.CM9_TPCOND,
  CM9.CM9_MEDPRT,
  CM9.CM9_CNDFUN
FROM CM9010 CM9
WHERE CM9.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.