|
|
@ -1,5 +1,11 @@
|
|
|
|
package info.bukova.isspst.ui.requirement;
|
|
|
|
package info.bukova.isspst.ui.requirement;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import info.bukova.isspst.data.TripRequirement;
|
|
|
|
|
|
|
|
import info.bukova.isspst.data.Workgroup;
|
|
|
|
|
|
|
|
import info.bukova.isspst.filters.TripRequirementFilter;
|
|
|
|
|
|
|
|
import info.bukova.isspst.services.requirement.TripRequirementService;
|
|
|
|
|
|
|
|
import info.bukova.isspst.services.workgroups.WorkgroupService;
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
@ -8,22 +14,12 @@ import org.zkoss.bind.BindUtils;
|
|
|
|
import org.zkoss.bind.annotation.Init;
|
|
|
|
import org.zkoss.bind.annotation.Init;
|
|
|
|
import org.zkoss.zk.ui.select.annotation.WireVariable;
|
|
|
|
import org.zkoss.zk.ui.select.annotation.WireVariable;
|
|
|
|
|
|
|
|
|
|
|
|
import info.bukova.isspst.data.TripRequirement;
|
|
|
|
public class TripRequirementListAll extends RequirementSubpage<TripRequirement> {
|
|
|
|
import info.bukova.isspst.data.Workgroup;
|
|
|
|
|
|
|
|
import info.bukova.isspst.filters.TripRequirementFilter;
|
|
|
|
|
|
|
|
import info.bukova.isspst.services.requirement.TripRequirementService;
|
|
|
|
|
|
|
|
import info.bukova.isspst.services.users.UserService;
|
|
|
|
|
|
|
|
import info.bukova.isspst.services.workgroups.WorkgroupService;
|
|
|
|
|
|
|
|
import info.bukova.isspst.ui.ListViewModel;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class TripRequirementListAll extends ListViewModel<TripRequirement> {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@WireVariable
|
|
|
|
@WireVariable
|
|
|
|
private TripRequirementService tripRequirementService;
|
|
|
|
private TripRequirementService tripRequirementService;
|
|
|
|
@WireVariable
|
|
|
|
@WireVariable
|
|
|
|
private WorkgroupService workgroupService;
|
|
|
|
private WorkgroupService workgroupService;
|
|
|
|
@WireVariable
|
|
|
|
|
|
|
|
private UserService userService;
|
|
|
|
|
|
|
|
private List<Workgroup> allCentres;
|
|
|
|
private List<Workgroup> allCentres;
|
|
|
|
private List<Workgroup> allWorkgroups;
|
|
|
|
private List<Workgroup> allWorkgroups;
|
|
|
|
|
|
|
|
|
|
|
@ -36,6 +32,7 @@ public class TripRequirementListAll extends ListViewModel<TripRequirement> {
|
|
|
|
|
|
|
|
|
|
|
|
allCentres = workgroupService.getCentres();
|
|
|
|
allCentres = workgroupService.getCentres();
|
|
|
|
allWorkgroups = workgroupService.getWorkgroups();
|
|
|
|
allWorkgroups = workgroupService.getWorkgroups();
|
|
|
|
|
|
|
|
super.init();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
@ -56,8 +53,4 @@ public class TripRequirementListAll extends ListViewModel<TripRequirement> {
|
|
|
|
return allWorkgroups;
|
|
|
|
return allWorkgroups;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public boolean isCanApprove() {
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|