|
|
|
|
@ -6,6 +6,7 @@
|
|
|
|
|
|
|
|
|
|
package siprp.pesquisas;
|
|
|
|
|
|
|
|
|
|
import java.awt.BorderLayout;
|
|
|
|
|
import java.awt.Dimension;
|
|
|
|
|
import java.awt.FileDialog;
|
|
|
|
|
import java.awt.FlowLayout;
|
|
|
|
|
@ -54,7 +55,7 @@ import com.evolute.utils.ui.text.CopyPasteHandler;
|
|
|
|
|
*
|
|
|
|
|
* @author fpalma
|
|
|
|
|
*/
|
|
|
|
|
public class PesquisasWindow extends SIPRPFrame
|
|
|
|
|
public class RelatorioAnualWindow extends SIPRPFrame
|
|
|
|
|
implements TrackableWindow, ListSelectionListener, ActionListener
|
|
|
|
|
{
|
|
|
|
|
private ProviderInterface JDO;
|
|
|
|
|
@ -76,7 +77,7 @@ public class PesquisasWindow extends SIPRPFrame
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
/** Creates a new instance of PesquisasWindow */
|
|
|
|
|
public PesquisasWindow()
|
|
|
|
|
public RelatorioAnualWindow()
|
|
|
|
|
throws Exception
|
|
|
|
|
{
|
|
|
|
|
provider = (PesquisasProvider)PesquisasProvider.getProvider();
|
|
|
|
|
@ -101,8 +102,6 @@ public class PesquisasWindow extends SIPRPFrame
|
|
|
|
|
empresasTable.setNonResizableNorReordable();
|
|
|
|
|
empresasTable.getSelectionModel().addListSelectionListener( this );
|
|
|
|
|
JScrollPane empresasScroll = new JScrollPane();
|
|
|
|
|
empresasScroll.setBorder( BorderFactory.createTitledBorder(
|
|
|
|
|
BorderFactory.createEtchedBorder(), "Empresa" ) );
|
|
|
|
|
empresasScroll.setViewportView( empresasTable );
|
|
|
|
|
empresasScroll.setHorizontalScrollBarPolicy( JScrollPane.HORIZONTAL_SCROLLBAR_NEVER );
|
|
|
|
|
empresasScroll.setVerticalScrollBarPolicy( JScrollPane.VERTICAL_SCROLLBAR_ALWAYS );
|
|
|
|
|
@ -114,8 +113,6 @@ public class PesquisasWindow extends SIPRPFrame
|
|
|
|
|
estabelecimentosTable.setNonResizableNorReordable();
|
|
|
|
|
estabelecimentosTable.getSelectionModel().addListSelectionListener( this );
|
|
|
|
|
JScrollPane estabelecimentosScroll = new JScrollPane();
|
|
|
|
|
estabelecimentosScroll.setBorder( BorderFactory.createTitledBorder(
|
|
|
|
|
BorderFactory.createEtchedBorder(), "Estabelecimento" ) );
|
|
|
|
|
estabelecimentosScroll.setViewportView( estabelecimentosTable );
|
|
|
|
|
estabelecimentosScroll.setHorizontalScrollBarPolicy( JScrollPane.HORIZONTAL_SCROLLBAR_NEVER );
|
|
|
|
|
estabelecimentosScroll.setVerticalScrollBarPolicy( JScrollPane.VERTICAL_SCROLLBAR_ALWAYS );
|
|
|
|
|
@ -159,11 +156,19 @@ public class PesquisasWindow extends SIPRPFrame
|
|
|
|
|
constraints.gridheight = 2;
|
|
|
|
|
constraints.weightx = 0.3;
|
|
|
|
|
constraints.gridwidth = 3;
|
|
|
|
|
gridbag.setConstraints( empresasScroll, constraints );
|
|
|
|
|
getContentPane().add( empresasScroll );
|
|
|
|
|
|
|
|
|
|
gridbag.setConstraints( estabelecimentosScroll, constraints );
|
|
|
|
|
getContentPane().add( estabelecimentosScroll );
|
|
|
|
|
JPanel empresasPanel = new JPanel( new BorderLayout() );
|
|
|
|
|
JPanel estabelecimentosPanel = new JPanel( new BorderLayout() );
|
|
|
|
|
empresasPanel.setBorder( BorderFactory.createTitledBorder( "Empresa" ) );
|
|
|
|
|
estabelecimentosPanel.setBorder( BorderFactory.createTitledBorder( "Estabelecimento" ) );
|
|
|
|
|
empresasPanel.add( empresasScroll, BorderLayout.CENTER );
|
|
|
|
|
estabelecimentosPanel.add( estabelecimentosScroll, BorderLayout.CENTER );
|
|
|
|
|
|
|
|
|
|
gridbag.setConstraints( empresasPanel, constraints );
|
|
|
|
|
getContentPane().add( empresasPanel );
|
|
|
|
|
|
|
|
|
|
gridbag.setConstraints( estabelecimentosPanel, constraints );
|
|
|
|
|
getContentPane().add( estabelecimentosPanel );
|
|
|
|
|
|
|
|
|
|
constraints.weighty = 0;
|
|
|
|
|
constraints.gridheight = 1;
|