|
|
|
@ -1,9 +1,13 @@
|
|
|
|
|
package info.bukova.isspst.services.orders;
|
|
|
|
|
|
|
|
|
|
import info.bukova.isspst.Constants;
|
|
|
|
|
import info.bukova.isspst.Module;
|
|
|
|
|
import info.bukova.isspst.data.JoinedItem;
|
|
|
|
|
import info.bukova.isspst.data.RequirementItem;
|
|
|
|
|
import info.bukova.isspst.data.RequirementState;
|
|
|
|
|
import info.bukova.isspst.data.Workgroup;
|
|
|
|
|
import info.bukova.isspst.reporting.Report;
|
|
|
|
|
import info.bukova.isspst.reporting.ReportType;
|
|
|
|
|
import info.bukova.isspst.services.AbstractService;
|
|
|
|
|
import info.bukova.isspst.services.users.UserService;
|
|
|
|
|
import info.bukova.isspst.services.workgroups.WorkgroupService;
|
|
|
|
@ -55,4 +59,27 @@ public class ApprovedServiceImpl extends AbstractService<JoinedItem> implements
|
|
|
|
|
|
|
|
|
|
return items;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public Module getModule() {
|
|
|
|
|
for (Module m : Constants.MODULES) {
|
|
|
|
|
if (m.getId() == Constants.MOD_REQUIREMENTS) {
|
|
|
|
|
return m;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public List<Report> getReports() {
|
|
|
|
|
Report rep = new Report();
|
|
|
|
|
rep.setType(ReportType.DYNAMIC);
|
|
|
|
|
rep.setName(Constants.DYNAMIC_REPORT_NAME);
|
|
|
|
|
|
|
|
|
|
List<Report> ret = new ArrayList<Report>();
|
|
|
|
|
ret.add(rep);
|
|
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|