Exemplo n.º 1
0
  @RequestMapping("/BoothInfoUpdateForm")
  public ModelAndView boothInfoUpdateForm(HttpServletRequest request) throws Exception {
    ModelAndView mav = new ModelAndView("business/resmanage/booth/boothInfoUpdateForm");

    String boothId = request.getParameter("boothId");
    BoothDto boothDto = resManage.getBoothInfo(boothId);

    mav.addObject("groupListOptions", resManage.getGroupComboOptions(boothDto.getGroupId()));

    mav.addObject(
        "monitorTypeOptions",
        code.getOptionsForHTML("PHOTOME", "MONITOR_TYPE", boothDto.getMonitorType()));
    mav.addObject(
        "boothStatusOptions",
        code.getOptionsForHTML("PHOTOME", "BOOTH_STATUS", boothDto.getStatus()));
    mav.addObject(
        "qltyResultOptions",
        code.getOptionsForHTML("PHOTOME", "QLTY_TST_RSLT", boothDto.getQualityTestResult()));
    mav.addObject(
        "boothTypeOptions", code.getOptionsForHTML("PHOTOME", "BOOTH_TYPE", boothDto.getType()));
    mav.addObject(
        "captureTypeOptions",
        code.getOptionsForHTML("PHOTOME", "CAPTURE_TYPE", boothDto.getCaptureType()));
    mav.addObject(
        "printerTypeOptions",
        code.getOptionsForHTML("PHOTOME", "PRINTER_MODEL", boothDto.getPrinterModel()));
    mav.addObject(
        "rentFeeTypeOptions",
        code.getOptionsForHTML("PHOTOME", "RENT_PAY_TYPE", boothDto.getRentFeeType()));

    mav.addObject("boothDto", boothDto);

    return mav;
  }
Exemplo n.º 2
0
  @RequestMapping("/BoothInfo")
  @ResponseBody
  public ModelAndView boothInfo(HttpServletRequest request) throws Exception {
    ModelAndView mav = new ModelAndView("business/common/boothInfo");

    String boothId = request.getParameter("boothId");
    BoothDto boothDto = resManage.getBoothInfo(boothId);

    mav.addObject("boothDto", boothDto);

    return mav;
  }
Exemplo n.º 3
0
  @RequestMapping("/BoothInfo")
  @ResponseBody
  public ModelAndView boothInfo(HttpServletRequest request) throws Exception {
    ModelAndView mav = new ModelAndView("business/resmanage/booth/boothInfo");
    CosmosSessionUserInfo sessionUser = auth.getSessionUserInfo(request);

    String boothId = request.getParameter("boothId");
    BoothDto boothDto = resManage.getBoothInfo(boothId);

    mav.addObject("sessionUser", sessionUser);
    mav.addObject("boothDto", boothDto);

    return mav;
  }
Exemplo n.º 4
0
  @RequestMapping(value = "/BeforeMoneyCollectInfo", produces = "application/json")
  @ResponseBody
  public Map<String, Object> beforeMoneyCollectInfo(HttpServletRequest request) throws Exception {

    Map<String, Object> model = new HashMap<String, Object>();
    String boothId = request.getParameter("boothId");

    BoothDto boothDto = resManage.getBoothInfo(boothId);

    JSONObject jsonObject = new JSONObject();
    jsonObject.put("boothDto", JSONObject.fromObject(JSONSerializer.toJSON(boothDto)));

    model.put("jsonObject", jsonObject);

    return model;
  }
Exemplo n.º 5
0
  @RequestMapping(value = "/BoothRentFeeRegist", produces = "application/json")
  @ResponseBody
  public Map<String, Object> boothRentFeeRegist(HttpServletRequest request) throws Exception {

    HashMap<String, String> param = new HashMap<String, String>();
    Map<String, Object> model = new HashMap<String, Object>();

    int updateCnt = 0;

    String groupId = request.getParameter("groupId");
    String boothId = request.getParameter("boothId");
    BoothDto boothDto = resManage.getBoothInfo(boothId);
    String rentFeeType = boothDto.getRentFeeType();
    if (StringUtils.isNotBlank(rentFeeType)) param.put("rentFeeType", rentFeeType);

    String rentYear = request.getParameter("rentYear");
    String fromRentMonth = request.getParameter("fromRentMonth");
    String toRentMonth = request.getParameter("toRentMonth");
    String rentFee = request.getParameter("rentFee");

    if (StringUtils.isBlank(rentYear)
        || StringUtils.isBlank(fromRentMonth)
        || StringUtils.isBlank(toRentMonth)) return null;
    if (StringUtils.isBlank(rentFee)) rentFee = "0";

    if (StringUtils.isNotBlank(groupId)) param.put("groupId", groupId);
    if (StringUtils.isNotBlank(boothId)) param.put("boothId", boothId);
    if (StringUtils.isNotBlank(rentYear)) param.put("rentYear", rentYear);
    if (StringUtils.isNotBlank(fromRentMonth)) param.put("fromRentMonth", fromRentMonth);
    if (StringUtils.isNotBlank(toRentMonth)) param.put("toRentMonth", toRentMonth);
    if (StringUtils.isNotBlank(rentFee)) param.put("rentFee", rentFee);

    updateCnt = boothRentFee.registRentFeeInfo(param);
    model.put("message", updateCnt);

    return model;
  }