|
|
|
@ -2,9 +2,7 @@ package kr.xit.framework.biz.mng.code.web;
|
|
|
|
|
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import kr.xit.framework.support.util.Checks;
|
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
|
|
import org.springframework.validation.BindingResult;
|
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
@ -15,11 +13,8 @@ import org.springframework.web.servlet.ModelAndView;
|
|
|
|
|
|
|
|
|
|
import kr.xit.framework.biz.mng.code.model.XitClCodeMngVO;
|
|
|
|
|
import kr.xit.framework.biz.mng.code.service.ICodeCfnMgtService;
|
|
|
|
|
import kr.xit.framework.biz.mng.menu.model.XitMenuInfoVO;
|
|
|
|
|
import kr.xit.framework.core.constants.FrameworkConstants;
|
|
|
|
|
import kr.xit.framework.core.message.XitMessageSource;
|
|
|
|
|
import kr.xit.framework.core.model.ResultResponse;
|
|
|
|
|
import kr.xit.framework.core.validation.XitBeanValidator;
|
|
|
|
|
import kr.xit.framework.support.mybatis.MybatisUtils;
|
|
|
|
|
import kr.xit.framework.support.util.AjaxMessageMapRenderer;
|
|
|
|
|
import kr.xit.framework.support.util.ValidationError;
|
|
|
|
@ -41,8 +36,13 @@ public class CodeCfnMgtController {
|
|
|
|
|
public ModelAndView mngCodeCfnMgtPopup(final XitClCodeMngVO vo) {
|
|
|
|
|
ModelAndView mav = new ModelAndView();
|
|
|
|
|
|
|
|
|
|
if(Checks.isEmpty(vo.getClCode())){
|
|
|
|
|
mav.addObject("cmmnClCode", vo);
|
|
|
|
|
mav.addObject("pageTitle", "분류 코드 등록 / 변경");
|
|
|
|
|
mav.addObject("pageTitle", "분류 코드 등록");
|
|
|
|
|
} else {
|
|
|
|
|
mav.addObject("cmmnClCode", service.findCodeCfn(vo));
|
|
|
|
|
mav.addObject("pageTitle", "분류 코드 변경");
|
|
|
|
|
}
|
|
|
|
|
mav.setViewName(FrameworkConstants.FRAMEWORK_JSP_BASE_PATH + "mng/code/mngCodeCfnMgtPopup.popup");
|
|
|
|
|
return mav;
|
|
|
|
|
}
|
|
|
|
|