이지우 - 성인강사 > 기반,기소 강의내역 상세에 강의계획서 추가 및 관리자 상세화면에 강의계획서 다운로드 추가

This commit is contained in:
jiwoo 2023-12-28 16:45:24 +09:00
parent e66e973f6b
commit e0ce6f2dd4
13 changed files with 107 additions and 12 deletions

View File

@ -427,6 +427,7 @@ public class InnorixFileServiceImpl extends EgovAbstractServiceImpl implements I
vEAPrcsAplctPrdInstrAsgnmVO.setLastUpdusrId(adrInnorixFileVO.getUniqId()); vEAPrcsAplctPrdInstrAsgnmVO.setLastUpdusrId(adrInnorixFileVO.getUniqId());
vEAPrcsAplctPrdInstrAsgnmVO.setPrcsAplctPrdOrd(adrInnorixFileVO.getPrcsAplctPrdOrd()); vEAPrcsAplctPrdInstrAsgnmVO.setPrcsAplctPrdOrd(adrInnorixFileVO.getPrcsAplctPrdOrd());
vEAPrcsAplctPrdInstrAsgnmVO.setUserId(adrInnorixFileVO.getUniqId());
//저장 //저장
vEAPrcsAplctPrdInstrAsgnmService.updatLctrPlanAtchFileId(vEAPrcsAplctPrdInstrAsgnmVO); vEAPrcsAplctPrdInstrAsgnmService.updatLctrPlanAtchFileId(vEAPrcsAplctPrdInstrAsgnmVO);

View File

@ -198,8 +198,14 @@ public class VEFndtnAsgnmController {
List<VEAPrcsAplctPrdInstrAsgnmVO> instrAsgnmList = egovCryptoUtil.decryptVEAPrcsAplctPrdInstrAsgnmVOList(vEAPrcsAplctPrdInstrAsgnmList); List<VEAPrcsAplctPrdInstrAsgnmVO> instrAsgnmList = egovCryptoUtil.decryptVEAPrcsAplctPrdInstrAsgnmVOList(vEAPrcsAplctPrdInstrAsgnmList);
model.addAttribute("instrAsgnmList", instrAsgnmList); model.addAttribute("instrAsgnmList", instrAsgnmList);
} }
//강사 강의계획서 정보
vEPrcsDetailVO.setUserId(loginVO.getUniqId());
VEAPrcsAplctPrdInstrAsgnmVO vEPrcsInstrAsgnmDetail = vEAPrcsAplctPrdInstrAsgnmService.selectPrcsInstrAsgnmDetail(vEPrcsDetailVO);
model.addAttribute("instrInfo", vEPrcsInstrAsgnmDetail);
return "/web/ve/instr/fndtnVisitEdu/asgnmInfo/instrAsgnmDetail"; return "/web/ve/instr/fndtnVisitEdu/asgnmInfo/instrAsgnmDetail";
} }

View File

@ -200,7 +200,10 @@ public class VESspnIdtmtAsgnmController {
model.addAttribute("instrAsgnmList", instrAsgnmList); model.addAttribute("instrAsgnmList", instrAsgnmList);
} }
//강사 강의계획서 정보
vEPrcsDetailVO.setUserId(loginVO.getUniqId());
VEAPrcsAplctPrdInstrAsgnmVO vEPrcsInstrAsgnmDetail = vEAPrcsAplctPrdInstrAsgnmService.selectPrcsInstrAsgnmDetail(vEPrcsDetailVO);
model.addAttribute("instrInfo", vEPrcsInstrAsgnmDetail);
return "/web/ve/instr/sspnIdtmtVisitEdu/asgnmInfo/instrAsgnmDetail"; return "/web/ve/instr/sspnIdtmtVisitEdu/asgnmInfo/instrAsgnmDetail";
} }

View File

@ -21,4 +21,6 @@ public interface VEAPrcsAplctPrdInstrAsgnmService {
void updatLctrPlanAtchFileId(VEAPrcsAplctPrdInstrAsgnmVO vEAPrcsAplctPrdInstrAsgnmVO); void updatLctrPlanAtchFileId(VEAPrcsAplctPrdInstrAsgnmVO vEAPrcsAplctPrdInstrAsgnmVO);
void updateEduStateCdListAjax(VEPrcsDetailVO vEPrcsDetailVO); void updateEduStateCdListAjax(VEPrcsDetailVO vEPrcsDetailVO);
VEAPrcsAplctPrdInstrAsgnmVO selectPrcsInstrAsgnmDetail(VEPrcsDetailVO vEDetailVO);
} }

View File

