Examples of Telecentro


Examples of br.com.procempa.modus.entity.Telecentro

  private TelecentroNewAction() {
    super("Telecentro", IconFactory.createTelecentro24());
  }

  public void actionPerformed(ActionEvent e) {
    Telecentro t = new Telecentro();
    JComponent form = TelecentroForm.getInstance(t);
    Main.getInstance().buildPanel(form);
  }
View Full Code Here

Examples of br.com.procempa.modus.entity.Telecentro

    super("", IconFactory.createEdit());
  }

  public void actionPerformed(ActionEvent e) {
    JXTable table = TelecentroSearch.getInstance().getTable();
    Telecentro t = (Telecentro) table.getValueAt(
        table.getSelectedRows()[0], -1);
    JComponent form = TelecentroForm.getInstance(t);
    Main.getInstance().buildPanel(form);
  }
View Full Code Here

Examples of br.com.procempa.modus.entity.Telecentro

public class TelecentroDataServices implements DataServices {

  public static Telecentro getTelecentro(Long id) throws NamingException {
    PersistentAccess pa = PersistentAccessFactory.getInstance();
    Telecentro t = (Telecentro) pa.find(Telecentro.class, id);
    return t;
  }
View Full Code Here

Examples of br.com.procempa.modus.entity.Telecentro

  //TODO Implementar mensagem de excecao para remocao de Telecentro
  public static void remove(Long id) throws Exception {
    try {
      PersistentAccess pa = PersistentAccessFactory.getInstance();
      Telecentro t = (Telecentro) pa.find(Telecentro.class, id);
      pa.remove(t);
    } catch (Exception e) {
      throw new Exception(e.getClass().getName() + ": " + e.getMessage());
    }
  }
View Full Code Here

Examples of br.com.procempa.modus.entity.Telecentro

    case ConfirmViewAction.YES:
      JXTable table = TelecentroSearch.getInstance().getTable();

      for (int row : table.getSelectedRows()) {
        try {
          Telecentro telecentro = (Telecentro) table.getValueAt(row, -1);
          TelecentroDataServices.remove(telecentro.getId());
          ((TelecentroTableModel) table.getModel())
              .removeItem(telecentro);
        } catch (Exception e1) {
          // TODO Implementar controle de exce��es
          e1.printStackTrace();
View Full Code Here

Examples of br.com.procempa.modus.entity.Telecentro

    private TelecentroNewAction() {
        super("Telecentro", IconFactory.createTelecentro16());
    }
   
    public void actionPerformed(ActionEvent e) {
        Telecentro t = new Telecentro();
        JComponent form = TelecentroForm.getInstance(t);
        Main.getInstance().buildPanel(form);
    }
View Full Code Here

Examples of br.com.procempa.modus.entity.Telecentro

    return action;

  }

  public void actionPerformed(ActionEvent e) {
    Telecentro t = UserContext.getInstance().getTelecentro();
    JComponent form = TelecentroForm.getInstance(t);
    Main.getInstance().buildPanel(form);
  }
View Full Code Here

Examples of br.com.procempa.modus.entity.Telecentro

        super("", IconFactory.createEdit());
    }
   
    public void actionPerformed(ActionEvent e) {
        JXTable table = TelecentroSearch.getInstance().getTable();
        Telecentro t = (Telecentro) table.getValueAt(
                table.getSelectedRows()[0], -1);
        JComponent form = TelecentroForm.getInstance(t);
        Main.getInstance().buildPanel(form);
    }  
View Full Code Here

Examples of br.com.procempa.modus.entity.Telecentro

    public void actionPerformed(ActionEvent e) {
        JXTable table = TelecentroSearch.getInstance().getTable();
       
        for (int row : table.getSelectedRows()) {
            try {
              Telecentro telecentro = (Telecentro) table.getValueAt(row, -1);
                TelecentroDataServices.remove(telecentro.getId());
          ((TelecentroTableModel) table.getModel()).removeItem(telecentro);               
            } catch (Exception e1) {
                // TODO Implementar controle de exce��es
                e1.printStackTrace();
            }
View Full Code Here

Examples of br.com.procempa.modus.entity.Telecentro

   *
   */
  public void testListVisitasByTelecentro() throws Exception {
    List<Visita> list = new ArrayList<Visita>();
    List<Telecentro> t = TelecentroDataServices.getList();
    Telecentro telecentro = t.get(0);
    list = VisitaDataServices.getList(telecentro);
    assertTrue(list.size() > 0);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.