◆ HumanResourceAptitude()
org.turro.hr.humanres.HumanResourceAptitude.HumanResourceAptitude |
( |
HumanResource |
humanResource, |
|
|
boolean |
canChange, |
|
|
AptitudeDegree |
aptitudeDegree |
|
) |
| |
Definition at line 44 of file HumanResourceAptitude.java.
45 this.humanResource = humanResource;
46 this.canChange = canChange;
47 this.aptitudeDegree = aptitudeDegree;
◆ get()
Definition at line 133 of file HumanResourceAptitude.java.
134 String s[] = text.split(
" - ");
136 String name = s.length == 3 ? s[0] +
" - " + s[1] : s[0];
137 String aptitude = s.length == 3 ? s[2] : s[1];
138 EntityManager em =
new ErpPU().getEntityManager();
140 Query q = em.createQuery(
141 " select res from HumanResource res " +
142 " where res.name = :name");
143 q.setParameter(
"name", name);
145 HumanResource hr = (HumanResource) q.getSingleResult();
146 for(OwnedAptitude off : hr.getActiveAptitudes(date)) {
147 if(off.getAptitudeDegree().getFullName().equals(aptitude)) {
151 }
catch(Exception ex) {
HumanResourceAptitude(HumanResource humanResource, boolean canChange, AptitudeDegree aptitudeDegree)
◆ getAptitudeDegree()
AptitudeDegree org.turro.hr.humanres.HumanResourceAptitude.getAptitudeDegree |
( |
| ) |
|
◆ getCost()
double org.turro.hr.humanres.HumanResourceAptitude.getCost |
( |
| ) |
|
◆ getHumanResource()
HumanResource org.turro.hr.humanres.HumanResourceAptitude.getHumanResource |
( |
| ) |
|
◆ getMarketPrice()
double org.turro.hr.humanres.HumanResourceAptitude.getMarketPrice |
( |
| ) |
|
◆ getName()
String org.turro.hr.humanres.HumanResourceAptitude.getName |
( |
| ) |
|
Definition at line 70 of file HumanResourceAptitude.java.
71 PhraseBuilder pb =
new PhraseBuilder();
72 if(humanResource !=
null) {
74 pb.addWord(
"Variable");
76 pb.addWord(humanResource.
getName());
79 pb.addPendingSeparator(
" -");
80 if(aptitudeDegree !=
null) {
◆ getPrice()
double org.turro.hr.humanres.HumanResourceAptitude.getPrice |
( |
| ) |
|
◆ getRealName()
String org.turro.hr.humanres.HumanResourceAptitude.getRealName |
( |
| ) |
|
Definition at line 58 of file HumanResourceAptitude.java.
59 PhraseBuilder pb =
new PhraseBuilder();
60 if(humanResource !=
null) {
61 pb.addWord(humanResource.
getName());
63 pb.addPendingSeparator(
" -");
64 if(aptitudeDegree !=
null) {
◆ load()
static Collection<HumanResourceAptitude> org.turro.hr.humanres.HumanResourceAptitude.load |
( |
Date |
date, |
|
|
String |
value, |
|
|
Collection< AptitudeDegree > |
required, |
|
|
boolean |
onlyActive, |
|
|
int |
nRows |
|
) |
| |
|
static |
Definition at line 103 of file HumanResourceAptitude.java.
104 ArrayList<HumanResourceAptitude> result =
new ArrayList<HumanResourceAptitude>();
105 EntityManager em =
new ErpPU().getEntityManager();
107 WhereClause wc = SQLHelper.getWhereClause(
new String[]{
110 Query q = em.createQuery(
111 "select res from HumanResource res " +
112 "where res.active = :active " +
116 wc.addNamedValue(
"active", onlyActive);
117 q.setMaxResults(nRows);
118 wc.setNamedParameters(q);
119 List<HumanResource> l = q.getResultList();
120 for(HumanResource hr : l) {
121 for(OwnedAptitude off : hr.getActiveAptitudes(date)) {
122 if(required.isEmpty() || off.getAptitudeDegree().isIn(required)) {
◆ toString()
String org.turro.hr.humanres.HumanResourceAptitude.toString |
( |
| ) |
|
The documentation for this class was generated from the following file: