@Override public Object getRowValueAt(int col) { Object value = null; switch (col) { case 0: value = mnPkByProdId; break; case 1: value = moRegItem.getRegFamily().getXtaItemTypeCode(); break; case 2: value = moRegItem.getName(); break; case 3: value = mdQuantity; break; case 4: value = moRegUnit.getCode(); break; case 5: value = mbStandard; break; default: } return value; }
private void readRegMembers(final DGuiSession session, final boolean update) { moRegItem = (DDbItem) session.readRegistry(DModConsts.CU_ITM, new int[] {mnFkItemId}); if (update) { mnFkItemTypeId = moRegItem.getRegFamily().getFkItemTypeId(); mnFkUnitId = moRegItem.getFkUnitId(); } moRegUnit = (DDbUnit) session.readRegistry(DModConsts.CU_UOM, new int[] {mnFkUnitId}); if (update) { mdMassUnit = moRegItem.getMassUnit(); } }