Package com.exedosoft.plat.ui.jquery.form

Source Code of com.exedosoft.plat.ui.jquery.form.DOValueResultListPlain

package com.exedosoft.plat.ui.jquery.form;

import com.exedosoft.plat.bo.BOInstance;
import com.exedosoft.plat.bo.DOBO;
import com.exedosoft.plat.ui.DOFormModel;
import com.exedosoft.plat.ui.DOIModel;

public class DOValueResultListPlain extends DOBaseForm {

  public String getHtmlCode(DOIModel iModel) {

    DOFormModel property = (DOFormModel) iModel;
    BOInstance bi = null;
   
    DOBO corrBO = property.getLinkBO();
   
    String theValue = property.getValue();

    if (corrBO == null && property.getLinkService() != null) {
      corrBO = property.getLinkService().getBo();
    }
 

    if (theValue != null
        && !"".equals(theValue.trim())) {
     
      bi = DOValueResultList.getAInstance(property,corrBO, theValue);
    }
 

    if (bi != null) {
      if(bi.getName()!=null && !"".equals(bi.getName())){
        return bi.getName();
      }
    }
    return " ";
   
//    if (theValue == null || "null".equals(theValue)) {
//      return " ";
//    }
//    return theValue;

  }
}
TOP

Related Classes of com.exedosoft.plat.ui.jquery.form.DOValueResultListPlain

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.