} else { strWho += " " + getSrvI18n().getMsg("in", langDef) + " " + getSrvI18n() .getMsg(getSrvTypeCode().getTypeCodeMap().get(pEntity.getOwnerType()) .getSimpleName() + "short", langDef) + " #" + getSrvOrm().getIdDatabase() + "-" + pEntity.getOwnerId() + ", " + getSrvI18n().getMsg(getSrvTypeCode().getTypeCodeMap() .get(pSource.getSourceType()).getSimpleName() + "short", langDef) + " #" + getSrvOrm().getIdDatabase() + "-" + pSource.getSourceId();
/** * <p>Make description for warehouse entry.</p> * @param pEntity movement * @param pSource source of item * @return description **/ public final String makeDescription(final IMakingWarehouseEntry pEntity, final ADrawItemEntry pSource) { String strWho = getSrvI18n().getMsg(pEntity.getClass().getSimpleName() + "short") + " #" + getSrvOrm().getIdDatabase() + "-" //only local + pEntity.getItsId(); if (pEntity.getOwnerId() == null) { strWho += ", " + getDateFormatter().format(pEntity .getDocumentDate()); } else { strWho += " " + getSrvI18n().getMsg("in") + " " + getSrvI18n() .getMsg(getSrvTypeCode().getTypeCodeMap().get(pEntity.getOwnerType()) .getSimpleName() + "short") + " #" + getSrvOrm().getIdDatabase() + "-" + pEntity.getOwnerId() + ", " + getDateFormatter().format(pEntity.getDocumentDate()); } String strFrom = " " + getSrvI18n().getMsg("from") + " " + getSrvI18n() .getMsg(getSrvTypeCode().getTypeCodeMap().get(pSource.getSourceType()) .getSimpleName() + "short") + " #" + getSrvOrm().getIdDatabase() + "-" + pSource.getSourceId(); return getSrvI18n().getMsg("made_at") + " " + getDateFormatter().format( new Date()) + " " + getSrvI18n().getMsg("by") + " " + strWho + strFrom; }