DAOUtil.INSTANCE().store(aBO);
/**
* 存储应用的根面板
*/
DOPaneModel pmRoot = new DOPaneModel();
pmRoot.setCategory(aBO);
pmRoot.setName("pane_" + project.getName());
pmRoot.setL10n("根面板" + project.getL10n());
pmRoot.setTitle(project.getDescription());
pmRoot.setLayOutType(Integer.valueOf(DOPaneModel.LAYOUT_VERTICAL));
// //////////////ccLayOutPane
pmRoot.setController(ccLayOutPane);
DAOUtil.INSTANCE().store(pmRoot);
// ///////业务对象发布为一个应用
// project.setDobo(aBO);
DAOUtil.INSTANCE().store(project);
/**
* 从pane_mainMenuBar copy信息数据
*/
DOPaneModel fromPmTop = DOPaneModel
.getPaneModelByName("BaseAnoleHeader");
/**
* 建立新的头面板
*/
DOPaneModel pmTop = new DOPaneModel();
pmTop.setController(fromPmTop.getController());
pmTop.setLayOutType(fromPmTop.getLayOutType());
pmTop.setLinkType(fromPmTop.getLinkType());
pmTop.setLinkUID(fromPmTop.getLinkUID());
pmTop.setLayoutAlign("top");
pmTop.setCategory(aBO);
pmTop.setTargetPane(fromPmTop.getTargetPane());
pmTop.setL10n(project.getL10n() + "头面板");
pmTop.setName(project.getName() + "header_pane");
DAOUtil.INSTANCE().store(pmTop);
/**
* 建立主面板和头面板的关联关系
*/
DOPaneLinks pmTopLink = new DOPaneLinks();
pmTopLink.setParentPane(pmRoot);
pmTopLink.setChildPane(pmTop);
pmTopLink.setOrderNum(new Integer(5));
DAOUtil.INSTANCE().store(pmTopLink);
/**
* 创建下方的面板
*/
DOPaneModel pmBottom = new DOPaneModel();
pmBottom.setCategory(aBO);
pmBottom.setL10n(project.getL10n() + "工作区域面板");
pmBottom.setName(project.getName() + "main_pane");
pmBottom.setLayOutType(Integer
.valueOf(DOPaneModel.LAYOUT_HORIZONTAL));
// ///////splitPane
pmBottom.setController(ccSplitePane);
pmBottom.setLayoutAlign("client");
DAOUtil.INSTANCE().store(pmBottom);
/**
* 建立主面板和工作区域面板的关联
*/
DOPaneLinks pmBottomLink = new DOPaneLinks();
pmBottomLink.setParentPane(pmRoot);
pmBottomLink.setChildPane(pmBottom);
pmBottomLink.setOrderNum(new Integer(10));
DAOUtil.INSTANCE().store(pmBottomLink);
/**
* 创建左边索引面板
*/
DOPaneModel fromPmLeft = DOPaneModel
.getPaneModelByName("pane_zf_left_xp");
DOPaneModel pmLeft = new DOPaneModel();
pmLeft.setController(fromPmLeft.getController());
pmLeft.setLayOutType(fromPmLeft.getLayOutType());
pmLeft.setLinkType(fromPmLeft.getLinkType());
pmLeft.setLinkUID(fromPmLeft.getLinkUID());
pmLeft.setLayoutAlign(fromPmLeft.getLayoutAlign());
pmLeft.setCategory(aBO);
pmLeft.setTargetPane(fromPmLeft.getTargetPane());
pmLeft.setL10n(project.getL10n() + "左边索引面板");
pmLeft.setName(project.getName() + "leftindex_pane");
pmLeft.setController(ccTreePane);
DAOUtil.INSTANCE().store(pmLeft);
DOPaneLinks pmLeftLink = new DOPaneLinks();
pmLeftLink.setParentPane(pmBottom);// //bottomPane为父亲
pmLeftLink.setChildPane(pmLeft);
pmLeftLink.setOrderNum(new Integer(15));
DAOUtil.INSTANCE().store(pmLeftLink);
DOPaneModel pmContent = new DOPaneModel();// ///主内容显示区。
pmContent.setCategory(aBO);
pmContent.setName(project.getName() + "_MainContent");
pmContent.setL10n(project.getL10n() + "基本内容显示");
pmContent.setController(cContentPane);
DAOUtil.INSTANCE().store(pmContent);
DOPaneLinks pmContentLink = new DOPaneLinks();
pmContentLink.setParentPane(pmBottom);// //bottomPane为父亲
pmContentLink.setChildPane(pmContent);