package com.neomind.fusion.custom.diprotec;

import com.neomind.fusion.common.NeoObject;
import com.neomind.fusion.eform.EFormField;
import com.neomind.fusion.eform.converter.OriginEnum;
import com.neomind.fusion.eform.converter.StringConverter;
import com.neomind.fusion.entity.EntityWrapper;
import com.neomind.fusion.portal.PortalUtil;
import com.neomind.fusion.workflow.WFProcess;

public class CriaLink extends StringConverter{
	
	@Override
	public String getHTMLInput(EFormField field, OriginEnum origin)
	{
		NeoObject oForm = field.getForm().getObject();
		EntityWrapper dadosForm = new EntityWrapper(oForm);
		String linkTexto = (String) dadosForm.findGenericValue("texto");
		
		String link = "<a target='_blank' href='"+linkTexto+"'>Acesse o ERP clicando AQUI</a>";
		
		return link;
	}
}