예제 #1
0
  /**
   * 加载查询列表
   *
   * @return
   */
  public String listWplaceQualitys() {
    if (flowPath.equals(WebConstants.FLOW_PATH_1)) {
      types = ReportType.getAccept();
      flowTitle = "受理";
    } else if (flowPath.equals(WebConstants.FLOW_PATH_2)) {
      types = ReportType.getCheck();
      flowTitle = "验收";
    } else if (flowPath.equals(WebConstants.FLOW_PATH_3)) {
      types = ReportType.getFill();
      flowTitle = "检验结果填报";
    } else if (flowPath.equals(WebConstants.FLOW_PATH_4)) {
      types = ReportType.getRecheck();
      flowTitle = "检验结果复核";
    } else if (flowPath.equals(WebConstants.FLOW_PATH_5)) {
      types = ReportType.getEvalu();
      flowTitle = "评价";
    } else if (flowPath.equals(WebConstants.FLOW_PATH_6)) {
      types = ReportType.getSign();
      flowTitle = "签发";
    } else if (flowPath.equals(WebConstants.FLOW_PATH_7)) {
      types = ReportType.getPrint();
      flowTitle = "报告打印";
    }
    if (cons == null) {
      cons = new Conditions();
    }
    user = getCurrentUser();
    // cons.setUser(getCurrentUser());
    cons.setFlowPath(flowPath);
    pageBean =
        workPlaceQualityBiz.queryWorkPlaceQualitys(condition, cons, orderBy, orderType, pageIndex);
    logger.info("count working place  quality list :" + pageBean.getTotalRow());

    return "workPlace_list";
  }
예제 #2
0
  /**
   * 初使化列表
   *
   * @return
   */
  public String initPage() {
    cons = new Conditions();
    condition = new WorkPlaceQuality();
    if (flowPath.equals(WebConstants.FLOW_PATH_1)) {
      types = ReportType.getAccept();
      cons.setType(2);
      flowTitle = "受理";
    } else if (flowPath.equals(WebConstants.FLOW_PATH_2)) {
      types = ReportType.getCheck();
      cons.setType(3);
      flowTitle = "验收";
    } else if (flowPath.equals(WebConstants.FLOW_PATH_3)) {
      types = ReportType.getFill();
      cons.setType(4);
      flowTitle = "检验结果填报";
    } else if (flowPath.equals(WebConstants.FLOW_PATH_4)) {
      types = ReportType.getRecheck();
      cons.setType(5);
      flowTitle = "检验结果复核";
    } else if (flowPath.equals(WebConstants.FLOW_PATH_5)) {
      types = ReportType.getEvalu();
      cons.setType(6);
      flowTitle = "评价";
    } else if (flowPath.equals(WebConstants.FLOW_PATH_6)) {
      types = ReportType.getSign();
      cons.setType(7);
      flowTitle = "签发";
    } else if (flowPath.equals(WebConstants.FLOW_PATH_7)) {
      types = ReportType.getPrint();
      cons.setType(8);
      flowTitle = "报告打印";
    }

    user = getCurrentUser();
    cons.setUser(new User());
    cons.setFlowPath(flowPath);
    pageBean =
        workPlaceQualityBiz.queryWorkPlaceQualitys(condition, cons, orderBy, orderType, pageIndex);
    return "workPlace_list";
  }