@Override protected void onClick(ClientTAXCode obj, int row, int col) { if (!Utility.isUserHavePermissions(AccounterCoreType.TAX_CODE)) { return; } List<ClientTAXCode> records = getRecords(); if (col == 4) showWarnDialog(records.get(row)); }
@Override public Object getColumnData(SalesByCustomerDetail record, int columnIndex) { switch (columnIndex) { case 2: return Utility.getTransactionName(record.getType()); case 1: return getDateByCompanyType(record.getDate()); case 3: return record.getNumber(); case 0: return ""; // case 4: // return record.getDueDate(); case 4: return record.getAmount(); } return null; }
@Override public Object getColumnData(UnbilledCostsByJob record, int columnIndex) { switch (columnIndex) { case 0: return ""; case 1: return ""; case 2: return Utility.getTransactionName(record.getType()); case 3: return getDateByCompanyType(record.getTransactionDate()); case 4: return record.getMemo(); case 5: return record.getAccountName(); case 6: return record.getAmount(); default: break; } return null; }
@Override public boolean canEdit() { return selectedItem == null ? false : Utility.isUserHavePermissions(selectedItem.getObjectType()); }
/* * @see * com.vimukti.accounter.web.client.ui.grids.ListGrid#onDoubleClick(java * .lang.Object) */ @Override public void onDoubleClick(ClientTAXCode obj) { if (Utility.isUserHavePermissions(AccounterCoreType.TAX_CODE)) { new NewTAXCodeAction().run(obj, false); } }