DAOUtil.INSTANCE().store(pmTop);
/**
* 建立根面板和头面板的关联关系
*/
DOPaneLinks pmTopLink = new DOPaneLinks();
pmTopLink.setParentPane(pmRoot);
pmTopLink.setChildPane(pmTop);
pmTopLink.setOrderNum(new Integer(5));
DAOUtil.INSTANCE().store(pmTopLink, aService);
/**
* 创建下方的面板
*/
DOPaneModel pmBottom = new DOPaneModel();
pmBottom.setCategory(aBO);
pmBottom.setL10n(project.getName() + "_mainpane");
pmBottom.setName(project.getName() + "_mainpane");
pmBottom.setController(ccSplitePane);
DAOUtil.INSTANCE().store(pmBottom);
/**
* 建立根面板和工作区域面板的关联
*/
DOPaneLinks pmBottomLink = new DOPaneLinks();
pmBottomLink.setParentPane(pmRoot);
pmBottomLink.setChildPane(pmBottom);
pmBottomLink.setOrderNum(new Integer(10));
DAOUtil.INSTANCE().store(pmBottomLink, aService);
// /左边面板
DOMenuModel dmRoot = new DOMenuModel();
dmRoot.setCategory(aBO);
dmRoot.setController(menuController);
dmRoot.setParentMenu(null);
// ////////同名DOMenuModel
dmRoot.setName(project.getName() + "_root");
dmRoot.setL10n("Welcome " + project.getL10n());
DOService storeRootMenu = DOService.getService("DO_UI_MenuModel_Insert_firstlevel");
DAOUtil.INSTANCE().store(dmRoot,storeRootMenu);
// ////更新菜单获取的sql语句
// DOService menuService = DOService.getService("s_menumodel_byName");
// menuService.setMainSql("select * from do_ui_menumodel where name = '" + dmRoot.getName() + "'");
// DAOUtil.INSTANCE().store(menuService);
DOMenuModel dmBP = new DOMenuModel();
dmBP.setCategory(aBO);
dmBP.setParentMenu(dmRoot);
dmBP.setController(menuController);
// ////////同名DOMenuModel
dmBP.setName(project.getName());
dmBP.setL10n(project.getL10n() );
DAOUtil.INSTANCE().store(dmBP);
// ///////组织权限相关的菜单 初始化到工程根菜单下面
// DOMenuModel dmmAuth = DOMenuModel.getMenuModelByName("dorgauth_bp");
// dmmAuth.setParentMenu(dmRoot);
// DAOUtil.INSTANCE().store(dmmAuth);
//
// ///把工作流相关的菜单初始化到工程根菜单下面
// DOMenuModel dorgauth_flow_test = DOMenuModel.getMenuModelByName("dorgauth_flow_test");
// dorgauth_flow_test .setParentMenu(dmRoot);
// DAOUtil.INSTANCE().store(dorgauth_flow_test );
////工作台jsp
// rs = new DOResource();
// rs.setResourceName("workbenchjsp_" + project.getName());
// rs.setResourcePath(project.getName() + "/workbench.jsp");
// rs.setResourceType(1);
// DAOUtil.INSTANCE().store(rs);
//
DOPaneModel pmContent = new DOPaneModel();// ///主内容显示区。
pmContent.setCategory(aBO);
pmContent.setName(project.getName() + "_MainContent");
pmContent.setL10n(project.getName() + "_MainContent");
pmContent.setController(mainPage);
pmContent.setLinkType(DOPaneModel.LINKTYPE_RESOURCE);
drs = DAOUtil.INSTANCE().getBySql(DOResource.class,"select * from do_resource where resourceName like 'workbenchjsp_%'");
pmTop.setLinkUID(drs.getObjUid());
pmContent.setLinkUID("4028803b34664771013466590987000c"); /// workbench UId
DAOUtil.INSTANCE().store(pmContent);
DOPaneLinks pmContentLink = new DOPaneLinks();
pmContentLink.setParentPane(pmBottom);// //bottomPane为父亲
pmContentLink.setChildPane(pmContent);
pmContentLink.setOrderNum(new Integer(17));
DAOUtil.INSTANCE().store(pmContentLink, aService);
DOPaneModel pmLeft = new DOPaneModel();
pmLeft.setController(layOutLeft);
pmLeft.setLinkType(DOPaneModel.LINKTYPE_MENU);
pmLeft.setLinkUID(dmRoot.getObjUid());
pmLeft.setCategory(aBO);
pmLeft.setL10n(project.getName() + "_leftindex_pane");
pmLeft.setName(project.getName() + "_leftindex_pane");
/**
* 保存左边的左边的索引菜单
*/
pmLeft.setTargetPane(pmContent);
DAOUtil.INSTANCE().store(pmLeft);
/**
* 存储Mobile索引菜单的面包
*/
DOPaneModel pmMobile = new DOPaneModel();
pmMobile.setCategory(aBO);
pmMobile.setName( project.getName() + "_mobile_pane");
pmMobile.setL10n(project.getL10n() + "_mobile");
pmMobile.setTitle(project.getDescription());
pmMobile.setLinkType(DOPaneModel.LINKTYPE_MENU);
pmMobile.setLinkUID(dmRoot.getObjUid());
// //////////////ccLayOutPane
pmMobile.setController(contentPane);
DAOUtil.INSTANCE().store(pmMobile);
DOPaneLinks pmLeftLink = new DOPaneLinks();
pmLeftLink.setParentPane(pmBottom);// //bottomPane为父亲
pmLeftLink.setChildPane(pmLeft);
pmLeftLink.setOrderNum(new Integer(15));
DAOUtil.INSTANCE().store(pmLeftLink, aService);
////最后copy
// this.copyDir(project);