19 package org.turro.dossier.monitor;
21 import java.util.ArrayList;
22 import java.util.Collection;
23 import java.util.List;
25 import org.turro.attach.zul.control.AttachmentControl;
26 import org.turro.auth.Authentication;
27 import org.turro.dossier.db.DossierPU;
28 import org.turro.dossier.dossier.DossierWrapper;
29 import org.turro.dossier.entity.Category;
30 import org.turro.dossier.entity.Dossier;
31 import org.turro.dossier.entity.DossierStatus;
32 import org.turro.dossier.entity.DossierType;
33 import org.turro.dossier.search.DossierIds;
34 import org.turro.dossier.search.DossierResults;
35 import org.turro.dossier.util.DossiersInfo;
36 import org.turro.dossier.zul.menu.DossierMenu;
37 import org.turro.elephant.context.Application;
38 import org.turro.i18n.I_;
39 import org.turro.jpa.Dao;
40 import org.turro.plugin.contacts.IContact;
41 import org.turro.zkoss.dialog.SelectionDialog;
42 import org.turro.zul.frame.Framework;
43 import org.zkoss.bind.annotation.BindingParam;
44 import org.zkoss.bind.annotation.Command;
45 import org.zkoss.bind.annotation.NotifyChange;
46 import org.zkoss.zul.GroupsModel;
47 import org.zkoss.zul.SimpleGroupsModel;
56 private final boolean show, all;
57 private boolean waiting =
true;
62 query.
setOrderBy(
"order by dossier.category.fullDescription");
75 @NotifyChange(
"model")
79 @NotifyChange(
"model")
89 @NotifyChange(
"model")
95 @NotifyChange(
"model")
107 ac,
"80%",
"80%",
null);
164 public GroupsModel<DossierMonitor, Object, Object>
getModel() {
165 List<List<DossierMonitor>> data =
new ArrayList<>();
166 List<String> headers =
new ArrayList<>();
167 List<DossierMonitor> loading =
null;
178 Long current = item.categoryId;
179 if(catId ==
null || !(current.equals(catId))) {
181 headers.add(item.getCategory().getFullDescription());
182 loading =
new ArrayList<>();
185 if(loading !=
null) {
193 return new SimpleGroupsModel<>(data, headers);
void setEntity(Object entity)
static IContact getIContact()
DossierWrapper getWrapper()
Category getSelectedCategory()
GroupsModel< DossierMonitor, Object, Object > getModel()
Set< DossierStatus > getStatus()
void setStatus(Set< DossierStatus > status)
void setSelectedCategory(Category category)
void setParticipant(IContact contact)
void selectContact(@BindingParam("contact") IContact contact)
void showInfo(@BindingParam("monitor") DossierMonitor monitor)
Set< DossierType > getType()
void setSearchValue(String searchValue)
void showAttachments(@BindingParam("wrapper") DossierWrapper wrapper)
void addInformation(@BindingParam("dossier") Dossier dossier)
void selectCategory(@BindingParam("category") Category category)
void setType(Set< DossierType > type)
IContact getParticipant()
void selectFromAll(@BindingParam("checked") boolean checked)
void setCkOthers(boolean ckOthers)
static void initDaoList(Dao dao, Collection< DossierIds > list)
java.util.List< DossierIds > getDossierIdList()
void setOrderBy(String orderBy)
Set< DossierType > getType()
void setCkOthers(boolean ckOthers)
Set< DossierStatus > getStatus()
void setCategory(Category category)
void setType(Set< DossierType > type)
void setStatus(Set< DossierStatus > status)
void setDossierValue(String dossierValue)
void setByParticipant(IContact byParticipant)
IContact getByParticipant()
static void popup(Issue issue)
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()