/** 指定操作发生时,触发的事件 */
 public void actionPerformed(String rowId, String actionName, String actionValue) {
   if (actionName.equals(Action.Allocate.name())) {
     allocate(rowId);
   } else if (actionName.equals(Action.Delete.name())) {
     delete(rowId);
   } else if (actionName.equals("edit")) {
     edit(rowId);
   }
 }
 @Override
 public String[] getTableActionIds() {
   List<String> list = new ArrayList<String>();
   LoginInfo login = getContext().find(LoginInfo.class);
   if (login.hasAuth(Auth.SubFunction_CustomerMange_BusPerson)) {
     list.add(Action.Allocate.name());
   }
   list.add(Action.Delete.name());
   return list.toArray(new String[0]);
 }
 @Override
 protected String[] getElementActionIds(Object element) {
   if (element instanceof CustomerItem) {
     CustomerItem item = (CustomerItem) element;
     if (!item.isUsed()) {
       return getTableActionIds();
     } else {
       return new String[] {Action.Allocate.name()};
     }
   } else {
     return super.getElementActionIds(element);
   }
 }