示例#1
0
  @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;
  }
示例#2
0
  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();
    }
  }