◆ ResourceAptitude()
Definition at line 42 of file ResourceAptitude.java.
43 this.resource = resource;
44 this.aptitudeDegree = aptitudeDegree;
◆ get()
static ResourceAptitude org.turro.erp.resource.ResourceAptitude.get |
( |
String |
text | ) |
|
|
static |
Definition at line 112 of file ResourceAptitude.java.
113 String s[] = text.split(
" - ");
115 String name = s.length == 3 ? s[0] +
" - " + s[1] : s[0];
116 String aptitude = s.length == 3 ? s[2] : s[1];
117 EntityManager em =
new ErpPU().getEntityManager();
119 Query q = em.createQuery(
120 " select res from Resource res " +
121 " where res.name = :name");
122 q.setParameter(
"name", name);
124 Resource hr = (Resource) q.getSingleResult();
125 for(AptitudeDegree ad : hr.getAptitudeDegrees()) {
126 if(ad.getFullName().equals(aptitude)) {
130 }
catch(Exception ex) {
ResourceAptitude(Resource resource, AptitudeDegree aptitudeDegree)
◆ getAptitudeDegree()
AptitudeDegree org.turro.erp.resource.ResourceAptitude.getAptitudeDegree |
( |
| ) |
|
◆ getCost()
double org.turro.erp.resource.ResourceAptitude.getCost |
( |
| ) |
|
◆ getMarketPrice()
double org.turro.erp.resource.ResourceAptitude.getMarketPrice |
( |
| ) |
|
◆ getName()
String org.turro.erp.resource.ResourceAptitude.getName |
( |
| ) |
|
Definition at line 55 of file ResourceAptitude.java.
56 PhraseBuilder pb =
new PhraseBuilder();
57 if(resource !=
null) {
60 pb.addPendingSeparator(
" -");
61 if(aptitudeDegree !=
null) {
◆ getPrice()
double org.turro.erp.resource.ResourceAptitude.getPrice |
( |
| ) |
|
◆ getResource()
Resource org.turro.erp.resource.ResourceAptitude.getResource |
( |
| ) |
|
◆ load()
static Collection<ResourceAptitude> org.turro.erp.resource.ResourceAptitude.load |
( |
String |
value, |
|
|
boolean |
onlyActive, |
|
|
int |
nRows |
|
) |
| |
|
static |
Definition at line 84 of file ResourceAptitude.java.
85 ArrayList<ResourceAptitude> result =
new ArrayList<ResourceAptitude>();
86 EntityManager em =
new ErpPU().getEntityManager();
88 WhereClause wc = SQLHelper.getWhereClause(
new String[]{
91 Query q = em.createQuery(
92 "select res from Resource res " +
93 "where res.active = :active " +
97 wc.addNamedValue(
"active", onlyActive);
98 q.setMaxResults(nRows);
99 wc.setNamedParameters(q);
100 List<Resource> l = q.getResultList();
101 for(Resource hr : l) {
102 for(AptitudeDegree ad : hr.getAptitudeDegrees()) {
◆ toString()
String org.turro.erp.resource.ResourceAptitude.toString |
( |
| ) |
|
The documentation for this class was generated from the following file: