Пример #1
0
  /**
   * Q&A정보를 수정처리한다.
   *
   * @param searchVO
   * @param qnaManageVO
   * @param bindingResult
   * @return "forward:/uss/olh/qna/QnaListInqire.do"
   * @throws Exception
   */
  @RequestMapping("/uss/olh/qna/QnaCnUpdt.do")
  public String updateQnaCn(
      @ModelAttribute("searchVO") QnaManageDefaultVO searchVO,
      @ModelAttribute("qnaManageVO") QnaManageVO qnaManageVO,
      BindingResult bindingResult)
      throws Exception {

    // Validation
    beanValidator.validate(qnaManageVO, bindingResult);

    if (bindingResult.hasErrors()) {

      return "/uss/olh/qna/EgovQnaCnUpdt";
    }

    // 로그인VO에서  사용자 정보 가져오기
    LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser();

    String lastUpdusrId = loginVO.getUniqId();

    qnaManageVO.setLastUpdusrId(lastUpdusrId); // 최종수정자ID

    // 작성비밀번호를 암호화 하기 위해서 Get
    String writngPassword = qnaManageVO.getWritngPassword();

    // EgovFileScrty Util에 있는 암호화 모듈을 적용해서 암호화 한다.
    qnaManageVO.setWritngPassword(EgovFileScrty.encode(writngPassword));

    qnaManageService.updateQnaCn(qnaManageVO);

    return "forward:/uss/olh/qna/QnaListInqire.do";
  }
  /**
   * 우편번호를 등록한다.
   *
   * @param loginVO
   * @param zip
   * @param bindingResult
   * @param model
   * @return "egovframework/com/sym/ccm/zip/EgovCcmZipRegist"
   * @throws Exception
   */
  @RequestMapping(value = "/sym/ccm/zip/EgovCcmZipRegist.do")
  public String insertZip(
      @ModelAttribute("loginVO") LoginVO loginVO,
      @ModelAttribute("zip") Zip zip,
      ZipVO searchVO,
      BindingResult bindingResult,
      ModelMap model)
      throws Exception {

    model.addAttribute("searchList", searchVO.getSearchList());

    if (zip.getZip() == null || zip.getZip().equals("")) {

      return "egovframework/com/sym/ccm/zip/EgovCcmZipRegist";
    }

    if (searchVO.getSearchList().equals("1")) {
      beanValidator.validate(zip, bindingResult);
      if (bindingResult.hasErrors()) {
        return "egovframework/com/sym/ccm/zip/EgovCcmZipRegist";
      }

      zip.setFrstRegisterId(loginVO.getUniqId());
      zipManageService.insertZip(zip);
    } else {
      /*beanValidator.validate(zip, bindingResult);
      if (bindingResult.hasErrors()){
      	return "egovframework/com/sym/ccm/zip/EgovCcmZipRegist";
      }*/

      zip.setFrstRegisterId(loginVO.getUniqId());
      rdnmadZipService.insertZip(zip);
    }
    return "forward:/sym/ccm/zip/EgovCcmZipList.do";
  }
  /**
   * 게시판 마스터 정보를 수정한다.
   *
   * @param boardMasterVO
   * @param boardMaster
   * @param model
   * @return
   * @throws Exception
   */
  @RequestMapping("/cop/bbs/UpdateBBSMasterInf.do")
  public String updateBBSMasterInf(
      @ModelAttribute("searchVO") BoardMasterVO boardMasterVO,
      @ModelAttribute("boardMaster") BoardMaster boardMaster,
      BindingResult bindingResult,
      ModelMap model)
      throws Exception {

    LoginVO user = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser();
    Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated();

    beanValidator.validate(boardMaster, bindingResult);
    if (bindingResult.hasErrors()) {
      BoardMasterVO vo = bbsAttrbService.selectBBSMasterInf(boardMasterVO);

      model.addAttribute("result", vo);

      return "cop/bbs/EgovBoardMstrUpdt";
    }

    if (isAuthenticated) {
      boardMaster.setLastUpdusrId(user.getUniqId());
      boardMaster.setPosblAtchFileSize(propertyService.getString("posblAtchFileSize"));
      bbsAttrbService.updateBBSMasterInf(boardMaster);
    }

    return "forward:/cop/bbs/SelectBBSMasterInfs.do";
  }
  /**
   * 모바일 기기 정보 등록 Service interface 호출 및 결과를 반환한다.
   *
   * @param deviceIdentVO
   */
  @RequestMapping(value = "/mbl/com/mdi/insertDeviceIdent.do")
  @Secured("ROLE_ADMIN")
  public String insertDeviceIdent(
      @ModelAttribute DeviceIdentVO deviceIdentVO, BindingResult bindingResult, ModelMap model) {

    beanValidator.validate(deviceIdentVO, bindingResult);
    if (bindingResult.hasErrors()) {

      model.addAttribute("browserCmmCodeDetailList", cmmUseService.selectCmmCodeList("COM083"));
      model.addAttribute("osCmmCodeDetailList", cmmUseService.selectCmmCodeList("COM084"));

      RequestContextHolder.getRequestAttributes()
          .setAttribute("jspPrefix", "aramframework/mbl", RequestAttributes.SCOPE_REQUEST);
      return WebUtil.adjustViewName("/com/mdi/DeviceIdentRegist");
    }

    // 로그인VO에서 사용자 정보 가져오기
    LoginVO loginVO = (LoginVO) UserDetailsHelper.getAuthenticatedUser();
    deviceIdentVO.setMberId(loginVO.getId());
    deviceIdentVO.setBrowserNm("COM083");
    deviceIdentVO.setOsNm("COM084");

    deviceIdentService.insertDeviceIdent(deviceIdentVO);

    // XML 파일 생성
    deviceIdentService.createDeviceIndentListToXML();

    model.addAttribute("message", MessageHelper.getMessage("success.common.insert"));
    return WebUtil.redirectJsp(model, "/mbl/com/mdi/listDeviceIdent.do");
  }
  /**
   * 기 등록 된 PROCESS모니터링 정보를 수정 한다.
   *
   * @param processNm - PROCESS모니터링 model
   * @return String - 리턴 Url
   * @param processNm
   */
  @RequestMapping(value = "/utl/sys/prm/EgovComUtlProcessMonModify.do")
  public String updateProcessMon(
      @ModelAttribute("processMonVO") ProcessMonVO processMonVO,
      BindingResult bindingResult,
      Map commandMap,
      ModelMap model)
      throws Exception {

    // 로그인 객체 선언
    LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser();

    String sCmd = commandMap.get("cmd") == null ? "" : (String) commandMap.get("cmd");
    if (sCmd.equals("")) {
      ProcessMonVO vo = processMonService.selectProcessMon(processMonVO);
      model.addAttribute("processMonVO", vo);
      return "egovframework/com/utl/sys/prm/EgovComUtlProcessMonModify";
    } else if (sCmd.equals("Modify")) {
      beanValidator.validate(processMonVO, bindingResult);
      if (bindingResult.hasErrors()) {
        ProcessMonVO vo = processMonService.selectProcessMon(processMonVO);
        model.addAttribute("processMonVO", vo);
        return "egovframework/com/utl/sys/prm/EgovComUtlProcessMonModify";
      }

      // 아이디 설정
      processMonVO.setFrstRegisterId((String) loginVO.getUniqId());
      processMonVO.setLastUpdusrId((String) loginVO.getUniqId());

      processMonService.updateProcessMon(processMonVO);
      return "forward:/utl/sys/prm/EgovComUtlProcessMonList.do";
    } else {
      return "forward:/utl/sys/prm/EgovComUtlProcessMonList.do";
    }
  }
  /**
   * 게시판 사용을 위한 게시판 속성정보를 수정한다.
   *
   * @param boardMasterVO
   * @param boardMaster
   * @param model
   * @return
   * @throws Exception
   */
  @RequestMapping("/cop/bbs/UpdateBBSMasterInfByTrget.do")
  public String updateBBSMasterInfByTrget(
      @ModelAttribute("searchVO") BoardMasterVO boardMasterVO,
      @ModelAttribute("boardMaster") BoardMaster boardMaster,
      BindingResult bindingResult,
      ModelMap model)
      throws Exception {

    checkAuthority(boardMasterVO); // server-side 권한 확인

    LoginVO user = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser();
    Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated();

    beanValidator.validate(boardMaster, bindingResult);
    if (bindingResult.hasErrors()) {
      BoardMasterVO vo = new BoardMasterVO();

      vo = bbsAttrbService.selectBBSMasterInf(boardMasterVO);

      model.addAttribute("result", vo);

      return "cop/bbs/EgovBoardMstrUpdt";
    }

    boardMaster.setLastUpdusrId(user.getUniqId());
    boardMaster.setUseAt("Y");

    if (isAuthenticated) {
      bbsAttrbService.updateBBSMasterInf(boardMaster);
    }

    return "forward:/cop/bbs/selectBdMstrListByTrget.do";
  }
 /**
  * 기 등록 된 지식맵(지식유형)링 정보를 수정 한다.
  *
  * @param konTypeNm - 지식맵(지식유형) model
  * @return String - 리턴 Url
  * @param MapMaterialVO
  */
 @RequestMapping(value = "/dam/map/mat/EgovComDamMapMaterialModify.do")
 public String updateMapMaterial(
     @ModelAttribute("loginVO") LoginVO loginVO,
     @ModelAttribute("knoTypeCd") MapMaterial mapMaterial,
     BindingResult bindingResult,
     Map commandMap,
     ModelMap model)
     throws Exception {
   String sCmd = commandMap.get("cmd") == null ? "" : (String) commandMap.get("cmd");
   if (sCmd.equals("")) {
     MapMaterial vo = mapMaterialService.selectMapMaterial(mapMaterial);
     model.addAttribute("mapMaterial", vo);
     return "egovframework/com/dam/map/mat/EgovComDamMapMaterialModify";
   } else if (sCmd.equals("Modify")) {
     beanValidator.validate(mapMaterial, bindingResult);
     if (bindingResult.hasErrors()) {
       MapMaterial vo = mapMaterialService.selectMapMaterial(mapMaterial);
       model.addAttribute("mapMaterial", vo);
       return "egovframework/com/dam/map/mat/EgovComDamMapMaterialModify";
     }
     mapMaterial.setFrstRegisterId(loginVO.getUniqId());
     mapMaterialService.updateMapMaterial(mapMaterial);
     return "forward:/dam/map/mat/EgovComDamMapMaterialList.do";
   } else {
     return "forward:/dam/map/mat/EgovComDamMapMaterialList.do";
   }
 }
  /**
   * 기 등록 된 지식정보평가 정보를 수정 한다.
   *
   * @param AppraisalknoAps - 지식정보평가 model
   * @return String - 리턴 Url
   * @param knoAps
   */
  @RequestMapping(value = "/dam/app/EgovComDamAppraisalModify.do")
  public String updateKnoAppraisal(
      @ModelAttribute("knoId") KnoAppraisal knoAppraisal,
      BindingResult bindingResult,
      Map commandMap,
      ModelMap model)
      throws Exception {

    // 로그인 객체 선언
    LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser();

    String sCmd = commandMap.get("cmd") == null ? "" : (String) commandMap.get("cmd");
    if (sCmd.equals("")) {
      KnoAppraisal vo = knoAppraisalService.selectKnoAppraisal(knoAppraisal);
      model.addAttribute("knoAppraisal", vo);
      return "egovframework/com/dam/app/EgovComDamAppraisalModify";
    } else if (sCmd.equals("Modify")) {
      beanValidator.validate(knoAppraisal, bindingResult);
      if (bindingResult.hasErrors()) {
        KnoAppraisal vo = knoAppraisalService.selectKnoAppraisal(knoAppraisal);
        model.addAttribute("knoAppraisal", vo);
        return "egovframework/com/dam/app/EgovComDamAppraisalModify";
      }

      // 아이디 설정
      // knoAppraisal.setFrstRegisterId((String)loginVO.getUniqId());
      // knoAppraisal.setLastUpdusrId((String)loginVO.getUniqId());
      knoAppraisal.setSpeId((String) loginVO.getUniqId());

      knoAppraisalService.updateKnoAppraisal(knoAppraisal);
      return "forward:/dam/app/EgovComDamAppraisalList.do";
    } else {
      return "forward:/dam/app/EgovComDamAppraisalList.do";
    }
  }
  /**
   * 신청된 휴가를 승인처리한다.
   *
   * @param vcatnManage - 휴가관리 model
   * @return String - 리턴 Url
   */
  @RequestMapping(value = "/uss/ion/vct/updtVcatnConfm.do")
  public String updtVcatnManageConfm(
      @ModelAttribute("vcatnManageVO") VcatnManageVO vcatnManageVO,
      @ModelAttribute("vcatnManage") VcatnManage vcatnManage,
      BindingResult bindingResult,
      SessionStatus status,
      ModelMap model)
      throws Exception {

    vcatnManage.setBgnde(EgovStringUtil.removeMinusChar(vcatnManage.getBgnde()));
    vcatnManage.setEndde(EgovStringUtil.removeMinusChar(vcatnManage.getEndde()));
    beanValidator.validate(vcatnManage, bindingResult); // validation 수행

    if (bindingResult.hasErrors()) {
      model.addAttribute("vcatnManageVO", vcatnManageVO);
      return "egovframework/com/uss/ion/vct/EgovVcatnConfm";
    } else {
      LoginVO user = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser();
      vcatnManage.setSanctnerId(user.getUniqId());
      vcatnManage.setLastUpdusrId(user.getUniqId());

      egovVcatnManageService.updtVcatnManageConfm(vcatnManage);
      return "forward:/uss/ion/vct/EgovVcatnConfmList.do";
    }
  }
  /**
   * 공통분류코드를 등록한다.
   *
   * @param loginVO
   * @param cmmnClCode
   * @param bindingResult
   * @return "egovframework/com/sym/ccm/ccc/EgovCcmCmmnClCodeRegist"
   * @throws Exception
   */
  @RequestMapping(value = "/sym/ccm/ccc/EgovCcmCmmnClCodeRegist.do")
  public String insertCmmnClCode(
      @ModelAttribute("loginVO") LoginVO loginVO,
      @ModelAttribute("cmmnClCode") CmmnClCode cmmnClCode,
      BindingResult bindingResult,
      ModelMap model)
      throws Exception {
    if (cmmnClCode.getClCode() == null || cmmnClCode.getClCode().equals("")) {
      return "egovframework/com/sym/ccm/ccc/EgovCcmCmmnClCodeRegist";
    }

    beanValidator.validate(cmmnClCode, bindingResult);
    if (bindingResult.hasErrors()) {
      return "egovframework/com/sym/ccm/ccc/EgovCcmCmmnClCodeRegist";
    }

    if (cmmnClCode.getClCode() != null) {
      CmmnClCode vo = cmmnClCodeManageService.selectCmmnClCodeDetail(cmmnClCode);
      if (vo != null) {
        model.addAttribute("message", "이미 등록된 분류코드가 존재합니다.");
        return "egovframework/com/sym/ccm/ccc/EgovCcmCmmnClCodeRegist";
      }
    }

    cmmnClCode.setFrstRegisterId(loginVO.getUniqId());
    cmmnClCodeManageService.insertCmmnClCode(cmmnClCode);
    return "forward:/sym/ccm/ccc/EgovCcmCmmnClCodeList.do";
  }
  /**
   * 연계기관을 수정한다.
   *
   * @param loginVO
   * @param cntcInstt
   * @param bindingResult
   * @param commandMap
   * @param model
   * @return "egovframework/com/ssi/syi/iis/EgovCntcInsttUpdt"
   * @throws Exception
   */
  @RequestMapping(value = "/ssi/syi/iis/updateCntcInstt.do")
  public String updateCntcInstt(
      @ModelAttribute("cntcInstt") CntcInstt cntcInstt,
      BindingResult bindingResult,
      @RequestParam Map<?, ?> commandMap,
      ModelMap model)
      throws Exception {
    String sCmd = commandMap.get("cmd") == null ? "" : (String) commandMap.get("cmd");
    if (sCmd.equals("")) {
      CntcInstt vo = cntcInsttService.selectCntcInsttDetail(cntcInstt);
      model.addAttribute("cntcInstt", vo);

      return "egovframework/com/ssi/syi/iis/EgovCntcInsttUpdt";
    } else if (sCmd.equals("Modify")) {
      beanValidator.validate(cntcInstt, bindingResult);
      if (bindingResult.hasErrors()) {
        CntcInstt vo = cntcInsttService.selectCntcInsttDetail(cntcInstt);
        model.addAttribute("cntcInstt", vo);

        return "egovframework/com/ssi/syi/iis/EgovCntcInsttUpdt";
      }

      // 로그인VO에서  사용자 정보 가져오기
      LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser();
      String uniqId = loginVO.getUniqId();

      cntcInstt.setLastUpdusrId(uniqId);
      cntcInsttService.updateCntcInstt(cntcInstt);
      return "forward:/ssi/syi/iis/getCntcInsttList.do";
    } else {
      return "forward:/ssi/syi/iis/getCntcInsttList.do";
    }
  }
  /**
   * 공통분류코드를 수정한다.
   *
   * @param loginVO
   * @param cmmnClCode
   * @param bindingResult
   * @param commandMap
   * @param model
   * @return "egovframework/com/sym/ccm/ccc/EgovCcmCmmnClCodeModify"
   * @throws Exception
   */
  @RequestMapping(value = "/sym/ccm/ccc/EgovCcmCmmnClCodeModify.do")
  public String updateCmmnClCode(
      @ModelAttribute("loginVO") LoginVO loginVO,
      @ModelAttribute("administCode") CmmnClCode cmmnClCode,
      BindingResult bindingResult,
      @RequestParam Map<?, ?> commandMap,
      ModelMap model)
      throws Exception {
    String sCmd = commandMap.get("cmd") == null ? "" : (String) commandMap.get("cmd");
    if (sCmd.equals("")) {
      CmmnClCode vo = cmmnClCodeManageService.selectCmmnClCodeDetail(cmmnClCode);
      model.addAttribute("cmmnClCode", vo);

      return "egovframework/com/sym/ccm/ccc/EgovCcmCmmnClCodeModify";
    } else if (sCmd.equals("Modify")) {
      beanValidator.validate(cmmnClCode, bindingResult);
      if (bindingResult.hasErrors()) {
        CmmnClCode vo = cmmnClCodeManageService.selectCmmnClCodeDetail(cmmnClCode);
        model.addAttribute("cmmnClCode", vo);

        return "egovframework/com/sym/ccm/ccc/EgovCcmCmmnClCodeModify";
      }
      cmmnClCode.setLastUpdusrId(loginVO.getUniqId());
      cmmnClCodeManageService.updateCmmnClCode(cmmnClCode);
      return "forward:/sym/ccm/ccc/EgovCcmCmmnClCodeList.do";
    } else {
      return "forward:/sym/ccm/ccc/EgovCcmCmmnClCodeList.do";
    }
  }
  /**
   * 연계기관을 등록한다.
   *
   * @param loginVO
   * @param cntcInstt
   * @param bindingResult
   * @param model
   * @return "egovframework/com/ssi/syi/iis/EgovCntcInsttRegist"
   * @throws Exception
   */
  @RequestMapping(value = "/ssi/syi/iis/addCntcInstt.do")
  public String insertCntcInstt(
      @ModelAttribute("cntcInstt") CntcInstt cntcInstt,
      BindingResult bindingResult,
      @RequestParam Map<?, ?> commandMap,
      ModelMap model)
      throws Exception {
    String sCmd = commandMap.get("cmd") == null ? "" : (String) commandMap.get("cmd");
    if (sCmd.equals("")) {

      return "egovframework/com/ssi/syi/iis/EgovCntcInsttRegist";
    } else if (sCmd.equals("Regist")) {

      beanValidator.validate(cntcInstt, bindingResult);
      if (bindingResult.hasErrors()) {

        return "egovframework/com/ssi/syi/iis/EgovCntcInsttRegist";
      }

      // 로그인VO에서  사용자 정보 가져오기
      LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser();
      String uniqId = loginVO.getUniqId();
      cntcInstt.setFrstRegisterId(uniqId);

      // ID Generation
      String sInsttId = idgenService.getNextStringId();
      cntcInstt.setInsttId(sInsttId);

      cntcInsttService.insertCntcInstt(cntcInstt);

      return "forward:/ssi/syi/iis/getCntcInsttList.do";
    } else {
      return "forward:/ssi/syi/iis/getCntcInsttList.do";
    }
  }
  /**
   * PROCESS모니터링 정보를 신규로 등록한다.
   *
   * @param processNm - PROCESS모니터링 model
   * @return String - 리턴 Url
   * @param processNm
   */
  @RequestMapping(value = "/utl/sys/prm/EgovComUtlProcessMonRegist.do")
  public String insertProcessMon(
      @ModelAttribute("processMonVO") ProcessMonVO processMonVO,
      BindingResult bindingResult,
      ModelMap model)
      throws Exception {

    // 0. Spring Security 사용자권한 처리
    Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated();
    if (!isAuthenticated) {
      model.addAttribute("message", egovMessageSource.getMessage("fail.common.login"));
      return "egovframework/com/uat/uia/EgovLoginUsr";
    }

    // 로그인 객체 선언
    LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser();

    if (processMonVO.getProcessNm() == null || processMonVO.getProcessNm().equals("")) {
      return "egovframework/com/utl/sys/prm/EgovComUtlProcessMonRegist";
    }

    // 서버  validate 체크
    beanValidator.validate(processMonVO, bindingResult);
    if (bindingResult.hasErrors()) {
      return "egovframework/com/utl/sys/prm/EgovComUtlProcessMonRegist";
    }

    // 아이디 설정
    processMonVO.setFrstRegisterId((String) loginVO.getUniqId());
    processMonVO.setLastUpdusrId((String) loginVO.getUniqId());

    processMonService.insertProcessMon(processMonVO);
    return "forward:/utl/sys/prm/EgovComUtlProcessMonList.do";
  }
Пример #15
0
  /**
   * 모바일 기기 정보 수정 Service interface 호출 및 결과를 반환한다.
   *
   * @param deviceIdentVO
   */
  @RequestMapping(value = "/mbl/com/mdi/updateDeviceIdent.do")
  @Secured("ROLE_ADMIN")
  public String updateDeviceIdent(
      @ModelAttribute DeviceIdentVO deviceIdentVO, BindingResult bindingResult, ModelMap model) {

    // Validation
    beanValidator.validate(deviceIdentVO, bindingResult);
    if (bindingResult.hasErrors()) {

      model.addAttribute("browserCmmCodeDetailList", cmmUseService.selectCmmCodeList("COM083"));
      model.addAttribute("osCmmCodeDetailList", cmmUseService.selectCmmCodeList("COM084"));

      RequestContextHolder.getRequestAttributes()
          .setAttribute("jspPrefix", "aramframework/mbl", RequestAttributes.SCOPE_REQUEST);
      return WebUtil.adjustViewName("/com/mdi/DeviceIdentEdit");
    }

    deviceIdentService.updateDeviceIdent(deviceIdentVO);

    // XML 파일 생성
    deviceIdentService.createDeviceIndentListToXML();

    model.addAttribute("message", MessageHelper.getMessage("success.common.insert"));
    return WebUtil.redirectJsp(model, "/mbl/com/mdi/listDeviceIdent.do");
  }
Пример #16
0
  /**
   * 설문관리를 등록한다.
   *
   * @param searchVO
   * @param commandMap
   * @param qustnrManageVO
   * @param bindingResult
   * @param model
   * @return "egovframework/com/uss/olp/qmc/EgovQustnrManageRegist"
   * @throws Exception
   */
  @RequestMapping(value = "/uss/olp/qmc/EgovQustnrManageRegist.do")
  public String qustnrManageRegist(
      @ModelAttribute("searchVO") ComDefaultVO searchVO,
      @CommandMap Map commandMap,
      @ModelAttribute("qustnrManageVO") QustnrManageVO qustnrManageVO,
      BindingResult bindingResult,
      ModelMap model)
      throws Exception {
    // 0. Spring Security 사용자권한 처리
    Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated();
    if (!isAuthenticated) {
      model.addAttribute("message", egovMessageSource.getMessage("fail.common.login"));
      return "egovframework/com/uat/uia/EgovLoginUsr";
    }

    // 로그인 객체 선언
    LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser();

    String sLocationUrl = "egovframework/com/uss/olp/qmc/EgovQustnrManageRegist";

    String sCmd = commandMap.get("cmd") == null ? "" : (String) commandMap.get("cmd");
    LOGGER.info("cmd => {}", sCmd);

    // 공통코드  직업유형 조회
    ComDefaultCodeVO voComCode = new ComDefaultCodeVO();
    voComCode.setCodeId("COM034");
    List listComCode = cmmUseService.selectCmmCodeDetail(voComCode);
    model.addAttribute("comCode034", listComCode);

    if (sCmd.equals("save")) {

      beanValidator.validate(qustnrManageVO, bindingResult);
      if (bindingResult.hasErrors()) {
        // 설문템플릿 정보 불러오기
        List listQustnrTmplat =
            egovQustnrManageService.selectQustnrTmplatManageList(qustnrManageVO);
        model.addAttribute("listQustnrTmplat", listQustnrTmplat);
        return sLocationUrl;
      }

      // 아이디 설정
      qustnrManageVO.setFrstRegisterId((String) loginVO.getUniqId());
      qustnrManageVO.setLastUpdusrId((String) loginVO.getUniqId());

      egovQustnrManageService.insertQustnrManage(qustnrManageVO);
      sLocationUrl = "redirect:/uss/olp/qmc/EgovQustnrManageList.do";
    } else {
      // 설문템플릿 정보 불러오기
      List listQustnrTmplat = egovQustnrManageService.selectQustnrTmplatManageList(qustnrManageVO);
      model.addAttribute("listQustnrTmplat", listQustnrTmplat);
    }

    return sLocationUrl;
  }
  /**
   * 게시판 사용을 위한 신규 게시판 속성정보를 생성한다.
   *
   * @param boardMasterVO
   * @param boardMaster
   * @param bindingResult
   * @param status
   * @param model
   * @return
   * @throws Exception
   */
  @RequestMapping("/cop/bbs/insertBdMstrByTrget.do")
  public String insertBdMstrByTrget(
      @ModelAttribute("searchVO") BoardMasterVO boardMasterVO,
      @ModelAttribute("boardMaster") BoardMaster boardMaster,
      BindingResult bindingResult,
      SessionStatus status,
      ModelMap model)
      throws Exception {

    checkAuthority(boardMasterVO); // server-side 권한 확인

    LoginVO user = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser();
    Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated();

    beanValidator.validate(boardMaster, bindingResult);
    if (bindingResult.hasErrors()) {

      ComDefaultCodeVO vo = new ComDefaultCodeVO();

      vo.setCodeId("COM004");

      List<?> codeResult = cmmUseService.selectCmmCodeDetail(vo);

      model.addAttribute("typeList", codeResult);

      vo.setCodeId("COM009");

      codeResult = cmmUseService.selectCmmCodeDetail(vo);

      model.addAttribute("attrbList", codeResult);

      return "cop/bbs/EgovBdMstrRegistByTrget";
    }

    boardMaster.setFrstRegisterId(user.getUniqId());
    boardMaster.setUseAt("Y");
    boardMaster.setBbsUseFlag("Y");

    String registSeCode = "REGC06";

    if ("CLB".equals(EgovStringUtil.cutString(boardMaster.getTrgetId(), 3))) {
      registSeCode = "REGC05";
    }
    boardMaster.setRegistSeCode(registSeCode);

    if (isAuthenticated) {
      bbsAttrbService.insertBBSMastetInf(boardMaster);
      model.addAttribute("S_FLAG", "S");
    }

    return "forward:/cop/bbs/selectBdMstrListByTrget.do";
  }
  /**
   * 부서업무 정보를 수정한다.
   *
   * @param DeptJob
   * @return String
   * @param deptJob
   */
  @RequestMapping("/cop/smt/djm/updateDeptJob.do")
  public String updateDeptJob(
      final MultipartHttpServletRequest multiRequest,
      Map commandMap,
      @ModelAttribute("deptJobVO") DeptJobVO deptJobVO,
      BindingResult bindingResult,
      ModelMap model)
      throws Exception {
    LoginVO user = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser();
    Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated();

    beanValidator.validate(deptJobVO, bindingResult);
    if (bindingResult.hasErrors()) {
      DeptJob deptJob = deptJobService.selectDeptJob(deptJobVO);
      model.addAttribute("deptJob", deptJob);
      return "egovframework/com/cop/smt/djm/EgovDeptJobUpdt";
    }

    if (isAuthenticated) {
      /* *****************************************************************
           	// 첨부파일 관련 ID 생성 start....
      ****************************************************************** */
      String _atchFileId = deptJobVO.getAtchFileId();

      final Map<String, MultipartFile> files = multiRequest.getFileMap();

      if (!files.isEmpty()) {
        String atchFileAt =
            commandMap.get("atchFileAt") == null ? "" : (String) commandMap.get("atchFileAt");
        if ("N".equals(atchFileAt)) {
          List<FileVO> _result = fileUtil.parseFileInf(files, "DSCH_", 0, _atchFileId, "");
          _atchFileId = fileMngService.insertFileInfs(_result);

          // 첨부파일 ID 셋팅
          deptJobVO.setAtchFileId(_atchFileId); // 첨부파일 ID

        } else {
          FileVO fvo = new FileVO();
          fvo.setAtchFileId(_atchFileId);
          int _cnt = fileMngService.getMaxFileSN(fvo);
          List<FileVO> _result = fileUtil.parseFileInf(files, "DSCH_", _cnt, _atchFileId, "");
          fileMngService.updateFileInfs(_result);
        }
      }

      deptJobVO.setLastUpdusrId(user.getUniqId());
      deptJobService.updateDeptJob(deptJobVO);
    }

    return "forward:/cop/smt/djm/selectDeptJobList.do";
  }
  /**
   * 연계시스템을 등록한다.
   *
   * @param loginVO
   * @param cntcSystem
   * @param bindingResult
   * @param model
   * @return "egovframework/com/ssi/syi/iis/EgovCntcSystemRegist"
   * @throws Exception
   */
  @RequestMapping(value = "/ssi/syi/iis/addCntcSystem.do")
  public String insertCntcSystem(
      @ModelAttribute("cntcSystem") CntcSystem cntcSystem,
      BindingResult bindingResult,
      @RequestParam Map<?, ?> commandMap,
      ModelMap model)
      throws Exception {
    String sCmd = commandMap.get("cmd") == null ? "" : (String) commandMap.get("cmd");
    if (sCmd.equals("")) {
      // 연계기관 리스트박스 데이터
      CntcInsttVO searchCntcInsttVO;
      searchCntcInsttVO = new CntcInsttVO();
      searchCntcInsttVO.setRecordCountPerPage(999999);
      searchCntcInsttVO.setFirstIndex(0);
      searchCntcInsttVO.setSearchCondition("CodeList");
      List<?> cntcInsttList = cntcInsttService.selectCntcInsttList(searchCntcInsttVO);
      model.addAttribute("cntcInsttList", cntcInsttList);

      return "egovframework/com/ssi/syi/iis/EgovCntcSystemRegist";
    } else if (sCmd.equals("Regist")) {

      beanValidator.validate(cntcSystem, bindingResult);
      if (bindingResult.hasErrors()) {
        // 연계기관 리스트박스 데이터
        CntcInsttVO searchCntcInsttVO;
        searchCntcInsttVO = new CntcInsttVO();
        searchCntcInsttVO.setRecordCountPerPage(999999);
        searchCntcInsttVO.setFirstIndex(0);
        searchCntcInsttVO.setSearchCondition("CodeList");
        List<?> cntcInsttList = cntcInsttService.selectCntcInsttList(searchCntcInsttVO);
        model.addAttribute("cntcInsttList", cntcInsttList);

        return "egovframework/com/ssi/syi/iis/EgovCntcSystemRegist";
      }

      // 로그인VO에서  사용자 정보 가져오기
      LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser();
      String uniqId = loginVO.getUniqId();
      cntcSystem.setFrstRegisterId(uniqId);

      // ID Generation
      String sSysId = idgenServiceSys.getNextStringId();
      cntcSystem.setSysId(sSysId);

      cntcInsttService.insertCntcSystem(cntcSystem);
      return "forward:/ssi/syi/iis/getCntcInsttDetail.do";
    } else {
      return "forward:/ssi/syi/iis/getCntcInsttDetail.do";
    }
  }
  /**
   * 설문템플릿를 수정처리 한다.
   *
   * @param multiRequest
   * @param searchVO
   * @param commandMap
   * @param qustnrTmplatManageVO
   * @param bindingResult
   * @param model
   * @return "/uss/olp/qtm/EgovQustnrTmplatManageModifyActor"
   * @throws Exception
   */
  @RequestMapping(value = "/uss/olp/qtm/EgovQustnrTmplatManageModifyActor.do")
  public String QustnrTmplatManageModifyActor(
      final MultipartHttpServletRequest multiRequest,
      @ModelAttribute("searchVO") ComDefaultVO searchVO,
      Map commandMap,
      @ModelAttribute("qustnrTmplatManageVO") QustnrTmplatManageVO qustnrTmplatManageVO,
      BindingResult bindingResult,
      ModelMap model)
      throws Exception {

    // 0. Spring Security 사용자권한 처리
    Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated();
    if (!isAuthenticated) {
      model.addAttribute("message", egovMessageSource.getMessage("fail.common.login"));
      return "uat/uia/EgovLoginUsr";
    }

    // 로그인 객체 선언
    LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser();

    // 서버  validate 체크
    beanValidator.validate(qustnrTmplatManageVO, bindingResult);
    if (bindingResult.hasErrors()) {
      model.addAttribute(
          "resultList",
          egovQustnrTmplatManageService.selectQustnrTmplatManageDetail(qustnrTmplatManageVO));
      return "/uss/olp/qtm/EgovQustnrTmplatManageModify";
    }

    // 아이디 설정
    qustnrTmplatManageVO.setFrstRegisterId((String) loginVO.getUniqId());
    qustnrTmplatManageVO.setLastUpdusrId((String) loginVO.getUniqId());

    final Map<String, MultipartFile> files = multiRequest.getFileMap();

    if (!files.isEmpty()) {
      for (MultipartFile file : files.values()) {
        System.out.println("getName =>" + file.getName());
        System.out.println("getOriginalFilename =>" + file.getOriginalFilename());
        // log.info("getOriginalFilename =>" + file.getOriginalFilename() );
        if (file.getName().equals("qestnrTmplatImage") && !file.getOriginalFilename().equals("")) {
          qustnrTmplatManageVO.setQestnrTmplatImagepathnm(file.getBytes());
        }
      }
    }
    egovQustnrTmplatManageService.updateQustnrTmplatManage(qustnrTmplatManageVO);

    return "redirect:/uss/olp/qtm/EgovQustnrTmplatManageList.do";
  }
Пример #21
0
  /**
   * 그룹 기본정보를 화면에서 입력하여 항목의 정합성을 체크하고 데이터베이스에 저장
   *
   * @param groupVO
   */
  @RequestMapping(value = "/sec/grp/insertGroup.do")
  @Secured("ROLE_ADMIN")
  public String insertGroup(
      @ModelAttribute GroupVO groupVO, BindingResult bindingResult, ModelMap model) {

    beanValidator.validate(groupVO, bindingResult); // validation 수행
    if (bindingResult.hasErrors()) {
      return WebUtil.adjustViewName("/sec/grp/GroupRegist");
    }

    groupService.insertGroup(groupVO);

    model.addAttribute("message", MessageHelper.getMessage("success.common.insert"));
    return WebUtil.redirectJsp(model, "/sec/grp/listGroup.do");
  }
  /**
   * 부서업무 정보를 등록한다.
   *
   * @param DeptJob
   * @return String
   * @param deptJob
   */
  @RequestMapping("/cop/smt/djm/insertDeptJob.do")
  public String insertDeptJob(
      final MultipartHttpServletRequest multiRequest,
      @ModelAttribute("deptJobVO") DeptJobVO deptJobVO,
      BindingResult bindingResult,
      ModelMap model)
      throws Exception {
    // 0. Spring Security 사용자권한 처리
    Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated();
    if (!isAuthenticated) {
      model.addAttribute("message", egovMessageSource.getMessage("fail.common.login"));
      return "egovframework/com/uat/uia/EgovLoginUsr";
    }

    // 로그인 객체 선언
    LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser();

    String sLocationUrl = "egovframework/com/cop/smt/djm/EgovDeptJobRegist";

    // 서버  validate 체크
    beanValidator.validate(deptJobVO, bindingResult);
    if (bindingResult.hasErrors()) {
      return sLocationUrl;
    }

    // 첨부파일 관련 첨부파일ID 생성
    List<FileVO> _result = null;
    String _atchFileId = "";

    final Map<String, MultipartFile> files = multiRequest.getFileMap();

    if (!files.isEmpty()) {
      _result = fileUtil.parseFileInf(files, "DSCH_", 0, "", "");
      _atchFileId = fileMngService.insertFileInfs(_result); // 파일이 생성되고나면 생성된 첨부파일 ID를 리턴한다.
    }

    // 리턴받은 첨부파일ID를 셋팅한다..
    deptJobVO.setAtchFileId(_atchFileId); // 첨부파일 ID

    // 아이디 설정
    deptJobVO.setFrstRegisterId((String) loginVO.getUniqId());
    deptJobVO.setLastUpdusrId((String) loginVO.getUniqId());

    deptJobService.insertDeptJob(deptJobVO);
    sLocationUrl = "forward:/cop/smt/djm/selectDeptJobList.do";

    return sLocationUrl;
  }
  /**
   * 우편번호를 수정한다.
   *
   * @param loginVO
   * @param zip
   * @param bindingResult
   * @param commandMap
   * @param model
   * @return "egovframework/com/sym/ccm/zip/EgovCcmZipModify"
   * @throws Exception
   */
  @RequestMapping(value = "/sym/ccm/zip/EgovCcmZipModify.do")
  public String updateZip(
      @ModelAttribute("loginVO") LoginVO loginVO,
      @ModelAttribute("zip") Zip zip,
      ZipVO searchVO,
      BindingResult bindingResult,
      @RequestParam Map<String, Object> commandMap,
      ModelMap model)
      throws Exception {
    String sCmd = commandMap.get("cmd") == null ? "" : (String) commandMap.get("cmd");
    model.addAttribute("searchList", searchVO.getSearchList());
    if (sCmd.equals("")) {
      if (searchVO.getSearchList().equals("1")) {
        Zip vo = zipManageService.selectZipDetail(zip);
        model.addAttribute("zip", vo);
      } else {
        Zip vo = rdnmadZipService.selectZipDetail(zip);
        model.addAttribute("zip", vo);
      }
      return "egovframework/com/sym/ccm/zip/EgovCcmZipModify";
    } else if (sCmd.equals("Modify")) {
      if (searchVO.getSearchList().equals("1")) {
        beanValidator.validate(zip, bindingResult);
        if (bindingResult.hasErrors()) {
          return "egovframework/com/sym/ccm/zip/EgovCcmZipModify";
        }

        zip.setLastUpdusrId(loginVO.getUniqId());
        zipManageService.updateZip(zip);
      } else {
        /*beanValidator.validate(zip, bindingResult);
        if (bindingResult.hasErrors()){
        	return "egovframework/com/sym/ccm/zip/EgovCcmZipModify";
        }*/

        zip.setLastUpdusrId(loginVO.getUniqId());
        rdnmadZipService.updateZip(zip);
      }

      return "forward:/sym/ccm/zip/EgovCcmZipList.do";
    } else {
      return "forward:/sym/ccm/zip/EgovCcmZipList.do";
    }
  }
 /**
  * 기업회원정보 수정후 목록조회 화면으로 이동한다.
  *
  * @param entrprsManageVO 수정할 기업회원정보
  * @param bindingResult 입력값 검증용 bindingResult
  * @param model 화면모델
  * @return forward:/uss/umt/EgovEntrprsMberManage.do
  * @throws Exception
  */
 @RequestMapping("/uss/umt/EgovEntrprsMberSelectUpdt.do")
 public String updateEntrprsMber(
     @ModelAttribute("entrprsManageVO") EntrprsManageVO entrprsManageVO,
     BindingResult bindingResult,
     Model model)
     throws Exception {
   beanValidator.validate(entrprsManageVO, bindingResult);
   if (bindingResult.hasErrors()) {
     return "egovframework/com/uss/umt/EgovEntrprsMberSelectUpdt";
   } else {
     if (entrprsManageVO.getGroupId().equals("")) {
       entrprsManageVO.setGroupId(null);
     }
     entrprsManageService.updateEntrprsmber(entrprsManageVO);
     // Exception 없이 진행시 수정성공메시지
     model.addAttribute("resultMsg", "success.common.update");
     return "forward:/uss/umt/EgovEntrprsMberManage.do";
   }
 }
  /**
   * 약관정보를 등록한다.
   *
   * @param stplatManageVO
   */
  @RequestMapping("/uss/sam/stp/insertStplat.do")
  @Secured("ROLE_ADMIN")
  public String insertStplat(
      @ModelAttribute StplatManageVO stplatManageVO, BindingResult bindingResult, ModelMap model) {

    beanValidator.validate(stplatManageVO, bindingResult);
    if (bindingResult.hasErrors()) {
      return WebUtil.adjustViewName("/uss/sam/stp/StplatRegist");
    }

    // 로그인VO에서 사용자 정보 가져오기
    LoginVO loginVO = (LoginVO) UserDetailsHelper.getAuthenticatedUser();
    stplatManageVO.setFrstRegisterId(loginVO.getUniqId()); // 최초등록자ID

    stplatManageService.insertStplat(stplatManageVO);

    model.addAttribute("message", MessageHelper.getMessage("success.common.insert"));
    return WebUtil.redirectJsp(model, "/uss/sam/stp/listStplat.do");
  }
  /**
   * 신규 게시판 마스터 정보를 등록한다.
   *
   * @param boardMasterVO
   * @param boardMaster
   * @param status
   * @return
   * @throws Exception
   */
  @RequestMapping("/cop/bbs/insertBBSMasterInf.do")
  public String insertBBSMasterInf(
      @ModelAttribute("searchVO") BoardMasterVO boardMasterVO,
      @ModelAttribute("boardMaster") BoardMaster boardMaster,
      BindingResult bindingResult,
      SessionStatus status,
      ModelMap model)
      throws Exception {
    LoginVO user = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser();
    Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated();

    beanValidator.validate(boardMaster, bindingResult);
    if (bindingResult.hasErrors()) {

      ComDefaultCodeVO vo = new ComDefaultCodeVO();

      vo.setCodeId("COM004");

      List<?> codeResult = cmmUseService.selectCmmCodeDetail(vo);

      model.addAttribute("typeList", codeResult);

      vo.setCodeId("COM009");

      codeResult = cmmUseService.selectCmmCodeDetail(vo);

      model.addAttribute("attrbList", codeResult);

      return "cop/bbs/EgovBoardMstrRegist";
    }

    if (isAuthenticated) {
      boardMaster.setFrstRegisterId(user.getUniqId());
      boardMaster.setUseAt("Y");
      boardMaster.setTrgetId("SYSTEMDEFAULT_REGIST");
      boardMaster.setPosblAtchFileSize(propertyService.getString("posblAtchFileSize"));

      bbsAttrbService.insertBBSMastetInf(boardMaster);
    }

    return "forward:/cop/bbs/SelectBBSMasterInfs.do";
  }
