Cadastro de Alertas
A tabela BOS faz parte do sistema ERP Protheus da TOTVS e é utilizada para cadastro de alertas.
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 BOS 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 BOS, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | BOS |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | BOS990 |
| X2_NOME | Cadastro de Alertas |
| X2_NOMESPA | Archivo de alertas |
| X2_NOMEENG | Warning Register |
| X2_ROTINA | - |
| X2_MODO | E |
| X2_MODOUN | E |
| X2_MODOEMP | E |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | BOS_FILIAL+BOS_NROSEQ |
| X2_PYME | S |
| X2_MODULO | 33 |
| 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_ | 1408 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| BOS | 01 | BOS_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 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 033 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 23197 | 0 |
| BOS | 02 | BOS_CODPRO | C | 6 | 0 | Cod Programa | Cod Programa | Program Code | Cod. programa de Saude | Cod. Programa de SaludCod | Health Program Code | @! | - | x x x x x x x x x x x x x x x | - | - | 1 | - | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 23198 | 0 |
| BOS | 03 | BOS_NROSEQ | C | 6 | 0 | Seq Alert | Sec Alert | Warn. Seq. | Num Sequenc. do Alerta. | Num Secuenc. del Alerta. | Warning Sequence Nr | @! | - | x x x x x x x x x x x x x x x x | IIF(INCLUI, GETSXENUM('BOS','BOS_NROSEQ',, 1),BOS->BOS_NROSEQ) | - | 1 | x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 23199 | 0 |
| BOS | 04 | BOS_RESUMO | C | 80 | 0 | Resumo | Resumen | Summary | Resumo do Alerta. | Resumen del Alerta | Warning Summary | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 23200 | 0 |
| BOS | 05 | BOS_DATSIN | D | 8 | 0 | Data Inicio | Fch. Inicial | Start Date | Data Inicio do Alerta | Fecha Inicial del Alerta | Warning Start Date | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 23201 | 0 |
| BOS | 06 | BOS_HORAIN | C | 5 | 0 | Hora Alerta | Hora Alerta | Warning Time | Hora do Alerta | Hora del Alerta | Warning Time | 99:99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | A | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 23202 | 0 |
| BOS | 07 | BOS_TEXTO | M | 10 | 0 | Texto Alerta | Texto Alerta | Warning Text | Texto do Alerta | Texto del Alerta | Warning Text | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 23203 | 0 |
| BOS | 08 | BOS_ACAO | M | 10 | 0 | Acao Alerta | Accion Alert | Warning Acti | Acao do Alerta | Accion del Alerta | Warning Action | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 23204 | 0 |
| BOS | 09 | BOS_ORIGEM | C | 30 | 0 | Origem Aler. | Origen Aler. | Warning Orig | Origem Alerta | Origen Alerta | Warning Origin | @! | - | x x x x x x x x x x x x x x x x | FunName() | - | 1 | x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 23205 | 0 |
| BOS | 10 | BOS_DESTIN | C | 1 | 0 | Destino | Destino | Target | Destino Alerta | Destino aviso | Warning Target | @! | Pertence('0123') | x x x x x x x x x x x x x x x x | '0' | - | 1 | x | - | - | - | S | A | R | - | - | 0=Paciente;1=Profissional;2=Promocao;3=Todos | 0=Paciente;1=Profesional;2=Promocion;3=Todos | 0=Patient;1=Professional;2=Promotion;3=All | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 23206 | 0 |
| BOS | 11 | BOS_CODSIN | C | 6 | 0 | Cod Sinaliz | Cod Senaliz | Flag Code | Cod. do Sinalizador | Cod. del Senalizador | Flag Code | @! | - | x x x x x x x x x x x x x x x x | IIF(INCLUI, GETSXENUM('BOS','BOS_CODSIN',, 1),BOS->BOS_CODSIN) | - | 1 | x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 23207 | 0 |
| BOS | 12 | BOS_DESSIN | C | 40 | 0 | Descricao | Descripcion | Description | Descricao do Sinalizador | Descripc. del Senalizador | Flag Description | @! | - | x x x x x x x x x x x x x x x x | IIf(!INCLUI,Posicione("BOJ",1,xFilial("BOJ")+BOS->BOS_CODSIN,"BOJ_ASSUNT")," ") | - | 1 | x | - | - | - | S | V | - | - | - | - | - | - | - | - | Posicione("BOJ",1,xFilial("BOJ")+BOS->BOS_CODSIN,"BOJ_ASSUNT") | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 23208 | 0 |
| BOS | 13 | BOS_AUTOMA | C | 1 | 0 | Alert Automa | Alert Autom. | Autom. Warn. | Alert Automatico | Alerta Automatico | Automatic Warning | @! | Pertence('01') | x x x x x x x x x x x x x x x x | '1' | - | 1 | x | - | - | - | S | A | R | - | - | 0=Nao;1=Sim | 0=No;1=Si | 0=No;1=Yes | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 23209 | 0 |
| BOS | 14 | BOS_VIDA | C | 8 | 0 | Cod. Vida | Cod. Aseg. | Person Cd. | Codigo da Vida no Plano | Codigo del Aseg en el Seg | Person Code in Plan | @! | HS_SeekRet('BTS','M->BOS_VIDA',1,.f.,'BOS_NOME','BTS_NOMUSR') | x x x x x x x x x x x x x x x x | - | BTS | 1 | x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 23210 | 0 |
| BOS | 15 | BOS_NOME | C | 70 | 0 | Nome Partic. | Nomb Partic. | Partic. Name | Participante do Programa | Participante del Programa | Program Participant | @! | - | x x x x x x x x x x x x x x x x | IIf(!INCLUI,Posicione("BTS",1,xFilial("BTS")+BOS->BOS_VIDA,"BTS_NOMUSR")," ") | - | 1 | x | - | - | - | S | V | V | - | - | - | - | - | - | - | Posicione("BTS",1,xFilial("BTS")+BOS->BOS_VIDA,"BTS_NOMUSR") | 034 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 23211 | 0 |
| BOS | 16 | BOS_STATUS | C | 1 | 0 | Status Alert | Estatus Aler | Warning St. | Status do Alerta | Estatus del Alerta | Warning Status | @! | Pertence('01') | x x x x x x x x x x x x x x x x | '0' | - | 1 | x | - | - | - | S | V | R | - | - | 0=Pendente;1=Processado | 0=Pendiente;1=Procesado | 0=Pending;1=Processed | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 23212 | 0 |
| BOS | 17 | BOS_TPALER | C | 1 | 0 | Tipo Alerta | Tipo Alerta | Warning Type | Tipo do Alerta | Tipo de Alerta | Warning Type | @! | Pertence('012') | x x x x x x x x x x x x x x x x | '0' | - | 1 | x | - | - | - | S | A | R | - | - | 0=Internacao;1=Agenda;2=Evento | 0=Internacion;1=Agenda;2=Evento | 0=Hospitalization;1=Schedule;2=Event | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 23213 | 0 |
| BOS | 18 | BOS_CODLOC | C | 3 | 0 | Cd.Local | Cd.Local | Local Code | Codigo Local Atend | Codigo Local Atenc | Serv Location Code | @! | - | x x x x x x x x x x x x x x x x | BOQ->BOQ_CODLOC | - | 1 | x xx x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 23214 | 0 |
| BOS | 19 | BOS_LOCAL | C | 30 | 0 | Descricao | Descripcion | Description | Local Atendimento | Local Atencion | Service Location | @! | PLSConLoc(BOS->BOS_CODLOC) | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | V | V | - | - | - | - | - | - | - | Posicione('BD1',1,xFilial('BD1')+PlsIntPad()+BOS->BOS_CODLOC,'BD1_DESLOC') | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 23215 | 0 |
| BOS | 20 | BOS_CODEVE | C | 6 | 0 | Camp/Evento | Camp/Evento | Camp/Event | Campanhas / Eventos | Campanas / Eventos | Campaigns / Events | @! | - | 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 | - | - | - | 23216 | 0 |
| BOS | 21 | BOS_DATEVE | D | 8 | 0 | Dt. Evento | Fch. Evento | Event Dt | Data do Evento | Fecha del evento | Event 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 | - | - | - | 23217 | 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| BOS | 1 | BOS_FILIAL+BOS_NROSEQ | Seq Alert | Sec Alert | Warn. Seq. | S | - | - | S | 2 | 3 | - | 3285 | 0 |
| BOS | 2 | BOS_FILIAL+BOS_CODSIN | Cod Sinaliz | Cod Senaliz | Flag Code | S | - | - | S | 2 | 3 | - | 3286 | 0 |
| BOS | 3 | BOS_FILIAL+BOS_VIDA+BOS_CODPRO | Cod. Vida + Cod Programa | Cod. Aseg. + Cod Programa | Person Cd. + Program Code | S | - | - | S | 2 | 3 | - | 3287 | 0 |
Ela é utilizada para cadastro de alertas 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.