19 package org.turro.dossier.workload;
21 import java.util.ArrayList;
22 import java.util.List;
24 import org.turro.dossier.entity.Category;
25 import org.turro.dossier.entity.Dossier;
26 import org.turro.dossier.entity.Issue;
27 import org.turro.dossier.entity.IssueStatus;
28 import org.turro.dossier.entity.IssueType;
29 import org.turro.dossier.issue.IssueWrapper;
30 import org.turro.dossier.util.DossiersInfo;
31 import org.turro.dossier.zul.attach.IssueAttachTree;
32 import org.turro.dossier.zul.issue.IssueStage;
33 import org.turro.dossier.zul.menu.DossierMenu;
34 import org.turro.elephant.context.Application;
35 import org.turro.i18n.I_;
36 import org.turro.plugin.contacts.IContact;
37 import org.turro.registry.Changes;
38 import org.turro.zkoss.dialog.SelectionDialog;
39 import org.turro.zul.frame.Framework;
40 import org.zkoss.bind.annotation.BindingParam;
41 import org.zkoss.bind.annotation.Command;
42 import org.zkoss.bind.annotation.NotifyChange;
43 import org.zkoss.zul.GroupsModel;
44 import org.zkoss.zul.SimpleGroupsModel;
68 @NotifyChange(
"model")
72 @NotifyChange(
"model")
78 }
else if(entity instanceof
Dossier) {
87 @NotifyChange(
"model")
103 iat,
"80%",
"80%",
null);
160 public GroupsModel<WorkloadItem, Object, Object>
getModel() {
161 List<List<WorkloadItem>> data =
new ArrayList<>();
162 List<String> headers =
new ArrayList<>();
163 List<WorkloadItem> loading =
null;
171 if(!(current.equals(stage))) {
173 headers.add(stage.toString());
174 loading =
new ArrayList<>();
177 if(loading !=
null) {
182 return new SimpleGroupsModel<>(data, headers);
void setEntity(Object entity)
boolean isFullParticipant()
static void popup(Issue issue)
Set< IssueStatus > getStatus()
void setDossier(Dossier dossier)
void setCategory(Category category)
void setStatus(Set< IssueStatus > status)
IContact getByParticipant()
Set< IssueType > getTypes()
void setSearchValue(String searchValue)
void setTypes(Set< IssueType > types)
void setByParticipant(IContact byParticipant)
static IssueStage getStage(WorkloadItem item)
void addInformation(@BindingParam("issue") Issue issue)
Set< IssueType > getTypes()
Category getSelectedCategory()
void selectEntity(@BindingParam("entity") Object entity)
void selectContact(@BindingParam("contact") IContact contact)
void showInfo(@BindingParam("item") WorkloadItem item)
void setSelectedCategory(Category category)
void setSearchValue(String searchValue)
void setParticipant(IContact contact)
GroupsModel< WorkloadItem, Object, Object > getModel()
void setStatus(Set< IssueStatus > status)
void showAttachments(@BindingParam("issue") Issue issue)
void setTypes(Set< IssueType > types)
Dossier getSelectedDossier()
Set< IssueStatus > getStatus()
IContact getParticipant()
void setSelectedDossier(Dossier dossier)
void setChanges(Changes changes)
boolean isInRole(String role)
static Application getApplication()
static String get(String msg)
static void showComponent(Page page, String title, Component component, String width, String height, final Command command)
static Framework getCurrent()