19 package org.turro.crm.zul.sale;
21 import java.util.Date;
22 import org.turro.command.Command;
23 import org.turro.command.Context;
24 import org.turro.crm.entity.SaleProspect;
25 import org.turro.crm.zul.menu.CrmMenu;
26 import org.turro.elephant.util.Components;
27 import org.turro.i18n.I_;
28 import org.turro.zkoss.filter.GenericFilterListbox;
29 import org.zkoss.zk.ui.event.Event;
30 import org.zkoss.zk.ui.event.EventListener;
31 import org.zkoss.zk.ui.event.Events;
32 import org.zkoss.zk.ui.ext.AfterCompose;
33 import org.zkoss.zul.Button;
34 import org.zkoss.zul.Vlayout;
35 import org.zkoss.zul.Window;
43 private Date from, to;
64 splb.
show(
I_.
get(
"Select") +
": " +
I_.
get(
"Sale prospect"),
"800px",
"600px",
new Command() {
66 public Object execute(Context context) {
78 private void createComponents() {
79 Button create =
new Button();
80 create.setLabel(
I_.
get(
"Sale action"));
83 create.addEventListener(Events.ON_CLICK,
new EventListener<Event>() {
85 public void onEvent(Event event) throws Exception {
SaleActionCreator(Date from, Date to)
static Components from(Object component)
static String get(String msg)
void show(String title, String width, String height, Command command)
void setMultiple(boolean multiple)
void setCheckmark(boolean checkmark)
void setSelectFirst(boolean selectFirst)