Package com.exedosoft.plat.bo

Examples of com.exedosoft.plat.bo.DOService


    StringBuilder sb = new StringBuilder("<export>");
    DOBO bo = DOBO.getDOBOByName("multi_appshare");
    BOInstance appShare = bo.getCorrInstance();

    DOService insertInstallRecord = DOService
        .getService("multi_appshareinstall_install");

    Transaction t = insertInstallRecord.currentTransaction();
    t.begin();

    try {
      TenancyValues tv = (TenancyValues) DOGlobals.getInstance()
          .getSessoinContext().getTenancyValues();
     
      if(tv.getTenant().getUid().equals(appShare.getValue("auth_tenant_id"))){
        this.setEchoValue(I18n.instance().get("应用已经存在!"));

        return this.NO_FORWARD;
      }

      Map paras = new HashMap();
      paras.put("use_tenant_id", tv.getTenant().getUid());
      paras.put("use_tenant_name", tv.getTenant().getValue("l10n"));
      insertInstallRecord.invokeUpdate(paras);

      URL url = DODataSource.class.getResource("/globals.xml");
      String s = url.getPath();
      String s2 = s;
      s = s.substring(0, s2.toLowerCase().indexOf("web-inf"));
View Full Code Here



  public static List getListData(DOGridModel gridModel) {
    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);
    }
View Full Code Here

        list = gridModel.getService().invokeSelect(pageNo, pageNum);
      }
    }

    // ///处理第二服务(统计用)
    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
View Full Code Here

        list = gridModel.getService().invokeSelect(pageNo, pageNum);
      }
    }

    // ///处理第二服务(统计用)
    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
View Full Code Here

    }

    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

  }

  public static BOInstance copyService(BOInstance biService, DOService dos) {

    DOService thisService = DOService.getService("DO_Service_COPYDEEP");

    Transaction t = thisService.currentTransaction();
    try {
      t.begin();
      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());
View Full Code Here

    if (this.service == null || this.service.getTempSql() == null) {
      this.setEchoValue(I18n.instance().get("未配置SQL 语句"));
      return NO_FORWARD;
    }
   
    DOService theService = this.service;
   
    if("en".equals(DOGlobals.getValue("lang.local"))){
      theService = DOService.getService("updateFormModelsetl18n");
    }
         

//    String fileName = this.actionForm.getValue("fileName");
//
//    if (fileName == null) {
//      this.setEchoValue("你还没有选择文件!");
//      return NO_FORWARD;
//    }

//    fileName = DOGlobals.UPLOAD_TEMP.trim() + StringUtil.getCurrentDayStr()
//        + "/" + fileName.trim();
//    log.info("得到文件的绝对路径:::" + fileName);
    try {
//      File file = new File(fileName);
//
//      FileReader fr = new FileReader(file);
//      BufferedReader in = new BufferedReader(fr);
//      // List allChs = new ArrayList();
//      StringBuffer sb = new StringBuffer();
//      this.service.beginBatch();
//      while (true) {
//        String aLine = in.readLine();
//        if (aLine == null) {
//          break;
//        }
//        String[] paras = aLine.split("=");
//        if (paras != null && paras.length > 1) {
//          Map map = new HashMap();
//          map.put("l10n_en", paras[0].toLowerCase());
//          map.put("l10n_china", paras[1]);
//          this.service.addBatch(map);
//        }
//      }
      theService.beginBatch();
      String trans = this.actionForm.getValue("trans");
      String[] tranArray = trans.split("\n");
      for(int i = 0; i < tranArray.length; i++){
        String aLine = tranArray[i];
        if(aLine==null){
          break;
        }
        log.info("翻译的字段::" + aLine);
        String[] paras = aLine.split("=");
        if (paras != null && paras.length > 1) {
          Map map = new HashMap();
          map.put("l10n_en", paras[0].toLowerCase());
          map.put("l10n_china", paras[1]);
          theService.addBatch(map);
        }
      }
      theService.endBatch();
    } catch (Exception e) {
      e.printStackTrace();
    }
    this.setEchoValue(I18n.instance().get("翻译完成!"));
    return DEFAULT_FORWARD;
View Full Code Here

  }

  public static void main(String[] args) {

    TransFormModelL10n tf = new TransFormModelL10n();
    DOService dos = DOService.getService("updateFormModelsetl10n");
    tf.setService(dos);
    try {
      tf.excute();
    } catch (ExedoException e) {
      // TODO Auto-generated catch block
View Full Code Here

           + "/" + fileName.trim();
      System.out.println("FileName::" + fileName);
      try {
        Document doc = DOMXmlUtil.getInstance().getDocument(fileName);

        DOService doboInsert = DOService.getService("DO_BO_Insert");

        DOService parameterInsert = DOService
            .getService("DO_Parameter_copy");

        DOService propertyInsert = DOService
            .getService("DO_BO_Property_copy");

        DOService doRuleInsert = DOService.getService("DO_Rule_Insert");

        DOService serviceInsert = DOService
            .getService("DO_Service_copy");

        DOService serviceRuleInsert = DOService
            .getService("DO_Service_Rule_Insert");

        DOService paraServiceInsert = DOService
            .getService("DO_Parameter_Service_Copy_Batch");

        DOService paneLinksInsert = DOService
            .getService("DO_UI_PaneLinks_copy");

        DOService formInsert = DOService
            .getService("DO_UI_FormModel_COPY_TO_GRID");

        DOService formTargetInsert = DOService
            .getService("DO_UI_FormTargets_Insert");

        DOService formLinksInsert = DOService
            .getService("DO_UI_FormLinks_Insert");

        DOService gridInsert = DOService
            .getService("DO_UI_GridModel_Insert");

        DOService paneModelInsert = DOService
            .getService("DO_UI_PaneModel_copy");

        DOService treeModelInsert = DOService
            .getService("DO_UI_TreeModel_Insert");

        DOService menuModelInsert = DOService
            .getService("DO_UI_MenuModel_copy");

       
        DOService controllerInsert = DOService
        .getService("DO_UI_Controller_Insert");

         
        DOService actionInsert = DOService
        .getService("DO_ActionConfig_Insert");

       
        NodeList children = doc.getDocumentElement().getChildNodes();
View Full Code Here

   
   
    /**
     * 探矿权号码回收
     */
    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

TOP

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

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.