}
// 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);
/**
* 存储应用的根面板
*/