Byla přidána sestava požadavků.

closes #175
This commit is contained in:
2014-11-30 19:43:25 +01:00
parent 3c3cf5d46f
commit 08dfb177ef
6 changed files with 483 additions and 1 deletions
@@ -123,7 +123,8 @@ public class Constants {
new ReportMapping(MOD_ADDRESSBOOK, new Report("Adresa", "address", false, true)),
new ReportMapping(MOD_TRIPBILL, new Report("Žádost", "tripRequirement", false, true)),
new ReportMapping(MOD_TRIPBILL, new Report("Vyúčtování", "tripBill", false, true)),
new ReportMapping(MOD_ORDER, new Report("Objednávka", "order", true, true))
new ReportMapping(MOD_ORDER, new Report("Objednávka", "order", true, true)),
new ReportMapping(MOD_REQUIREMENTS, new Report("Požadavky", "requirements"))
};
public final static String REQTYPE_ORDER = "ORDER";
@@ -126,5 +126,21 @@ public class RequirementBase extends BaseData implements FilterableRequirement {
public void setWorkflow(List<Workflow> workflow) {
this.workflow = workflow;
}
public User getLastApprover() {
if (authorization.isEmpty()) {
return null;
}
return authorization.get(authorization.size() - 1).getApprover();
}
public Date getLastApproveDate() {
if (authorization.isEmpty()) {
return null;
}
return authorization.get(authorization.size() - 1).getAuthDate();
}
}