Package com.exedosoft.plat.bo

Examples of com.exedosoft.plat.bo.BOInstance


public class DOValueStaticListWithOrther extends DOStaticList {

  public String getHtmlCode(DOIModel aModel) {

    DOFormModel property = (DOFormModel) aModel;
    BOInstance bi = property.getData();
    String wseladdress = null;
    String wvacationtype = null;
    if(bi != null) {
      wseladdress = bi.getValue("wseladdress");
      wvacationtype = bi.getValue("wvacationtype");
    }
    if(wseladdress == null || "".equals(wseladdress.trim()))
      wseladdress = " ";
    if(wvacationtype == null || "".equals(wvacationtype.trim()))
      wvacationtype = " ";
View Full Code Here


        DOBO corrBO = property.getLinkBO();

        if (corrBO == null && property.getLinkService() != null) {
          corrBO = property.getLinkService().getBo();
        }
        BOInstance bi = getAInstance(property, corrBO, theLinkValue);
        data.put("label", bi.getName());
      }
    }
    return data;
  }
View Full Code Here

   */
  String getDynaListForm(DOFormModel property) {

    List halfs = new ArrayList();
    for (Iterator it = property.getLinkService().invokeSelect().iterator(); it.hasNext();) {
      BOInstance svo = (BOInstance) it.next();
      String[] half = new String[2];
      half[0] = (String) svo.getUid();
      half[1] = (String) svo.getName();

      halfs.add(half);
    }
    StringBuffer buffer = new StringBuffer();
    buffer.append(formSelectStr(property, halfs));
View Full Code Here

      System.out.println("-----------");
      System.out.println(template);
      System.out.println(createExlPath);
      System.out.println("+++++++++++++TWO+++++++++++++++++");
     
      BOInstance bi = new BOInstance();
      bi.putValue("exlfile", createExlPath);
      this.setInstance(bi);
      return this.DEFAULT_FORWARD;
   
  }
View Full Code Here

    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

      DOBO userBO = userParter.getDoBO();
      DOBO deptBO = deptParter.getDoBO();
      deptName = null;
      String performer = this.getPerformer();
      if (performer != null) {
        BOInstance bi = userBO.getInstance(performer);
        if (bi != null) {
          String deptUid = "";
          if (acctblt.isNeedOtherTable()) {
            List list = acctblt.getAccessLinkParter().invokeSelect(
                performer);
            if (list != null && list.size() > 0) {
              BOInstance aInstance = (BOInstance) list.get(0);
              deptUid = aInstance.getValue(acctblt
                  .getLinkParterCol());
            }

          }
          deptUid = bi.getValue(acctblt.getLinkParterCol());
View Full Code Here

    }

    OrgParter userParter = OrgParter.getDefaultEmployee();

    DOBO userBO = userParter.getDoBO();
    BOInstance preUser = userBO.getInstance(preNI.getPerformer());
    String deptUid = preUser.getValue("unit_uid");
    DOService service = DOService.getService("zj.unit.link.findByChildUid");
    List parentDeptLinks = service.invokeSelect(deptUid);
    /**
     * 用nodeExt5代替decisionExpression.
     */
    String aRule = this.getNode().getRetNodeUID();
    if (parentDeptLinks != null) {
      if (parentDeptLinks.size() == 1
          || ((aRule == null || aRule.trim().equals("")) && parentDeptLinks
              .size() > 1)) {
        BOInstance deptlink = (BOInstance) parentDeptLinks.get(0);
        return deptlink.getValue("parent_uid");
      } else {
        for (Iterator it = parentDeptLinks.iterator(); it.hasNext();) {
          BOInstance deptlink = (BOInstance) it.next();
          if (aRule.equals(deptlink.getValue("linkrule"))) {
            return deptlink.getValue("parent_uid");
          }
        }
      }
    }
    return null;
View Full Code Here

      state = theForward.getNodeStateShowBack();
    }

    if (backType != -1) {
      SessionContext us = DOGlobals.getInstance().getSessoinContext();
      BOInstance formI = us.getFormInstance();
      String rTxt = "";
      PTNode node = this.getNode();
      if (formI != null && node != null) {
        if (node.getRejectTxt() != null
            && !"".equals(node.getRejectTxt().trim())) {
          rTxt = formI.getValue(node.getRejectTxt());
        } else if (formI.getValue("reject_txt") != null) {
          rTxt = formI.getValue("reject_txt");
        } else if (formI.getValue("rejecttxt") != null) {
          rTxt = formI.getValue("rejecttxt");
        }

        state = state + "(" + rTxt + ")";
      }
    }