@ -52,4 +52,7 @@ public class VEAPrcsAplctPrdInstrAsgnmDAO extends EgovAbstractDAO {
update("VEAPrcsAplctPrdInstrAsgnmDAO.updateEduStateCdListAjax", vEPrcsDetailVO); update("VEAPrcsAplctPrdInstrAsgnmDAO.updateEduStateCdListAjax", vEPrcsDetailVO);
} }
public VEAPrcsAplctPrdInstrAsgnmVO selectPrcsInstrAsgnmDetail(VEPrcsDetailVO vEDetailVO) {
return (VEAPrcsAplctPrdInstrAsgnmVO) select("VEAPrcsAplctPrdInstrAsgnmDAO.selectPrcsInstrAsgnmDetail", vEDetailVO);
}
} }

View File

@ -75,4 +75,10 @@ public class VEAPrcsAplctPrdInstrAsgnmServiceImpl implements VEAPrcsAplctPrdInst
public void updateEduStateCdListAjax(VEPrcsDetailVO vEPrcsDetailVO) { public void updateEduStateCdListAjax(VEPrcsDetailVO vEPrcsDetailVO) {
vEAPrcsAplctPrdInstrAsgnmDAO.updateEduStateCdListAjax(vEPrcsDetailVO); vEAPrcsAplctPrdInstrAsgnmDAO.updateEduStateCdListAjax(vEPrcsDetailVO);
} }
@Override
public VEAPrcsAplctPrdInstrAsgnmVO selectPrcsInstrAsgnmDetail(VEPrcsDetailVO vEDetailVO) {
return vEAPrcsAplctPrdInstrAsgnmDAO.selectPrcsInstrAsgnmDetail(vEDetailVO);
}
} }

View File

@ -186,8 +186,28 @@
, last_updusr_id = #lastUpdusrId# , last_updusr_id = #lastUpdusrId#
, last_updt_pnttm = sysdate , last_updt_pnttm = sysdate
WHERE prcs_aplct_prd_ord = #prcsAplctPrdOrd# WHERE prcs_aplct_prd_ord = #prcsAplctPrdOrd#
AND user_id = #userId#
</update> </update>
<select id="VEAPrcsAplctPrdInstrAsgnmDAO.selectPrcsInstrAsgnmDetail" parameterClass="VEPrcsDetailVO" resultClass="VEAPrcsAplctPrdInstrAsgnmVO">
/* VEAPrcsAplctPrdInstrAsgnmDAO.selectPrcsInstrAsgnmDetail*/
SELECT
<include refid="VEAPrcsAplctPrdInstrAsgnmDAO.select_column_name"/>
, vid.instr_nm as instrNm
, vid.phone
FROM
<include refid="VEAPrcsAplctPrdInstrAsgnmDAO.table_name"/> a
LEFT JOIN ve_instr_detail vid
ON a.user_id = vid.user_id
WHERE 1=1
AND a.prcs_aplct_prd_ord = #prcsAplctPrdOrd#
AND vid.aprvl_cd ='20' <!-- 변경 승인 -->
AND vid.instr_div ='20' <!-- 성인강사 -->
AND vid.use_yn ='Y'
<isNotEmpty prepend="AND" property="userId">
a.user_id = #userId#
</isNotEmpty>
</select>
</sqlMap> </sqlMap>

View File

@ -426,6 +426,7 @@
<col style="width: 210px;"><!-- name --> <col style="width: 210px;"><!-- name -->
<col style="width: auto;"><!-- 제출일 --> <col style="width: auto;"><!-- 제출일 -->
<col style="width: 210px;"><!-- 신청상태 --> <col style="width: 210px;"><!-- 신청상태 -->
<col style="width: 410px;"><!-- 강의계획서 -->
<col style="width: 210px;"><!-- 신청상태 --> <col style="width: 210px;"><!-- 신청상태 -->
</colgroup> </colgroup>
<thead> <thead>
@ -433,6 +434,7 @@
<th>강사명</th> <th>강사명</th>
<th>연락처</th> <th>연락처</th>
<th>확정여부</th> <th>확정여부</th>
<th>강의계획서</th>
<th>삭제</th> <th>삭제</th>
</tr> </tr>
</thead> </thead>
@ -450,6 +452,11 @@
<td> <td>
<ve:code codeId="VE0019" code="${list.asgnmAprvlCd}"/> <ve:code codeId="VE0019" code="${list.asgnmAprvlCd}"/>
</td> </td>
<td>
<c:import url="/cmm/fms/selectBBSFileInfs.do" charEncoding="utf-8">
<c:param name="param_atchFileId" value="${list.lctrPlanAtchFileId}" />
</c:import>
</td>
<td> <td>
<button type="button" class="btn_type01" onclick="fn_delInstr('<c:out value="${list.userId }" />')">삭제</button> <button type="button" class="btn_type01" onclick="fn_delInstr('<c:out value="${list.userId }" />')">삭제</button>
</td> </td>

