Examples of DOParameter


Examples of com.exedosoft.plat.bo.DOParameter

    DAOUtil.INSTANCE().store(rService);

    List paras = this.category.retrieveParameties();
    int i = 1;
    for (Iterator<DOParameter> it = paras.iterator(); it.hasNext(); i = i + 5) {
      DOParameter dop = it.next();
      if (dop.getProperty().isKeyCol()) {
        continue;
      }
      DOParameterService dps = new DOParameterService();
      dps.setDop(dop);
      dps.setDos(rService);
      dps.setOrderNum(Integer.valueOf(i));
      if (dop.getProperty().isString()) {
        dps.setPatterm("#col# like ?;%#value#%");
      }

      DOService aService = DOService
          .getService("DO_Parameter_Service_Copy_Batch");
View Full Code Here

Examples of com.exedosoft.plat.bo.DOParameter

      if(dop!=null){
       
        List<DOParameter>  paras =  DOParameter.getParameterByPropertyUid(dop.getObjUid());
        for(Iterator<DOParameter> it = paras.iterator(); it.hasNext();){
         
          DOParameter aPara = it.next();
          DOService insertService = aDOBO.getDInsertService();
          insertService.removeMetaParameter(aPara);
         
          DOService updateService = aDOBO.getDUpdateService();
          updateService.removeMetaParameter(aPara);
View Full Code Here

Examples of com.exedosoft.plat.bo.DOParameter

      pro.setPropName(colName);
      DAOUtil.INSTANCE().store(pro);

      // 增加参数

      DOParameter dop = new DOParameter();
      dop.setL10n(colName);
      dop.setName(colName);
      dop.setType(DOParameter.TYPE_FORM);
      dop.setProperty(pro);
      dop.setParaBO(aDOBO);
      DAOUtil.INSTANCE().store(dop);

      // /服务相关
      // /insert service
      DOService insertService = aDOBO.getDInsertService();
View Full Code Here

Examples of com.exedosoft.plat.bo.DOParameter

          int i = 1;
          for (Iterator it = insertService.retrieveParaServiceLinks()
              .iterator(); it.hasNext();) {
            DOParameterService dops = (DOParameterService) it
                .next();
            DOParameter dop = dops.getDop();

            String value = null;

            if (dop.getType() != null
                && dop.getType().intValue() == DOParameter.TYPE_FORM
                && dop.getDefaultValue() == null) {// //form类型直接从节目获取
              log.info("Batch Parameter Name:::" + dop.getName());
              String[] valueArray = uiForm.getValueArray(dop
                  .getName());
              value = valueArray[len];
              if ("".equals(value)) {
                value = null;
              }
            } else {
              value = dop.getValue();
            }
           
            if (dop.getType() != null
                && dop.getType().intValue() == DOParameter.TYPE_KEY) {
              newIds.add(value);
            }
            value = dops.getAfterPattermValue(value);
            insertService.putStatementAValue(pstmt, i, dops, value);
            i++;
          }
          batchSize++;
          pstmt.addBatch();
        }
        log.info("::batchSize:::" + batchSize);
        pstmt.executeBatch();
       
        /////多租户的处理
        for(String anID : newIds){
          insertService.dealMultiTenancy(null, con, anID);
        }
      }
      // ////////////////////////////////////end 新增=====================

      // ////////////修改   begin==============================================
      DOBO refreshBO = aFm.getGridModel().getService().getBo();

      String[] ids = uiForm.getValueArray("id");
      if (ids != null && ids.length > 0) {

        PreparedStatement pstmt = con.prepareStatement(updateService
            .getTempSql());
        for (int ii = 0; ii < ids.length; ii++) {
          String idstr = ids[ii];
          System.out.println("one isstr::" + idstr);
          if (idstr != null) {
            String[] vals = idstr.split(";﹕#");
            HashMap<String, String> paras = new HashMap<String, String>();
            String id = "";
            if (vals != null && vals.length > 0) {
              id = vals[0];
              for (int j = 1; j < vals.length; j++) {
                String aKeyValue = vals[j];
                System.out.println("aKeyValue::::::" + aKeyValue);
                String[] arrayKV = aKeyValue.split("﹕﹕");
                String aValue = null;
                if(arrayKV.length > 1){
                   aValue = arrayKV[1];
                }
                paras.put(arrayKV[0],aValue);
              }
            }
           
            System.out.println("paras:::::" + paras);

            BOInstance oldInstance = refreshBO.refreshContext(id);
            String newKeyValue = null;
            int i = 1;
            for (Iterator it = updateService
                .retrieveParaServiceLinks().iterator(); it
                .hasNext();) {
              DOParameterService dops = (DOParameterService) it
                  .next();
              DOParameter dop = dops.getDop();
              String value = null;
              if (dop.getType() != null
                  && dop.getType().intValue() == DOParameter.TYPE_FORM
                  && dop.getDefaultValue() == null) {
                log.info("批量修改参数的名称:::" + dop.getName());
                value = paras.get(dop.getName());
                if ("".equals(value)) {
                  value = null;
                }
              } else {
                value = dop.getValue();
              }

              if (dop.getType() != null
                  && dop.getType().intValue() == DOParameter.TYPE_KEY) {
                newKeyValue = value;
              }
              value = dops.getAfterPattermValue(value);
              updateService.putStatementAValue(pstmt, i, dops,
                  value);
View Full Code Here

Examples of com.exedosoft.plat.bo.DOParameter

        int i = 1;
        for (Iterator it = this.service.retrieveParaServiceLinks()
            .iterator(); it.hasNext();) {
          DOParameterService dops = (DOParameterService) it.next();
          DOParameter dop = dops.getDop();

          String value = null;

          if (dop.getType() != null
              && dop.getType().intValue() == DOParameter.TYPE_FORM
              && dop.getDefaultValue() == null) {
            log.info("Parameter Name:::" + dop.getName());

            String[] valueArray = this.actionForm.getValueArray(dop
                .getName());
            value = valueArray[len];
            if ("".equals(value)) {
              value = null;
            }
          } else {
            value = dop.getValue();

          }

          if (dop.getType() != null
              && dop.getType().intValue() == DOParameter.TYPE_KEY) {
            newKeyValue = value;
          }

          value = dops.getAfterPattermValue(value);
          this.service.putStatementAValue(pstmt, i, dops, value);
View Full Code Here

Examples of com.exedosoft.plat.bo.DOParameter

      DOTreeModel selfLinkModel) {

    for (Iterator it = selfLinkModel.getService()
        .retrieveParaServiceLinks().iterator(); it.hasNext();) {
      DOParameterService dops = (DOParameterService) it.next();
      DOParameter dop = dops.getDop();
      if (dop.getParaBO().getObjUid()
          .equals(treeModel.getService().getBo().getObjUid())) {
        selfLinkModel.getService().addTempParaValue(dops, instanceUid);
        return;
      }
    }
View Full Code Here

Examples of com.exedosoft.plat.bo.DOParameter

      DOTreeModel selfLinkModel) {

    for (Iterator it = selfLinkModel.getService()
        .retrieveParaServiceLinks().iterator(); it.hasNext();) {
      DOParameterService dops = (DOParameterService) it.next();
      DOParameter dop = dops.getDop();
      if (dop.getParaBO().getObjUid().equals(
          treeModel.getService().getBo().getObjUid())) {
        selfLinkModel.getService().addTempParaValue(dops, instanceUid);
        return;
      }
    }
View Full Code Here

Examples of com.exedosoft.plat.bo.DOParameter

    String aField = this.actionForm.getValue("qingxuanzelianjiedeshuxing");
    log.info("Field::" + aField);

   
    DOBOProperty prop = DOBOProperty.getDOBOPropertyByID(aField);
    DOParameter propPara = DOParameter.getParameterByProperty(prop,DOParameter.TYPE_FORM);
   
    DOBOProperty parentKey = DOBOProperty.getDOBOPropertyByName(parentBO.getName(),parentBO
        .getKeyCol());
    DOParameter keyPara = DOParameter.getParameterByProperty(
        parentKey, DOParameter.TYPE_CURRENT);


    if (boUid == null) {
      return "";
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.