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