50 super.setValue(value);
56 Label label =
new Label(dossier.
getId() +
"");
59 Vlayout vbox =
new Vlayout();
62 Hlayout hbox =
new Hlayout();
63 vbox.appendChild(hbox);
64 hbox.appendChild(
new DossierLabel(dossier,
false));
68 hbox.appendChild(LabelTypes.getTinyLabel(
" ["));
71 hbox.appendChild(createLabel(dv));
74 hbox.appendChild(LabelTypes.getTinyLabel(
"]"));
79 ContactInfo ci =
new ContactInfo(subject.getIdContact());
80 ci.setSclass(
"softLabel");
84 LabelExtended lext =
new LabelExtended();
85 lext.setStyle(
"color:gray;font-size:11px");
88 lext.setShowTooltip(
true);
89 vbox.appendChild(lext);
94 lext =
new LabelExtended();
96 vbox.appendChild(lext);
99 vbox.appendChild(hbox);
101 lext =
new LabelExtended();
102 lext.setStyle(
"color:gray;font-size:11px;");
103 lext.setDate(
new DossierWrapper(dossier).getIssueLastModification());
104 hbox.appendChild(lext);
106 hbox.appendChild(
new Image(
"/_zul/images/activity.png"));
108 vbox.appendChild(hbox);
110 vbox =
new Vlayout();
113 lext =
new LabelExtended();
114 lext.setResourceValue(dossier.
getStatus().toString());
115 vbox.appendChild(lext);
120 label =
new Label(((
long) dr.
getOnWork()) +
" " +
122 I_.
get(
"Work in progress"));
123 label.setStyle(
"color:gray;font-size:11px;");
124 vbox.appendChild(label);
127 I_.
get(
"Efectivity"));
128 label.setStyle(
"color:gray;font-size:11px;");
129 vbox.appendChild(label);
131 vbox =
new Vlayout();
134 if(Application.getApplication().isInRole(
"dossier:attach")) {
135 A a =
new A(
I_.
get(
"Attachments"),
"/_zul/images/clip.png");
136 a.addEventListener(Events.ON_CLICK,
new EventListener() {
138 public void onEvent(Event event)
throws Exception {
144 AttachmentControl ac =
new AttachmentControl();
145 ac.setEntity(dossier);
146 ac.setPublicOnly(!(
new DossierWrapper(dossier).getCanShowAllAttachments()));
147 SelectionDialog.showComponent(getPage(),
I_.
get(
"Attachments"),
148 ac,
"80%",
"80%",
null);
155 if(dd.isExpenses()) {
156 label =
new Label(
I_.
get(
"Expenses"));
157 label.setStyle(
"color:navy;font-size:11px");
158 vbox.appendChild(label);
159 label =
new Label(dd.getExpensesString());
160 label.setStyle(
"color:#666;font-size:11px");
161 vbox.appendChild(label);
164 label =
new Label(
I_.
get(
"Hours"));
165 label.setStyle(
"color:navy;font-size:11px");
166 vbox.appendChild(label);
167 label =
new Label(dd.getHoursString());
168 label.setStyle(
"color:#666;font-size:11px");
169 vbox.appendChild(label);
172 label =
new Label(
I_.
get(
"Price"));
173 label.setStyle(
"color:navy;font-size:11px");
174 vbox.appendChild(label);
175 label =
new Label(dd.getPriceString());
176 label.setStyle(
"color:#666;font-size:11px");
177 vbox.appendChild(label);
180 if(Application.getApplication().isInRole(
"dossier:delete")) {
181 Image img =
new Image(
"/_zul/images/edit-delete.png");
182 img.setStyle(
"cursor:pointer");
183 img.addEventListener(Events.ON_CLICK,
new EventListener() {
185 public void onEvent(Event event)
throws Exception {
186 Messages.confirmDeletion().show(() -> {
187 SystemLogger.getInstance().doLog(SystemLogType.LOG_INFO, dossier,
"deleted",
189 new DossierWrapper(dossier).
delete();
190 Framework.getCurrent().invalidateSelected();
void setReportValues(Dossier dossier)
Set< DossierVersion > getActiveVersions()
String getExtraDescription()
DossierStatus getStatus()
String getFullDescription()
static String get(String msg)