Package org.jeecgframework.core.common.hibernate.qbc

Examples of org.jeecgframework.core.common.hibernate.qbc.CriteriaQuery


  @RequestMapping(params = "datagrid")
  public void datagrid(JeecgDemoCkfinderEntity jeecgDemoCkfinder,
      HttpServletRequest request, HttpServletResponse response,
      DataGrid dataGrid) {
    CriteriaQuery cq = new CriteriaQuery(JeecgDemoCkfinderEntity.class,
        dataGrid);
    // 查询条件组装器
    org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq,
        jeecgDemoCkfinder, request.getParameterMap());
    this.jeecgDemoCkfinderService.getDataGridReturn(cq, true);
View Full Code Here


   * @param user
   */

  @RequestMapping(params = "datagrid")
  public void datagrid(TFinanceEntity tFinance,HttpServletRequest request, HttpServletResponse response, DataGrid dataGrid) {
    CriteriaQuery cq = new CriteriaQuery(TFinanceEntity.class, dataGrid);
    //查询条件组装器
    org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, tFinance, request.getParameterMap());
    this.tFinanceService.getDataGridReturn(cq, true);
    TagUtil.datagrid(response, dataGrid);
  }
View Full Code Here

   * <li>修改日期:
   */
  @RequestMapping(params = "doTreeGrid")
  @ResponseBody
  public List<TreeGrid> doTreeGrid(JeecgMatterBom entity, HttpServletRequest request, HttpServletResponse response, TreeGrid treegrid) {
    CriteriaQuery cq = new CriteriaQuery(JeecgMatterBom.class);
    if("yes".equals(request.getParameter("isSearch"))) {
      treegrid.setId(null);
      entity.setId(null);
    }
    if(null != entity.getCode()) {
      HqlGenerateUtil.installHql(cq, entity);
    }
    if (treegrid.getId() != null) {
      cq.eq("parent.id", treegrid.getId());
    } else {
      cq.isNull("parent");
    }
    cq.add();
    List<TreeGrid> list = jeecgMatterBomService.getListByCriteriaQuery(cq, false);
    if(list.size() == 0 && entity.getCode() != null) {
      cq = new CriteriaQuery(JeecgMatterBom.class);
      JeecgMatterBom parent = new JeecgMatterBom();
      entity.setParent(parent);
      HqlGenerateUtil.installHql(cq, entity);
      list = jeecgMatterBomService.getListByCriteriaQuery(cq, false);
    }
View Full Code Here

   */

  @SuppressWarnings("unchecked")
  @RequestMapping(params = "datagrid")
  public void datagrid(CgformEnhanceJsEntity cgformenhanceJs,HttpServletRequest request, HttpServletResponse response, DataGrid dataGrid) {
    CriteriaQuery cq = new CriteriaQuery(CgformEnhanceJsEntity.class, dataGrid);
    //查询条件组装器
    org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, cgformenhanceJs, request.getParameterMap());
    this.cgformenhanceJsService.getDataGridReturn(cq, true);
    TagUtil.datagrid(response, dataGrid);
  }
View Full Code Here

   * @param user
   */

  @RequestMapping(params = "datagrid")
  public void datagrid(CourseEntity course,HttpServletRequest request, HttpServletResponse response, DataGrid dataGrid) {
    CriteriaQuery cq = new CriteriaQuery(CourseEntity.class, dataGrid);
    //查询条件组装器
    org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, course, request.getParameterMap());
    this.courseService.getDataGridReturn(cq, true);
    TagUtil.datagrid(response, dataGrid);
  }
View Full Code Here

        response.setHeader("content-disposition",
            "attachment;filename=" + newtitle + ".xls");
      }
      // 产生工作簿对象
      HSSFWorkbook workbook = null;
      CriteriaQuery cq = new CriteriaQuery(CourseEntity.class, dataGrid);
      org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, course, request.getParameterMap());
     
      List<CourseEntity> courses = this.courseService.getListByCriteriaQuery(cq,false);
      workbook = ExcelExportUtil.exportExcel(new ExcelTitle("课程列表", "导出人:Jeecg",
          "导出信息"), CourseEntity.class, courses);
View Full Code Here

            "attachment;filename=" + newtitle + ".xls");
      }
     
      // 产生工作簿对象
      Workbook workbook = null;
      CriteriaQuery cq = new CriteriaQuery(CourseEntity.class, dataGrid);
      org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, course, request.getParameterMap());
      List<CourseEntity> courses = this.courseService.getListByCriteriaQuery(cq,false);
      Map<String,Object> map = new HashMap<String, Object>();
      map.put("year", "2013");
      map.put("sunCourses", courses.size());
View Full Code Here

   */
  @RequestMapping(params = "functionList")
  @ResponseBody
  public void functionList(HttpServletRequest request,
      HttpServletResponse response, DataGrid dataGrid) {
    CriteriaQuery cq = new CriteriaQuery(TSFunction.class, dataGrid);
    String id = oConvertUtils.getString(request.getParameter("id"));
    cq.isNull("TSFunction");
    if (id != null) {
      cq.eq("TSFunction.id", id);
    }
    cq.add();
    List<TSFunction> functionList = systemService.getListByCriteriaQuery(
        cq, false);
    List<TreeGrid> treeGrids = new ArrayList<TreeGrid>();
    this.systemService.getDataGridReturn(cq, true);
    TagUtil.datagrid(response, dataGrid);
View Full Code Here

   */
  @RequestMapping(params = "setPFunction")
  @ResponseBody
  public List<ComboTree> setPFunction(HttpServletRequest request,
      ComboTree comboTree) {
    CriteriaQuery cq = new CriteriaQuery(TSFunction.class);
    if(null != request.getParameter("selfId")){
      cq.notEq("id", request.getParameter("selfId"));
    }
    if (comboTree.getId() != null) {
      cq.eq("TSFunction.id", comboTree.getId());
    }
    if (comboTree.getId() == null) {
      cq.isNull("TSFunction");
    }
    cq.add();
    List<TSFunction> functionList = systemService.getListByCriteriaQuery(
        cq, false);
    List<ComboTree> comboTrees = new ArrayList<ComboTree>();
    ComboTreeModel comboTreeModel = new ComboTreeModel("id",
        "functionName", "TSFunctions");
View Full Code Here

   * @param response
   * @param dataGrid
   */
  @RequestMapping(params = "datagrid")
  public void datagrid(TSIcon icon,HttpServletRequest request, HttpServletResponse response, DataGrid dataGrid) {
    CriteriaQuery cq = new CriteriaQuery(TSIcon.class, dataGrid);
    org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, icon);
    cq.add();
    this.systemService.getDataGridReturn(cq, true);
        IconImageUtil.convertDataGrid(dataGrid, request);//先把数据库的byte存成图片到临时目录,再给每个TsIcon设置目录路径
    TagUtil.datagrid(response, dataGrid);
  }
View Full Code Here

TOP

Related Classes of org.jeecgframework.core.common.hibernate.qbc.CriteriaQuery

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.