Resumo da Alocação
A tabela GYE faz parte do sistema ERP Protheus da TOTVS e é utilizada para resumo da alocação.
Ela pertence ao dicionário de dados do Protheus (SX2) e armazena informações essenciais utilizadas em processos como cadastros, movimentações e integrações do sistema.
A tabela GYE possui diversos campos (SX3), cada um com regras específicas como tipo, tamanho e validações, além de índices (SIX) que otimizam a performance das consultas.
Nesta página você pode consultar a estrutura completa da tabela GYE, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | GYE |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | GYE990 |
| X2_NOME | Resumo da Alocação |
| X2_NOMESPA | Resumen de la asignación |
| X2_NOMEENG | Allocation Summary |
| X2_ROTINA | - |
| X2_MODO | C |
| X2_MODOUN | E |
| X2_MODOEMP | E |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | GYE_FILIAL+GYE_DTREF+DTOS(GYE_COLCOD) |
| X2_PYME | S |
| X2_MODULO | 88 |
| X2_DISPLAY | - |
| X2_SYSOBJ | - |
| X2_USROBJ | - |
| X2_POSLGT | 1 |
| X2_CLOB | 2 |
| X2_AUTREC | 2 |
| X2_TAMFIL | 2 |
| X2_TAMUN | 0 |
| X2_TAMEMP | 0 |
| X2_STAMP | 2 |
| X2_INSDT | 2 |
| D_E_L_E_T_ | - |
| R_E_C_N_O_ | 5459 |
| R_E_C_D_E_L_ | 0 |
| X3_ARQUIVO | X3_ORDEM | X3_CAMPO | X3_TIPO | X3_TAMANHO | X3_DECIMAL | X3_TITULO | X3_TITSPA | X3_TITENG | X3_DESCRIC | X3_DESCSPA | X3_DESCENG | X3_PICTURE | X3_VALID | X3_USADO | X3_RELACAO | X3_F3 | X3_NIVEL | X3_RESERV | X3_CHECK | X3_TRIGGER | X3_PROPRI | X3_BROWSE | X3_VISUAL | X3_CONTEXT | X3_OBRIGAT | X3_VLDUSER | X3_CBOX | X3_CBOXSPA | X3_CBOXENG | X3_PICTVAR | X3_WHEN | X3_INIBRW | X3_GRPSXG | X3_FOLDER | X3_PYME | X3_CONDSQL | X3_CHKSQL | X3_IDXSRV | X3_ORTOGRA | X3_IDXFLD | X3_TELA | X3_PICBRV | X3_AGRUP | X3_POSLGT | X3_MODAL | X3_CHKSUM | X3_ADDSUM | D_E_L_E_T_ | R_E_C_N_O_ | R_E_C_D_E_L_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| GYE | 01 | GYE_FILIAL | C | 2 | 0 | Filial | Sucursal | Branch | Filial do Sistema | Sucursal del sistema | System Branch | - | - | x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | 033 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 87563 | 0 |
| GYE | 02 | GYE_CODGYQ | C | 10 | 0 | Cód. Aloc. | Cód. Asign. | Alloc code | Código Alocação | Código asignación | Allocation code | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 87564 | 0 |
| GYE | 03 | GYE_COLCOD | C | 6 | 0 | Cod. Colab. | Cód. Colab. | Colab.Code | Codigo Colaborador | Código colaborador | Collaborator Code | @! | ExistCpo("GYG") | x x x x x x x x x x x x x x x x | - | - | 1 | x x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 87565 | 0 |
| GYE | 04 | GYE_DTREF | D | 8 | 0 | Data | Fecha | Date | Data Referência | Fecha de referencia | Reference Date | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 87566 | 0 |
| GYE | 05 | GYE_DIASEM | C | 3 | 0 | Dia Semana | Día semana | Weekday | Dia da Semana | Día de la semana | Weekday | @! | Pertence("DOM+SEG+TER+QUA+QUI+SEX+SAB+FER") | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 87567 | 0 |
| GYE | 06 | GYE_SITRH | C | 1 | 0 | Situação RH | Situac. RRHH | HR Status | Situação RH | Situación RRHH | HR Status | @9 | Pertence("01234") | x x x x x x x x x x x x x x x x | - | - | 1 | x x | - | - | - | N | V | R | - | - | 0=Indisponivel RH;1=Disponivel;2=Ferias;3=Afastado;4=Demitido | 0=Indisponible RRHH;1=Disponible;2=Vacaciones;3=Licencia;4=Despedido | 0=Unavailable HR;1=Available;2=Vacation;3=On Leave;4=Dismissed | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 87568 | 0 |
| GYE | 07 | GYE_TPDIA | C | 1 | 0 | Tipo Dia | Tipo día | Dat Tp | Tipo de Dia | Tipo de día | Day Type | @! | Pertence("1234") | x x x x x x x x x x x x x x x x | - | - | 1 | x x | - | - | - | S | A | R | - | - | 1=Trabalhado;2=Não Trabalhado;3=Folga;4=D.S.R. | 1=Trabajado;2=No trabajado;3=Descanso;4=D.S.R. | 1=Worked;2=Not Worked;3=Rest;4=P.W.R. | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 87569 | 0 |
| GYE | 08 | GYE_ESCALA | C | 6 | 0 | Escala | Escala | Scale | Escala | Escala | Scale | @! | Vazio() .Or. ExistCpo("GYO") | x x x x x x x x x x x x x x x x | - | GYOESC | 1 | x | - | S | - | S | A | R | - | - | - | - | - | - | FwFldGet("GYE_TPDIA") == "1" | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 87570 | 0 |
| GYE | 09 | GYE_ESCDES | C | 30 | 0 | Desc. Escala | Desc. Escala | Scale Descr | Desc. Escala | Desc. Escala | Scale Description | @! | - | x x x x x x x x x x x x x x x x | IF(!INCLUI,POSICIONE ("GYO",1,XFILIAL("GYO") +GYE->GYE_ESCALA,"GYO_DESCRI")," ") | - | 1 | x | - | - | - | S | V | V | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 87571 | 0 |
| GYE | 10 | GYE_STATUS | C | 1 | 0 | Status | Estatus | Status | Status | Estatus | Status | @! | Pertence("123456") | x x x x x x x x x x x x x x x x | "1" | - | 1 | xx | - | - | - | N | V | R | - | - | 1=Não Alocado;2=Alocação Efetivada;3=Alocação Parcialmente Efetivada;4=Alocado;5=Impossibilitado;6=Não trabalhado | 1=No Asignado;2=Asignación hecha efectiva;3=Asignación parcialmente hecha efectiva;4=Asignado;5=Imposibilitado;6=No trabajado | 1=Not Allocated;2=Allocation Executed;3=Allocation Partially Executed;4=Allocated;5=Unabled;6=Not worked | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 87572 | 0 |
| INDICE | ORDEM | CHAVE | DESCRICAO | DESCSPA | DESCENG | PROPRI | F3 | NICKNAME | SHOWPESQ | IX_VIRTUAL | IX_VIRCUST | D_E_L_E_T_ | R_E_C_N_O_ | R_E_C_D_E_L_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| GYE | 1 | GYE_FILIAL+GYE_COLCOD+DTOS(GYE_DTREF) | Cod. Colab. + Data | Cód. Colab. + Fecha | Colab.Code + Date | S | - | - | S | 2 | 3 | - | 12931 | 0 |
| GYE | 2 | GYE_FILIAL+GYE_COLCOD+GYE_ESCALA | Cod. Colab. + Escala | Cód. Colab. + Escala | Colab.Code + Scale | S | - | - | S | 2 | 3 | - | 12932 | 0 |
| GYE | 3 | GYE_FILIAL+GYE_ESCALA+GYE_COLCOD+DTOS(GYE_DTREF) | Escala + Cod. Colab. + Data | Escala + Cód. Colab. + Fecha | Scale + Colab.Code + Date | S | - | - | S | 2 | 3 | - | 12933 | 0 |
| GYE | 4 | GYE_FILIAL+GYE_CODGYQ+GYE_COLCOD+DTOS(GYE_DTREF) | Cód. Aloc. + Cod. Colab. + Data | Cód. Asign. + Cód. Colab. + Fecha | Alloc code + Colab.Code + Date | S | - | - | S | 2 | 3 | - | 12934 | 0 |
Ela é utilizada para resumo da alocação dentro do sistema ERP Protheus.
Nesta página você pode visualizar todos os campos, incluindo tipo, tamanho e validações.
Os índices são estruturas que melhoram a performance de busca e acesso aos dados dentro do Protheus.
Modelo de query gerado automaticamente com base na estrutura da tabela.
SELECT
GYE_FILIAL,
GYE_CODGYQ,
GYE_COLCOD,
GYE_DTREF,
GYE_DIASEM,
GYE_SITRH,
GYE_TPDIA,
GYE_ESCALA,
GYE_ESCDES,
GYE_STATUS
FROM GYE
WHERE
D_E_L_E_T_ = ' '
AND GYE_FILIAL = 'VALOR'
AND GYE_CODGYQ = 'VALOR'
AND GYE_COLCOD = 'VALOR'
AND GYE_DTREF BETWEEN '20260501' AND '20260531'
AND GYE_DIASEM = 'VALOR'
AND GYE_SITRH = 'VALOR'
AND GYE_TPDIA = 'VALOR'
AND GYE_ESCALA = 'VALOR'
AND GYE_ESCDES = 'VALOR'
AND GYE_STATUS = 'VALOR'