메뉴생성 페이지 경로 리펙토링

main
Kurt92 2 years ago
parent 89d8af7c42
commit d4a35d8f33

@ -19,7 +19,7 @@ import kr.xit.framework.biz.mng.menu.model.MenuCreateMngVO;
import kr.xit.framework.core.message.XitMessageSource;
@Service
public class XitMenuCreateMngServiceImpl implements MenuCreateMngService {
public class MenuCreateMngServiceImpl implements MenuCreateMngService {
@Resource
private MenuListMngMapper menuListMngMapper;

@ -31,9 +31,9 @@ import kr.xit.framework.core.message.XitMessageSource;
import kr.xit.framework.core.utils.XitCmmnUtil;
@Service
public class XitMenuListMngServiceImpl implements MenuListMngService {
public class MenuListMngServiceImpl implements MenuListMngService {
private static final Logger logger = LoggerFactory.getLogger(XitMenuListMngServiceImpl.class);
private static final Logger logger = LoggerFactory.getLogger(MenuListMngServiceImpl.class);
@Resource
private MenuListMngMapper menuListMngMapper;

@ -46,7 +46,7 @@ import org.springframework.web.servlet.ModelAndView;
public class MenuCreateMngController {
@Resource
private MenuCreateMngService xitMenuCreateMngService;
private MenuCreateMngService menuCreateMngService;
@Autowired
private XitBeanValidator beanValidator;
@Resource(name = "xitMessageSource")
@ -60,14 +60,6 @@ public class MenuCreateMngController {
*/
@GetMapping(value = "/mngMenuCreateMgtForm")
public void mngMenuCreateMgtForm() {
System.out.println("aaaatest1111111111");
System.out.println("auto merge off");
System.out.println("auto merge off2");
System.out.println("auto merge off2");
System.out.println("auto merge off2");
System.out.println("auto merge off2");
System.out.println("auto merge off2");
}
@ -83,27 +75,26 @@ public class MenuCreateMngController {
@GetMapping(value = "/MenuCreateMng_list.ajax")
public ModelAndView findsMenuCreate(@RequestParam Map<String,Object> paramMap) {
return ResultResponse.of(xitMenuCreateMngService.findList(paramMap, MybatisUtils.getPagingInfo(paramMap)));
return ResultResponse.of(menuCreateMngService.findList(paramMap, MybatisUtils.getPagingInfo(paramMap)));
}
/**
* <pre> : .</pre>
* @param page
* @param tilesDef Type(none: tiles )
* @param model
* @return String
* @author:
* @date: 2020. 3. 26.
*/
@RequestMapping(value = "/MenuCreateMng_{cmd}", method={RequestMethod.GET, RequestMethod.POST})
public String MenuCreateMng_page(@PathVariable String cmd
@RequestMapping(value = "/mngMenuCreateMgt_{cmd}", method={RequestMethod.GET, RequestMethod.POST})
public String mngMenuCreateMgt_page(@PathVariable String cmd
, @RequestParam(value="tilesDef", required=false, defaultValue="") String tilesDef
, @ModelAttribute("menuCreatVO") MenuCreateMngVO vo, ModelMap model) {
switch (cmd) {
case "input": //등록 페이지
List<MenuCreateMngVO> list_menulist = xitMenuCreateMngService.findListOfMenuInfo(vo);
List<MenuCreateMngVO> list_menulist = menuCreateMngService.findListOfMenuInfo(vo);
model.addAttribute("list_menulist", list_menulist);
model.addAttribute("resultVO", vo);
break;
@ -117,7 +108,7 @@ public class MenuCreateMngController {
if(!"".equals(tilesDef))
tilesDef = "."+tilesDef;
return FrameworkConstants.FRAMEWORK_JSP_BASE_PATH +"mng/menu/create/XitMenuCreateMng_"+cmd+tilesDef;
return FrameworkConstants.FRAMEWORK_JSP_BASE_PATH +"mng/menu/mngMenuCreateMgt_"+cmd+tilesDef;
}
@ -146,7 +137,7 @@ public class MenuCreateMngController {
/**
*
*/
String sLocationUrl = "forward:/framework/biz/mng/menu/MenuCreateMng_list.do";
String sLocationUrl = "forward:/framework/biz/mng/menu/mngMenuCreateMgtForm.do";
String message = null;
switch (cmd) {
// case "insert": //등록
@ -155,14 +146,14 @@ public class MenuCreateMngController {
case "inserts": //다건 등록
//처리
try {
xitMenuCreateMngService.addsProc(checkedAuthorForInsert, checkedMenuNoForInsert);
menuCreateMngService.addsProc(checkedAuthorForInsert, checkedMenuNoForInsert);
message = xitMessageSource.getMessage("success.common.insert");
} catch (RuntimeException e) {
message = e.getMessage();
} catch (Exception e) {
message = xitMessageSource.getMessage("fail.common.insert");
}
sLocationUrl = "forward:/framework/biz/mng/menu/MenuCreateMng_input.do?tilesDef=popup";
sLocationUrl = "forward:/framework/biz/mng/menu/mngMenuCreateMgt_input.do?tilesDef=popup";
break;
// case "update": //수정

@ -55,12 +55,12 @@
<script type="text/javaScript">
$(document).ready(function(){
XitMenuCreateMng_list.init();
mngMenuCreateMgtForm.init();
});
/* *******************************
* 메뉴생성 관리 Functions
******************************* */
var XitMenuCreateMng_list = {
var mngMenuCreateMgtForm = {
init : function(){
/* ******************************
@ -114,7 +114,7 @@ var XitMenuCreateMng_list = {
}
return obj;
}
,eventFunction: XitMenuCreateMng_list.fnClickMenuCreateBtn //function(){alert("1234")}
,eventFunction: mngMenuCreateMgtForm.fnClickMenuCreateBtn //function(){alert("1234")}
,eventType : "click"
}
}
@ -196,7 +196,7 @@ var XitMenuCreateMng_list = {
document.frmSearch.submit();
break;
case "popup": //팝업 OPEN
XitMenuCreateMng_list.pagePopup(flag, url, params);
mngMenuCreateMgtForm.pagePopup(flag, url, params);
break;
default:
break;
@ -233,7 +233,7 @@ var XitMenuCreateMng_list = {
var rowData = props.grid.getRow(props.rowKey);
var params = "";
params += "authorCode=" + rowData.authorCode;
XitMenuCreateMng_list.pagePopup('input', "<c:url value='/framework/biz/mng/menu/MenuCreateMng_input.do'/>", params);
mngMenuCreateMgtForm.pagePopup('input', "<c:url value='/framework/biz/mng/menu/mngMenuCreateMgt_input.do'/>", params);
}
}

Loading…
Cancel
Save