View File

@ -414,6 +414,7 @@
<col style="width: 210px;"><!-- name --> <col style="width: 210px;"><!-- name -->
<col style="width: auto;"><!-- 제출일 --> <col style="width: auto;"><!-- 제출일 -->
<col style="width: 210px;"><!-- 신청상태 --> <col style="width: 210px;"><!-- 신청상태 -->
<col style="width: 410px;"><!-- 강의계획서 -->
<col style="width: 210px;"><!-- 신청상태 --> <col style="width: 210px;"><!-- 신청상태 -->
</colgroup> </colgroup>
<thead> <thead>
@ -421,6 +422,7 @@
<th>강사명</th> <th>강사명</th>
<th>연락처</th> <th>연락처</th>
<th>확정여부</th> <th>확정여부</th>
<th>강의계획서</th>
<th>삭제</th> <th>삭제</th>
</tr> </tr>
</thead> </thead>
@ -438,6 +440,11 @@
<td> <td>
<ve:code codeId="VE0019" code="${list.asgnmAprvlCd}"/> <ve:code codeId="VE0019" code="${list.asgnmAprvlCd}"/>
</td> </td>
<td>
<c:import url="/cmm/fms/selectBBSFileInfs.do" charEncoding="utf-8">
<c:param name="param_atchFileId" value="${list.lctrPlanAtchFileId}" />
</c:import>
</td>
<td> <td>
<button type="button" class="btn_type01" onclick="fn_delInstr('<c:out value="${list.userId }" />')">삭제</button> <button type="button" class="btn_type01" onclick="fn_delInstr('<c:out value="${list.userId }" />')">삭제</button>
</td> </td>

View File

@ -422,6 +422,7 @@
<col style="width: 210px;"><!-- name --> <col style="width: 210px;"><!-- name -->
<col style="width: auto;"><!-- 제출일 --> <col style="width: auto;"><!-- 제출일 -->
<col style="width: 210px;"><!-- 신청상태 --> <col style="width: 210px;"><!-- 신청상태 -->
<col style="width: 410px;"><!-- 강의계획서 -->
<col style="width: 210px;"><!-- 신청상태 --> <col style="width: 210px;"><!-- 신청상태 -->
</colgroup> </colgroup>
<thead> <thead>
@ -429,6 +430,7 @@
<th>강사명</th> <th>강사명</th>
<th>연락처</th> <th>연락처</th>
<th>확정여부</th> <th>확정여부</th>
<th>강의계획서</th>
<th>삭제</th> <th>삭제</th>
</tr> </tr>
</thead> </thead>
@ -446,6 +448,11 @@
<td> <td>
<ve:code codeId="VE0019" code="${list.asgnmAprvlCd}"/> <ve:code codeId="VE0019" code="${list.asgnmAprvlCd}"/>
</td> </td>
<td>
<c:import url="/cmm/fms/selectBBSFileInfs.do" charEncoding="utf-8">
<c:param name="param_atchFileId" value="${list.lctrPlanAtchFileId}" />
</c:import>
</td>
<td> <td>
<button type="button" class="btn_type01" onclick="fn_delInstr('<c:out value="${list.userId }" />')">삭제</button> <button type="button" class="btn_type01" onclick="fn_delInstr('<c:out value="${list.userId }" />')">삭제</button>
</td> </td>

View File

@ -386,6 +386,7 @@
<col style="width: 210px;"><!-- name --> <col style="width: 210px;"><!-- name -->
<col style="width: auto;"><!-- 제출일 --> <col style="width: auto;"><!-- 제출일 -->
<col style="width: 210px;"><!-- 신청상태 --> <col style="width: 210px;"><!-- 신청상태 -->
<col style="width: 410px;"><!-- 강의계획서 -->
<col style="width: 210px;"><!-- 신청상태 --> <col style="width: 210px;"><!-- 신청상태 -->
</colgroup> </colgroup>
<thead> <thead>
@ -393,6 +394,7 @@
<th>강사명</th> <th>강사명</th>
<th>연락처</th> <th>연락처</th>
<th>확정여부</th> <th>확정여부</th>
<th>강의계획서</th>
<th>삭제</th> <th>삭제</th>
</tr> </tr>
</thead> </thead>
@ -410,6 +412,11 @@
<td> <td>
<ve:code codeId="VE0019" code="${list.asgnmAprvlCd}"/> <ve:code codeId="VE0019" code="${list.asgnmAprvlCd}"/>
</td> </td>
<td>
<c:import url="/cmm/fms/selectBBSFileInfs.do" charEncoding="utf-8">
<c:param name="param_atchFileId" value="${list.lctrPlanAtchFileId}" />
</c:import>
</td>
<td> <td>
<button type="button" class="btn_type01" onclick="fn_delInstr('<c:out value="${list.userId }" />')">삭제</button> <button type="button" class="btn_type01" onclick="fn_delInstr('<c:out value="${list.userId }" />')">삭제</button>
</td> </td>

