Package ecar.pojo

Examples of ecar.pojo.OrgaoOrg


      dto.setCor3(imagePath(null, tipoFAcomp));
    }
   
    dto.setNap(null);
   
    OrgaoOrg org = ari.getItemEstruturaIett().getOrgaoOrgByCodOrgaoResponsavel1Iett();
    if(org != null) {
      dto.setOrgSigla(org.getSiglaOrg());
    }else {
      dto.setOrgSigla("N/I");
    }
   
    if(sit != null) {
View Full Code Here


    return new BigDecimal(0).add(totalGeral1).add(totalGeral2).add(totalGeral3).add(totalGeral4);
 
 
  private ArrayList<OrgaoOrg> fixarOrgaos(Set<OrgaoOrg> list){
   
    OrgaoOrg org_SEPL = null;     
    OrgaoOrg org_SEFA = null;
   
    // 13
    final Long ORGAO_SECR_FAZENDA = Long.valueOf( 13L );
   
    // 1
    final Long ORGAO_SECR_PLAN = Long.valueOf( 1L );
   
    ArrayList<OrgaoOrg> novaLista = new ArrayList<OrgaoOrg>();
   
    // removendo
    for (Iterator iter = list.iterator(); iter.hasNext();) {
      OrgaoOrg org = (OrgaoOrg) iter.next();
     
      if ( org.getCodOrg().equals( ORGAO_ADMIN_SEPL )){
        org_SEPL = org;
        iter.remove();
      }
     
      if ( org.getCodOrg().equals( ORGAO_ADMIN_SEFA )){
        org_SEFA = org;
        iter.remove();
      }
     
     
     
    }
   
    for (Iterator iter2 = list.iterator(); iter2.hasNext();) {
      OrgaoOrg tmp = (OrgaoOrg) iter2.next();
     
      if ( tmp.getCodOrg().equals( ORGAO_SECR_FAZENDA )  ){
        novaLista.add(tmp);
        novaLista.add(org_SEFA);
      }

      if ( tmp.getCodOrg().equals( ORGAO_SECR_PLAN )  ){
        novaLista.add(tmp);
        novaLista.add(org_SEPL);
      }

     
      if ( tmp.getCodOrg().equals( ORGAO_SECR_FAZENDA )  ){
      }else if tmp.getCodOrg().equals( ORGAO_SECR_PLAN )  ){
      }else{
        novaLista.add(tmp);   
         
      }
     
View Full Code Here

   * @return Set de objetos reordenados
   */
  private Set reordenarOrgao(Collection list){
    TreeSet<OrgaoOrg> novalista = new TreeSet<OrgaoOrg>( new OrgaoComparatorNome() );
    for (Iterator iter = list.iterator(); iter.hasNext();) {
      OrgaoOrg org = (OrgaoOrg) iter.next();
     
      if ( CONSTANTE_IND_ATIVO.toString().equalsIgnoreCase( org.getIndAtivoOrg() ) ){
        novalista.add(org)
      }
     
    }     
    return novalista;
View Full Code Here

        BigDecimal totalOrgaoAno2 = new BigDecimal(0);
        BigDecimal totalOrgaoAno3 = new BigDecimal(0);
        BigDecimal totalOrgaoAno4 = new BigDecimal(0);
        for (Iterator iterator = listOrgao.iterator(); iterator
            .hasNext();) {
          OrgaoOrg orgao = (OrgaoOrg) iterator.next();
       
          PPA_OrgaoBean orgaoBeanOrg = new PPA_OrgaoBean();
          orgaoBeanOrg.setNome( orgao.getDescricaoOrg() );
          orgaoBeanOrg.setFlag(CONSTANTE_ORGAO); // indica que eh campo de orgao

          Set itens = orgao.getItemEstruturaIettsByCodOrgaoResponsavel1Iett();

          for (Iterator itItem = itens.iterator(); itItem.hasNext();) {
            ItemEstruturaIett itemOrgao = (ItemEstruturaIett) itItem.next();

            if ( CONSTANTE_IND_ATIVO.toString().equalsIgnoreCase( itemOrgao.getIndAtivoIett() ) ){
View Full Code Here

        String orgaoResponsavelNome = Pagina.getParamStr(request, "orgaoResponsavel");
    codAriFilhos = request.getParameterValues("codAriFilhos");
    String tela = Pagina.getParamStr(request, "tela");
    TipoAcompanhamentoTa tipoAcomp = null;
    ItemEstruturaIett iett = null;
    OrgaoOrg orgao = null;
    String nomeReferencia  = "";
    AcompReferenciaAref arefOrgao =  null;
    Iterator itListaOrgaos = null;
    String codigosItensSelecionados = "";
    List listaItensSelecionadosComDescendentes = new ArrayList();
View Full Code Here

     * @throws ECARException
     */
    public void montaListaOrgaosPelosItens(String codigos) throws ECARException{
   
     
      OrgaoOrg orgao = new OrgaoOrg();
      OrgaoDao orgaoDao = new OrgaoDao(request);
      AcompReferenciaItemDao acompReferenciaItemDao = new AcompReferenciaItemDao (request);
     
     
     
View Full Code Here

    XmlBuilder builder = new XmlBuilder();
    itensMarcados = new ArrayList();
        seguranca = (SegurancaECAR)request.getSession().getAttribute("seguranca");
        idsEstrutura = new ArrayList();
        totalizadores = new ArrayList();
      orgaoResponsavel = new OrgaoOrg();
     
      Util.liberarImagem();
     
      imprimirEstrutura = ("S".equals(Pagina.getParamStr(request, "imprimirEstrutura"))) ? true : false;
      codEttEscolhida = Pagina.getParamStr(request, "codEttImprimir");
View Full Code Here

   * @author N/C
   * @since N/C
   * @version N/C
   */
  public void geraHTMLOrgaoOrgByCodOrgaoResponsavel1Iett() {
    OrgaoOrg orgao = new OrgaoOrg();
    orgao.setIndAtivoOrg("S");
    try {
      List orgaos = new Dao().pesquisar(orgao, new String[] {
          atributo.iGetNomeFk(), "asc" });
      List options = new ArrayList();
      Iterator it = orgaos.iterator();
      while (it.hasNext()) {
        orgao = (OrgaoOrg) it.next();
        options
            .add(new String[] {
                orgao.getCodOrg().toString(),
                Util.invocaGet(orgao, atributo.iGetNomeFk())
                    .toString() });
      }

      String disabled = (getBloquearCampo()) ? "disabled" : "";
View Full Code Here

   * @author N/C
   * @since N/C
   * @version N/C
   */
  public void geraHTMLOrgaoOrgByCodOrgaoResponsavel2Iett() {
    OrgaoOrg orgao = new OrgaoOrg();
    orgao.setIndAtivoOrg("S");
    try {
      List orgaos = new Dao().pesquisar(orgao, new String[] {
          atributo.iGetNomeFk(), "asc" });
      List options = new ArrayList();
      Iterator it = orgaos.iterator();
      while (it.hasNext()) {
        orgao = (OrgaoOrg) it.next();
        options
            .add(new String[] {
                orgao.getCodOrg().toString(),
                Util.invocaGet(orgao, atributo.iGetNomeFk())
                    .toString() });
      }
     
      if (transformarComboBoxListaChecks.booleanValue()) {
View Full Code Here

        situacaoDao = new SituacaoDao(request);
        seguranca = (SegurancaECAR)request.getSession().getAttribute("seguranca");
    itensMarcados = new ArrayList();
        idsEstrutura = new ArrayList();
        totalizadores = new ArrayList();
      orgaoResponsavel = new OrgaoOrg();
       
      imprimirEstrutura = ("S".equals(Pagina.getParamStr(request, "imprimirEstrutura"))) ? true : false;
      codEttEscolhida = Pagina.getParamStr(request, "codEttImprimir");
      codIettPai = Pagina.getParamLong(request, "codIettPaiImprimir");
View Full Code Here

TOP

Related Classes of ecar.pojo.OrgaoOrg

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.