◆ addChoice()
void org.turro.crm.zul.sector.ActivitySectorBox.addChoice |
( |
final String |
choice, |
|
|
final Command |
command |
|
) |
| |
|
protected |
Reimplemented from org.turro.zkoss.input.MultiLabelBox< E >.
Definition at line 93 of file ActivitySectorBox.java.
95 if(asl.getName().equalsIgnoreCase(choice)) {
99 ActivitySector as = (ActivitySector)
new CrmPU().getSingleResultOrNull(
100 "select a from ActivitySector a where a.name = ?",
101 new Object[] { choice });
103 Messages.confirmAcceptation().add(choice).show(() -> {
104 ActivitySector nas =
new ActivitySector();
106 nas =
new CrmPU().saveObject(nas);
112 if(command !=
null) command.execute(
null);
121 if(command !=
null) command.execute(
null);
122 }
catch (Exception ex) {
123 Logger.getLogger(ActivitySectorBox.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
Set< ActivitySector > getActivitySectors()
Set< ActivitySector > getCustomerSectors()
◆ changeChoice()
void org.turro.crm.zul.sector.ActivitySectorBox.changeChoice |
( |
final String |
oldChoice, |
|
|
String |
choice, |
|
|
final Command |
command |
|
) |
| |
|
protected |
◆ checkDelete()
boolean org.turro.crm.zul.sector.ActivitySectorBox.checkDelete |
( |
| ) |
|
|
protected |
◆ checkEditable()
boolean org.turro.crm.zul.sector.ActivitySectorBox.checkEditable |
( |
| ) |
|
|
protected |
◆ checkNew()
boolean org.turro.crm.zul.sector.ActivitySectorBox.checkNew |
( |
| ) |
|
|
protected |
◆ checkVisible()
boolean org.turro.crm.zul.sector.ActivitySectorBox.checkVisible |
( |
| ) |
|
|
protected |
◆ convertToString()
String org.turro.crm.zul.sector.ActivitySectorBox.convertToString |
( |
ActivitySector |
label | ) |
|
|
protected |
◆ deleteChoice()
void org.turro.crm.zul.sector.ActivitySectorBox.deleteChoice |
( |
String |
oldChoice, |
|
|
Command |
command |
|
) |
| |
|
protected |
Reimplemented from org.turro.zkoss.input.MultiLabelBox< E >.
Definition at line 141 of file ActivitySectorBox.java.
142 Iterator<ActivitySector> it = (selfSectors ?
145 while(it.hasNext()) {
146 if(it.next().getName().equals(oldChoice)) {
148 if(command !=
null)
try {
149 command.execute(
null);
151 }
catch (Exception ex) {
152 Logger.getLogger(ActivitySectorBox.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
◆ getCollection()
Collection<ActivitySector> org.turro.crm.zul.sector.ActivitySectorBox.getCollection |
( |
| ) |
|
|
protected |
◆ getLabelChoices()
Collection<String> org.turro.crm.zul.sector.ActivitySectorBox.getLabelChoices |
( |
| ) |
|
|
protected |
◆ getNewImage()
String org.turro.crm.zul.sector.ActivitySectorBox.getNewImage |
( |
| ) |
|
|
protected |
◆ setCustomer()
void org.turro.crm.zul.sector.ActivitySectorBox.setCustomer |
( |
Customer |
customer | ) |
|
◆ setSelfSectors()
void org.turro.crm.zul.sector.ActivitySectorBox.setSelfSectors |
( |
boolean |
selfSectors | ) |
|
The documentation for this class was generated from the following file: