Examples of BOInstance


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(" disable ");
        // }
        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

    /**
     * 处理内容
     */
    for (Iterator it = list.iterator(); it.hasNext();) {
      BOInstance ins = (BOInstance) it.next();

      for (Iterator itCol = properties.iterator(); itCol.hasNext();) {
        DOFormModel link = (DOFormModel) itCol.next();
        link.setData(ins);
        String value = link.getHtmlValue();
View Full Code Here

Examples of com.exedosoft.plat.bo.BOInstance

   
    /**
     * 处理内容
     */
    for (Iterator it = list.iterator(); it.hasNext();) {
      BOInstance ins = (BOInstance) it.next();
      if(!lSelects.contains(ins.getUid())){
        continue;
      }
      for (Iterator itCol = properties.iterator(); itCol.hasNext();) {
        DOFormModel link = (DOFormModel) itCol.next();
        link.setData(ins);
View Full Code Here

Examples of com.exedosoft.plat.bo.BOInstance

    List list = gridModel.getService().invokeSelect();
    Object[] arrays = list.toArray();
    DOService secondService = gridModel.getSecondService();
    int j=0;
    for(int i = 0 ; i < arrays.length ; i++){
      BOInstance bi = (BOInstance)arrays[i];
      j = getListDataHelper(list, secondService, j, i, bi);
    }
    return list;
  }
View Full Code Here

Examples of com.exedosoft.plat.bo.BOInstance

    if(secondService!=null){
      List children = secondService.invokeSelect(bi.getUid());
      if(children!=null && children.size()>0){
        for(Iterator it = children.iterator();it.hasNext();){
          j++;
          BOInstance aChild = (BOInstance)it.next();
//          System.out.println("i==j==data::" + i + "-----" + j + "----" + aChild);
          aChild.putValue("child_of_class", "child-of-"+bi.getUid());
          list.add(i+j, aChild);
          if(bi.getUid().equals(aChild.getUid())){///自己包含自己,预防死循环
            return j;
          }
          j = getListDataHelper(list,secondService,j,i,aChild);
        }
      }
View Full Code Here

Examples of com.exedosoft.plat.bo.BOInstance

    // ///处理第二服务(统计用)
    DOService secondService = gridModel.getSecondService();
    if (secondService != null) {
      List secondResult = secondService.invokeSelect();
      if (secondResult.size() > 0) {
        BOInstance statistics = (BOInstance) secondResult.get(0);
        data.put("statistics", statistics.getMap());
        StringBuilder sb = new StringBuilder();
        List<DOFormModel> listFm = gridModel
            .getStatisticOutGridFormLinks();
        if (listFm != null && listFm.size() > 0) {
          for (Iterator<DOFormModel> it = listFm.iterator(); it
View Full Code Here

Examples of com.exedosoft.plat.bo.BOInstance

    // ///处理第二服务(统计用)
    DOService secondService = gridModel.getSecondService();
    if (secondService != null) {
      List secondResult = secondService.invokeSelect();
      if (secondResult.size() > 0) {
        BOInstance statistics = (BOInstance) secondResult.get(0);
        data.put("statistics", statistics.getMap());
        StringBuilder sb = new StringBuilder();
        List<DOFormModel> listFm = gridModel
            .getStatisticOutGridFormLinks();
        if (listFm != null && listFm.size() > 0) {
          for (Iterator<DOFormModel> it = listFm.iterator(); it
View Full Code Here

Examples of com.exedosoft.plat.bo.BOInstance

  @Override
  public String excute() throws ExedoException {
   
    DOBO bo = DOBO.getDOBOByName("do_bo");
    BOInstance instance = bo.getCorrInstance();
    if(instance==null){
      this.setEchoValue(I18n.instance().get("没有数据!"));

      return NO_FORWARD;
    }
   
    DOBO boProperty = DOBO.getDOBOByName("DO_BO_Property");
    BOInstance propertyInstance = boProperty.getCorrInstance();
    if(propertyInstance==null){
      this.setEchoValue(I18n.instance().get("没有数据!"));
      return NO_FORWARD;
    }
    DOBOProperty dop = DOBOProperty.getDOBOPropertyByID(propertyInstance.getUid());
    DOBO thisBO = DOBO.getDOBOByID(instance.getUid());
   
    PropertyManager pm = new PropertyManager();
    pm.removeProperty(thisBO, dop);
    return DEFAULT_FORWARD;
View Full Code Here

Examples of com.exedosoft.plat.bo.BOInstance

    Transaction t = this.service.currentTransaction();
    try {
      t.begin();
      DOBO boService = DOBO.getDOBOByName("do_service");
      BOInstance biService = boService.getCorrInstance();
      BOInstance paras = new BOInstance();
      paras.putValue("serviceUid", biService.getUid());
      paras.putValue("onlyRun", "1");
      paras.putValue("condition", "true");
      paras.putValue("conditionType", "1");//1 代表script
      paras.putValue("name", "Rule_" + biService.getValue("name"));
      paras.putValue("l10n", "Rule_" + biService.getValue("l10n"));
      paras.putValue("salience", "5");
      paras.putValue("bouid", biService.getValue("bouid"));
      this.service.invokeUpdate(paras);
      t.end();
    } catch (Exception e) {
      t.rollback();
      e.printStackTrace();
View Full Code Here

Examples of com.exedosoft.plat.bo.BOInstance

      return NO_FORWARD;
    }

    DOBO boService = DOBO.getDOBOByName("do_service");

    BOInstance biService = boService.getCorrInstance();
    DOService dos = DOService.getServiceByID(biService.getUid());

    copyService(biService, dos);
    this.setEchoValue(I18n.instance().get("复制成功,请点击左侧树节点进行操作!"));
    return DEFAULT_FORWARD;
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.