Package com.exedosoft.plat.bo

Examples of com.exedosoft.plat.bo.BusiPackage


    }
    // HbmDAO dao = new HbmDAO();
    // dao.setAutoClose(false);

    // //定义主业务包,同名业务包
    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);
     
      ///////关联组织权限相关的业务包到初始化的工程下面

      DOService updateBPService = DOService.getService("DO_BusiPackage_Update_copy");
      BusiPackage bporg = BusiPackage.getPackageByName("dorgauth");
      bporg.setApplication(project);
      DAOUtil.INSTANCE().store(bporg,updateBPService);
     

      BusiPackage bpAuthSys = BusiPackage.getPackageByName("auth_system_imp");
      bpAuthSys.setApplication(project);
      DAOUtil.INSTANCE().store(bpAuthSys,updateBPService);

     
      BusiPackage bpLog = BusiPackage.getPackageByName("log_default_imp");
      bpLog.setApplication(project);
      DAOUtil.INSTANCE().store(bpLog,updateBPService);
     

      BusiPackage liuchengceshi = BusiPackage.getPackageByName("liuchengceshi");
      liuchengceshi.setApplication(project);
      DAOUtil.INSTANCE().store(liuchengceshi,updateBPService);
     
      BusiPackage gongzuoliu = BusiPackage.getPackageByName("gongzuoliu");
      gongzuoliu.setApplication(project);
      DAOUtil.INSTANCE().store(gongzuoliu,updateBPService);
     
      BusiPackage wf_history = BusiPackage.getPackageByName("wf_history");
      wf_history.setApplication(project);
      DAOUtil.INSTANCE().store(wf_history,updateBPService);

      /**
       * 存储应用的根面板
       */
 
View Full Code Here


      String menuName = "";

      try {
        String bpUid = DOGlobals.getInstance().getSessoinContext()
            .getFormInstance().getValue("bpUid");
        BusiPackage dbp = BusiPackage.getPackageByID(bpUid);
        menuName = dbp.getApplication().getName();
      } catch (Exception e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
      }
View Full Code Here

    DOApplication project = DOApplication.getApplicationByID(projectUid);
//    HbmDAO dao = new HbmDAO();
//    dao.setAutoClose(false);

    // //定义主业务包,同名业务包
    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() + "全局业务对象");
View Full Code Here

    }
    // HbmDAO dao = new HbmDAO();
    // dao.setAutoClose(false);

    // //定义主业务包,同名业务包
    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");
View Full Code Here

TOP

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

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.