Пример #27
0
  /**
   * 글을 수정한다.
   *
   * @param sampleVO - 수정할 정보가 담긴 VO
   * @param searchVO - 목록 조회조건 정보가 담긴 VO
   * @param status
   * @return "forward:/sample/egovSampleList.do"
   * @exception Exception
   */
  @RequestMapping("/sample/updateSample.do")
  public String updateSample(
      @ModelAttribute("searchVO") SampleDefaultVO searchVO,
      SampleVO sampleVO,
      BindingResult bindingResult,
      Model model,
      SessionStatus status)
      throws Exception {

    beanValidator.validate(sampleVO, bindingResult);

    if (bindingResult.hasErrors()) {
      model.addAttribute("sampleVO", sampleVO);
      return "/sample/egovSampleRegister";
    }

    sampleService.updateSample(sampleVO);
    status.setComplete();
    return "forward:/sample/egovSampleList.do";
  }
  /**
   * 게시판 사용정보를 등록한다.
   *
   * @param bdUseVO
   * @param bdUseInf
   * @param sessionVO
   * @param status
   * @param model
   * @return
   * @throws Exception
   */
  @RequestMapping("/cop/com/insertBBSUseInf.do")
  public String insertBBSUseInf(
      @ModelAttribute("searchVO") BoardUseInfVO bdUseVO,
      @ModelAttribute("boardUseInf") BoardUseInf boardUseInf,
      BindingResult bindingResult,
      Map<String, Object> commandMap,
      SessionStatus status,
      ModelMap model)
      throws Exception {

    LoginVO user = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser();
    Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated();

    beanValidator.validate(boardUseInf, bindingResult);

    if (bindingResult.hasErrors()) {
      return "egovframework/com/cop/com/EgovBoardUseInfRegist";
    }

    String trgetType = (String) commandMap.get("param_trgetType");
    String registSeCode = "";

    // CMMNTY 06/CLUB 05/SYSTEM(REGC01)
    if ("CMMNTY".equals(trgetType)) {
      registSeCode = "REGC06";
    } else if ("CLUB".equals(trgetType)) {
      registSeCode = "REGC05";
    } else {
      registSeCode = "REGC01";
    }

    boardUseInf.setUseAt("Y");
    boardUseInf.setFrstRegisterId(user.getUniqId());
    boardUseInf.setRegistSeCode(registSeCode);

    if (isAuthenticated) {
      bbsUseService.insertBBSUseInf(boardUseInf);
    }

    return "forward:/cop/com/selectBBSUseInfs.do";
  }
  /**
   * 기 등록된 로그인정책 정보를 수정한다.
   *
   * @param loginPolicy - 로그인정책 model
   * @return String - 리턴 Url
   */
  @RequestMapping("/uat/uap/updtLoginPolicy.do")
  public String updateLoginPolicy(
      @ModelAttribute("loginPolicy") LoginPolicy loginPolicy,
      BindingResult bindingResult,
      ModelMap model)
      throws Exception {

    beanValidator.validate(loginPolicy, bindingResult); // validation 수행

    if (bindingResult.hasErrors()) {
      model.addAttribute("loginPolicyVO", loginPolicy);
      return "egovframework/com/uat/uap/EgovLoginPolicyUpdt";
    } else {
      LoginVO user = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser();
      loginPolicy.setUserId(user.getId());

      egovLoginPolicyService.updateLoginPolicy(loginPolicy);
      model.addAttribute("message", egovMessageSource.getMessage("success.common.update"));

      return "forward:/uat/uap/selectLoginPolicyList.do";
    }
  }
  /**
   * 지식맵(지식유형) 정보를 신규로 등록한다.
   *
   * @param konTypeNm - 지식맵(지식유형) model
   * @return String - 리턴 Url
   * @param MapMaterialVO
   */
  @RequestMapping(value = "/dam/map/mat/EgovComDamMapMaterialRegist.do")
  public String insertMapMaterial(
      @ModelAttribute("loginVO") LoginVO loginVO,
      @ModelAttribute("mapMaterial") MapMaterial mapMaterial,
      BindingResult bindingResult,
      ModelMap model)
      throws Exception {
    if (mapMaterial.getKnoTypeCd() == null || mapMaterial.getKnoTypeCd().equals("")) {

      MapTeamVO searchVO;
      searchVO = new MapTeamVO();
      searchVO.setRecordCountPerPage(999999);
      searchVO.setFirstIndex(0);
      searchVO.setSearchCondition("MapTeamList");
      List MapMaterialList = mapTeamService.selectMapTeamList(searchVO);
      model.addAttribute("mapTeam", MapMaterialList);

      return "egovframework/com/dam/map/mat/EgovComDamMapMaterialRegist";
    }

    beanValidator.validate(mapMaterial, bindingResult);
    if (bindingResult.hasErrors()) {

      MapTeamVO searchVO;
      searchVO = new MapTeamVO();
      searchVO.setRecordCountPerPage(999999);
      searchVO.setFirstIndex(0);
      searchVO.setSearchCondition("MapTeamList");
      List MapMaterialList = mapTeamService.selectMapTeamList(searchVO);
      model.addAttribute("mapTeam", MapMaterialList);

      return "egovframework/com/dam/map/mat/EgovComDamMapMaterialRegist";
    }

    mapMaterial.setFrstRegisterId(loginVO.getUniqId());
    mapMaterialService.insertMapMaterial(mapMaterial);
    return "forward:/dam/map/mat/EgovComDamMapMaterialList.do";
  }