Package com.exedosoft.plat.ui

Examples of com.exedosoft.plat.ui.DOPaneLinks


      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.getL10n()  + "_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);
      // ////////同名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.getL10n() + "_MainContent");
      pmContent.setController(mainPage);
      pmContent.setLinkType(DOPaneModel.LINKTYPE_RESOURCE);
      pmContent.setLinkUID(rs.getObjUid());
      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.getL10n() + "_leftindex_pane");
      pmLeft.setName(project.getName() + "_leftindex_pane");
     
     
      /**
       * 存储Mobile索引菜单的面包
       */
      DOPaneModel pmMobile = new DOPaneModel();
      pmMobile.setCategory(aBO);
      pmMobile.setName( project.getName() + "_mobile_pane");
      pmMobile.setL10n(project.getL10n() + "_Mobile");
      pmMobile.setTitle(project.getDescription());
      pmMobile.setExedoJsp("../mobile/exedo.jsp");
     
      pmMobile.setLinkType(DOPaneModel.LINKTYPE_MENU);
      pmMobile.setLinkUID(dmRoot.getObjUid());
      // //////////////ccLayOutPane
      pmMobile.setController(contentPane);

      DAOUtil.INSTANCE().store(pmMobile);

      /**
       * 保存左边的左边的索引菜单
       */
      pmLeft.setTargetPane(pmContent);
      DAOUtil.INSTANCE().store(pmLeft);

      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);

View Full Code Here


      DOPaneModel pmResult = geneResult(properties);
      DOPaneModel pmCondition = geneCondition(properties, pmResult);

      aService = DOService.getService("DO_UI_PaneLinks_copy");
      DOPaneLinks link1 = new DOPaneLinks();
      link1.setParentPane(pmTotal);
      link1.setChildPane(pmCondition);
      link1.setOrderNum(5);
      DAOUtil.INSTANCE().store(link1, aService);

      DOPaneLinks link2 = new DOPaneLinks();
      link2.setParentPane(pmTotal);
      link2.setChildPane(pmResult);
      link2.setOrderNum(10);
      DAOUtil.INSTANCE().store(link2, aService);

      // //搞一下菜单

      DOPaneModel _opener_tab = DOPaneModel
View Full Code Here

      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);
      pmContentLink.setOrderNum(new Integer(17));
      DAOUtil.INSTANCE().store(pmContentLink);

      /**
       * 保存左边的左边的索引菜单
       */
 
View Full Code Here

      DOServiceRedirect sr = DOServiceRedirect.getServiceRedirect(sInsert.getObjUid());
      sr.setPaneModel(pmChildList);
      DAOUtil.INSTANCE().store(sr);

     
      DOPaneLinks dpl1 = new DOPaneLinks();
      dpl1.setParentPane(pm);
      dpl1.setChildPane(pmParentInsert);
      dpl1.setOrderNum(Integer.valueOf(5));
      DAOUtil.INSTANCE().store(dpl1);
     
      DOPaneLinks dpl2 = new DOPaneLinks();
      dpl2.setParentPane(pm);
      dpl2.setChildPane(pmChildList);
      dpl2.setOrderNum(Integer.valueOf(10));
      DAOUtil.INSTANCE().store(dpl2);
     
     
      DOService parentInsert =  DOService.getService(parentBO.getName()
          + ".insert");
View Full Code Here

      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);

View Full Code Here

TOP

Related Classes of com.exedosoft.plat.ui.DOPaneLinks

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.