CRUD All
Cadastro único da tabela principal com tabelas filhas (e opcionalmente avulsas), salvamento transacional, replicação de valores e relatório pós-salvamento.
Há duas formas de configurar a mesma base de código (NfsCrudFormAll + saveAll):
| Custom | Entry Point | |
|---|---|---|
| Armazenamento | nfs_crud_all_custom + admin | nfs_entry_point, ACTION=CrudAll |
| URL | /t/{table}/all/{slug} ou /all/{seqDb} | /t/{table}/all |
| Escopo EFL, título, slug, layout cards | Sim | Não |
| Campos visíveis | Whitelist (main.fields, children[].fields) | Blacklist (*_hidden_fields) |
Configuração de telas: Custom — Admin e runtime. Entry Point: Rota /all e Entry Point.
Arquitetura
nfs_crud_all_custom + CONFIG (admin)
│
GET /t/{table}/all/{slug|seqDb}
│
NfsCrudFormAllCustom ui.mode: cards | classic
│
NfsCrudFormAll validação, save, replicação
nfs_entry_point (CrudAll)
│
GET /t/{table}/all
│
NfsCrudFormAll
Rotas
Base: t/{table} (ex.: OS).
| Rota | Requisito |
|---|---|
GET /t/{table}/all/{identifier} | Registro ATIVO em nfs_crud_all_custom (identifier = SLUG ou SEQ_DB) |
GET /t/{table}/all | Entry Point CrudAll com main_table = {table} |
POST /t/{table}/all-custom/save/{identifier} | Save (custom) |
POST /t/{table}/all/save | Save (rota /all) |
GET /t/{table}/all/report-pdf/{seqDb} | PDF da principal após o save |
Link de menu: /t/{MAIN_TABLE}/all/{slug} (ou /all/{seqDb} sem slug).
Documentação
- Crud All Custom — Admin e runtime
- CONFIG JSON — referência
- Rota
/alle Entry Point — inclui exemplos de tela de erro, sucesso e relatório PDF embutidos na página.