Examples of BOInstance


Examples of com.exedosoft.plat.bo.BOInstance

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)) {
View Full Code Here

Examples of com.exedosoft.plat.bo.BOInstance

    if (serviceName != null && !"".equals(serviceName.trim())) {
     
      DOService service = DOService.getService(serviceName);
      if (service != null) {
        BOInstance bi = null;
        if (service.retrieveParaServiceLinks() != null
            && service.retrieveParaServiceLinks().size() == 1) {
          bi = service.getInstance(theValue);
        }
        if(bi==null){
          DOBO corrBO = service.getBo();
          bi = corrBO.getInstance(theValue);
        }
        if (bi != null) {
          return bi.getThisLink().replace("popupDialog", "createNewTab");
        }
      }
    }
    if (theValue == null || "null".equals(theValue)) {
      return " ";
View Full Code Here

Examples of com.exedosoft.plat.bo.BOInstance

        doBO = property.getLinkBO();
      } else if (property.getLinkService() != null) {
        doBO = property.getLinkService().getBo();
      }

      BOInstance bi = DOValueResultList.getAInstance(property, doBO,
          property.getValue());

      if (bi != null) {
        buffer.append(" value=\"").append(bi.getName()).append("\"");
      }

    }

    buffer.append(" readonly=\"readonly\" ");
View Full Code Here

Examples of com.exedosoft.plat.bo.BOInstance

    if (property.getLinkService() != null) {
      for (Iterator it = property.getLinkService().invokeSelect()
          .iterator(); it.hasNext();) {

        BOInstance instance = (BOInstance) it.next();

        buffer.append("<input name=\"").append(
            property.getFullColName());

        buffer.append("\" value=\"").append(instance.getUid());

        buffer.append("\"  type=\"checkbox\"");

        buffer.append(getDecoration(property));

        if (DOStaticList.isChecked(instance.getUid(), property
            .getValue())) {
          buffer.append(" checked ");
        }
         if (isReadOnly(property)) {
           buffer.append(" DISABLED  ");
         }
        buffer.append("/>");
        //buffer.append(instance.getAjaxLink("_opener", null));
        buffer.append(instance.getName());

      }
    } else if(property.getInputConfig()!=null){

      List list = StringUtil.getStaticList(property.getInputConfig());
View Full Code Here

Examples of com.exedosoft.plat.bo.BOInstance

    data.put("model", doimodel);
    data.put("contextPath", DOGlobals.PRE_FULL_FOLDER);
    data.put("webmodule", DOGlobals.URL);

    DOFormModel aFm = (DOFormModel) doimodel;
    BOInstance bi = aFm.getData();
    if (bi != null && bi.getValue("contextPiUid") != null) {

      ProcessInstance pi = ProcessInstance.getProcessInstance(bi
          .getValue("contextPiUid"));
      if(pi==null){
        pi = ProcessInstance.getHisProcessInstance(bi.getValue("contextPiUid"));
      }
     
      if (pi!=null && pi.getProcessTemplate() != null
          && pi.getProcessTemplate().getDoBO() != null
          && pi.getProcessTemplate().getDoBO().getMainPaneModel() != null) {
        String instanceUid = bi.getValue("instance_uid");
        if(instanceUid!=null){
          data.put("busiBOName", pi.getProcessTemplate().getDoBO().getName());
          data.put("instance_uid", instanceUid);
        }
        data.put("paneModel", pi.getProcessTemplate().getDoBO()
View Full Code Here

Examples of com.exedosoft.plat.bo.BOInstance

        doBO = property.getLinkBO();
      } else if (property.getLinkService() != null) {
        doBO = property.getLinkService().getBo();
      }

      BOInstance bi = DOValueResultList.getAInstance(property, doBO,
          property.getValue());

      System.out.println("BOInstance===========" + bi);

      if (bi != null) {

        buffer.append("' aShowValue='").append(bi.getName()).append(
            "' aHiddenValue='").append(bi.getUid());
      }
    }

    buffer.append("' executeScripts='true'  containerToggle='wipe'></div>");
    return buffer.toString();
View Full Code Here

Examples of com.exedosoft.plat.bo.BOInstance

    return buffer;
  }

  public static void appendJSPaneLink(DOFormModel fm, StringBuffer buffer) {

    BOInstance bi = fm.getData();

    buffer.append("javascript:invokeDomId='")
    .append(fm.getFullColID())
    .append("',loadPml({'pml':'");

    if (fm.getLinkPaneModel().getLinkType().intValue() == DOPaneModel.LINKTYPE_RESOURCE) {
      buffer
          .append(fm.getLinkPaneModel().getResource()
              .getResourcePath());
    } else {
      buffer.append(fm.getLinkPaneModel().getName());
    }

    if (bi != null) {
      buffer.append("','paras':'dataBus=setContext&contextKey=").append(
          bi.getBo().getName()).append("&contextValue=").append(
          bi.getUid());

      if (bi.getValue("contextniuid") != null) {
        buffer.append("&contextNIUid=").append(
            bi.getValue("contextniuid"));
      }

      if (bi.getValue("contextPIUid") != null) {
        buffer.append("&contextPIUid=").append(
            bi.getValue("contextPIUid"));
      }

    }
   
   
View Full Code Here

Examples of com.exedosoft.plat.bo.BOInstance

      pi.setWfiDesc(pt.getPtDesc());

      pi.setExeStatus(Integer.valueOf(ProcessInstance.STATUS_INIT));
      pi.setPtUid(pt.getObjUid());
      String ptName = pt.getPtName();
      BOInstance bi = pt.getDoBO().getCorrInstance();
      if (bi == null) {
        t.rollback();
        throw new WFException("启动工作流失败:没有与业务表关联!");
      }
      pi.setInstanceUid(bi.getUid());
      if (bi.getName() != null && !bi.getName().equals("N/A")) {
        ptName = bi.getName();
      }

      if (pt.getDoBO2() != null) {
        BOInstance bi2 = DOGlobals.getInstance().getSessoinContext()
            .get(pt.getDoBO2());
        if (bi2 != null) {
          pi.setInstanceUid2(bi2.getUid());
        }
      }
      if (pt.getDoBO3() != null) {

        BOInstance bi3 = DOGlobals.getInstance().getSessoinContext()
            .get(pt.getDoBO3());
        if (bi3 != null) {
          pi.setInstanceUid3(bi3.getUid());
        }
      }

      pi.setWfiName(ptName);
      pi.setStartTime(new java.sql.Timestamp(System.currentTimeMillis()));
View Full Code Here

Examples of com.exedosoft.plat.bo.BOInstance

    if (property.getLinkService() != null) {
      for (Iterator it = property.getLinkService().invokeSelect()
          .iterator(); it.hasNext();) {

        BOInstance instance = (BOInstance) it.next();

        buffer.append("<input name=\"").append(
            property.getFullColName());

        buffer.append("\" value=\"").append(instance.getUid());

        buffer.append("\"  type=\"checkbox\"");

        buffer.append(getDecoration(property));

        if (DOStaticList.isChecked(instance.getUid(), property
            .getValue())) {
          buffer.append(" checked ");
        }
         if (isReadOnly(property)) {
           buffer.append(" DISABLED  ");
         }
        buffer.append("/>");
        buffer.append(instance.getThisLink());
        //buffer.append(instance.getName());

      }
    } else if(property.getInputConfig()!=null){
View Full Code Here

Examples of com.exedosoft.plat.bo.BOInstance

    data.put("model", doimodel);
    data.put("contextPath", DOGlobals.PRE_FULL_FOLDER);
    data.put("webmodule", DOGlobals.URL);

    DOFormModel aFm = (DOFormModel) doimodel;
    BOInstance bi = aFm.getData();
    if (bi != null && bi.getValue("contextPiUid") != null) {

      ProcessInstance pi = ProcessInstance.getProcessInstance(bi
          .getValue("contextPiUid"));
      if (pi!=null && pi.getProcessTemplate() != null
          && pi.getProcessTemplate().getDoBO() != null) {
        String instanceUid = bi.getValue("instance_uid");
        if(instanceUid!=null){
          data.put("busiBOName", pi.getProcessTemplate().getDoBO().getName());
          data.put("instance_uid", instanceUid);
        }
      }
      NodeInstance ni = NodeInstance.getNodeInstanceByID(bi.getValue("contextNiUid"));
      if(ni!=null && ni.getNode().getPane()!=null){
        data.put("paneModel", ni.getNode().getPane());
      }
    } else if (aFm.getLinkPaneModel() != null) {
      data.put("paneModel", aFm.getLinkPaneModel());
View Full Code Here
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.