From ee64f53cd9a69392093152da37050ef599cf413e Mon Sep 17 00:00:00 2001 From: bjverde Date: Sun, 1 Sep 2024 23:03:41 -0300 Subject: [PATCH] :hammer: #52 melhoria tela --- .../app/control/maindatabase/views/cnpjFormView.class.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/www/cnpjrfb/app/control/maindatabase/views/cnpjFormView.class.php b/www/cnpjrfb/app/control/maindatabase/views/cnpjFormView.class.php index 570f9792..4aecb6e0 100644 --- a/www/cnpjrfb/app/control/maindatabase/views/cnpjFormView.class.php +++ b/www/cnpjrfb/app/control/maindatabase/views/cnpjFormView.class.php @@ -64,6 +64,12 @@ public function onView($param = null) $this->form->addFields([new TLabel("Data situação cadastral:")],[new TTextDisplay( Transforme::date($estabelecimento->data_situacao_cadastral) )] ,[new TLabel("Situação cadastral:")],[new TTextDisplay( $estabelecimento->situacao_cadastral )] ); + $this->form->addContent([new TFormSeparator("CNAE", '#333', '18', '#eee')]); + $controllerCnae = new CnaeController(); + $cnae_principal = $controllerCnae->getNameTransformerById( $estabelecimento->cnae_fiscal_principal ); + $this->form->addFields([new TLabel("Principal:")],[new TTextDisplay( $cnae_principal )] + ,[new TLabel("Lista secundário:")],[new TTextDisplay( $estabelecimento->cnae_fiscal_secundaria )] + ); $this->showEmpresaSimples($cnpj_basico); $this->form->addContent([new TFormSeparator("Endereço", '#333', '18', '#eee')]); @@ -89,7 +95,7 @@ public function onView($param = null) TTransaction::close(); // fecha a transação. parent::add($this->form); $this->showGridSocios($cnpj_basico); - //$this->showGridCnae($empresa->getCnaesSecundarios()); + //$this->showGridCnae($estabelecimento->getCnaesSecundarios()); } catch(Exception $e) {