Package ecar.dao

Examples of ecar.dao.AcompReferenciaItemDao


     */
    public int doStartTag() throws JspException {
        JspWriter writer = this.page.getOut();
        StringBuffer s = new StringBuffer();
       
        AcompReferenciaItemDao acompReferenciaItemDao = new AcompReferenciaItemDao(null);
       
        try {
            /** Cria uma inst�ncia do objeto * */
            //Object obj = Class.forName(getObjeto()).newInstance();
            //Dao dao = new Dao();
            //Session session = dao.getSession();

      /** Constroi a combo * */
            s.append("<select name=\"").append(nome).append("\" ");
            s.append(" id=\"").append(nome).append("\" ");
           
            if(scripts != null && !"".equals(scripts))
                s.append( scripts );

            if (style != null && !"".equals(style))
                s.append(" style=\"").append(style).append("\"");
           
            if (status != null && !"".equals(status))
                s.append( status );
           
            s.append(">");
           
            //Montar as op��es a partir do item
            List lista = acompReferenciaItemDao.getReferenciaByItem(acompReferenciaItem);
      Iterator it = lista.iterator();
      AcompReferenciaItemAri acompRefItemLista;
           
      String sel = "";
     
View Full Code Here


         *  codArel (codigo d o relatorio em que o usuario est� dando parecer)
         *  mas o texto exibido � o label do Tipo funcao de acompanhamento.
         */
        if (getAcompReferenciaItemAri() != null ) {
         
            AcompReferenciaItemDao ariDao = new AcompReferenciaItemDao(request);
           
            List listTpfa = ariDao.getAcompRelatorioArelOrderByFuncaoAcomp(getAcompReferenciaItemAri());
            AcompRelatorioDao arelDao = new AcompRelatorioDao(request);
            int numOpcoes =0;
            StringBuffer strTemp = new StringBuffer("");
           
            AcompRelatorioArel selectedArel = new AcompRelatorioArel();
View Full Code Here

   * @throws ECARException
   * @throws Exception
   */
  private void eMailVenctoParecer (String dataLimStr, ConfigMailCfgm configMailCfgm, Date dataLimite) throws ECARException, Exception {
    try {
      AcompReferenciaItemDao ariDAO = new AcompReferenciaItemDao(null);
      UsuarioDao usuDAO = new UsuarioDao();
      TfuncacompConfigmailTfacfgmDAO tfuncacompConfigmailTfacfgmDAO = new TfuncacompConfigmailTfacfgmDAO();
      AcompRelatorioDao acompRelatorioDao = new AcompRelatorioDao(null);
     
      List listItens     = null;
      String dataCompStr = null;
      Iterator itItem    = null;   
     
      /* --
       * Por Rog�rio (26/02/2007)
       * Otimiza��o de query.
       * listItens = ariDAO.listar(AcompRefItemLimitesArli.class, new String[]{"dataLimiteArli","ASC"});
       * itItem = listItens.iterator();
       * -- */
     
      listItens = ariDAO.listarAcompReferenciaItemLimitesPorVenctoParecer(dataLimite);
      if( listItens != null ) itItem = listItens.iterator();
     
      /* -- OFinal da otimiza��o -- */
     
      while( itItem.hasNext() ){
View Full Code Here

   * @throws ECARException
   * @throws Exception
   */
  private void eMailVenctoLimiteFisico(String dataLimStr, ConfigMailCfgm configMailCfgm, Date dataLimite) throws ECARException, Exception {
    try {
      AcompReferenciaItemDao ariDAO = new AcompReferenciaItemDao(null);
      TfuncacompConfigmailTfacfgmDAO tfuncacompConfigmailTfacfgmDAO = new TfuncacompConfigmailTfacfgmDAO();
      AcompRealFisicoDao acompRealFisicoDao = new AcompRealFisicoDao(null);
      UsuarioDao usuDAO = new UsuarioDao();
     
      List listItens     = null;
      String dataCompStr = null;
      Iterator itItem    = null;       
 
      listItens = ariDAO.listarAcompReferenciaItemPorDataLimiteFisico(dataLimite);
      if( listItens != null ) itItem = listItens.iterator();
     
      /* -- Fim da otimiza��o -- */
     
      while( itItem.hasNext() ){
        AcompReferenciaItemAri ari = (AcompReferenciaItemAri) itItem.next();
 
        dataCompStr = Data.parseDate(ari.getDataLimiteAcompFisicoAri());
        if( dataLimStr.equals(dataCompStr) &&    // compara as datas e envia somente para os itens ativos 
            (ari != null && ari.getItemEstruturaIett() != null && ari.getItemEstruturaIett().getIndAtivoIett().equals("S"))) {
         
         
          List list = new ArrayList(ari.getItemEstruturaIett().getItemEstUsutpfuacIettutfas());
         
          String descricaoEvento = "Vencimento da Data limite F�sico.";
         
          List usuariosEmailEnviado = new ArrayList();
          Iterator itList = list.iterator();
         
          while( itList.hasNext() ) {
            ItemEstUsutpfuacIettutfa itemEstUsutpfacIetutfa = (ItemEstUsutpfuacIettutfa) itList.next();
            TfuncacompConfigmailTfacfgmPK tfcfgmPK = new TfuncacompConfigmailTfacfgmPK();
            tfcfgmPK.setCodCfgm(configMailCfgm.getCodCfgm());
            tfcfgmPK.setCodTpfa(itemEstUsutpfacIetutfa.getTipoFuncAcompTpfa().getCodTpfa());
           
            TfuncacompConfigmailTfacfgm tfcfm = (TfuncacompConfigmailTfacfgm) tfuncacompConfigmailTfacfgmDAO.buscar(TfuncacompConfigmailTfacfgm.class, tfcfgmPK);
 
            List acompRealFisicoList = acompRealFisicoDao.getIndResulByAcompRefItemBySituacao(ari, Dominios.TODOS, false);
            Iterator itArf = acompRealFisicoList.iterator();
            boolean faltaArf = false;
            while (itArf.hasNext())
            {
              AcompRealFisicoArf arf = (AcompRealFisicoArf) itArf.next();
              if (arf.getQtdRealizadaArf() == null)
                faltaArf = true;
            }
           
            List novosIndicadores = ariDAO.getNovosIndicadores(ari);
            Iterator itIndicadores = novosIndicadores.iterator();
            if(itIndicadores.hasNext()){
              faltaArf = true;
            }
           
View Full Code Here

    Date dataOntem = Data.addDias(-1, calendarDataAtualSemHMS.getTime())

   
    ariFiltro.setDataLimiteAcompFisicoAri(dataOntem);
   
    List listAri = new AcompReferenciaItemDao(null).pesquisarPorData(ariFiltro, null);

    if (listAri != null){
      Iterator itAri = listAri.iterator();
      while (itAri.hasNext()){
        AcompReferenciaItemAri ari = (AcompReferenciaItemAri) itAri.next();
View Full Code Here

TOP

Related Classes of ecar.dao.AcompReferenciaItemDao

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.