19 package org.turro.contacts.hhrr;
21 import java.util.Collections;
22 import java.util.List;
24 import org.turro.auth.Authentication;
25 import org.turro.contacts.BusinessRelation;
26 import org.turro.contacts.Contact;
27 import org.turro.contacts.db.ContactsPU;
28 import org.turro.plugin.contacts.ContactList;
29 import org.turro.plugin.contacts.IContact;
30 import org.zkoss.bind.annotation.BindingParam;
31 import org.zkoss.bind.annotation.Command;
32 import org.zkoss.bind.annotation.NotifyChange;
42 private boolean editable;
44 @NotifyChange(
"model")
46 public
void setBusiness(@BindingParam("business") Object business) {
54 @NotifyChange(
"model")
57 if(editable && model !=
null && !model.isEmpty()) {
71 if(business !=
null && business.
isValid()) {
87 list.sort((o1, o2) -> {
88 return o1.getName().compareTo(o2.getName());
static IContact getIContact()
void saveCollection(Collection objs)