View Full Code Here

    StringBuffer buffer = new StringBuffer();

    String theValue = fm.getValue();

    BOInstance data = null;

    if (fm.getL10n().equals("连接内容")) {

      System.out.println("isDyn:::::::::::" + isDyn);
      System.out.println("连接内容:::::::::::" + fm.getLinkForms());
      System.out.println("fm.getInputConfig():::::::::::"
          + fm.getInputConfig());

    }

    if (theValue != null && !"".equals(theValue.trim())) {

      DOBO corrBO = fm.getLinkBO();

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

      /**
       * 可变动态下拉列表, 根据连接的FORMMODEL,一般静态staticlist 确定使用的服务
       */
      if (isDyn) {
        DOFormModel linkFm = (DOFormModel) fm.getLinkForms().get(0);
        String theLinkValue = fm.getData()
            .getValue(linkFm.getColName());

        if (theLinkValue != null) {

          List list = StringUtil.getStaticList(fm.getInputConfig());

          for (Iterator it = list.iterator(); it.hasNext();) {
            String[] halfs = (String[]) it.next();

            if ((theLinkValue != null && theLinkValue
                .equals(halfs[0]))) {
              DOService theCorrService = DOService
                  .getService(halfs[1]);
              if (theCorrService != null) {
                corrBO = theCorrService.getBo();
              }
              break;
            }
          }
        }
        data = DOValueResultList.getAInstance(null, corrBO, theValue);
      } else {
        data = DOValueResultList.getAInstance(fm, corrBO, theValue);
      }

    }

    if (default_data && data == null && fm.getLinkService() != null) {
      data = fm.getLinkService().getBo().getCorrInstance();
      if (data != null) {
        theValue = data.getUid();
      }
    }

    buffer.append("  <input type='hidden' class='resultlistpopup'  name='")
        .append(fm.getColName()).append("' id='")
        .append(fm.getFullColID()).append("' serviceName='")
        .append(fm.getLinkService().getName()).append("' ");
    if (theValue != null) {

      buffer.append(" value='").append(theValue).append("'");
    }

    buffer.append(this.appendValidateConfig(fm));
   
    this.appendHtmlJs(buffer, fm);
   
    buffer.append("/>");

    buffer.append(
        "<input  type='text' style='border:#B3B3B3 1px solid;margin-top:1px'  onchange=\"if(this.value==''){this.previousSibling.value='';}\"'")
        .append(" onclick=\"this.style.borderColor='#406B9B'\" onmouseover=\"this.style.borderColor='#99E300'\" onmouseout=\"this.style.borderColor='#A1BCA3'\" name='")
        .append(fm.getFullColID()).append("_show' id='")
        .append(fm.getFullColID()).append("_show' class='")
        .append(fm.getFullColID()).append("_show' ");
    buffer.append(getDecoration(fm));

    if (data != null) {
      buffer.append(" value='").append(data.getName()).append("'");
    }
    // else{
    // buffer.append(" value='").append(fm.getL10n())
    // .append("'");
    // }

    if (data != null) {
      buffer.append(" title='").append(data.getName()).append("'");
    } else {
      buffer.append(" title='").append(fm.getL10n()).append("'");
    }

    if (isReadOnly(fm)) {
View Full Code Here

      setPerformer(us.getUser().getUid());
    }

    setNodeDate(new java.sql.Timestamp(System.currentTimeMillis()));

    BOInstance formI = us.getFormInstance();

    // //////////////从界面获取用户的录入,更新变量对应的值
    try {
      if (formI != null) {
        for (Iterator it = this.getProcessInstance()
            .retrieveVarInstances().iterator(); it.hasNext();) {
          VarInstance vi = (VarInstance) it.next();
          if (formI.getValue(vi.getVarName()) != null) {
            vi.setVarValue(formI.getValue(vi.getVarName()));
          }
          DAOUtil.BUSI().store(vi);
        }
        dealPropetyValues(formI);
      }
View Full Code Here

TOP

Related Classes of com.exedosoft.plat.bo.BOInstance

Copyright © 2018 www.massapicom. 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.