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

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

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

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

public class DOValueSimplePartLogin implements DOIView {
 

  public String getHtmlCode(DOIModel aModel) {

    DOFormModel property = (DOFormModel) aModel;
    String theValue = property.getValue();
   
   
    OrgParter userParter = OrgParter.getDefaultEmployee();

    DOBO userBO = userParter.getDoBO();

     
    BOInstance   bi = DOValueResultList.getAInstance(property,userBO, theValue);


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

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

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.