Prioridade de Entrega
A tabela DYK faz parte do sistema ERP Protheus da TOTVS e é utilizada para prioridade de entrega.
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 DYK 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 DYK, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | DYK |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | DYK990 |
| X2_NOME | Prioridade de Entrega |
| X2_NOMESPA | Prioridad de Entrega |
| X2_NOMEENG | Delivery Priority |
| X2_ROTINA | - |
| X2_MODO | C |
| X2_MODOUN | E |
| X2_MODOEMP | E |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | DYK_FILIAL+DYK_CODPRI |
| X2_PYME | N |
| X2_MODULO | 43 |
| X2_DISPLAY | DYK_FILIAL+DYK_CODPRI |
| 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_ | 3671 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| DYK | 01 | DYK_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 | - | - | - | - | V | R | - | - | - | - | - | - | - | - | 033 | - | N | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 57480 | 0 |
| DYK | 02 | DYK_CODPRI | C | 3 | 0 | Código | Codigo | Code | Código da Prioridade | Codigo de la Prioridad | Priority Code | - | ExistChav("DYK") | x x x x x x xx x x x x x x x x | IIF(INCLUI,GETSXENUM("DYK","DYK_CODPRI"),"") | - | 1 | xx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 57481 | 0 |
| DYK | 03 | DYK_DESPRI | C | 30 | 0 | Prioridade | Prioridad | Priority | Prioridade | Prioridad | Priority | @! | - | x x x x x x xx x x x x x x x x | - | - | 1 | xx | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 57482 | 0 |
| DYK | 04 | DYK_TIPPRI | C | 2 | 0 | Tipo | Tipo | Type | Tipo Prioridade de Entr. | Tipo Prioridad de Entr. | Infl. Priority Type | - | TMSVALFIELD("M->DYK_TIPPRI",.T.,"DYK_DESCTP") | x x x x x x xx x x x x x x x x | - | DLCPAE | 1 | xx | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 57483 | 0 |
| DYK | 05 | DYK_DESCTP | C | 30 | 0 | Desc. Tipo | Desc. Tipo | Type Desc. | Descrição do Tipo Prior. | Descripc. del Tipo Prior. | Prior. Type Description | - | - | x x x x x x xx x x x x x x x x | TMSVALFIELD("M->DYK_TIPPRI",.F.,"DYK_DESCTP") | - | 1 | xx | - | - | - | S | V | V | - | - | - | - | - | - | - | TMSVALFIELD("DYK->DYK_TIPPRI",.F.,"DYK_DESCTP") | - | - | N | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 57484 | 0 |
| DYK | 06 | DYK_DEPRI | N | 3 | 0 | De x Dias | De vs. Dias | Of x Days | De x Dias | De vs. Dias | Of x Days | @E 999 | Positivo() | x x x x x x xx x x x x x x x x | - | - | 1 | xx | - | - | - | S | A | R | - | - | - | - | - | - | AllTrim(M->DYK_TIPPRI)$"01;03" | - | - | - | N | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 57485 | 0 |
| DYK | 07 | DYK_ATEPRI | N | 3 | 0 | Até x Dias | A vs. Dias | To x Days | Até x Dias | A vs. Dias | To x Days | @E 999 | Positivo() .And. M->DYK_ATEPRI >= M->DYK_DEPRI | x x x x x x xx x x x x x x x x | - | - | 1 | xx | - | - | - | S | A | R | - | - | - | - | - | - | AllTrim(M->DYK_TIPPRI)$"01;03" | - | - | - | N | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 57486 | 0 |
| DYK | 08 | DYK_CORPRI | C | 1 | 0 | Cor | Color | Color | Cor p/ Prioridade de Entr | Color p/ Prioridade de En | Color f/ infl. priority | - | - | x x x x x x xx x x x x x x x x | - | - | 1 | xx | - | - | - | N | A | R | - | - | 1=Amarelo;2=Azul;3=Branco;4=Cinza;5=Laranja;6=Marrom;7=Preto;8=Rosa;9=Verde;A=Vermelho | 1=Amarillo;2=Azul;3=Blanco;4=Gris;5=Anaranjado;6=Marrón;7=Negro;8=Rosado;9=Verde;A=Rojo | 1=Yellow;2=Blue;3=White;4=Gray;5=Orange;6=Brown;7=Black;8=Pink;9=Green;A=Red | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 57487 | 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| DYK | 1 | DYK_FILIAL+DYK_CODPRI | Código | Codigo | Code | S | - | - | S | 2 | 3 | - | 8750 | 0 |
Ela é utilizada para prioridade de entrega 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
DYK_FILIAL,
DYK_CODPRI,
DYK_DESPRI,
DYK_TIPPRI,
DYK_DESCTP,
DYK_DEPRI,
DYK_ATEPRI,
DYK_CORPRI
FROM DYK
WHERE
D_E_L_E_T_ = ' '
AND DYK_FILIAL = 'VALOR'
AND DYK_CODPRI = 'VALOR'
AND DYK_DESPRI = 'VALOR'
AND DYK_TIPPRI = 'VALOR'
AND DYK_DESCTP = 'VALOR'
AND DYK_DEPRI = 0
AND DYK_ATEPRI = 0
AND DYK_CORPRI = 'VALOR'