19 package org.turro.dossier.zul.worksheet;
21 import org.turro.auth.Authentication;
22 import org.turro.command.Command;
23 import org.turro.command.Context;
24 import org.turro.contacts.util.ContactControl;
25 import org.turro.dossier.db.DossierPU;
26 import org.turro.dossier.entity.Worksheet;
27 import org.turro.dossier.issue.IssueWrapper;
28 import org.turro.dossier.util.WorksheetUtil;
29 import org.turro.elephant.context.Application;
30 import org.turro.elephant.util.Messages;
31 import org.turro.i18n.I_;
32 import org.turro.jpa.Dao;
33 import org.turro.zkoss.dialog.SelectionDialog;
34 import org.turro.zkoss.input.CollectionListbox;
35 import org.turro.zul.frame.Framework;
36 import org.zkoss.zk.ui.Component;
37 import org.zkoss.zk.ui.select.SelectorComposer;
38 import org.zkoss.zk.ui.select.annotation.Listen;
39 import org.zkoss.zk.ui.select.annotation.Wire;
40 import org.zkoss.zul.Toolbarbutton;
52 private Toolbarbutton save;
57 @Listen(
"onChange = #contact")
62 @Listen(
"onClick = #addIssue")
70 issues.setCheckmark(
true);
71 issues.setMultiple(
true);
77 issues,
"80%",
"80%",
new Command() {
79 public Object execute(Context context) {
91 @Listen(
"onClick = #save")
103 @Listen(
"onClick = #delete")
113 @Listen(
"onChange = #worksheet")
131 private void updateGrid() {
static IContact getIContact()
String getFullDescription()
static void removeWorksheet(String idContact)
void setValues(IContact contact)
ListModelList< Worksheet > getWorksheetModel()
void addValue(IContact contact, IssueWrapper iw)
Collection< IssueWrapper > getNotInGrid(IContact contact)
boolean isInRole(String role)
static Application getApplication()
static Messages confirmDeletion()
static String get(String msg)
static Framework getCurrent()