2024-02-01 15:00 성인결과보고 운영자 삭제 추가
This commit is contained in:
parent
fc2ecd84e0
commit
845620e121
@ -27,7 +27,10 @@ public interface VEEduRsltRprtService {
|
||||
//결과보고 첨부파일 삭제 처리
|
||||
public void deleteRsltRprtFileInf(FileVO fileVO, VEEduRprtVO vEEduRprtVO) throws Exception;
|
||||
|
||||
//결과보고 첨부파일 삭제 처리 - 2024-02-01 제작
|
||||
//결과보고 첨부파일 삭제 처리(청소년) - 2024-02-01 제작(
|
||||
public void deleteNewRsltRprtFileInf(FileVO fileVO, VEEduRprtVO vEEduRprtVO) throws Exception;
|
||||
|
||||
|
||||
//결과보고 첨부파일 삭제 처리(성인) - 2024-02-01 제작(
|
||||
public void deleteNewRsltRprtAdultFileInf(FileVO fileVO, VEEduRprtVO vEEduRprtVO) throws Exception;
|
||||
|
||||
}
|
||||
|
||||
@ -5,7 +5,6 @@ import java.util.List;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import egovframework.rte.psl.dataaccess.EgovAbstractDAO;
|
||||
import kcc.ve.instr.tngrVisitEdu.eduInfo.service.VEEduOprtnVO;
|
||||
import kcc.ve.instr.tngrVisitEdu.rprtInfo.service.VEEduRprtVO;
|
||||
|
||||
@Repository("vEEduRsltRprtDAO")
|
||||
@ -49,6 +48,10 @@ public class VEEduRsltRprtDAO extends EgovAbstractDAO {
|
||||
public int delete(VEEduRprtVO paramVO) throws Exception {
|
||||
return delete("VEEduRsltRprtDAO.delete", paramVO);
|
||||
}
|
||||
|
||||
public int deleteVEA(VEEduRprtVO paramVO) throws Exception {
|
||||
return delete("VEEduRsltRprtDAO.deleteVEA", paramVO);
|
||||
}
|
||||
|
||||
//L
|
||||
public List<VEEduRprtVO> selectList(VEEduRprtVO paramVO) throws Exception {
|
||||
|
||||
@ -69,7 +69,7 @@ public class VEEduRsltRprtServiceImpl implements VEEduRsltRprtService {
|
||||
fileMngDAO.deleteFileInf(fileVO); //DB삭제
|
||||
}
|
||||
|
||||
//결과보고 컬럼 삭제 하고 파일도 삭제 처리함
|
||||
//결과보고 컬럼 삭제 하고 파일도 삭제 처리함(청소년)
|
||||
public void deleteNewRsltRprtFileInf(FileVO fileVO, VEEduRprtVO vEEduRprtVO) throws Exception {
|
||||
//결과 보고 첨부파일 ID 삭제 처리
|
||||
//vEEduRsltRprtDAO.updateNullFile(vEEduRprtVO);
|
||||
@ -95,4 +95,29 @@ public class VEEduRsltRprtServiceImpl implements VEEduRsltRprtService {
|
||||
//fileMngDAO.deleteFileInfs(fileVO); //DB삭제
|
||||
}
|
||||
|
||||
//결과보고 컬럼 삭제 하고 파일도 삭제 처리함(성인)
|
||||
public void deleteNewRsltRprtAdultFileInf(FileVO fileVO, VEEduRprtVO vEEduRprtVO) throws Exception {
|
||||
//결과 보고 첨부파일 ID 삭제 처리
|
||||
//vEEduRsltRprtDAO.updateNullFile(vEEduRprtVO);
|
||||
vEEduRsltRprtDAO.deleteVEA(vEEduRprtVO);
|
||||
/*
|
||||
* "atchFileId" : p_atchFileId
|
||||
, "eduAplctOrd" : p_eduAplctOrd
|
||||
, "eduChasiOrd" : p_eduChasiOrd
|
||||
, "rprtFileType" : "rprt"/
|
||||
*/
|
||||
//파일 삭제처리
|
||||
List<FileVO> returnFileVO = null;
|
||||
returnFileVO = fileMngDAO.selectFileInfs(fileVO);
|
||||
if(returnFileVO !=null) {
|
||||
for(int i=0;i<returnFileVO.size();i++) {
|
||||
File delFile = new File(returnFileVO.get(i).getFileStreCours()+returnFileVO.get(i).getStreFileNm());
|
||||
delFile.delete();
|
||||
}
|
||||
|
||||
fileMngDAO.deleteFileInfs(returnFileVO); //DB삭제
|
||||
}
|
||||
|
||||
//fileMngDAO.deleteFileInfs(fileVO); //DB삭제
|
||||
}
|
||||
}
|
||||
|
||||
@ -568,7 +568,13 @@ public class OprtnStateMngController {
|
||||
|
||||
vEEduRprtVO.setLastUpdusrId(loginVO.getUniqId());
|
||||
try {
|
||||
vEEduRsltRprtService.deleteNewRsltRprtFileInf(fileVO, vEEduRprtVO); /* DB & 물리파일 삭제 */
|
||||
if ("rprtTngr".equals(vEEduRprtVO.getRprtFileType())) { //청소년 결과 보고서 삭제
|
||||
vEEduRsltRprtService.deleteNewRsltRprtFileInf(fileVO, vEEduRprtVO); /* DB & 물리파일 삭제 VE_edu_RSLT_RPRT */
|
||||
|
||||
}else if ("rprtAdult".equals(vEEduRprtVO.getRprtFileType())) { //성인 결과 보고서 삭제
|
||||
vEEduRsltRprtService.deleteNewRsltRprtAdultFileInf(fileVO, vEEduRprtVO); /* DB & 물리파일 삭제 VEA_RSLT_RPRT */
|
||||
}
|
||||
|
||||
modelAndView.addObject("result", "success");
|
||||
}catch (Exception e) {
|
||||
modelAndView.addObject("result", "fail");
|
||||
|
||||
@ -187,7 +187,7 @@
|
||||
AND edu_chasi_ord = #eduChasiOrd#
|
||||
</update>
|
||||
|
||||
<!-- 강사 정보 D -->
|
||||
<!-- 결과보고서 삭제 D (ve_edu_rslt_rprt)-->
|
||||
<delete id="VEEduRsltRprtDAO.delete" parameterClass="VEEduRprtVO">
|
||||
DELETE FROM
|
||||
<include refid="VEEduRsltRprtDAO.table_name"/>
|
||||
@ -197,6 +197,15 @@
|
||||
|
||||
</delete>
|
||||
|
||||
<!-- 결과보고서 삭제 D (ve_edu_rslt_rprt)-->
|
||||
<delete id="VEEduRsltRprtDAO.deleteVEA" parameterClass="VEEduRprtVO">
|
||||
DELETE FROM
|
||||
VEA_RSLT_RPRT
|
||||
WHERE
|
||||
edu_aplct_ord = #eduAplctOrd#
|
||||
|
||||
</delete>
|
||||
|
||||
<!-- 강사 정보 L -->
|
||||
<select id="VEEduRsltRprtDAO.selectList" parameterClass="VEEduRprtVO" resultClass="VEEduRprtVO">
|
||||
/* VEEduRsltRprtDAO.selectList */
|
||||
|
||||
@ -187,6 +187,55 @@
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function fncAttachFileCreate(){
|
||||
|
||||
alert("구현해야 합니다.");
|
||||
}
|
||||
|
||||
// 결과보고서 삭제
|
||||
function fncAttachFileDelete(
|
||||
p_atchFileId
|
||||
, p_eduAplctOrd
|
||||
, p_eduChasiOrd
|
||||
//, p_rprtFileType
|
||||
) { //메뉴생성 화면 호출
|
||||
|
||||
if (!confirm("삭제 하시겠습니까?\n(삭제 후 복구가 불가능합니다.)")) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "${pageContext.request.contextPath}/kccadr/oprtn/cpyrgExprnClsrm/rsltRprtfileDeleteNewAjax.do",
|
||||
|
||||
//data:{ "atchFileId" : itemId , "fileSn" : fileSn, "eduAplctOrd" : "${eduAplctOrd}", "rprtFileType" : rprtFileType},
|
||||
|
||||
data: {
|
||||
"atchFileId" : p_atchFileId
|
||||
, "eduAplctOrd" : p_eduAplctOrd
|
||||
, "eduChasiOrd" : p_eduChasiOrd
|
||||
, "rprtFileType" : "rprtAdult"
|
||||
|
||||
},
|
||||
dataType:'json',
|
||||
async: true, // 동기
|
||||
success: function (data, status) {
|
||||
if (data.result == "success") {
|
||||
//alert(JSON.stringify(data.fileList));
|
||||
//setJsonListShow(data.fileList);
|
||||
alert("삭제성공");
|
||||
location.reload();
|
||||
} else {
|
||||
alert("Msg : " + data.msg);
|
||||
}
|
||||
},
|
||||
error : function(xhr, status, error) {
|
||||
alert("Err : " + JSON.stringify(status));
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
</head>
|
||||
@ -438,21 +487,34 @@
|
||||
</c:import>
|
||||
</td>
|
||||
</tr>
|
||||
<c:if test="${!empty info.veaRsltRprtOrd }">
|
||||
|
||||
<tr>
|
||||
<th scope="row"><p>결과보고</p></th>
|
||||
<td>
|
||||
<c:import url="/cmm/fms/selectOffeduFile.do" charEncoding="utf-8">
|
||||
<c:param name="param_atchFileId" value="${info.atchFileId}" />
|
||||
<c:param name="type" value="rslt_atch_file_id" />
|
||||
<c:param name="table" value="ve_edu_aplct" />
|
||||
<c:param name="deleteFlag" value="Y" />
|
||||
<c:param name="eduAplctOrd" value="${vEEduAplctVO.eduAplctOrd}" />
|
||||
</c:import>
|
||||
<button class="btn_type06" onclick="fncRsltRprtInfo(); return false;" >결과보고보기</button>
|
||||
<%-- <c:import url="/cmm/fms/selectOffeduFile.do" charEncoding="utf-8"> --%>
|
||||
<%-- <c:param name="param_atchFileId" value="${info.atchFileId}" /> --%>
|
||||
<%-- <c:param name="type" value="rslt_atch_file_id" /> --%>
|
||||
<%-- <c:param name="table" value="ve_edu_aplct" /> --%>
|
||||
<%-- <c:param name="deleteFlag" value="Y" /> --%>
|
||||
<%-- <c:param name="eduAplctOrd" value="${vEEduAplctVO.eduAplctOrd}" /> --%>
|
||||
<%-- </c:import> --%>
|
||||
<c:if test="${!empty info.veaRsltRprtOrd }">
|
||||
<button class="btn_type06" onclick="fncRsltRprtInfo(); return false;" >결과보고보기</button>
|
||||
</c:if>
|
||||
|
||||
<!-- 결과보고서 삭제 -->
|
||||
<c:if test="${!empty info.veaRsltRprtOrd}">
|
||||
<button type="button" class="btn_type06" onclick="fncAttachFileDelete('${info.atchFileId}', '${info.eduAplctOrd}', '${info.eduChasiOrd}')">결과보고서 삭제</button>
|
||||
</c:if>
|
||||
|
||||
<!-- 결과보고서 등록 -->
|
||||
<c:if test="${empty info.veaRsltRprtOrd}">
|
||||
<button type="button" class="btn_type06" onclick="fncAttachFileCreate('${info.atchFileId}', '${info.eduAplctOrd}', '${info.eduChasiOrd}')">결과보고서 등록</button>
|
||||
</c:if>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</c:if>
|
||||
|
||||
<tr>
|
||||
<th scope="row"><p>강사료</p></th>
|
||||
<td>
|
||||
|
||||
@ -173,7 +173,7 @@ function replyCalculation(){
|
||||
"atchFileId" : p_atchFileId
|
||||
, "eduAplctOrd" : p_eduAplctOrd
|
||||
, "eduChasiOrd" : p_eduChasiOrd
|
||||
, "rprtFileType" : "rprt"
|
||||
, "rprtFileType" : "rprtTngr"
|
||||
|
||||
},
|
||||
dataType:'json',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user