19 package org.turro.erp.task.logic;
21 import org.turro.command.Command;
22 import org.turro.command.Context;
23 import org.turro.elephant.context.Application;
24 import org.turro.elephant.util.ZkossUtils;
25 import org.turro.erp.db.ErpPU;
26 import org.turro.erp.entity.Task;
27 import org.turro.erp.menu.ErpMenu;
28 import org.turro.jpa.composer.EntityComposer;
29 import org.turro.jpa.entity.DaoEntity;
30 import org.turro.zul.frame.Framework;
31 import org.zkoss.zk.ui.Component;
72 ZkossUtils.confirmDeletion(
null,
new Command() {
74 public Object execute(Context context) {
83 return !
entity.isEmpty() && (
entity.getId() == 0) || super.shouldBeSaved();
boolean isInRole(String role)
static Application getApplication()
String getAttributeName()
Task getEntityInstance(Long id)
DaoEntity getWrapperInstance(Component comp)
static Framework getCurrent()
void setSelectedLabel(String text)
void setSelectedTooltiptext(String text)