Examples of BOInstance


Examples of com.exedosoft.plat.bo.BOInstance

      DOBO boServicePara = DOBO.getDOBOByName("DO_Parameter_Service");
      DOBO boServiceRule = DOBO.getDOBOByName("DO_Service_Rule");
      biService.setUid(null);
      biService.putValue("name", biService.getValue("name") + "_copy");
      biService.putValue("l10n", biService.getValue("l10n") + "_copy");
      BOInstance biNewService = thisService.invokeUpdate(biService);

      for (Iterator<DOParameterService> it = dos
          .retrieveParaServiceLinks().iterator(); it.hasNext();) {
        DOParameterService dps = it.next();
        BOInstance bi = boServicePara.getInstance(dps.getObjUid());
        bi.setUid(null);
        boServicePara.getDInsertService().invokeUpdate(bi);
      }
      for (Iterator<DOServiceRule> it = dos.retrieveServiceRules()
          .iterator(); it.hasNext();) {
        DOServiceRule dsr = it.next();
        BOInstance bi = boServiceRule.getInstance(dsr.getObjUid());
        bi.setUid(null);
        boServiceRule.getDInsertService().invokeUpdate(bi);
      }
      t.end();
      return biNewService;
    } catch (Exception e) {
View Full Code Here

Examples of com.exedosoft.plat.bo.BOInstance

              for (int lii = 0; lii < lis.getLength(); lii++) {
                Node aLi = lis.item(lii);
                if (aNode instanceof Element) {
                  String aJson = aNode.getFirstChild()
                      .getNodeValue();
                  BOInstance bi = BOInstance
                      .fromJSONString(aJson);

                  DOBO bo = DOBO.getDOBOByName("do_bo");
                  BOInstance exists = bo.getInstance(bi
                      .getValue("objuid"));
                  if (exists != null) {
                    log.info("待导入的业务对象已经存在,请删除后再导入!"
                        + exists);
                    this.setEchoValue(I18n.instance().get("待导入的业务对象已经存在,请删除后再导入!"));
View Full Code Here

Examples of com.exedosoft.plat.bo.BOInstance

    for (int lii = 0; lii < lis.getLength(); lii++) {
      Node aLi = lis.item(lii);
      if (aLi instanceof Element) {
        String aJson = aLi.getFirstChild().getNodeValue();
        if (aJson != null && !aJson.trim().equals("")) {
          BOInstance bi = BOInstance.fromJSONString(aJson);
          if (insertService.getBo()
              .getInstance(bi.getValue("objuid")) == null) {
            insertService.invokeUpdate(bi);
          }
        }
      }
    }
View Full Code Here

Examples of com.exedosoft.plat.bo.BOInstance

    strLink.append(DOGlobals.PRE_FULL_FOLDER).append(
        "file/downloadfile_common.jsp?formModelUid=").append(
        fm.getObjUid());
   
    BOInstance biData = fm.getData();
    if(biData==null){
      biData = fm.getGridModel().getCategory().getCorrInstance();
    }
   
    if(biData!=null){
        strLink.append("&fileName=")
        .append( biData.getName());
        if(fm.getInputConfig()==null){
          strLink.append(".xml");
        }else{
          strLink.append(fm.getInputConfig());
        }
View Full Code Here

Examples of com.exedosoft.plat.bo.BOInstance

    //String value = fm.getValue();
   
   
    String theValue = DOGlobals.getInstance().getSessoinContext().getUser().getUid();
   
    BOInstance bi = null;
   
    DOBO corrBO = property.getLinkBO();
   


    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) {
      return bi.getName();
    }
   
    if (theValue == null || "null".equals(theValue)) {
      return "&nbsp;";
    }
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("paneuid")!=null){
      DOPaneModel paneModel = DOPaneModel.getPaneModelByID(bi.getValue("paneuid"));
      data.put("paneModel", paneModel);
    }else if(aFm.getLinkPaneModel()!=null){
      data.put("paneModel", aFm.getLinkPaneModel());
    }
    return data;
View Full Code Here

Examples of com.exedosoft.plat.bo.BOInstance

      if (corrBO == null && property.getLinkService() != null) {
        corrBO = property.getLinkService().getBo();
      }
      if (theValue.indexOf(";") == -1) {
        BOInstance bi = getAInstance(property, corrBO, theValue);

        // /
        // System.out.println("BOINSTANCE++++++++++++++++++++++++++++++++++++++"
        // + bi);
        BOInstance data = property.getData();
        if (bi != null) {
          // ///////////////////////////////////采用弹出方式
          DOPaneModel theModel = property.getLinkPaneModel();
          if (theModel != null
              && theModel.getLinkType() != null
              && (theModel.getLinkType().intValue() == DOPaneModel.LINKTYPE_TREEMODEL)) {
            theModel = null;
          }
         
          if(bi.getName()!=null){
            return DOValueService.stardardOnlyPane(property,bi.getName()).toString();
          }else{
            return DOValueService.stardardOnlyPane(property,property.getValue()).toString();
          }
         
        }
      } else {
        String[] strs = theValue.split(";");
        StringBuffer buffer = new StringBuffer();
        for (int i = 0; i < strs.length; i++) {
          String aInsUid = strs[i];
          BOInstance bi = corrBO.getInstance(aInsUid);
          if (bi != null) {
            DOPaneModel theModel = property.getLinkPaneModel();
            if (theModel != null
                && theModel.getLinkType() != null
                && (theModel.getLinkType().intValue() == DOPaneModel.LINKTYPE_TREEMODEL)) {
              theModel = null;
            }
           
            if(bi.getName()!=null){
              return DOValueService.stardardOnlyPane(property,bi.getName()).toString();
            }else{
              return DOValueService.stardardOnlyPane(property,property.getValue()).toString();
            }
          }
        }
View Full Code Here

Examples of com.exedosoft.plat.bo.BOInstance

    return DOValueService.stardardOnlyPane(property,theValue).toString();
  }

  static BOInstance getAInstance(DOFormModel property, DOBO corrBO,
      String theValue) {
    BOInstance bi = null;
    if (property.getLinkService() != null
      ) {
      bi = property.getLinkService().getInstance(theValue);

    } else if (corrBO != null) {
View Full Code Here

Examples of com.exedosoft.plat.bo.BOInstance

     * 探矿权号码回收
     */
    DOService aService = DOService.getService("reuse_feihao_tankuangquan");
    List  list = aService.invokeSelect();
    if(list!=null && list.size()>0){
      BOInstance aInstance = (BOInstance)list.get(0);
      String licenceid = aInstance.getValue("withdraw_reason");
      if(licenceid!=null && licenceid.length()==18){
        return licenceid.substring(12, 18);
       
      }
    }
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(" value=\"").append(bi.getName()).append("\"");
      }

    }

    buffer.append(" readonly=\"readonly\" ");
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.