Esempio n. 1
0
  public String highchart7() {
    DAO dao = new DAO();

    Enterprise e = enterprise.selectByEtpEmail(etpEmail);
    System.err.println(e + "highchart7");

    List<Highchart7> list = dao.highchart7DAO(e);

    System.out.println(list.toString() + "여기");
    Highchart7 vo = new Highchart7();
    Highchart7 vo1 = new Highchart7();
    Highchart7 vo2 = new Highchart7();
    Highchart7 vo3 = new Highchart7();
    List<Highchart7> review = new ArrayList<Highchart7>();
    List<Highchart7> review1 = new ArrayList<Highchart7>();
    List<Highchart7> review2 = new ArrayList<Highchart7>();
    List<Highchart7> review3 = new ArrayList<Highchart7>();

    for (Highchart7 temp : list) {

      if (temp.getQuater().equals("1")) {
        vo.setHygiene(temp.getHygiene());
        vo.setComfort(temp.getComfort());
        vo.setPrice(temp.getPrice());
        vo.setService(temp.getService());
        vo.setTechnique(temp.getTechnique());

      } else if (temp.getQuater().equals("2")) {
        vo1.setHygiene(temp.getHygiene());
        vo1.setComfort(temp.getComfort());
        vo1.setPrice(temp.getPrice());
        vo1.setService(temp.getService());
        vo1.setTechnique(temp.getTechnique());
      } else if (temp.getQuater().equals("3")) {
        vo2.setHygiene(temp.getHygiene());
        vo2.setComfort(temp.getComfort());
        vo2.setPrice(temp.getPrice());
        vo2.setService(temp.getService());
        vo2.setTechnique(temp.getTechnique());
      } else if (temp.getQuater().equals("4")) {
        vo3.setHygiene(temp.getHygiene());
        vo3.setComfort(temp.getComfort());
        vo3.setPrice(temp.getPrice());
        vo3.setService(temp.getService());
        vo3.setTechnique(temp.getTechnique());
      }
    }

    review.add(vo);
    review1.add(vo1);
    review2.add(vo2);
    review3.add(vo3);

    request.put("review", review);
    request.put("review1", review1);
    request.put("review2", review2);
    request.put("review3", review3);

    return SUCCESS;
  }
Esempio n. 2
0
  public String highchart5() {
    DAO dao = new DAO();
    Enterprise e = enterprise.selectByEtpEmail(etpEmail);
    System.err.println(e);
    List<Highchart5> list = dao.highchart5DAO(e);

    Highchart5Add vo = new Highchart5Add();
    List<Highchart5Add> daylist = new ArrayList<Highchart5Add>();
    System.out.println(list.toString() + "1");

    for (Highchart5 temp : list) {
      if (temp.getDayby().equals("월요일")) {
        vo.setMon(temp.getRs());
      } else if (temp.getDayby().equals("화요일")) {
        vo.setTue(temp.getRs());
      } else if (temp.getDayby().equals("수요일")) {
        vo.setWed(temp.getRs());
      } else if (temp.getDayby().equals("목요일")) {
        vo.setThur(temp.getRs());
      } else if (temp.getDayby().equals("금요일")) {
        vo.setFri(temp.getRs());
      } else if (temp.getDayby().equals("토요일")) {
        vo.setSat(temp.getRs());
      } else if (temp.getDayby().equals("일요일")) {
        vo.setSun(temp.getRs());
      }
    }
    daylist.add(vo);
    request.put("dayForReservation", daylist);

    System.out.println(daylist.toString() + "2");

    return SUCCESS;
  }