001: /*
002: * Created on 17/01/2005
003: *
004: * Swing Components - visit http://sf.net/projects/gfd
005: *
006: * Copyright (C) 2004 Igor Regis da Silva Simões
007: *
008: * This program is free software; you can redistribute it and/or
009: * modify it under the terms of the GNU General Public License
010: * as published by the Free Software Foundation; either version 2
011: * of the License, or (at your option) any later version.
012: *
013: * This program is distributed in the hope that it will be useful,
014: * but WITHOUT ANY WARRANTY; without even the implied warranty of
015: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
016: * GNU General Public License for more details.
017: *
018: * You should have received a copy of the GNU General Public License
019: * along with this program; if not, write to the Free Software
020: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
021: *
022: */
023: package br.com.gfp.windows;
024:
025: import java.awt.BorderLayout;
026: import java.awt.Dimension;
027: import java.awt.GridBagConstraints;
028: import java.awt.Insets;
029: import java.awt.event.ActionEvent;
030: import java.awt.event.ActionListener;
031: import java.beans.PropertyVetoException;
032: import java.sql.SQLException;
033: import java.util.HashMap;
034:
035: import javax.swing.JButton;
036: import javax.swing.JFrame;
037: import javax.swing.JInternalFrame;
038: import javax.swing.JOptionPane;
039: import javax.swing.event.ListSelectionEvent;
040: import javax.swing.event.ListSelectionListener;
041:
042: import br.com.gfp.dao.GFPController;
043: import br.com.gfp.dao.ImportByHistoryMappingDAO;
044: import br.com.gfp.data.Contact;
045: import br.com.gfp.data.ImportByHistoryMapping;
046: import br.com.gfp.data.TransactionType;
047: import br.com.gfp.internationalization.ErrosDeDadosMessages;
048: import br.com.gfp.internationalization.TableHeaderMessages;
049: import br.com.gfp.internationalization.TelaBancoMessages;
050: import br.com.gfp.reports.ReportFactory;
051: import br.com.gfp.util.SimpleLog;
052: import br.com.gfp.windows.componentes.GFPHeaderRenderer;
053: import br.com.gfp.windows.componentes.GFPTableCellRenderer;
054: import br.com.gfpshare.beans.DBComboBox;
055: import br.com.gfpshare.beans.GeneralEventHandler;
056: import br.com.gfpshare.beans.MessageView;
057: import br.com.gfpshare.beans.ZLabel;
058: import br.com.gfpshare.beans.ZTextField;
059: import br.com.gfpshare.beans.aplicativos.PainelTelaBasica;
060: import br.com.gfpshare.beans.table.DBTable;
061:
062: /**
063: * @author f4353008
064: * @since 17/01/2005 11:15:05
065: *
066: * To change the template for this generated type comment go to
067: * Window - Preferences - Java - Code Generation - Code and Comments
068: */
069: public class ConfigMappingWindow extends JInternalFrame {
070: private PainelTelaBasica painelTelaBasica = new PainelTelaBasica();
071:
072: private ZLabel jlTextoAMapear;
073:
074: private ZTextField jtfTextoAMapear;
075:
076: private ZLabel jlTipoLancamento;
077:
078: private DBComboBox dbTipoLancamento;
079:
080: private ZLabel jlContato;
081:
082: private DBComboBox dbContato;
083:
084: private DBTable jtMapeamentos;
085:
086: private ImportByHistoryMapping mapeamentoVisaVale = new ImportByHistoryMapping();
087:
088: private ImportByHistoryMappingDAO controller = new ImportByHistoryMappingDAO();
089:
090: /**
091: *
092: */
093: public ConfigMappingWindow() {
094: setVisible(true);
095: setIconifiable(true);
096: setMaximizable(true);
097: setResizable(true);
098: setClosable(true);
099: setContentPane(painelTelaBasica);
100:
101: setTitle(TelaBancoMessages.getMessages().getString(
102: "MapeamentosVisaVale")); //$NON-NLS-1$
103: // setFrameIcon(IconeFactory.getIconeFactory().getImageIcon(IconeFactory.BANCO_PEQUENA));
104:
105: GridBagConstraints gridBagConstraints;
106:
107: painelTelaBasica = new PainelTelaBasica();
108: painelTelaBasica.getTextAreaDescricao().setVisible(false);
109:
110: jtMapeamentos = new DBTable(new ImportByHistoryMapping(),
111: new GFPHeaderRenderer());
112: jtMapeamentos.hideColumn("Id");
113: jtMapeamentos.getColumn(jtMapeamentos.getColumnName(1))
114: .setWidth(150);
115: jtMapeamentos.getColumn(jtMapeamentos.getColumnName(1))
116: .setMinWidth(100);
117: jtMapeamentos.getColumn(jtMapeamentos.getColumnName(2))
118: .setWidth(150);
119: jtMapeamentos.getColumn(jtMapeamentos.getColumnName(2))
120: .setMinWidth(100);
121:
122: jtMapeamentos.getColumn("ContatoComOQualMapear")
123: .setCellRenderer(
124: new GFPTableCellRenderer(
125: GFPTableCellRenderer.ENTIDADE, -1));
126: jtMapeamentos.getColumn("TipoLancamentoComQueMapear")
127: .setCellRenderer(
128: new GFPTableCellRenderer(
129: GFPTableCellRenderer.TIPO_LANCAMENTO,
130: -1));
131: jtMapeamentos.getColumn("TipoContaValido").setCellRenderer(
132: new GFPTableCellRenderer(
133: GFPTableCellRenderer.TIPO_CONTA, -1));
134: jtMapeamentos.getColumn("ContaValido").setCellRenderer(
135: new GFPTableCellRenderer(
136: GFPTableCellRenderer.CONTA_CORRENTE, -1));
137: jtMapeamentos.getSelectionModel().addListSelectionListener(
138: (ListSelectionListener) GeneralEventHandler.makeProxy(
139: this , "loadFromTable",
140: ListSelectionListener.class, "valueChanged"));
141:
142: painelTelaBasica.setJtDados(jtMapeamentos);
143: painelTelaBasica.addPrintButtonListener(new PrintListener());
144:
145: jlTextoAMapear = new ZLabel((MessageView) GFPController
146: .getGFPController().getContexto().get(
147: GFPController.RODAPE_MESSAGER));
148: jtfTextoAMapear = new ZTextField();
149: jlTipoLancamento = new ZLabel((MessageView) GFPController
150: .getGFPController().getContexto().get(
151: GFPController.RODAPE_MESSAGER));
152: dbTipoLancamento = new DBComboBox(new TransactionType());
153: jlContato = new ZLabel((MessageView) GFPController
154: .getGFPController().getContexto().get(
155: GFPController.RODAPE_MESSAGER));
156: dbContato = new DBComboBox(new Contact());
157:
158: jlTextoAMapear.setText(TableHeaderMessages.getMessages()
159: .getString("StringAMapear"));
160: jlTextoAMapear.setDisplayedMnemonic(TableHeaderMessages
161: .getMessages().getString("StringAMapearMnemonic")
162: .charAt(0));
163: jlTextoAMapear.setRequiredField(jtfTextoAMapear);
164: jlTextoAMapear.setValidationNotNull(true);
165: jlTextoAMapear.setToolTipText(TableHeaderMessages.getMessages()
166: .getString("StringAMapearToolTip"));
167: gridBagConstraints = new GridBagConstraints();
168: gridBagConstraints.gridx = 0;
169: gridBagConstraints.gridy = 0;
170: gridBagConstraints.insets = new Insets(5, 5, 5, 5);
171: painelTelaBasica.addComponent(jlTextoAMapear,
172: gridBagConstraints,
173: PainelTelaBasica.DATA_COMPONENTS_AREA);
174:
175: jtfTextoAMapear.setMinimumSize(new Dimension(100, 24));
176: jtfTextoAMapear.setPreferredSize(new Dimension(180, 26));
177: jtfTextoAMapear.setToolTipText(TableHeaderMessages
178: .getMessages().getString("StringAMapearToolTip"));
179: gridBagConstraints = new GridBagConstraints();
180: gridBagConstraints.gridx = 1;
181: gridBagConstraints.gridy = 0;
182: gridBagConstraints.insets = new Insets(5, 5, 5, 5);
183: painelTelaBasica.addComponent(jtfTextoAMapear,
184: gridBagConstraints,
185: PainelTelaBasica.DATA_COMPONENTS_AREA);
186:
187: jlTipoLancamento.setText(TableHeaderMessages.getMessages()
188: .getString("TipoLancamentoComQueMapear"));
189: jlTipoLancamento
190: .setDisplayedMnemonic(TableHeaderMessages
191: .getMessages()
192: .getString("TipoLancamentoComQueMapearMnemonic")
193: .charAt(0));
194: jlTipoLancamento.setRequiredField(jtfTextoAMapear);
195: jlTipoLancamento.setValidationNotNull(true);
196: jlTipoLancamento.setToolTipText(TableHeaderMessages
197: .getMessages().getString(
198: "TipoLancamentoComQueMapearToolTip"));
199: gridBagConstraints = new GridBagConstraints();
200: gridBagConstraints.gridx = 0;
201: gridBagConstraints.gridy = 1;
202: gridBagConstraints.insets = new Insets(5, 5, 5, 5);
203: painelTelaBasica.addComponent(jlTipoLancamento,
204: gridBagConstraints,
205: PainelTelaBasica.DATA_COMPONENTS_AREA);
206:
207: dbTipoLancamento.setMinimumSize(new Dimension(100, 24));
208: dbTipoLancamento.setPreferredSize(new Dimension(180, 26));
209: dbTipoLancamento.setToolTipText(TableHeaderMessages
210: .getMessages().getString(
211: "TipoLancamentoComQueMapearToolTip"));
212: gridBagConstraints = new GridBagConstraints();
213: gridBagConstraints.gridx = 1;
214: gridBagConstraints.gridy = 1;
215: gridBagConstraints.insets = new Insets(5, 5, 5, 5);
216: painelTelaBasica.addComponent(dbTipoLancamento,
217: gridBagConstraints,
218: PainelTelaBasica.DATA_COMPONENTS_AREA);
219:
220: jlContato.setText(TableHeaderMessages.getMessages().getString(
221: "ContatoComOQualMapear"));
222: jlContato.setDisplayedMnemonic(TableHeaderMessages
223: .getMessages().getString(
224: "ContatoComOQualMapearMnemonic").charAt(0));
225: jlContato.setRequiredField(jtfTextoAMapear);
226: jlContato.setValidationNotNull(true);
227: jlContato.setToolTipText(TableHeaderMessages.getMessages()
228: .getString("ContatoComOQualMapearToolTip"));
229: gridBagConstraints = new GridBagConstraints();
230: gridBagConstraints.gridx = 0;
231: gridBagConstraints.gridy = 2;
232: gridBagConstraints.insets = new Insets(5, 5, 5, 5);
233: painelTelaBasica.addComponent(jlContato, gridBagConstraints,
234: PainelTelaBasica.DATA_COMPONENTS_AREA);
235:
236: dbContato.setMinimumSize(new Dimension(100, 24));
237: dbContato.setPreferredSize(new Dimension(180, 26));
238: dbContato.setToolTipText(TableHeaderMessages.getMessages()
239: .getString("ContatoComOQualMapearToolTip"));
240: gridBagConstraints = new GridBagConstraints();
241: gridBagConstraints.gridx = 1;
242: gridBagConstraints.gridy = 2;
243: gridBagConstraints.insets = new Insets(5, 5, 5, 5);
244: painelTelaBasica.addComponent(dbContato, gridBagConstraints,
245: PainelTelaBasica.DATA_COMPONENTS_AREA);
246:
247: painelTelaBasica.getPainelBotoes().addActionListener(
248: "salvar",
249: (ActionListener) GeneralEventHandler.makeProxy(this ,
250: "salvar", ActionListener.class,
251: "actionPerformed"));
252: painelTelaBasica.getPainelBotoes().addActionListener(
253: "atualizar",
254: (ActionListener) GeneralEventHandler.makeProxy(this ,
255: "atualizar", ActionListener.class,
256: "actionPerformed"));
257: painelTelaBasica.getPainelBotoes().addActionListener(
258: "novo",
259: (ActionListener) GeneralEventHandler
260: .makeProxy(this , "novo", ActionListener.class,
261: "actionPerformed"));
262: painelTelaBasica.getPainelBotoes().addActionListener(
263: "excluir",
264: (ActionListener) GeneralEventHandler.makeProxy(this ,
265: "excluir", ActionListener.class,
266: "actionPerformed"));
267: painelTelaBasica.getPainelBotoes().addActionListener(
268: "pesquisar",
269: (ActionListener) GeneralEventHandler.makeProxy(this ,
270: "pesquisar", ActionListener.class,
271: "actionPerformed"));
272: painelTelaBasica.getPainelBotoes().addActionListener(
273: "limpar",
274: (ActionListener) GeneralEventHandler.makeProxy(this ,
275: "limpar", ActionListener.class,
276: "actionPerformed"));
277: painelTelaBasica.getPainelBotoes().addActionListener(
278: "filtrar",
279: (ActionListener) GeneralEventHandler.makeProxy(this ,
280: "filtrar", ActionListener.class,
281: "actionPerformed"));
282:
283: getContentPane().add(painelTelaBasica, BorderLayout.CENTER);
284:
285: }
286:
287: /*
288: * Aqui nós cuidamos para que o campo com descrição ique oculto.
289: * @see javax.swing.JInternalFrame#setMaximum(boolean)
290: */
291: @Override
292: public void setMaximum(boolean b) throws PropertyVetoException {
293: super .setMaximum(b);
294: painelTelaBasica.setVerticalDividerLocation(1.0);
295: }
296:
297: private class PrintListener implements ActionListener {
298: public void actionPerformed(final ActionEvent e) {
299: JOptionPane.showMessageDialog((JFrame) GFPController
300: .getGFPController().getContexto().get(
301: GFPController.FRAME_PRINCIPAL),
302: "Relatórios ainda não disponíveis.");
303: if (true)
304: return;
305: ((JButton) e.getSource()).setEnabled(false);
306: (new Thread() {
307: {
308: setPriority(Thread.MIN_PRIORITY);
309: setDaemon(true);
310: }
311:
312: @Override
313: public void run() {
314: try {
315: ReportFactory.makeReport("MapeamentosVisaVale",
316: new HashMap());
317: } catch (Exception e1) {
318: ((SimpleLog) GFPController.getGFPController()
319: .getContexto().get(GFPController.LOG))
320: .log("Erro na geracao do relatorio de bancos!");
321: ((SimpleLog) GFPController.getGFPController()
322: .getContexto().get(GFPController.LOG))
323: .log(e1.getLocalizedMessage());
324: ((SimpleLog) GFPController.getGFPController()
325: .getContexto().get(GFPController.LOG))
326: .log(e1);
327: } finally {
328: ((JButton) e.getSource()).setEnabled(true);
329: }
330: }
331: }).start();
332: }
333: }
334:
335: public void salvar(ActionEvent e) {
336: if (mapeamentoVisaVale == null) {
337: JOptionPane.showMessageDialog(this , TelaBancoMessages
338: .getMessages().getString("semDadosParaSalvar"));
339: return;
340: }
341: loadMapImportacaoPorHistorico();
342: if (controller.isAdicionandoNovo()) {
343: try {
344: controller.adicionarNovo(mapeamentoVisaVale);
345: } catch (SQLException sqle) {
346: JOptionPane.showMessageDialog(this , sqle.getMessage(),
347: ErrosDeDadosMessages.getMessages().getString(
348: "MessageTitle"),
349: JOptionPane.WARNING_MESSAGE);
350: painelTelaBasica.getPainelBotoes().setOcorreuErro(true);
351: return;
352: }
353: } else {
354: try {
355: controller.atualizar(mapeamentoVisaVale);
356: } catch (SQLException sqle) {
357: JOptionPane.showMessageDialog(this , sqle.getMessage(),
358: ErrosDeDadosMessages.getMessages().getString(
359: "MessageTitle"),
360: JOptionPane.WARNING_MESSAGE);
361: painelTelaBasica.getPainelBotoes().setOcorreuErro(true);
362: return;
363: }
364: }
365: mapeamentoVisaVale = null;
366: refreshTabelaMapImportacaoPorHistoricos();
367: }
368:
369: /**
370: * @param e
371: */
372: public void pesquisar(ActionEvent e) {
373: if (mapeamentoVisaVale == null)
374: mapeamentoVisaVale = new ImportByHistoryMapping(
375: jtfTextoAMapear.getText());
376:
377: loadMapImportacaoPorHistorico();
378: try {
379: mapeamentoVisaVale = controller.getBy(mapeamentoVisaVale);
380: } catch (SQLException sqle) {
381: ((SimpleLog) GFPController.getGFPController().getContexto()
382: .get(GFPController.LOG))
383: .log("Erro ao pesquisar mapeamentoVisaVale: "
384: + mapeamentoVisaVale);
385: ((SimpleLog) GFPController.getGFPController().getContexto()
386: .get(GFPController.LOG)).log(sqle
387: .getLocalizedMessage());
388: ((SimpleLog) GFPController.getGFPController().getContexto()
389: .get(GFPController.LOG)).log(sqle);
390: mapeamentoVisaVale = null;
391: }
392: editarMapImportacaoPorHistorico();
393: }
394:
395: /**
396: * @param e
397: */
398: public void excluir(ActionEvent e) {
399: if (mapeamentoVisaVale == null) {
400: JOptionPane.showMessageDialog(this , TelaBancoMessages
401: .getMessages().getString("semDadosParaExcluir")); //$NON-NLS-1$
402: return;
403: }
404:
405: loadMapImportacaoPorHistorico();
406:
407: try {
408: controller.deletar(mapeamentoVisaVale);
409: } catch (SQLException sqle) {
410: ((SimpleLog) GFPController.getGFPController().getContexto()
411: .get(GFPController.LOG))
412: .log("Erro ao deletar mapeamentoVisaVale: "
413: + mapeamentoVisaVale);
414: ((SimpleLog) GFPController.getGFPController().getContexto()
415: .get(GFPController.LOG)).log(sqle
416: .getLocalizedMessage());
417: ((SimpleLog) GFPController.getGFPController().getContexto()
418: .get(GFPController.LOG)).log(sqle);
419: }
420: mapeamentoVisaVale = null;
421: refreshTabelaMapImportacaoPorHistoricos();
422: }
423:
424: /**
425: * @param e
426: */
427: public void novo(ActionEvent e) {
428: mapeamentoVisaVale = new ImportByHistoryMapping(jtfTextoAMapear
429: .getText());
430: controller.setAdicionandoNovo(true);
431: }
432:
433: /**
434: * @param e
435: */
436: public void atualizar(ActionEvent e) {
437: refreshTabelaMapImportacaoPorHistoricos();
438: }
439:
440: /**
441: * @param e
442: */
443: public void limpar(ActionEvent e) {
444: painelTelaBasica.showRequiredFields();
445: mapeamentoVisaVale = null;
446: painelTelaBasica.getTextAreaDescricao().setText(""); //$NON-NLS-1$
447: jtfTextoAMapear.setText(""); //$NON-NLS-1$
448: dbContato.setSelectedItem(null);
449: dbTipoLancamento.setSelectedItem(null);
450: painelTelaBasica.getPainelBotoes().dadosCarregados(false);
451: controller.setAdicionandoNovo(false);
452: }
453:
454: /**
455: * @param e
456: */
457: public void filtrar(ActionEvent e) {
458: mapeamentoVisaVale = new ImportByHistoryMapping();
459: loadMapImportacaoPorHistorico();
460:
461: jtMapeamentos.setDataType(mapeamentoVisaVale);
462: try {
463: jtMapeamentos.filter();
464: } catch (Exception e1) {
465: ((SimpleLog) GFPController.getGFPController().getContexto()
466: .get(GFPController.LOG))
467: .log("Erro na filtragem da tabela de mapeamentoVisaVales!");
468: ((SimpleLog) GFPController.getGFPController().getContexto()
469: .get(GFPController.LOG)).log(e1
470: .getLocalizedMessage());
471: ((SimpleLog) GFPController.getGFPController().getContexto()
472: .get(GFPController.LOG)).log(e1);
473: }
474: }
475:
476: /**
477: *
478: */
479: private void loadMapImportacaoPorHistorico() {
480: mapeamentoVisaVale.setStringAMapear(jtfTextoAMapear.getText());
481: if (dbTipoLancamento.getSelectedItem() != null)
482: try {
483: mapeamentoVisaVale
484: .setTipoLancamentoComQueMapear(((TransactionType) dbTipoLancamento
485: .getPersistentObject(dbTipoLancamento
486: .getSelectedIndex())).getId());
487: } catch (SQLException e) {
488: ((SimpleLog) GFPController.getGFPController()
489: .getContexto().get(GFPController.LOG))
490: .log("Erro ao carregar tipo do lancamento do mapeamento: "
491: + mapeamentoVisaVale);
492: ((SimpleLog) GFPController.getGFPController()
493: .getContexto().get(GFPController.LOG)).log(e
494: .getLocalizedMessage());
495: ((SimpleLog) GFPController.getGFPController()
496: .getContexto().get(GFPController.LOG)).log(e);
497: }
498: if (dbContato.getSelectedItem() != null)
499: try {
500: mapeamentoVisaVale
501: .setContatoComOQualMapear(((Contact) dbContato
502: .getPersistentObject(dbContato
503: .getSelectedIndex())).getId());
504: } catch (SQLException e) {
505: ((SimpleLog) GFPController.getGFPController()
506: .getContexto().get(GFPController.LOG))
507: .log("Erro ao carregar entidade do mapeamento: "
508: + mapeamentoVisaVale);
509: ((SimpleLog) GFPController.getGFPController()
510: .getContexto().get(GFPController.LOG)).log(e
511: .getLocalizedMessage());
512: ((SimpleLog) GFPController.getGFPController()
513: .getContexto().get(GFPController.LOG)).log(e);
514: }
515: }
516:
517: /**
518: *
519: */
520: private void editarMapImportacaoPorHistorico() {
521: painelTelaBasica.hideRequiredFields();
522: if (mapeamentoVisaVale == null)
523: return;
524: jtfTextoAMapear.setText(mapeamentoVisaVale.getStringAMapear());
525: if (mapeamentoVisaVale.getContatoComOQualMapear() != null)
526: try {
527: dbContato.setSelectedItem(mapeamentoVisaVale
528: .getContatoComOQualMapear(), "Id");
529: } catch (SQLException e) {
530: ((SimpleLog) GFPController.getGFPController()
531: .getContexto().get(GFPController.LOG))
532: .log("Erro ao carregar entidade do mapeamento: "
533: + mapeamentoVisaVale);
534: ((SimpleLog) GFPController.getGFPController()
535: .getContexto().get(GFPController.LOG)).log(e
536: .getLocalizedMessage());
537: ((SimpleLog) GFPController.getGFPController()
538: .getContexto().get(GFPController.LOG)).log(e);
539: }
540: try {
541: dbTipoLancamento.setSelectedItem(mapeamentoVisaVale
542: .getTipoLancamentoComQueMapear(), "Id");
543: } catch (SQLException e) {
544: ((SimpleLog) GFPController.getGFPController().getContexto()
545: .get(GFPController.LOG))
546: .log("Erro ao carregar tipo de lancamento do mapeamento: "
547: + mapeamentoVisaVale);
548: ((SimpleLog) GFPController.getGFPController().getContexto()
549: .get(GFPController.LOG)).log(e
550: .getLocalizedMessage());
551: ((SimpleLog) GFPController.getGFPController().getContexto()
552: .get(GFPController.LOG)).log(e);
553: }
554: painelTelaBasica.getPainelBotoes().dadosCarregados(true);
555: }
556:
557: /**
558: *
559: */
560: private void refreshTabelaMapImportacaoPorHistoricos() {
561: try {
562: jtMapeamentos.loadDados();
563: } catch (Exception e) {
564: ((SimpleLog) GFPController.getGFPController().getContexto()
565: .get(GFPController.LOG))
566: .log("Erro na atualizacao da tabela de mapeamentoVisaVales!");
567: ((SimpleLog) GFPController.getGFPController().getContexto()
568: .get(GFPController.LOG)).log(e
569: .getLocalizedMessage());
570: ((SimpleLog) GFPController.getGFPController().getContexto()
571: .get(GFPController.LOG)).log(e);
572: }
573: }
574:
575: /**
576: * @param e
577: */
578: public void loadFromTable(ListSelectionEvent e) {
579: if (this .isVisible()) {
580: try {
581: mapeamentoVisaVale = (ImportByHistoryMapping) jtMapeamentos
582: .getPersistentObject(jtMapeamentos
583: .getSelectedRow());
584: } catch (SQLException sqle) {
585: ((SimpleLog) GFPController.getGFPController()
586: .getContexto().get(GFPController.LOG))
587: .log("Erro ao carregar Mapeamentos VisaVale!");
588: ((SimpleLog) GFPController.getGFPController()
589: .getContexto().get(GFPController.LOG)).log(sqle
590: .getLocalizedMessage());
591: ((SimpleLog) GFPController.getGFPController()
592: .getContexto().get(GFPController.LOG))
593: .log(sqle);
594: }
595: editarMapImportacaoPorHistorico();
596: }
597: }
598: }
|