%@page import="module.organization.domain.AccountabilityType"%> <%@page import="module.mission.domain.MissionSystem"%> <%@page import="module.organizationIst.domain.IstAccountabilityType"%> <%@page import="module.organization.domain.Unit"%> <%@page import="module.organization.domain.Accountability"%> <%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%> <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%> <%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic"%> <%@ taglib uri="http://fenix-ashes.ist.utl.pt/fenix-renderers" prefix="fr"%> <%@ taglib uri="http://fenix-ashes.ist.utl.pt/workflow" prefix="wf"%> <%@page import="module.organizationIst.domain.OrganizationIstSystem"%> <%@page import="module.mission.domain.Salary"%> <%@page import="module.organization.domain.Person"%>
|
|
|||
Entidade Patronal:
<%
boolean hasEmployer = false;
final AccountabilityType type = IstAccountabilityType.EMPLOYMENT.readAccountabilityType();
for (final Accountability accountability : ((module.organization.domain.Person) person).getParentAccountabilitiesSet()) {
if (accountability.isActiveNow() && accountability.isValid() && type == accountability.getAccountabilityType()) {
final Unit unit = (Unit) accountability.getParent();
hasEmployer = true;
if (unit == MissionSystem.getInstance().getOrganizationalModel().getPartiesIterator().next()) {
%>
<%= unit.getAcronym() %>
<%
} else {
%>
<%= unit.getAcronym() %>
<%
}
}
}
if (!hasEmployer) {
%>
Não Tem Entidade Patronal.
<%
}
%>
|
||||
|
||||
|
||||
---|---|---|---|---|
|
|
|
||
|