View File

@ -89,7 +89,7 @@
} }
if(fn_innorixCmmAjax(sendData, url) == "OK") if(fn_innorixCmmAjax(sendData, url) == "OK")
{ {
alert("업로드 완료"); location.reload();
} }
}); });
}); });
@ -272,7 +272,7 @@
<tr class="trLength4"> <tr class="trLength4">
<th scope="row"><p>강의계획서</p></th> <th scope="row"><p>강의계획서</p></th>
<td> <td>
<c:if test="${info.lctrPlanRsltAtchFileId == null || info.lctrPlanRsltAtchFileId == ''}"> <c:if test="${instrInfo.lctrPlanAtchFileId == null || instrInfo.lctrPlanAtchFileId == ''}">
<div class="btn_wrap"> <div class="btn_wrap">
<button type="button" onclick="control1.openFileDialogSingle();" class="btnType01 lctrPlan_btn_add_file">강의계획서 파일찾기</button> <button type="button" onclick="control1.openFileDialogSingle();" class="btnType01 lctrPlan_btn_add_file">강의계획서 파일찾기</button>
<button type="button" onclick="fileSave();" class="btnType01 lctrPlan_btn_add_file">제출</button> <button type="button" onclick="fileSave();" class="btnType01 lctrPlan_btn_add_file">제출</button>
@ -288,9 +288,9 @@
</div> </div>
</div> </div>
</c:if> </c:if>
<c:if test="${info.lctrPlanRsltAtchFileId != null && info.lctrPlanRsltAtchFileId != ''}"> <c:if test="${instrInfo.lctrPlanAtchFileId != null && instrInfo.lctrPlanAtchFileId != ''}">
<c:import url="/cmm/fms/selectScholSealInfs.do" charEncoding="utf-8"> <c:import url="/cmm/fms/selectScholSealInfs.do" charEncoding="utf-8">
<c:param name="param_atchFileId" value="${info.lctrPlanRsltAtchFileId}" /> <c:param name="param_atchFileId" value="${instrInfo.lctrPlanAtchFileId}" />
</c:import> </c:import>
</c:if> </c:if>
</td> </td>

View File

@ -89,7 +89,7 @@
} }
if(fn_innorixCmmAjax(sendData, url) == "OK") if(fn_innorixCmmAjax(sendData, url) == "OK")
{ {
alert("업로드 완료"); location.reload();
} }
}); });
}); });
@ -255,6 +255,32 @@
</th> </th>
<td colspan="3"><ve:code codeId="VEA004" code="${info.ddlnCd}"/></td> <td colspan="3"><ve:code codeId="VEA004" code="${info.ddlnCd}"/></td>
</tr> </tr>
<tr class="trLength4">
<th scope="row"><p>강의계획서</p></th>
<td>
<c:if test="${instrInfo.lctrPlanAtchFileId == null || instrInfo.lctrPlanAtchFileId == ''}">
<div class="btn_wrap">
<button type="button" onclick="control1.openFileDialogSingle();" class="btnType01 lctrPlan_btn_add_file">강의계획서 파일찾기</button>
<button type="button" onclick="fileSave();" class="btnType01 lctrPlan_btn_add_file">제출</button>
</div>
<div id="lctrPlan"></div><br/>
<div class="file_cf">
<div class="cf_left">
<p>최대 <span class="lctrPlan_limitFileCount">1</span>개</p>
</div>
<div class="cf_right">
<p>등록된 파일 <span class="upload_number lctrPlan_totalfileCount">0</span>개</p>
<span class="upload_number lctrPlan_totalfileSize">0MB</span>
</div>
</div>
</c:if>
<c:if test="${instrInfo.lctrPlanAtchFileId != null && instrInfo.lctrPlanAtchFileId != ''}">
<c:import url="/cmm/fms/selectScholSealInfs.do" charEncoding="utf-8">
<c:param name="param_atchFileId" value="${instrInfo.lctrPlanAtchFileId}" />
</c:import>
</c:if>
</td>
</tr>
</tbody> </tbody>
</table> </table>
</div> </div>