mirror of
https://github.com/atlanticbiomedical/portal.git
synced 2025-07-01 18:17:26 -04:00
Sorted techs in calendar
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
package com.biomed.client.ui.schedule;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.Comparator;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
@ -124,6 +126,13 @@ public class SchedulePanel extends Composite implements Schedule.View {
|
||||
appointments.clear();
|
||||
calendar.suspendLayout();
|
||||
|
||||
Collections.sort(workorders, new Comparator<Workorder>() {
|
||||
@Override
|
||||
public int compare(Workorder o1, Workorder o2) {
|
||||
return o1.techName.compareTo(o2.techName);
|
||||
}
|
||||
});
|
||||
|
||||
for (Marker m : markers) {
|
||||
m.setMap((GoogleMap) null);
|
||||
}
|
||||
|
@ -186,9 +186,6 @@ public class DayViewHeader extends Composite implements HasWeekSelectionHandlers
|
||||
header.setText(0, 0, String.valueOf(year));
|
||||
}
|
||||
|
||||
public void setFuckingDayOfYear(Date date) {
|
||||
}
|
||||
|
||||
private void addDayClickHandler(final Label dayLabel, final Date day) {
|
||||
dayLabel.addClickHandler(new ClickHandler() {
|
||||
public void onClick(ClickEvent event) {
|
||||
|
Reference in New Issue
Block a user