Tabela GCS

Local de Atendimento
57camposNome físicoGCS010(empresa 01)

Campos da tabela GCS

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

57
CampoDescrição
GCS_FILIAL
Caractere (C)(2)
Filial
GCS_CODLOC
Caractere (C)(2)
Codigo
Máscara:
@!
Contexto:
Real
Validação:
existchav("GCS",M->GCS_CODLOC)
GCS_NOMLOC
Caractere (C)(40)
Descricao
Máscara:
@!
Contexto:
Real
Validação:
NaoVazio()
GCS_CODUNC
Caractere (C)(6)
Cod.Un.Cons.
Máscara:
@!
Contexto:
Real
Consulta F3:
GCT
Validação:
HS_VldA12("GCS")
GCS_DESUNC
Caractere (C)(40)
Unid.Consumo
Máscara:
@!
Contexto:
Virtual (não existe no banco)
GCS_CODCCU
Caractere (C)(9)
C.Custo
Máscara:
@!
Contexto:
Real
Consulta F3:
HSP003
Validação:
HS_VldA12("GCS")
GCS_DESCCU
Caractere (C)(40)
Descricao
Máscara:
@!
Contexto:
Virtual (não existe no banco)
GCS_CTRMOV
Caractere (C)(1)
Ctrl. Movim.
Máscara:
9
Contexto:
Real
Validação:
Pertence("01")
2 valores possíveis
  • 0Nao
  • 1Sim
GCS_TIPLOC
Caractere (C)(1)
Tipo
Máscara:
@!
Contexto:
Real
Validação:
Pertence("0123456789ABCDEFG")
1 valores possíveis
  • #HS_TIPLOC()
GCS_IDEATI
Caractere (C)(1)
Ativo
Máscara:
9
Contexto:
Real
Validação:
HS_VldA12("GCS")
2 valores possíveis
  • 0Nao
  • 1Sim
GCS_ARMSET
Caractere (C)(2)
Armaz.Setor
Máscara:
@!
Contexto:
Real
Consulta F3:
AL
Validação:
HS_VldA12("GCS")
GCS_DESASE
Caractere (C)(40)
Descricao
Máscara:
@!
Contexto:
Virtual (não existe no banco)
GCS_ARMFAR
Caractere (C)(2)
Armaz.F.Sat.
Máscara:
@!
Contexto:
Real
Consulta F3:
AL
Validação:
HS_VldA12("GCS")
GCS_DESAFA
Caractere (C)(40)
Descricao
Máscara:
@!
Contexto:
Virtual (não existe no banco)
GCS_ARMDES
Caractere (C)(2)
Arm. Descart
Máscara:
@!
Contexto:
Real
Consulta F3:
AL
Validação:
HS_VldA12('GCS')
GCS_DARMDE
Caractere (C)(40)
Descricao
Máscara:
@!
Contexto:
Virtual (não existe no banco)
GCS_HORINI
Caractere (C)(5)
Hora Inicial
Máscara:
99:99
Contexto:
Real
GCS_HORFIN
Caractere (C)(5)
Hora Final
Máscara:
99:99
Contexto:
Real
GCS_ARMFA2
Caractere (C)(2)
Armaz.F.Sat2
Máscara:
@!
Contexto:
Real
Consulta F3:
AL
Validação:
HS_VldA12("GCS")
GCS_DESAF2
Caractere (C)(40)
Descricao
Máscara:
@!
Contexto:
Virtual (não existe no banco)
GCS_PREEST
Caractere (C)(2)
Pre Estoque
Máscara:
@!
Contexto:
Real
Consulta F3:
AL
Validação:
HS_VldA12('GCS')
GCS_DPREST
Caractere (C)(40)
Ds. Pre Est.
Máscara:
@!
Contexto:
Virtual (não existe no banco)
GCS_SLAUDO
Caractere (C)(1)
Solic. Laudo
Contexto:
Real
Validação:
Pertence("01")
2 valores possíveis
  • 0Nao
  • 1Sim
GCS_NUMUTI
Numérico (N)(2)
No UTI/Dia
Máscara:
99
Contexto:
Real
GCS_IMPCUP
Caractere (C)(1)
Sl/Dev Cupom
Contexto:
Real
2 valores possíveis
  • 0Nao
  • 1Sim
GCS_IMPORT
Caractere (C)(1)
Port Imp Cup
Contexto:
Real
6 valores possíveis
  • 0LPT1
  • 1LPT2
  • 2COM1
  • 3COM2
  • 4COM3
  • 5COM4
GCS_VLDSEX
Caractere (C)(1)
Valida Sexo
Máscara:
@!
Contexto:
Real
Validação:
Pertence("01")
2 valores possíveis
  • 0Nao
  • 1Sim
GCS_ENDTIP
Caractere (C)(1)
Controle End
Máscara:
@!
Contexto:
Real
Validação:
HS_VLDA12("GCS")
3 valores possíveis
  • 0MULTI-PRONTUARIO
  • 1PASTA
  • 2TERMINACAO
GCS_CODMOT
Caractere (C)(6)
Motivo
Máscara:
@!
Contexto:
Real
Consulta F3:
GSC
Validação:
HS_SeekRet("GSC","M->GCS_CODMOT",1,.F.,"M->GCS_NOMMOT","GSC_DESMOT") .OR. VAZIO()
GCS_NOMMOT
Caractere (C)(40)
Descricao
Máscara:
@!
Contexto:
Virtual (não existe no banco)
GCS_CODEND
Caractere (C)(12)
Ender Padrao
Máscara:
@!
Contexto:
Real
Consulta F3:
GSD
Validação:
HS_VLDA12("GCS")
Modo de edição (When):
M->GCS_ENDTIP == "0"
GCS_NOMEND
Caractere (C)(30)
Descricao
Máscara:
@!
Contexto:
Virtual (não existe no banco)
GCS_LOGARQ
Caractere (C)(40)
Log do Arq
GCS_MOVEST
Caractere (C)(1)
Mov. Estoque
Máscara:
@!
Contexto:
Real
2 valores possíveis
  • 1Sim
  • 0Nao
GCS_CEP
Caractere (C)(8)
CEP
Máscara:
@R 99999-999
Contexto:
Real
Consulta F3:
GAM001
Validação:
HS_RtCamp() .And. HS_VldA12('GCS')
GCS_PERRET
Caractere (C)(1)
Per. Retorno
Máscara:
@!
Contexto:
Real
2 valores possíveis
  • 0Nao
  • 1Sim
GCS_MUN
Caractere (C)(20)
Municipio
Máscara:
@!
Contexto:
Real
GCS_EST
Caractere (C)(2)
Estado
Máscara:
@!
Contexto:
Real
Consulta F3:
12
Validação:
HS_VldA12('GCS')
GCS_RUA
Caractere (C)(40)
Endereco
Máscara:
@!
Contexto:
Real
GCS_NUM
Caractere (C)(4)
Numero
Máscara:
@!
Contexto:
Real
GCS_BAIRRO
Caractere (C)(40)
Bairro
Máscara:
@!
Contexto:
Real
GCS_COMPLE
Caractere (C)(15)
Complemento
Máscara:
@!
Contexto:
Real
GCS_INDGM8
Caractere (C)(1)
Indice Agend
Máscara:
@!
Contexto:
Real
Consulta F3:
G15001
Validação:
HS_VLDA12('GCS')
GCS_ATEURG
Caractere (C)(1)
Aten. Urgenc
Máscara:
@!
Contexto:
Real
Validação:
PERTENCE('01')
2 valores possíveis
  • 0Nao
  • 1Sim
GCS_TEL
Caractere (C)(13)
Telefone
Máscara:
@R (99)99999-9999
Contexto:
Real
GCS_FAX
Caractere (C)(13)
Fax
Máscara:
@!
Contexto:
Real
GCS_HORPAD
Caractere (C)(5)
Hora Padrao
Máscara:
99:99
Contexto:
Real
Modo de edição (When):
M->GCS_TIPLOC == "A"
GCS_NUMLEI
Numérico (N)(4)
Leitos setor
Máscara:
9999
Contexto:
Real
Modo de edição (When):
M->GCS_TIPLOC=='3'
GCS_RSPTEC
Caractere (C)(7)
Crm Resp Tec
Máscara:
@!
Contexto:
Real
Consulta F3:
MED
GCS_HOMECA
Caractere (C)(1)
Home Care
Máscara:
@!
Contexto:
Real
GCS_ESTSUP
Caractere (C)(2)
Estrut Super
Máscara:
@!
Contexto:
Real
Consulta F3:
GCS
Validação:
HS_VldA12('GCS')
GCS_DESESP
Caractere (C)(40)
Desc Est Sup
Máscara:
@!
Contexto:
Virtual (não existe no banco)
GCS_LSTESP
Caractere (C)(1)
Lst. Espera
Máscara:
@!
Contexto:
Real
2 valores possíveis
  • 0Nao
  • 1Sim
GCS_LOCPLS
Caractere (C)(3)
Setor Pls
Máscara:
@!
Contexto:
Real
Consulta F3:
BD1PLS
GCS_PMTATE
Caractere (C)(1)
Atend.Direto
Máscara:
@!
Contexto:
Real
Validação:
Pertence('01')
2 valores possíveis
  • 0Nao
  • 1Sim
GCS_ARMPRO
Caractere (C)(2)
Arm. Process
Máscara:
@!
Contexto:
Real
Validação:
HS_VldA12('GCS')
GCS_DARMPR
Caractere (C)(40)
Descricao
Máscara:
@!
Contexto:
Virtual (não existe no banco)

SELECT de exemplo da tabela GCS

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
  GCS.GCS_FILIAL,
  GCS.GCS_CODLOC,
  GCS.GCS_NOMLOC,
  GCS.GCS_CODUNC,
  GCS.GCS_CODCCU,
  GCS.GCS_CTRMOV,
  GCS.GCS_TIPLOC,
  GCS.GCS_IDEATI
FROM GCS010 GCS
WHERE GCS.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.