feat:교육신청 진행중

This commit is contained in:
hylee 2023-07-07 16:52:40 +09:00
parent 581eb84204
commit 738e218e7f
2 changed files with 32 additions and 7 deletions

View File

@ -1243,6 +1243,7 @@ public class EduRsltMngTngrController {
vEEduAplctVO.setMode(VeConstants.MODE_EXCEL);
List<VEEduExcelVO> list = vEEduMIXService.selectExcelList(vEEduAplctVO);
System.out.println("=============");
List<String> atchFileIdList = new ArrayList<String>();
//zip파일 이름
@ -1258,9 +1259,26 @@ public class EduRsltMngTngrController {
FileVO fileVO = new FileVO();
fileVO.setDownloadType(downloadType);
if(atchFileIdList.size() < 1) {
response.setContentType("application/x-msdownload");
PrintWriter printwriter = response.getWriter();
printwriter.println("<html>");
printwriter.println("<br><br><br><h2>Could not get file name:<br></h2>");
printwriter.println("<br><br><br><center><h3><a href='javascript: history.go(-1)'>Back</a></h3></center>");
printwriter.println("<br><br><br>&copy; webAccess");
printwriter.println("</html>");
printwriter.flush();
printwriter.close();
return ;
}
fileVO.setAtchFileIdList(atchFileIdList);
List<FileVO> fvoList = fileService.selectZipFileList(fileVO); // 해당 기능에 맞게 파일 조회
System.out.println("==========================");
if(fvoList.size() == 0){
response.setContentType("application/x-msdownload");
PrintWriter printwriter = response.getWriter();
@ -1279,12 +1297,14 @@ public class EduRsltMngTngrController {
int size = 1024;
byte[] buf = new byte[size];
String outZipNm = fvoList.get(0).getFileStreCours()+File.separator + orgnZipNm;
// String outZipNm = fvoList.get(0).getFileStreCours()+File.separator + orgnZipNm;
String outZipNm = "/usr/local/tomcat/file/sht/"+File.separator + orgnZipNm;
FileInputStream fis = null;
ZipArchiveOutputStream zos = null;
BufferedInputStream bis = null;
try {
System.out.println("outZipNm : "+ outZipNm);
// Zip 파일생성
zos = new ZipArchiveOutputStream(new BufferedOutputStream(new FileOutputStream(outZipNm)));

View File

@ -650,7 +650,10 @@ var psblFlag = "Y";//학생 신청가능기간여부 체크
}
$("#eduPlace").val(info.eduPlace);
if(isNotEmpty(info.corpsEdu))
$('input[name=corpsEdu][value='+info.corpsEdu+']').prop('checked', true);
if(isNotEmpty(info.broadroomEdu))
$('input[name=broadroomEdu][value='+info.broadroomEdu+']').prop('checked', true);
if(isNotEmpty(info.eduCn)){
@ -672,11 +675,12 @@ var psblFlag = "Y";//학생 신청가능기간여부 체크
if(idx > defaultRow){
// alert(idx);
// alert(defaultRow);
addEduClassCopy('addClassRow');
// addEduClassCopy('addClassRow');
addEduClassCopyTngr('addClassRow');
}
var tr = $('.addClassRow').find('tbody > tr').not('.calendar_wrap tr').eq(idx);
tr.find('input[name=eduHopeDt]').val(dateFormat(value.eduHopeDt, 'date'));
tr.find('input[name=eduHopeDt]').val(dateFormat(value.eduHopeDt.replaceAll('.',''), 'date'));
tr.find('input[name=eduHopeDt]').val(value.eduHopeDt);
tr.find('input[name=strtTm]').val(timeFomat(value.strtTm));
tr.find('input[name=endTm]').val(timeFomat(value.endTm));
@ -684,6 +688,7 @@ var psblFlag = "Y";//학생 신청가능기간여부 체크
tr.find('select[name=divCd]').val(value.divCd);
tr.find('input[name=trgt]').val(value.trgt);
tr.find('input[name=prsnl]').val(value.prsnl);
});
}