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);
}