엑셀까지 일단 해놓음
This commit is contained in:
@@ -469,7 +469,10 @@ public class QualityController {
|
||||
*/
|
||||
@RequestMapping("/quality/semiProductInspectionList.do")
|
||||
public String semiProductInspectionList(HttpServletRequest request, @RequestParam Map<String, Object> paramMap){
|
||||
String actionType = CommonUtils.checkNull(paramMap.get("actionType"));
|
||||
System.out.println("[DEBUG] semiProductInspectionList actionType: " + actionType);
|
||||
Map code_map = new HashMap();
|
||||
List list = null;
|
||||
try {
|
||||
// 품명(모델명) 드롭박스
|
||||
code_map.put("model_name", commonService.bizMakeOptionList("", (String)paramMap.get("search_model_name"), "quality.getSemiProductModelNameList"));
|
||||
@@ -482,10 +485,16 @@ public class QualityController {
|
||||
// 검사자 드롭박스
|
||||
code_map.put("writer", commonService.bizMakeOptionList("", (String)paramMap.get("search_writer"), "quality.getSemiProductWriterList"));
|
||||
request.setAttribute("code_map", code_map);
|
||||
|
||||
// 엑셀 다운로드
|
||||
if("excel".equals(actionType)){
|
||||
list = commonService.selectList("quality.getSemiProductInspectionListForExcel", request, paramMap);
|
||||
request.setAttribute("LIST", list);
|
||||
}
|
||||
} catch(Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return "/quality/semiProductInspectionList";
|
||||
return "/quality/semiProductInspectionList" + ("excel".equals(actionType) ? "Excel" : "");
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -528,7 +537,7 @@ public class QualityController {
|
||||
}
|
||||
|
||||
/**
|
||||
* 반제품검사 엑셀 다운로드
|
||||
* 반제품검사 엑셀 다운로드 (JSP 방식)
|
||||
*/
|
||||
@RequestMapping("/quality/semiProductInspectionExcelDownload.do")
|
||||
public String semiProductInspectionExcelDownload(HttpServletRequest request, @RequestParam Map<String, Object> paramMap){
|
||||
@@ -537,6 +546,18 @@ public class QualityController {
|
||||
return "/quality/semiProductInspectionExcel";
|
||||
}
|
||||
|
||||
/**
|
||||
* 반제품검사 엑셀 데이터 조회 (AJAX JSON)
|
||||
*/
|
||||
@ResponseBody
|
||||
@RequestMapping("/quality/getSemiProductInspectionListForExcel.do")
|
||||
public Map getSemiProductInspectionListForExcel(HttpServletRequest request, @RequestParam Map<String, Object> paramMap){
|
||||
Map result = new HashMap();
|
||||
List list = service.getSemiProductInspectionListForExcel(paramMap);
|
||||
result.put("list", list);
|
||||
return result;
|
||||
}
|
||||
|
||||
// =====================================================
|
||||
// 고객 CS 관리
|
||||
// =====================================================
|
||||
|
||||
Reference in New Issue
Block a user