Package com.exedosoft.plat.bo

Examples of com.exedosoft.plat.bo.DOService


    OrgParter userParter = OrgParter.getDefaultEmployee();

    DOBO userBO = userParter.getDoBO();
    BOInstance preUser = userBO.getInstance(preNI.getPerformer());
    String deptUid = preUser.getValue("unit_uid");
    DOService service = DOService.getService("zj.unit.link.findByChildUid");
    List parentDeptLinks = service.invokeSelect(deptUid);
    /**
     * 用nodeExt5代替decisionExpression.
     */
    String aRule = this.getNode().getRetNodeUID();
    if (parentDeptLinks != null) {
View Full Code Here


    try {
      DAOUtil.BUSI().store(processInstance);

      // /数据表转移到历史表中
      DOService dosPi = DOService
          .getService("do_wfi_his_processinstance_insert");
      DOService dosNi = DOService
          .getService("do_wfi_his_nodeinstance_insert");
      DOService dosVi = DOService
          .getService("do_wfi_his_varinstance_insert");
      DOService dosNid = DOService
          .getService("do_wfi_his_ni_dependency_insert");

      List<NodeInstance> nis = processInstance.retrieveNodeInstances();
      DAOUtil.BUSI().store(processInstance, dosPi);
      for (Iterator<NodeInstance> it = nis.iterator(); it.hasNext();) {
        NodeInstance ni = (NodeInstance) it.next();
        DAOUtil.BUSI().store(ni, dosNi);
        List<NIDependency> nidepes = ni.getPostNodeDepes();
        for (Iterator<NIDependency> itNi = nidepes.iterator(); itNi
            .hasNext();) {
          NIDependency niD = itNi.next();
          DAOUtil.BUSI().store(niD, dosNid);
        }
      }
      List<VarInstance> piVals = processInstance.retrieveVarInstances();
      for (Iterator<VarInstance> it = piVals.iterator(); it.hasNext();) {
        VarInstance vi = it.next();
        DAOUtil.BUSI().store(vi, dosVi);
      }
      // ////删除运行时表
      DOService deletePI = DOService
          .getService("do_wfi_processinstance_delete");
      deletePI.invokeUpdate(processInstance.getObjUid());

      DOService deleteVars = DOService
          .getService("do_wfi_varinstance_deletebypiuid");
      deleteVars.invokeUpdate(processInstance.getObjUid());

      DOService deleteNIs = DOService
          .getService("do_wfi_nodeinstance_deletebypiuid");
      deleteNIs.invokeUpdate(processInstance.getObjUid());

      DOService deleteNIRels = DOService
          .getService("do_wfi_ni_dependency_deleterubbish");
      deleteNIRels.invokeUpdate();

    } catch (Exception ex1) {
      ts.rollback();
      ex1.printStackTrace();
      throw new WFException("流程结束,保存结束状态出错::" + ex1.toString(), ex1);
View Full Code Here

      }

      // //////////////初始化当前上下文环境1
      if (instanceUid != null) {
        if (treeModel.getParent() != null) {
          DOService parentService = null;
          if (treeModel.getParent().getService() != null) {
            parentService = treeModel.getParent().getService();
          } else {
            parentService = this.getIfParentService(treeModel
                .getParent());
          }
          if (parentService != null) {
            parentService.getBo().refreshContext(instanceUid);
          }

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

      return;
    }
    if (treeModel.getParent() != null) {
      return;
    }
    DOService service = treeModel.getService();
    if (service == null || service.getBo() == null) {
      return;
    }
    if (list == null) {
      list = new ArrayList();
    }
    BOInstance instance = new BOInstance();
    instance.setUid("tree.new.record");
    instance.setBo(service.getBo());
    instance.putValue(service.getBo().getValueCol(), "新增");
    list.add(instance);

  }
View Full Code Here

      this.setEchoValue(I18n.instance().get("两次输入的新密码不一致"));
       return NO_FORWARD;
      
    }
   
    DOService findUser = DOService.getService("do.bx.user.findbynameAndPassword");
    String userName = DOGlobals.getInstance().getSessoinContext().getUser().getName();
   
    List users =  findUser.invokeSelect(userName,StringUtil.MD5(old_password));
   
    if(users==null || users.size()==0){
      this.setEchoValue(I18n.instance().get("您输入的的旧密码不正确"));
      return NO_FORWARD;
    }else{
     
      DOService updatePassword = DOService.getService("do.bx.user.update.passowrd");
      updatePassword.invokeUpdate(StringUtil.MD5(new_password1),DOGlobals.getInstance().getSessoinContext().getUser().getUid());
    }
 
    return DEFAULT_FORWARD;
  }
View Full Code Here

    return DEFAULT_FORWARD;
  }
 
  public static void main(String[] args) throws ExedoException{
   
    DOService aService = DOService.getService("DO_ORG_ACCOUNT_ResetPassword");
    aService.invokeUpdate("a","a");
   
   
  }
View Full Code Here

       
        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);
          DAOUtil.INSTANCE().delete(aPara);
        }
//////////////////////////////  DO_Parameter_Service_deleterubbish 这个 sql需要改写 
        DOService deletes = DOService.getService("DO_Parameter_Service_deleterubbish");
        deletes.invokeUpdate();
     
       
//////////////////////表格元素
        for(int i = 0 ;i < 10;i++){
          DOFormModel aFm = DOFormModel.getFormModelByProperty(dop.getObjUid());
View Full Code Here

      dop.setParaBO(aDOBO);
      DAOUtil.INSTANCE().store(dop);

      // /服务相关
      // /insert service
      DOService insertService = aDOBO.getDInsertService();
      if (insertService != null) {
        insertService.addMetaParameter(dop);
      } else {
        log.error("Insert Error:::" + aDOBO.getName() + "__colName::"
            + colName);
      }

      DOService updateService = aDOBO.getDUpdateService();
      if (updateService != null) {
        updateService.addMetaParameter(dop);
      } else {
        log.error("Update Error:::" + aDOBO.getName() + "__colName::"
            + colName);
      }
     
View Full Code Here

            for (Iterator it = list.iterator(); it.hasNext();) {
              String[] halfs = (String[]) it.next();

              if ((theLinkValue != null && theLinkValue
                  .equals(halfs[0]))) {
                DOService theCorrService = DOService
                    .getService(halfs[1]);
                if (theCorrService != null) {
                  corrBO = theCorrService.getBo();
                }
                break;
              }
            }
          }
View Full Code Here

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

      if (linkService != null && linkService.hasOnePara()) {
        List list = linkService.invokeSelect(theValue);
        if (list.size() == 1) {
          bi = (BOInstance) list.get(0);
        } else {
          bi = corrBO.getInstance(theValue);
        }
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.