|
|
@ -160,34 +160,24 @@ public class AddsNimsController extends ApplicationController {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/dsuseMgtReceipt-info.do", name="신청서 접수 상세")
|
|
|
|
@RequestMapping(value = "/dsuseMgtReceipt-info.do", name="신청서 접수 상세")
|
|
|
|
public ModelAndView getDsuseMgtReceiptInfo(DsuseRsltInfo dsuseReceptInfo, String productList) {
|
|
|
|
public ModelAndView getDsuseMgtReceiptInfo(DsuseRsltInfo dsuseReceptInfo) {
|
|
|
|
ModelAndView mav = new ModelAndView();
|
|
|
|
ModelAndView mav = new ModelAndView();
|
|
|
|
setCmmCode("ADDS04", mav);
|
|
|
|
setCmmCode("ADDS04", mav);
|
|
|
|
|
|
|
|
List<DataObject> fileInfo = new ArrayList<>();
|
|
|
|
List<DataObject> fileInfo = new ArrayList<DataObject>();
|
|
|
|
|
|
|
|
if(fileInfo == null) { fileInfo = new ArrayList<DataObject>();}
|
|
|
|
|
|
|
|
fileInfo = fileInfo.stream()
|
|
|
|
|
|
|
|
.filter((item) -> item.string("USE_YN").equals("Y"))
|
|
|
|
|
|
|
|
.sorted((item1, item2) -> item1.string("SUB_TYPE").compareTo(item2.string("SUB_TYPE")))
|
|
|
|
|
|
|
|
.toList();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(!isEmpty(dsuseReceptInfo) && !isEmpty(dsuseReceptInfo.getDscdmngId())){
|
|
|
|
if(!isEmpty(dsuseReceptInfo) && !isEmpty(dsuseReceptInfo.getDscdmngId())){
|
|
|
|
mav.setViewName("adds/nims/dsuseMgtReceipt-edit");
|
|
|
|
|
|
|
|
mav.addObject("dsuseReceptInfo", toJson(dsuseReceptInfo));
|
|
|
|
mav.addObject("dsuseReceptInfo", toJson(dsuseReceptInfo));
|
|
|
|
|
|
|
|
mav.addObject("dsuseReceptDtlInfo", toJson(dsuseMgtReceiptService.getDsuseMgtDetailList(dsuseReceptInfo.getDscdmngId())));
|
|
|
|
|
|
|
|
|
|
|
|
FileQuery fileQuery = new FileQuery().setInfoType("100").setInfoKeys(dsuseReceptInfo.getDscdmngId()).setOrderBy("SUB_TYPE");
|
|
|
|
FileQuery fileQuery = new FileQuery().setInfoType("100").setInfoKeys(dsuseReceptInfo.getDscdmngId()).setOrderBy("SUB_TYPE");
|
|
|
|
fileInfo = fileService.getFileList(fileQuery);
|
|
|
|
fileInfo = fileService.getFileList(fileQuery);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mav.setViewName("adds/nims/dsuseMgtReceipt-edit");
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
|
|
|
|
mav.addObject("dsuseReceptDtlInfo", toJson(new ArrayList<DsuseReceiptDtl>()));
|
|
|
|
mav.setViewName("adds/nims/dsuseMgtReceipt-info");
|
|
|
|
mav.setViewName("adds/nims/dsuseMgtReceipt-info");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if(productList != null) {
|
|
|
|
|
|
|
|
List<DsuseReceiptDtl> DsuseReceiptDtls = fromJson(productList, new TypeReference<List<DsuseReceiptDtl>>() {});
|
|
|
|
|
|
|
|
mav.addObject("dsuseReceptDtlInfo", toJson(DsuseReceiptDtls));
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
mav.addObject("dsuseReceptDtlInfo", toJson(new ArrayList<DsuseReceiptDtl>()));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mav.addObject("fileInfo", toJson(fileInfo));
|
|
|
|
mav.addObject("fileInfo", toJson(fileInfo));
|
|
|
|
return mav.addObject("pageName", "dsuseMgtReceiptInfo"); // View(jsp)에서 사용할 id 뒤에 붙일 suffix
|
|
|
|
return mav.addObject("pageName", "dsuseMgtReceiptInfo"); // View(jsp)에서 사용할 id 뒤에 붙일 suffix
|
|
|
|
}
|
|
|
|
}
|
|
|
|