Tabela TPW - Hist Acompanhamento Contador2
Chave Unica: TPW_FILIAL + DTOS(TPW_DTREAL) + TPW_CODBEM + TPW_SERVIC + TPW_SEQREL + TPW_ORDEM + TPW_PLANO
Modo: E
Modo Unid.: E
Modo Empr.: E
Sumario:
Campos
| Campo | Titulo | Descricao | Tipo | Contexto | Tamanho |
|---|---|---|---|---|---|
| TPW_FILIAL | Filial | Filial do Sistema | C | Real | 2 |
| TPW_ORDEM | Ordem Serv. | Numero Ordem de Servico | C | Real | 6 |
| TPW_PLANO | Plano Acomp. | Nr. Plano Acompanhamento | C | Real | 6 |
| TPW_CODBEM | Bem | Codigo do Bem | C | Real | 16 |
| TPW_SERVIC | Servico | Codigo do Servico | C | Real | 6 |
| TPW_SEQREL | Sequencia | Sequencia da Manutencao | C | Real | 3 |
| TPW_DTORIG | Dt Original | Data Original Ordem Serv. | D | Real | 8 |
| TPW_DTREAL | Data Plano | Data Plano Acompanhamento | D | Real | 8 |
| TPW_POSCON | Contador | Posicao do Contador | N | Real | 9 |
| TPW_DTLEIT | Data Leitura | Data da Leitura | D | Real | 8 |
| TPW_SITUAC | Situacao | Situacao da Ordem Servico | C | Real | 1 |
| TPW_TERMIN | Termino | Indica Termino da O.S. | C | Real | 1 |
| TPW_USUCAN | Usuario Canc | Usuario do Cancelamento | C | Real | 25 |
| TPW_USULEI | Usuario Leit | Usuario da Leitura | C | Real | 25 |
| TPW_DTULTA | Data Ult.Ac. | Data Ult. Acompanhamento | D | Real | 8 |
| TPW_COULTA | Cont.Ult.Ac. | Cont. Ult. Acompanhamento | N | Real | 9 |
| TPW_CCUSTO | Centro Custo | Centro de Custos | C | Real | 9 |
| TPW_CENTRA | Centro Trab. | Centro de Trabalho | C | Real | 6 |
| TPW_TEMCON | Tem Contador | O Bem Tem Contador | C | Real | 1 |
| TPW_ACUMCO | Ac.Contador | Acumulador do Contador | N | Real | 12 |
| TPW_VIRACO | Virada Cont. | Virada do Contador do Bem | N | Real | 3 |
| TPW_VARDIA | Variacao Dia | Variaco Dia Ult.Acompanha | N | Real | 6 |
| TPW_HORA | Hora lancam. | Hora do lamcamento | C | Real | 5 |
| TPW_TIPOLA | Tipo Lanc. | Tipo de Lancamento | C | Real | 1 |
| TPW_SEQUEN | Sequencia | Sequencia da Manutencao | N | Real | 3 |
Indices
| Ordem | Chave | Descricao | Nickname |
|---|---|---|---|
| 1 | TPW_FILIAL + DTOS(TPW_DTREAL) + TPW_CODBEM + TPW_SERVIC + TPW_SEQREL + TPW_ORDEM + TPW_PLANO | Data Plano + Bem + Servico + Sequencia + Ordem Serv. + Plano Acomp. | |
| 2 | TPW_FILIAL + DTOS(TPW_DTREAL) + TPW_ORDEM + TPW_PLANO + TPW_CODBEM + TPW_SERVIC + TPW_SEQREL | Data Plano + Ordem Serv. + Plano Acomp. + Bem + Servico + Sequencia | |
| 3 | TPW_FILIAL + TPW_ORDEM + DTOS(TPW_DTORIG) | Ordem Serv. + Dt Original | |
| 4 | TPW_FILIAL + TPW_PLANO + TPW_ORDEM | Plano Acomp. + Ordem Serv. | |
| 5 | TPW_FILIAL + TPW_CODBEM + DTOS(TPW_DTLEIT) + TPW_HORA | Bem + Data Leitura + Hora lancam. | |
| 6 | TPW_FILIAL + TPW_CCUSTO | Centro Custo | |
| 7 | TPW_FILIAL + TPW_CENTRA | Centro Trab. |
Relacionamentos
| Tabela Origem | Tabela Destino | Expressao Origem | Expressao Destino | Relacionamento |
|---|---|---|---|---|
| CTT (Centro de Custo) | TPW (Hist Acompanhamento Contador2) | CTT_CUSTO | TPW_CCUSTO | 1 para N |
| SHB (Centro de Trabalho) | TPW (Hist Acompanhamento Contador2) | HB_COD | TPW_CENTRA | 1 para N |
| ST4 (Servicos de Manutencao) | TPW (Hist Acompanhamento Contador2) | T4_SERVICO | TPW_SERVIC | 1 para N |
| ST9 (Bem) | TPW (Hist Acompanhamento Contador2) | T9_CODBEM | TPW_CODBEM | 1 para N |
| STI (Plano de Manutencao) | TPW (Hist Acompanhamento Contador2) | TI_PLANO | TPW_PLANO | 1 para N |
| STJ (Ordens de Serv de Manutencao) | TPW (Hist Acompanhamento Contador2) | TJ_ORDEM | TPW_ORDEM | 1 para N |