Examples of OrgParter


Examples of com.exedosoft.plat.bo.org.OrgParter

   *
   * @return
   */
  public List getPrePerformers() {

    OrgParter userParter = OrgParter.getDefaultEmployee();

    DOBO userBO = userParter.getDoBO();

    List list = this.getPreNodes();
    List performers = new ArrayList();
    for (Iterator it = list.iterator(); it.hasNext();) {
      NodeInstance ni = (NodeInstance) it.next();
View Full Code Here

Examples of com.exedosoft.plat.bo.org.OrgParter

  public String getPerformerDept() {

    String deptName = null;
    try {
      OrgParter userParter = OrgParter.getDefaultEmployee();
      OrgAccountability acctblt = userParter.getDeptAccntblt();
      OrgParter deptParter = acctblt.getLinkParter();
      DOBO userBO = userParter.getDoBO();
      DOBO deptBO = deptParter.getDoBO();
      deptName = null;
      String performer = this.getPerformer();
      if (performer != null) {
        BOInstance bi = userBO.getInstance(performer);
        if (bi != null) {
View Full Code Here

Examples of com.exedosoft.plat.bo.org.OrgParter

      preNI = (NodeInstance) preList.get(0);
    } else {
      return null;
    }

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

Examples of com.exedosoft.plat.bo.org.OrgParter

    return list;
  }

  private void addPostPerformer(NodeInstance ni, List list) {

    OrgParter userParter = OrgParter.getDefaultEmployee();

    DOBO userBO = userParter.getDoBO();

    for (Iterator it = ni.getPostNodes().iterator(); it.hasNext();) {
      NodeInstance postI = (NodeInstance) it.next();
      if (postI.getExeStatus() != null
          && postI.getExeStatus().intValue() == NodeInstance.STATUS_FINISH) {
View Full Code Here

Examples of com.exedosoft.plat.bo.org.OrgParter

    DOFormModel property = (DOFormModel) aModel;
    String theValue = property.getValue();
   
   
    OrgParter userParter = OrgParter.getDefaultEmployee();

    DOBO userBO = userParter.getDoBO();

     
    BOInstance   bi = DOValueResultList.getAInstance(property,userBO, theValue);

View Full Code Here

Examples of com.exedosoft.plat.bo.org.OrgParter

    // //这根据用户和角色两种parter 权限过滤

    List allAuths = new ArrayList();
    // //值根据用户进行权限过滤
    OrgParter userPater = OrgParter.getDefaultEmployee();
    OrgParterValue pv = new OrgParterValue(userPater, accountUid);
    allAuths.add(pv);

    // ////////加入角色

    OrgParter roleParter = OrgParter.getDefaultRole();
    // /多租户下对应创建者,内置角色
    BOInstance user = DOGlobals.getInstance().getSessoinContext().getUser();
    if ("2".equals(user.getValue("asrole")) || "1".equals(user.getValue("asrole"))) {
      OrgParterValue pvRole = new OrgParterValue(roleParter,
          "40288031288a2b8501288a3d009d000d",
View Full Code Here

Examples of com.exedosoft.plat.bo.org.OrgParter

    // //这根据用户和角色两种parter 权限过滤

    List allAuths = new ArrayList();
    // //加入用户
    OrgParter userPater = OrgParter.getDefaultEmployee();
    OrgParterValue pv = new OrgParterValue(userPater, accountUid);
    allAuths.add(pv);

    // ////////加入角色
    OrgParter roleParter = OrgParter.getDefaultRole();
    appendRoles(allAuths, accountUid, roleParter);

    return allAuths;
  }
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.