Package com.exedosoft.plat.bo

Examples of com.exedosoft.plat.bo.DOBO


      DatabaseMetaData meta = con.getMetaData();
      String[] tblTypes = new String[] { "TABLE" };
     
      /*对oracle的schema过滤 by whutmen@gmail.com begin */
      DOBO bo = DOBO.getDOBOByName("do_datasource");
      DODataSource dss = DODataSource.getDataSourceByL10n(bo
          .getCorrInstance().getValue("l10n"));
      String schema = null;
      if (dss.isOracle()) {
        schema = dss.getUserName().trim().toUpperCase();
      }
View Full Code Here


    BusiPackage bp = new BusiPackage();
    bp.setApplication(project);
    bp.setL10n(project.getL10n());
    bp.setName(project.getName());

    DOBO aBO = new DOBO();
    aBO.setType(DOBO.TYPE_BUSINESS);
    aBO.setName(project.getName() + "_global_bo");
    aBO.setL10n(project.getL10n() + "_Global");

    DODataSource dds = DODataSource.parseGlobals();

    Transaction t = dds.getTransaction();

    t.begin();

    DOService aService = DOService.getService("DO_UI_PaneLinks_copy");
    try {
      // //////////保存业务包
      DAOUtil.INSTANCE().currentDataSource(dds);

      DAOUtil.INSTANCE().store(bp);

      // //保存业务对象
      aBO.setPakage(bp);

      DAOUtil.INSTANCE().store(aBO);
     
      ///////关联组织权限相关的业务包到初始化的工程下面
View Full Code Here

        .append(" WHERE code_ItemUid=?  and yearSeq=?");

    Connection con = null;
    PreparedStatement stmt = null;
    int retId = 1;// //////////返回的值
    DOBO bo = DOBO.getDOBOByName("do_authorization");
    DODataSource dss =  bo.getDataBase();
    try {


      con = dss.getContextConnection();
      // query
View Full Code Here

    }

    if (theValue != null && !"".equals(theValue.trim())) {

      DOBO corrBO = fm.getLinkBO();

      if (corrBO == null && fm.getLinkService() != null) {
        corrBO = fm.getLinkService().getBo();
      }
View Full Code Here

   */
  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();
      String performer = ni.getPerformer();
      if (performer != null) {
        performers.add(userBO.getInstance(performer).getName());
        if (it.hasNext()) {
          performers.add(";");
        }
      }
    }
View Full Code Here

    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) {
          String deptUid = "";
          if (acctblt.isNeedOtherTable()) {
            List list = acctblt.getAccessLinkParter().invokeSelect(
                performer);
            if (list != null && list.size() > 0) {
              BOInstance aInstance = (BOInstance) list.get(0);
              deptUid = aInstance.getValue(acctblt
                  .getLinkParterCol());
            }

          }
          deptUid = bi.getValue(acctblt.getLinkParterCol());
          deptName = deptBO.getInstance(deptUid).getName();
        }
      }
    } catch (RuntimeException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
View Full Code Here

      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);
    /**
     * 用nodeExt5代替decisionExpression.
 
View Full Code Here

  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) {
        if (postI.getPerformer() != null) {
          String userName = userBO.getInstance(postI.getPerformer())
              .getName();
          list.add(postI.getNode().getNodeName() + "(" + userName
              + ")");
        }
        addPostPerformer(postI, list);
View Full Code Here

      if (it.hasNext()) {
        buffer.append("-->");
      }
    }
    List runNodes = this.getProcessInstance().getRunNodes();
    DOBO deptBO = DOBO.getDOBOByName("zj.unit");
    if (runNodes != null && runNodes.size() > 0) {
      NodeInstance aNI = (NodeInstance) runNodes.get(0);
      if (aNI.getNodeType() != null
          && aNI.getNodeType().intValue() == PTNode.TYPE_SELF) {
        buffer.append("--><font color='red'>")
            .append(deptBO.getInstance(
                aNI.getAccessDeptUidOfSelfNode()).getName())
            .append("</font>");

      }
View Full Code Here

    processInstance = getProcessInstance();
    processInstance.setExeStatus(Integer
        .valueOf(ProcessInstance.STATUS_FINISH));

    DOBO auth = DOBO.getDOBOByName("do_authorization");
    DODataSource dss = auth.getDataBase();
    Transaction ts = dss.getTransaction();
    ts.begin();

    try {
      DAOUtil.BUSI().store(processInstance);
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.