Package com.exedosoft.plat.bo

Examples of com.exedosoft.plat.bo.BOInstance


      String sn = null;
      SearchTransCode stc = new SearchTransCode(null);

      while (rs.next()) {

        BOInstance bi = stc.transRSToBOInstance(rs, null);
        bi.setUid(bi.getValue("uid"));
        System.out.println("bi::" + bi);
        // cn = rs.getString(1);
        // sn = rs.getString(2);
        // System.out.println("cn=" + cn + " sn=" + sn + "description="
        // + StringUtil.decodeBase64(rs.getString(3)));
View Full Code Here


      ClassNotFoundException {

   
   
     DOService aService = DOService.getService("t_expense_browse");
     BOInstance bi = aService.getInstance("40288024292af50d01292af8121e0001");
     System.out.println("Data::" + bi);
    
   
   
//    LDAPManager.check();
View Full Code Here

            for (Iterator itlii = elem.iterator(); itlii.hasNext();) {
              Node aLi = (Node) itlii.next();
              if (aNode instanceof Element) {
                String aJson = ((Element) aNode).getTextTrim();
                BOInstance biApp = BOInstance
                    .fromJSONString(aJson);

                DOBO boApp = DOBO
                    .getDOBOByName("do_application");
                BOInstance exists = boApp.getInstance(biApp
                    .getValue("objuid"));
                if (exists != null) {
                  log.info("待导入的工程已经存在,请删除后再导入!" + exists);
                  this.setEchoValue(I18n.instance().get(
                      "待导入的工程已经存在,请删除后再导入!"));
                  return false;
                }
                appInsert.invokeUpdate(biApp);
                isApp = true;
              }

            }

          } else if (elem.getName().equals("package")) {
            insertANode(packageInsert, aNode, curTenancy);
          } else if (elem.getName().equals("bo")) {

            for (Iterator itlii = elem.iterator(); itlii.hasNext();) {
              Node aLi = (Node) itlii.next();

              if (aNode instanceof Element) {
                String aJson = ((Element) aNode).getTextTrim();
                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

      Node aLi = (Node) itlii.next();

      if (aNode instanceof Element) {
        String aJson = aLi.getText();
        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

  public String excute() {
   
    //DOService DO_BusiPackage_deletebyapplicationuid = DOService.getService("DO_BusiPackage_deletebyapplicationuid");
   
    DOBO bo = DOBO.getDOBOByName("DO_BO");
    BOInstance instance = bo.getCorrInstance();
   
    removeBO(instance);
 
    return DEFAULT_FORWARD;
  }
View Full Code Here

    File current_dir = new File(path);
    //��ȡWEB-INFOĿ¼�ĸ�Ŀ¼
    File root_dir = new File(new File(current_dir.getParent()).getParent() + "/exedo/webv3/template/cms/theme/");
    File[] listDirs = root_dir.listFiles();
    DOService service = DOService .getService("cms_options_list");
    BOInstance bo = new BOInstance();
    List<BOInstance> l = service.invokeSelect(bo);
    String current_theme = "";
    if ( !l.isEmpty()){
      for(BOInstance b : l){
        System.out.println(b.getValue("opt_key"));
View Full Code Here

      return NO_FORWARD;
    }

    StringBuilder sb = new StringBuilder("<export>");
    DOBO bo = DOBO.getDOBOByName("do_application");
    BOInstance selectApp = bo.getCorrInstance();
   
    DOService findShare = DOService.getService("multi_appshare_findbyshareappid");
    List findApps = findShare.invokeSelect(selectApp.getUid());
    if(findApps!=null && findApps.size() >0 ){
      this.setEchoValue(I18n.instance().get("分享的应用必须原创APP,该应用已经分享到AppShare,不能重复分享!"));
      return NO_FORWARD;
    }

    sb.append("<app>").append(selectApp.toJSONString()).append("</app>\n");

    DOService findBP = DOService
        .getService("DO_BusiPackage_byapplicationuid");

    DOService findBO = DOService.getService("DO_BO_FindByBPUid_Form");

    Transaction t = findBP.currentTransaction();
    List<String> allIDs = new ArrayList<String>();
    DOExport export = new DOExport();
    try {
      t.begin();
      List bps = appendJSONS(sb, "package", findBP);
      // 服务下面的参数

      DOBO aBO = DOBO.getDOBOByName("do_bo");
      for (Iterator itBp = bps.iterator(); itBp.hasNext();) {
        BOInstance biBP = (BOInstance) itBp.next();
        List bos = findBO.invokeSelect(biBP.getUid());
        for (Iterator itBO = bos.iterator(); itBO.hasNext();) {
          BOInstance biBO = (BOInstance) itBO.next();
          aBO.refreshContext(biBO.getUid());
          export.exportBO(sb, biBO);
        }
      }
      t.end();
    } catch (Exception e) {
View Full Code Here

    if (parent == null) {
      return;
    }
    for (Iterator it = servChild.invokeSelect(parent.getUid()).iterator(); it
        .hasNext();) {
      BOInstance bi = (BOInstance) it.next();
      menus.add(bi);
      getChildBIs(menus, bi, servChild);
    }
  }
View Full Code Here

  protected void appendLi(StringBuilder sb, List list) {

    // / toJSONSTring 需要进行转义
    for (Iterator it = list.iterator(); it.hasNext();) {
      BOInstance bi = (BOInstance) it.next();
      sb.append("<li>").append(StringUtil.filter(bi.toJSONString()))
          .append("</li>\n");
    }
  }
View Full Code Here


    StringBuilder sb = new StringBuilder("<export>");
    DOBO bo = DOBO.getDOBOByName("DO_ActionConfig");

    BOInstance biController = bo.getCorrInstance();
    if (biController != null) {
      DOService pm = DOService.getService(biController.getUid());
      sb.append("\n<action><li>").append(StringUtil.filter(biController.toJSONString())).append(
          "</li></action>");
    }
    sb.append("</export>");
    this.setEchoValue(sb.toString());
    return DEFAULT_FORWARD;
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.