|
|
|
|
@ -392,12 +392,15 @@ public class EmpresaPanel extends JPanel
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
String names[] = empresa.getFieldNames();
|
|
|
|
|
Hashtable hash = new Hashtable();
|
|
|
|
|
// String names[] = new String[]{ EmpresaData.DESIGNACAO_SOCIAL, EmpresaData.SERVICO_SAUDE_TIPO,
|
|
|
|
|
// EmpresaData.SERVICO_SAUDE_DESIGNACAO, EmpresaData.SERVICO_HIGIENE_TIPO,
|
|
|
|
|
// EmpresaData.SERVICO_HIGIENE_DESIGNACAO };
|
|
|
|
|
Hashtable hash = empresa.getHashData();
|
|
|
|
|
ComponentController.save( names, hash, empresaComponents );
|
|
|
|
|
empresa.setHashData( hash );
|
|
|
|
|
|
|
|
|
|
names = estabelecimento.getFieldNames();
|
|
|
|
|
hash = new Hashtable();
|
|
|
|
|
hash = estabelecimento.getHashData();
|
|
|
|
|
ComponentController.save( names, hash, estabelecimentoComponents );
|
|
|
|
|
estabelecimento.setHashData( hash );
|
|
|
|
|
estabelecimento.set( EstabelecimentoData.EMPRESA, empresa );
|
|
|
|
|
|