Examples of carregar()


Examples of ecar.pojo.historico.HistoricoPontoCriticoPtc.carregar()

        session.save(object);
        objetos.add(object);
      }
      tx.commit();
      session.merge(pontoCritico);
      pojoHistorico.carregar(pontoCritico);
      tx = session.beginTransaction();
      gerarHistorico(pojoHistorico, Historico.ALTERAR, ((ecar.login.SegurancaECAR) request.getSession().getAttribute("seguranca")).getUsuario());
      tx.commit();
      if (super.logBean != null) {
        super.logBean.setCodigoTransacao(Data.getHoraAtual(false));
View Full Code Here

Examples of ecar.pojo.historico.HistoricoPontoCriticoPtc.carregar()

          pontoCritico.setIndExcluidoPtc(Dominios.SIM);
          /******** Historico *********/
          HistoricoPtc historico = new HistoricoPtc(pontoCritico, HistoricoPtc.exclusao, session, new ConfiguracaoDao(request), request);
          historico.gerarHistorico(old);
          /******** Historico *********/
          pojoHistorico.carregar(pontoCritico);
          if (pontoCritico.getPontoCriticoCorPtccores() == null)
            pojoHistorico.setPontoCriticoCorPtccores(new HashSet<PontocriticoCorPtccor>());
          if (pontoCritico.getPontoCriticoSisAtributoPtcSatbs() == null)
            pojoHistorico.setPontoCriticoSisAtributoPtcSatbs(new HashSet<PontoCriticoSisAtributoPtcSatb>());
          gerarHistorico(pojoHistorico, Historico.EXCLUIR, ((ecar.login.SegurancaECAR) request.getSession().getAttribute("seguranca")).getUsuario());//pojoHistorico.getUsuarioUsu());//((ecar.login.SegurancaECAR) request.getSession().getAttribute("seguranca")).getUsuario());
View Full Code Here

Examples of ecar.pojo.historico.HistoricoPontoCriticoPtc.carregar()

      tx = session.beginTransaction();
      pontoCritico.setDataInclusaoPtc(Data.getDataAtual());
      pontoCritico.setUsuarioUsuInclusao(usuarioUsu);
      pontoCritico.setIndExcluidoPtc("N");
      session.save(pontoCritico);
      pojoHistorico.carregar(pontoCritico);
      List filhos = new ArrayList();
      if (pontoCritico.getPontoCriticoCorPtccores() != null) {
        filhos.addAll(pontoCritico.getPontoCriticoCorPtccores());
      }
      if (pontoCritico.getPontoCriticoSisAtributoPtcSatbs() != null) {
View Full Code Here

Examples of ecar.pojo.historico.HistoricoPontoCriticoPtc.carregar()

      while (itLista.hasNext() && count <= 100){
        ptc = (PontoCriticoPtc) itLista.next();
        System.out.println("Codigo PTC: " + ptc.getCodPtc());
        System.out.println("Contador PTC: " + count);
        tx = session.beginTransaction();
        pojoHistorico.carregar(ptc);
        if (("N").equals(ptc.getIndExcluidoPtc()))
          gerarHistorico(pojoHistorico, Historico.INCLUIR, ((ecar.login.SegurancaECAR) request.getSession().getAttribute("seguranca")).getUsuario());
        else
          gerarHistorico(pojoHistorico, Historico.EXCLUIR, ((ecar.login.SegurancaECAR) request.getSession().getAttribute("seguranca")).getUsuario());
       
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.