Package br.com.procempa.modus.entity

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


      telecentroButton.setAction(new AbstractAction() {

        private static final long serialVersionUID = -3689539346872220459L;

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


    return v;
  }

  public static void activeWaitList() {
    try {
      Telecentro telecentro = UserContext.getInstance().getTelecentro();
      List<Equipamento> eqs = EquipamentoDataServices
          .getLivres(telecentro);
      if (!eqs.isEmpty()) {
        Equipamento eq = eqs.get(0);
        List<Visita> visitaAtivas = VisitaDataServices
View Full Code Here

      telecentroButton.setAction(new AbstractAction() {

        private static final long serialVersionUID = -3689539346872220459L;

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

   
    UserContext uc = null;
   
    PersistentAccess pa = PersistentAccessFactory.getInstance();
    Usuario usuario = UsuarioDataServices.getUsuarioByRg(login);
    Telecentro telecentro = null;
   
    if(usuario != null) {
      long perfil = encripty(login, password).equals(usuario.getSenha()) ? usuario.getPerfil() : FAIL;
     
      //Senha invalida
View Full Code Here

public class TelecentroDataServices implements DataServices {

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

  }

  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

    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

   
    public void actionPerformed(ActionEvent e) {
        JPanel appPanel = Main.getInstance().getAppPanel();
        appPanel.removeAll();
        JXTable table = TelecentroSearch.getInstance().getTable();
        Telecentro t = (Telecentro) table.getValueAt(
                table.getSelectedRows()[0], -1);
        JComponent form = TelecentroForm.getInstance(t);
        appPanel.add(form);
        appPanel.validate();
        appPanel.repaint();
View Full Code Here

TOP

Related Classes of br.com.procempa.modus.entity.Telecentro

Copyright © 2018 www.massapicom. 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.