@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;
  }
  @RequestMapping("/Main")
  public ModelAndView main() throws Exception {
    ModelAndView mav = new ModelAndView("business/resmanage/booth/main");

    mav.addObject("stateListOptions", common.getStateComboOptions(""));
    mav.addObject("groupListOptions", resManage.getGroupComboOptions(""));

    mav.addObject("technicianOptions", resManage.getTechnicianOptionsForHTML(""));
    mav.addObject("monitorTypeOptions", code.getOptionsForHTML("PHOTOME", "MONITOR_TYPE"));
    mav.addObject("boothStatusOptions", code.getOptionsForHTML("PHOTOME", "BOOTH_STATUS"));
    mav.addObject("qltyResultOptions", code.getOptionsForHTML("PHOTOME", "QLTY_TST_RSLT"));
    mav.addObject("boothTypeOptions", code.getOptionsForHTML("PHOTOME", "BOOTH_TYPE"));
    mav.addObject("printerTypeOptions", code.getOptionsForHTML("PHOTOME", "PRINTER_MODEL"));
    mav.addObject("rentFeeTypeOptions", code.getOptionsForHTML("PHOTOME", "RENT_PAY_TYPE"));

    return mav;
  }
  @RequestMapping("/BoothRentFeeRegistForm")
  public ModelAndView boothRentFeeRegistForm() throws Exception {
    ModelAndView mav = new ModelAndView("business/resmanage/booth/rentfee/boothRentFeeRegistForm");

    mav.addObject("groupListOptions", resManage.getGroupComboOptions(""));
    mav.addObject("yearOptions", this.getYearOptions(""));
    mav.addObject("monthOptions", this.getMonthOptions(""));

    return mav;
  }
  @RequestMapping("/Main")
  public ModelAndView main() throws Exception {
    ModelAndView mav = new ModelAndView("business/resmanage/booth/rentfee/main");

    mav.addObject("yearOptions", this.getYearOptions(""));
    mav.addObject("monthOptions", this.getMonthOptions(""));

    mav.addObject("groupListOptions", resManage.getGroupComboOptions(""));
    mav.addObject("rentFeeTypeOptions", code.getOptionsForHTML("PHOTOME", "RENT_PAY_TYPE"));

    return mav;
  }
  @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;
  }
  @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;
  }
  @RequestMapping(value = "/SetBoothUseYN", produces = "application/json")
  @ResponseBody
  public Map<String, Object> setBoothUseYN(HttpServletRequest request) throws Exception {

    Map<String, Object> model = new HashMap<String, Object>();
    int updateCnt = 0;

    String boothId = request.getParameter("boothId");
    String useYn = request.getParameter("useYn");
    updateCnt = resManage.setBoothUseYN(boothId, useYn);

    model.put("message", updateCnt);

    return model;
  }
  @RequestMapping(value = "/BoothInfoDelete", produces = "application/json")
  @ResponseBody
  public Map<String, Object> boothInfoDelete(HttpServletRequest request) throws Exception {

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

    int updateCnt = 0;

    String boothId = request.getParameter("boothId");
    updateCnt = resManage.deleteBoothInfo(boothId);

    model.put("message", updateCnt);

    return model;
  }
  @RequestMapping("/BoothInfoRegistForm")
  public ModelAndView boothInfoRegistForm() throws Exception {
    ModelAndView mav = new ModelAndView("business/resmanage/booth/boothInfoRegistForm");

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

    mav.addObject("monitorTypeOptions", code.getOptionsForHTML("PHOTOME", "MONITOR_TYPE"));
    mav.addObject("boothStatusOptions", code.getOptionsForHTML("PHOTOME", "BOOTH_STATUS"));
    mav.addObject("qltyResultOptions", code.getOptionsForHTML("PHOTOME", "QLTY_TST_RSLT"));
    mav.addObject("boothTypeOptions", code.getOptionsForHTML("PHOTOME", "BOOTH_TYPE"));
    mav.addObject("captureTypeOptions", code.getOptionsForHTML("PHOTOME", "CAPTURE_TYPE"));
    mav.addObject("printerTypeOptions", code.getOptionsForHTML("PHOTOME", "PRINTER_MODEL"));
    mav.addObject("rentFeeTypeOptions", code.getOptionsForHTML("PHOTOME", "RENT_PAY_TYPE"));
    return mav;
  }
  @RequestMapping(value = "/BoothListOfGroup", produces = "application/json")
  @ResponseBody
  public Map<String, Object> getBoothListOfGroup(HttpServletRequest request) throws Exception {

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

    String groupId = request.getParameter("groupId");

    if (StringUtils.isNotBlank(groupId)) param.put("groupId", groupId);

    List<BoothDto> list = resManage.getBoothInfoList(param);
    model.put("boothList", list);

    return model;
  }
  @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;
  }
  @RequestMapping(value = "/BoothInfoList", produces = "application/json")
  public ModelAndView boothInfoList(HttpServletRequest request) throws Exception {
    ModelAndView mav = new ModelAndView("business/resmanage/booth/boothInfoList");

    HashMap<String, String> param = new HashMap<String, String>();
    List<BoothDto> list = null;

    String boothName = request.getParameter("boothName");
    String technician = request.getParameter("technician");
    String status = request.getParameter("status");
    String locState = request.getParameter("locState");
    String groupId = request.getParameter("groupId");
    String serialNo = request.getParameter("serialNo");
    String printerModel = request.getParameter("printerModel");
    String captureType = request.getParameter("captureType");
    String tagDueDt = request.getParameter("tagDueDt");
    String qualityTestResult = request.getParameter("qualityTestResult");
    String type = request.getParameter("type");
    String boothComment = request.getParameter("boothComment");
    String monitorType = request.getParameter("monitorType");
    String useYn = request.getParameter("useYn");

    if (StringUtils.isNotBlank(boothName)) param.put("boothName", boothName);
    if (StringUtils.isNotBlank(technician)) param.put("technician", technician);
    if (StringUtils.isNotBlank(status)) param.put("status", status);
    if (StringUtils.isNotBlank(locState)) param.put("locState", locState);
    if (StringUtils.isNotBlank(groupId)) param.put("groupId", groupId);
    if (StringUtils.isNotBlank(serialNo)) param.put("serialNo", serialNo);
    if (StringUtils.isNotBlank(printerModel)) param.put("printerModel", printerModel);
    if (StringUtils.isNotBlank(captureType)) param.put("captureType", captureType);
    if (StringUtils.isNotBlank(tagDueDt)) param.put("tagDueDt", tagDueDt);
    if (StringUtils.isNotBlank(qualityTestResult))
      param.put("qualityTestResult", qualityTestResult);
    if (StringUtils.isNotBlank(type)) param.put("type", type);
    if (StringUtils.isNotBlank(boothComment)) param.put("boothComment", boothComment);
    if (StringUtils.isNotBlank(monitorType)) param.put("monitorType", monitorType);
    if (StringUtils.isNotBlank(useYn)) param.put("useYn", useYn);

    list = resManage.getBoothInfoList(param);

    mav.addObject("list", list);

    return mav;
  }
  @RequestMapping("/GroupInfo")
  @ResponseBody
  public ModelAndView groupInfo(HttpServletRequest request) throws Exception {
    ModelAndView mav = new ModelAndView("business/common/groupInfo");

    String groupId = request.getParameter("groupId");
    BoothGroupDto groupDto = resManage.getBoothGroupInfo(groupId);

    AttachFileDto attachFileDto = null;
    String attachFileId = groupDto.getAttachFile();
    if (!StringUtils.isEmpty(attachFileId)) {
      attachFileDto = attachFile.getFileInfo(attachFileId);
    }

    mav.addObject("groupDto", groupDto);
    mav.addObject("attachFileDto", attachFileDto);

    return mav;
  }
  @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;
  }
  @RequestMapping(value = "/BoothInfoUpdate", produces = "application/json")
  @ResponseBody
  public Map<String, Object> boothInfoUpdate(HttpServletRequest request) throws Exception {

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

    int updateCnt = 0;

    String boothId = request.getParameter("boothId");
    String boothName = request.getParameter("boothName");
    String technician = request.getParameter("technician");
    String status = request.getParameter("status");
    String locDetail = request.getParameter("locDetail");
    String locStreetNo = request.getParameter("locStreetNo");
    String locSuburb = request.getParameter("locSuburb");
    String locState = request.getParameter("locState");
    String locPostcd = request.getParameter("locPostcd");
    String groupId = request.getParameter("groupId");
    String manager = request.getParameter("manager");
    String serialNo = request.getParameter("serialNo");
    String printerModel = request.getParameter("printerModel");
    String captureType = request.getParameter("captureType");
    String padLock = request.getParameter("padLock");
    String insideLock = request.getParameter("insideLock");
    String tagDueDt = request.getParameter("tagDueDt");
    String qualityTestResult = request.getParameter("qualityTestResult");
    String qualityTestDt = request.getParameter("qualityTestDt");
    String rentFeeType = request.getParameter("rentFeeType");
    String payOnsite = request.getParameter("payOnsite");
    String type = request.getParameter("type");
    String boothComment = request.getParameter("boothComment");
    String monitorType = request.getParameter("monitorType");

    param.put("boothId", boothId);
    if (StringUtils.isNotBlank(boothName)) param.put("boothName", boothName);
    if (StringUtils.isNotBlank(technician)) param.put("technician", technician);
    if (StringUtils.isNotBlank(status)) param.put("status", status);
    if (StringUtils.isNotBlank(locDetail)) param.put("locDetail", locDetail);
    if (StringUtils.isNotBlank(locStreetNo)) param.put("locStreetNo", locStreetNo);
    if (StringUtils.isNotBlank(locSuburb)) param.put("locSuburb", locSuburb);
    if (StringUtils.isNotBlank(locState)) param.put("locState", locState);
    if (StringUtils.isNotBlank(locPostcd)) param.put("locPostcd", locPostcd);
    if (StringUtils.isNotBlank(groupId)) param.put("groupId", groupId);
    if (StringUtils.isNotBlank(manager)) param.put("manager", manager);
    if (StringUtils.isNotBlank(serialNo)) param.put("serialNo", serialNo);
    if (StringUtils.isNotBlank(printerModel)) param.put("printerModel", printerModel);
    if (StringUtils.isNotBlank(captureType)) param.put("captureType", captureType);
    if (StringUtils.isNotBlank(padLock)) param.put("padLock", padLock);
    if (StringUtils.isNotBlank(insideLock)) param.put("insideLock", insideLock);
    if (StringUtils.isNotBlank(tagDueDt)) param.put("tagDueDt", tagDueDt);
    if (StringUtils.isNotBlank(qualityTestResult))
      param.put("qualityTestResult", qualityTestResult);
    if (StringUtils.isNotBlank(qualityTestDt)) param.put("qualityTestDt", qualityTestDt);
    if (StringUtils.isNotBlank(rentFeeType)) param.put("rentFeeType", rentFeeType);
    if (StringUtils.isNotBlank(payOnsite)) param.put("payOnsite", payOnsite);
    if (StringUtils.isNotBlank(type)) param.put("type", type);
    if (StringUtils.isNotBlank(boothComment)) param.put("boothComment", boothComment);
    if (StringUtils.isNotBlank(monitorType)) param.put("monitorType", monitorType);

    updateCnt = resManage.updateBoothInfo(param);

    model.put("message", updateCnt);

    return model;
  }