Package com.exedosoft.plat.bo

Examples of com.exedosoft.plat.bo.DOBO


   * Save 的情况,所以Parameter 取值时不考虑auto_condition(查询) 的情况
   */

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

      return NO_FORWARD;
    }
View Full Code Here


    
   
    Transaction t = copyService.currentTransaction();
    try {
      t.begin();
      DOBO boForm = DOBO.getDOBOByName("do_ui_formmodel");
      DOBO boFormTarget = DOBO.getDOBOByName("DO_UI_FormTargets");
      DOBO boFormLink = DOBO.getDOBOByName("DO_UI_FormLinks");
      for(int i = 0; i < checks.length ; i++){
        BOInstance biForm = boForm.getInstance(checks[i]);
        DOFormModel aFm = DOFormModel.getFormModelByID(biForm.getUid());
       
        biForm.putValue("objuid", null);
        biForm.putValue("gridModelUid", gridModelUid);
        BOInstance newBiForm = copyService.invokeUpdate(biForm);
        // //保存FormModel
        for(Iterator<DOFormTarget> itTargetGrid = aFm.getTargetGridModels().iterator();itTargetGrid.hasNext(); ){
          DOFormTarget aFt = itTargetGrid.next();
          BOInstance biFt = boFormTarget.getInstance(aFt.getObjUid());
          biFt.putValue("objuid", null);
          biFt.putValue("formUid", newBiForm.getUid());
          boFormTarget.getDInsertService().invokeUpdate(biFt);           
        }

          // //FormModel linkForms
        for(Iterator<DOFormModel> itLinkForms = aFm.getLinkForms().iterator(); itLinkForms.hasNext();){
            DOFormModel linkForm = itLinkForms.next();
            Map<String,String> paras = new HashMap<String,String>();
            paras.put("formuid", newBiForm.getUid());
            paras.put("linkformuid", linkForm.getObjUid());
            boFormLink.getDInsertService().invokeUpdate(paras);
        }
       
       
      }
      t.end();
View Full Code Here

      System.out.println("服务为定义!");
      return NO_FORWARD;
    }

    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();
View Full Code Here

      return NO_FORWARD;
    }
   
    try {
      this.service.beginBatch();
      DOBO boParaService = DOBO.getDOBOByName("DO_Parameter_Service");
      for(int i = 0; i < checks.length ; i++){
        BOInstance bi = boParaService.getInstance(checks[i]);
        bi.putValue("objuid", null);
        bi.putValue("serviceUid", serviceUid);
        this.service.addBatch(bi);     
      }
      this.service.endBatch();
View Full Code Here

   
    if ("true".equals(DOGlobals.getValue("multi.tenancy"))) {
      dss = DOGlobals.getInstance().getSessoinContext()
          .getTenancyValues().getDataDDS();
    } else {//单租户情况
      DOBO bo = DOBO.getDOBOByName("do_datasource");
      dss = DODataSource.getDataSourceByL10n(bo
          .getCorrInstance().getValue("l10n"));
    }
   
   
View Full Code Here

  private static final long serialVersionUID = 4555077593344493040L;

  @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

    }

    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
View Full Code Here

    if (this.service == null || this.service.getTempSql() == null) {
      this.setEchoValue(I18n.instance().get("未配置SQL 语句"));
      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

    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());
        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) {
      t.rollback();
View Full Code Here

                  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

TOP

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

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.