◆ HumanResourceWrapper()
org.turro.erp.humanres.logic.HumanResourceWrapper.HumanResourceWrapper |
( |
HumanResource |
entity | ) |
|
◆ addAptitude()
void org.turro.erp.humanres.logic.HumanResourceWrapper.addAptitude |
( |
| ) |
|
Definition at line 82 of file bserp-www/src/main/java/org/turro/erp/humanres/logic/HumanResourceWrapper.java.
84 Framework.getCurrent().getPage(),
85 Application.getString(
"lAptitudes"),
87 new InputField(
"lFrom", null, null, 0) {
89 protected HtmlBasedComponent createEditor() {
90 return new DateboxShort(new Date());
93 new InputField(
"lTo",
null,
null, 0) {
95 protected HtmlBasedComponent createEditor() {
96 return new DateboxShort(
null);
99 new InputField(
"lAptitude",
null,
null, 0) {
101 protected HtmlBasedComponent createEditor() {
102 return new AptitudeDegreeCombobox();
108 public Object execute(Context context) {
109 InputField[] fields = (InputField[]) context.get(
"fields");
110 if(fields.length > 0) {
111 Date from =
null, to =
null;
112 AptitudeDegree o =
null;
114 for(InputField f : fields) {
115 if(
"lAptitude".
equals(f.getLabel())) {
116 o = (AptitudeDegree) f.getValue();
117 }
else if(
"lFrom".
equals(f.getLabel())) {
118 from = (Date) f.getValue();
119 }
else if(
"lTo".
equals(f.getLabel())) {
120 to = (Date) f.getValue();
124 OwnedAptitude oo =
new OwnedAptitude();
125 oo.setAptitudeDegree(o);
126 oo.setInitialDate(from);
128 oo.setDefaultDegree(
false);
129 oo.setHumanResource(
entity);
130 entity.getOwnedAptitudes().add(oo);
boolean equals(Object obj)
◆ canDelete()
boolean org.turro.erp.humanres.logic.HumanResourceWrapper.canDelete |
( |
| ) |
|
◆ delete()
void org.turro.erp.humanres.logic.HumanResourceWrapper.delete |
( |
final boolean |
close | ) |
|
◆ deleteAptitude()
void org.turro.erp.humanres.logic.HumanResourceWrapper.deleteAptitude |
( |
OwnedAptitude |
aptitude | ) |
|
◆ logEntity()
void org.turro.erp.humanres.logic.HumanResourceWrapper.logEntity |
( |
LogType |
logType, |
|
|
String |
path, |
|
|
String |
action, |
|
|
String |
data |
|
) |
| |
|
protected |
The documentation for this class was generated from the following file: