Package ecar.pojo

Examples of ecar.pojo.ItemEstrtIndResulLocalIettirl


            ItemEstrtIndResulIettr itemEstrtIndResulIettr =
                (ItemEstrtIndResulIettr) this.buscar( ItemEstrtIndResulIettr.class, codIettir );

            LocalItemLit localItemLit = (LocalItemLit) this.buscar( LocalItemLit.class, codLit );

            ItemEstrtIndResulLocalIettirl itemEstrtIndResulLocalIettirl = new ItemEstrtIndResulLocalIettirl(  );
           
      ItemEstrutFisicoIettf itemEstrutFisico = itemFisicoLocal;
     
     
     
      if (itemEstrutFisico == null){
        /* Mantis 0010128 - Qtd prevista n�o � mais informado por exerc�cio
         * Mudou a pk. n�o usa mais chave composta
         * */
        itemEstrutFisico = new ItemEstrutFisicoIettf();       
        itemEstrutFisico.setItemEstrtIndResulIettr(itemEstrtIndResulIettr);
        itemEstrutFisico.setDataUltManutencao(new Date());
        itemEstrutFisico.setDataInclusaoIettf(new Date());
        itemEstrutFisico.setIndAtivoIettf("S");
        itemEstrutFisico.setUsuarioUsuManutencao(((ecar.login.SegurancaECAR)request.getSession().getAttribute("seguranca")).getUsuario());
//        pojoHistorico.getItemEstrutFisicoIettfs().add(itemEstrutFisico);
        itemEstrutFisico.setQtdPrevistaIettf(qtdePrevista);
        itemEstrutFisico.setMesIettf(mes.intValue());
        itemEstrutFisico.setAnoIettf(ano.intValue());
        session.save(itemEstrutFisico);       
      }
      else
      {
        itemEstrutFisico.setQtdPrevistaIettf(itemEstrutFisico.getQtdPrevistaIettf() + qtdePrevista);
        session.update(itemEstrutFisico);
      }

            itemEstrtIndResulLocalIettirl.setDataInclusaoIettirl( new Date(  ) );
            //Mantis 0010128 - Qtd prevista n�o � mais informado por exerc�cio
            //itemEstrtIndResulLocalIettirl.setExercicioExe( exercicioExe );
           
            itemEstrtIndResulLocalIettirl.setLocalItemLit( localItemLit );
            itemEstrtIndResulLocalIettirl.setQtdPrevistaIettirl( qtdePrevista );
            itemEstrtIndResulLocalIettirl.setIndAtivoIettirl( "S" );
            itemEstrtIndResulLocalIettirl.setItemEstrutFisicoIettf(itemEstrutFisico);
           
            session.save( itemEstrtIndResulLocalIettirl );
            tx.commit(  );
        } catch ( Exception e )
        {
View Full Code Here


            {
             
              previstos = new ArrayList<ItemEstrtIndResulLocalIettirl>();
                for ( Iterator iter = retorno.iterator(); iter.hasNext(); )
                {
                    ItemEstrtIndResulLocalIettirl element = (ItemEstrtIndResulLocalIettirl) iter.next(  );
                    previstos.add(element);
                }

                return previstos;
            }
View Full Code Here

//            this.logger.error( e );
//
//            return new ItemEstrtIndResulLocalIettirl(  );
//        }

        return new ItemEstrtIndResulLocalIettirl(  );
    }
View Full Code Here

                   ItemEstrutFisicoIettf itemF = (ItemEstrutFisicoIettf) itFisico.next();
                  
                   if ((itemF.getMesIettf().equals(mes.get(GregorianCalendar.MONTH)+1) )&&(itemF.getItemEstrtIndResulLocalIettirls() != null)){
                     Iterator<ItemEstrtIndResulLocalIettirl> itLocal = itemF.getItemEstrtIndResulLocalIettirls().iterator();
                     while(itLocal.hasNext()){
                       ItemEstrtIndResulLocalIettirl itItemLocal = (ItemEstrtIndResulLocalIettirl) itLocal.next();

                       if ((itItemLocal.getLocalItemLit().getCodLit().equals(itemLocal.getLocalItemLit().getCodLit()))&&(itItemLocal.getQtdPrevistaIettirl() != null)){
                         valorPrevisto = itItemLocal.getQtdPrevistaIettirl();
                         continua = false;
                         break;
                       }
                     }
                   }
View Full Code Here

          totalLocal = 0.0;
          i = 0;
          // Para cada exerc�cio
          for (Iterator iterator = listaExercicios.iterator(); iterator.hasNext();) {
            ExercicioExe exe = (ExercicioExe) iterator.next();
            ItemEstrtIndResulLocalIettirl itemEstrtIndResulLocalIettirl = dao.getQtdePrevistaByLocal( codIettir, exe.getCodExe(), local.getCodLit() );
   
            totalLocal += itemEstrtIndResulLocalIettirl.getQtdPrevistaIettirl().doubleValue();
            totalExercicio [i] += itemEstrtIndResulLocalIettirl.getQtdPrevistaIettirl().doubleValue();
            i++;
           
            //if (local.getCodLit().intValue() == 418){
             
             
            // Criar uma c�lula contendo um campo e uma imagem de informa��o.
            strTdCampo = new String (
                  "<td width=\"" + larguraCampo + "\" align=\"center\" >" +
                  "  <input " +
                  "    type=\"text\"" +
                  "    size=\"" + (larguraCaixaTexto - 3) + "\"" +
                  "    onblur=\"" +
                  "      copiarExercicio('" + local.getCodLit().toString() + "'); " +
                  "      calcularTotalLocal('" + local.getCodLit().toString() + "');" +
                  "      calcularTotalExercicio('"+exe.getCodExe().toString() + "');" +
                  "    \"" +
                  "    id=\"cmp|" + local.getCodLit().toString() + "|" + exe.getCodExe().toString() + "\"" +
                  "    name=\"cmp|" + local.getCodLit().toString() + "|" + exe.getCodExe().toString() + "\"" +
                  "    value=\"" + formatBrasil.format(itemEstrtIndResulLocalIettirl.getQtdPrevistaIettirl().doubleValue()) + "\"" +
                  "  />" +
                  "  " +
                  "  <label " +
                  "    id=\"label|" + local.getCodLit().toString() + "|" + exe.getCodExe().toString() + "\"" +
                  "     class=\"dica\" " +
View Full Code Here

          responseHTML.append( local.getIdentificacaoLit() +"</td>");

          for (Iterator iterator = listaExercicios.iterator(); iterator.hasNext();) {
            ExercicioExe exe = (ExercicioExe) iterator.next();

            ItemEstrtIndResulLocalIettirl item = dao.getQtdePrevistaByLocal( codIettir, exe.getCodExe(), local.getCodLit() );
           
            responseHTML.append( "<td width='14%' align=\"center\" >");
            responseHTML.append( "<input type=\"text\"  onblur=\"calcularTotalLocal('" );
            responseHTML.append( local.getCodLit().toString() );
            responseHTML.append"');calcularTotalExercicio('"+exe.getCodExe().toString()+"');\"    onmouseover=\"calcularTotalExercicio('"+exe.getCodExe().toString()+"');calcularTotalLocal('" +local.getCodLit().toString() + "');\" " );               
            responseHTML.append( " id=\"" );
            responseHTML.append( "cmp|" + local.getCodLit().toString() + "|" + exe.getCodExe().toString() );
            responseHTML.append( "\" name=\"" );
            responseHTML.append( "cmp|" + local.getCodLit().toString() + "|" + exe.getCodExe().toString() );
            responseHTML.append( "\" value=\"" + formatBrasil.format(item.getQtdPrevistaIettirl().doubleValue()) + "\"" );           
            responseHTML.append( "\" />" );

            responseHTML.append( "<label class=\"dica\" onmouseover=\"montaTooltipMouseOver(this,\'"+ exe.getCodExe().toString() "\',\'" + exe.getDescricaoExe() +"\',\'"+ local.getCodLit().toString() "\',\'" + local.getIdentificacaoLit() +"\');\"   onmouseout=\"montaTooltipMouseOut(\'"+ exe.getCodExe().toString() "\',\'" + local.getCodLit().toString() +"\');\"  >" );
            responseHTML.append( "<img src=\"" + request.getContextPath() + "/images/dica.png\" align=\"absmiddle\" border=\"0\" onclick=\"montaTooltipMouseClick(\'"+ exe.getCodExe().toString() "\',\'" + exe.getDescricaoExe() +"\',\'"+ local.getCodLit().toString() "\',\'" + local.getIdentificacaoLit() +"\');\" > " );
            responseHTML.append( "<span id=\"" + local.getCodLit().toString() + "|" + exe.getCodExe().toString() + "\" ></span></label>" );
View Full Code Here

         
          session.save(indResultFisicoNovo);
          indResulNovo.getItemEstrutFisicoIettfs().add(indResultFisicoNovo);
         
          for(ItemEstrtIndResulLocalIettirl itemLocal:indResultFisicoOrigem.getItemEstrtIndResulLocalIettirls()){
            ItemEstrtIndResulLocalIettirl itemOrigem = itemLocal;
            ItemEstrtIndResulLocalIettirl itemNovo = new ItemEstrtIndResulLocalIettirl();
           
            Entidade.clonarPojo(itemOrigem , itemNovo);
           
            itemNovo.setDataInclusaoIettirl(dataAtual);
            itemNovo.setItemEstrutFisicoIettf(indResultFisicoNovo);
           
           
            session.save(itemNovo);
            indResultFisicoNovo.getItemEstrtIndResulLocalIettirls().add(itemNovo);
           
View Full Code Here

        }
        else {
          lancarErro("Indicador = null para: " + nomeIndicador);
        }
       
        ItemEstrtIndResulLocalIettirl indResulLocal = new ItemEstrtIndResulLocalIettirl();
        indResulLocal.setDataInclusaoIettirl(Data.getDataAtual());
        //Mantis 0010128 - Qtd prevista n�o � mais informado por exerc�cio
        //indResulLocal.setExercicioExe(exercicio);
        indResulLocal.setIndAtivoIettirl(Dominios.SIM);
        //Mantis 0010128 - Qtd prevista n�o � mais informado por exerc�cio
        //Previsto por local n�o e mais associado diretamente ao indicador
        //indResulLocal.setItemEsrtIndResulIettr(indicador);
        indResulLocal.setLocalItemLit(local);
        indResulLocal.setQtdPrevistaIettirl(Double.valueOf(valorPrevisto));
       
        session.save(indResulLocal);
        objetos.add(indResulLocal);
       
      }
View Full Code Here

TOP

Related Classes of ecar.pojo.ItemEstrtIndResulLocalIettirl

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.