示例#1
0
  /**
   * GridPanel表头使用的元数据, 不需要数据 @Methods Name forHead @Create In 2009-1-2 By sa
   *
   * @param request
   * @return @ReturnType String
   */
  private String forListHead(HttpServletRequest request) {
    String json = "";
    String panelName = request.getParameter("panelname");
    // PagePanel panel=pagePanelService.findPagePanel(panelName);
    List<PagePanelColumn> pagePanelColumns = pageManager.getUserPagePanelColumn(panelName);
    json = CoderForHead.encode(pagePanelColumns);

    return json;
  }
示例#2
0
  /**
   * EditorGridPanel表头,需要关联数据,如下拉列表或是否列表 @Methods Name forHead @Create In 2009-1-2 By sa
   *
   * @param request
   * @return String
   */
  private String forHead(HttpServletRequest request) {
    String json = "";
    String panelName = request.getParameter("panelname");
    // PagePanel panel=pagePanelService.findPagePanel(panelName);
    List<PagePanelColumn> pagePanelColumns = pageManager.getUserPagePanelColumn(panelName);

    Map<String, Object> dataMap = null;
    dataMap = pageManager.getPagePanelDataForAdd(panelName); // editorGrid使用forAdd是否合适
    json = CoderForHead.encode(pagePanelColumns, dataMap);
    return json;
  }