changed from keyword unit to unit in admin match manage supervisor list, must also change the filter thingie
This commit is contained in:
parent
10d7c2aeff
commit
a56ec1cc8a
@ -144,11 +144,6 @@ public class AdminManageSupervisorPanel extends Panel {
|
|||||||
@Override
|
@Override
|
||||||
protected void populateItem(final Item<Employee> item) {
|
protected void populateItem(final Item<Employee> item) {
|
||||||
final Employee supervisor = item.getModelObject();
|
final Employee supervisor = item.getModelObject();
|
||||||
List<Keyword> keywords = supervisor.getKeywords().getFiltered(KeywordTypeDao.TYPE.UNIT.toDbName());
|
|
||||||
String unit = "";
|
|
||||||
if (!keywords.isEmpty()) {
|
|
||||||
unit += keywords.get(0).getKeyword();
|
|
||||||
}
|
|
||||||
|
|
||||||
Availability bachelorAvalibality = supervisorDao.getAvailability(supervisor, projectClassDao.getProjectClass(ProjectClass.BACHELOR));
|
Availability bachelorAvalibality = supervisorDao.getAvailability(supervisor, projectClassDao.getProjectClass(ProjectClass.BACHELOR));
|
||||||
Availability masterAvalibality = supervisorDao.getAvailability(supervisor, projectClassDao.getProjectClass(ProjectClass.MASTER));
|
Availability masterAvalibality = supervisorDao.getAvailability(supervisor, projectClassDao.getProjectClass(ProjectClass.MASTER));
|
||||||
@ -168,7 +163,9 @@ public class AdminManageSupervisorPanel extends Panel {
|
|||||||
};
|
};
|
||||||
detailsLink.add(new Label("supervisor", supervisor.getNameAsString()));
|
detailsLink.add(new Label("supervisor", supervisor.getNameAsString()));
|
||||||
item.add(detailsLink);
|
item.add(detailsLink);
|
||||||
item.add(new Label("unit", new Model<String>(unit)));
|
|
||||||
|
item.add(new Label("unit", new PropertyModel<Employee>(supervisor, "unit.title")));
|
||||||
|
|
||||||
item.add(createDropDown(new Model<Availability>(bachelorAvalibality), "numCapable", "targetBachelor"));
|
item.add(createDropDown(new Model<Availability>(bachelorAvalibality), "numCapable", "targetBachelor"));
|
||||||
item.add(createDropDown(new Model<Availability>(masterAvalibality), "numCapable", "targetMaster"));
|
item.add(createDropDown(new Model<Availability>(masterAvalibality), "numCapable", "targetMaster"));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user