E-BOM 등록 수정중
This commit is contained in:
@@ -1323,6 +1323,63 @@ public class PartMngController {
|
||||
return "/ajax/ajaxResult";
|
||||
}
|
||||
|
||||
/**
|
||||
* 상태변경 팝업
|
||||
* @param request
|
||||
* @param paramMap
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping("/partMng/structureStatusChangePopup.do")
|
||||
public String structureStatusChangePopup(HttpServletRequest request, @RequestParam Map paramMap){
|
||||
Map code_map = new HashMap();
|
||||
Map structureInfo = new HashMap();
|
||||
|
||||
try{
|
||||
// 구조 정보 조회
|
||||
structureInfo = partMngService.getStructureInfo(paramMap);
|
||||
|
||||
// 제품구분 코드 목록 (structureList와 동일하게)
|
||||
code_map.put("product_cd", commonService.bizMakeOptionList("0000001", CommonUtils.checkNull(structureInfo.get("PRODUCT_CD")), "common.getCodeselect"));
|
||||
|
||||
request.setAttribute("STRUCTURE_INFO", structureInfo);
|
||||
request.setAttribute("code_map", code_map);
|
||||
}catch(Exception e){
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
return "/partMng/structureStatusChangePopup";
|
||||
}
|
||||
|
||||
/**
|
||||
* 상태변경 저장
|
||||
* @param request
|
||||
* @param paramMap
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping("/partMng/updateStructureStatus.do")
|
||||
public String updateStructureStatus(HttpServletRequest request, @RequestParam Map<String, Object> paramMap){
|
||||
Map<String, Object> resultMap = new HashMap<>();
|
||||
|
||||
try{
|
||||
boolean result = partMngService.updateStructureStatus(request, paramMap);
|
||||
|
||||
if(result){
|
||||
resultMap.put("result", "success");
|
||||
resultMap.put("msg", "저장되었습니다.");
|
||||
}else{
|
||||
resultMap.put("result", "fail");
|
||||
resultMap.put("msg", "저장에 실패했습니다.");
|
||||
}
|
||||
}catch(Exception e){
|
||||
e.printStackTrace();
|
||||
resultMap.put("result", "error");
|
||||
resultMap.put("msg", "오류가 발생했습니다.");
|
||||
}
|
||||
|
||||
request.setAttribute("RESULT", CommonUtils.getJsonMap(resultMap));
|
||||
return "/ajax/ajaxResult";
|
||||
}
|
||||
|
||||
/**
|
||||
* 제품 사양 리스트
|
||||
* @param request
|
||||
|
||||
Reference in New Issue
Block a user