Esempio n. 1
0
 /**
  * 使用Html绘制查询面板时需要使用的元数据和关联数据 @Methods Name forHtmlQuery @Create In 2009-1-2 By sa
  *
  * @param request
  * @return String
  */
 @SuppressWarnings("unchecked")
 private String forHtmlQuery(HttpServletRequest request) {
   String json = "";
   String className = request.getParameter("clazz");
   Class clazz = getClass(className);
   List<UserTableQueryColumn> userQueryColumns = metaDataManager.getUserColumnForQuery(clazz);
   Map queryMap = metaDataManager.getEntityDataForAdd(clazz);
   json = ExtHtmlBuilder.genQueryHtml(queryMap, userQueryColumns);
   return json;
 }
Esempio n. 2
0
 /**
  * 使用EXTJS组件绘制查询面板时需要使用的元数据和关联数据 @Methods Name forQuery @Create In Aug 30, 2008 By yang
  *
  * @param request
  * @return @ReturnType String
  */
 @SuppressWarnings("unchecked")
 private String forQuery(HttpServletRequest request) {
   String json = "";
   //		String id = request.getParameter("id");
   String panelName = request.getParameter("panelname");
   PagePanel panel = pagePanelService.findPagePanel(panelName);
   SystemMainTable smt = panel.getSystemMainTable();
   String className = smt.getClassName();
   Class clazz = this.getClass(className);
   List<UserTableQueryColumn> userQueryColumns = metaDataManager.getUserColumnForQuery(clazz);
   Map queryMap = this.pageManager.getPagePanelDataForQuery(panelName);
   json = CoderForFind.encode(queryMap, userQueryColumns);
   return json;
 }