19 package org.turro.dossier.zul.issue;
21 import org.turro.command.Command;
22 import org.turro.command.Context;
23 import org.turro.dossier.db.DossierPU;
24 import org.turro.dossier.entity.Dossier;
25 import org.turro.dossier.entity.Issue;
26 import org.turro.dossier.entity.IssuePriority;
27 import org.turro.dossier.entity.IssueResolution;
28 import org.turro.dossier.entity.IssueStatus;
29 import org.turro.dossier.entity.IssueType;
30 import org.turro.dossier.issue.IssueWrapper;
31 import org.turro.dossier.zul.menu.DossierMenu;
32 import org.turro.elephant.context.Application;
33 import org.turro.jpa.composer.EntityComposer;
34 import org.turro.jpa.entity.DaoEntity;
35 import org.turro.zul.frame.Framework;
36 import org.zkoss.zk.ui.Component;
37 import org.zkoss.zk.ui.Executions;
38 import org.zkoss.zk.ui.select.annotation.Listen;
46 @Listen(
"onClick = #addInfo")
50 public Object execute(Context context) {
58 @Listen(
"onClick = #addSub")
62 public Object execute(Context context) {
79 Long dossierId = (Long) Executions.getCurrent().getDesktop().getAttribute(
"dossierId");
80 if(dossierId !=
null && dossierId > 0) {
87 entity.setIssueDate(
new java.util.Date());
88 entity.setPublishable(
true);
Issue getEntityInstance(Long id)
DaoEntity getWrapperInstance(Component comp)
String getAttributeName()
boolean isInRole(String role)
static Application getApplication()
static Framework getCurrent()
void setSelectedLabel(String text)
void setSelectedTooltiptext(String text)