示例#1
0
  @RequestMapping(value = "/orderform", method = RequestMethod.GET)
  public String SelectAllMenu(Model model) {

    List<Menu> menus = saleService.getAllMenus();
    model.addAttribute("menus", menus);

    System.out.println(" [ 모든 메뉴가져왔어 ]  ");
    return "sale/orderform";
  }
示例#2
0
  // 윤수오빠화면으로 테스트해봄 --박은영
  @RequestMapping(value = "/salehome_test.action", method = RequestMethod.GET)
  public String SaleHome(
      Model model, String storeCode1, HttpSession session, HttpServletRequest req) {
    System.out.println("salehome.test  storecode " + storeCode1);
    List<StoreTable> st = tableService.selectCurrentTables(storeCode1);

    model.addAttribute("st", st);

    List<Menu> menus = saleService.getAllMenus();
    model.addAttribute("menus", menus);

    //		Integer recentableNo=tableService.selectRecentTableNo(storeCode1);
    //		model.addAttribute("recentno", recentableNo);
    return "sale/salehome_test2_eunyoung";
  }
示例#3
0
  @RequestMapping(value = "/orderhome_test", method = RequestMethod.GET)
  public String OrderHome(
      HttpSession session,
      HttpServletRequest req,
      Model model,
      @RequestParam("totalno") int totaltableno) {

    List<Menu> menus = saleService.getAllMenus();
    model.addAttribute("menus", menus);
    //
    System.out.println(" [ 주문해야해 ]  ");
    //
    // int foodCode = (req.getParameter("foodCode"))

    model.addAttribute("totaltableno", totaltableno);
    return "sale/orderhome_test";
  }