외사정보관리~방첩공작 권한별 버튼 점검, 수정.

master
강석 최 2023-03-14 18:04:22 +09:00
parent 2107603416
commit a85d179341
7 changed files with 27 additions and 19 deletions

View File

@ -42,10 +42,10 @@ public class CounterIntelligenceController {
mav.addObject("accessAuth", accessAuth);
if(accessAuth.equals("ACC003")){
mav.addObject("downOrganCdList", loginUser.getDownOrganCdList());
ciWork.setDownOrganCdList(loginUser.getDownOrganCdList());
}else{
ciWork.setWrtUserSeq(loginUser.getUserSeq());
ciWork.setWrtOrgan(loginUser.getOgCd());
}
ciWork.setQueryInfo();
mav.addObject("ciWorkList", ciService.selectCounterIntelligenceWorkList(ciWork));
ciWork.setContentCnt(ciService.selectCounterIntelligenceWorkCnt(ciWork));

View File

@ -70,6 +70,12 @@
and a.wrt_dt <= #{endDate}::date+1
</if>
</if>
<if test="downOrganCdList != null">
and a.wrt_organ in
<foreach collection="downOrganCdList" item="organCd" separator="," open="(" close=")">
#{organCd}
</foreach>
</if>
</where>
</sql>
<select id="selectCounterIntelligenceWorkList" parameterType="CounterIntelligenceWork" resultType="CounterIntelligenceWork">

View File

@ -154,9 +154,10 @@ function saveFaRpt(faRptState){
contentType: false,
success : function(result) {
alert("송신 되었습니다.");
contentFade("out");
location.reload();
/*contentFade("out");
$("#faRptEditModal").modal('hide');
getFaRptViewModal(result);
getFaRptViewModal(result);*/
},
error : function(xhr, status) {
alert("송신에 실패하였습니다.")

View File

@ -158,9 +158,10 @@ function saveBoardInvestigation(contentState){
contentType: false,
success : function(result) {
alert("저장되었습니다.");
contentFade("out");
location.reload();
/*contentFade("out");
$("#ivsgtEditModal").modal('hide');
getIvsgtViewModal(result);
getIvsgtViewModal(result);*/
},
error : function(xhr, status) {
alert("저장에 실패하였습니다.")

View File

@ -97,14 +97,10 @@
</div>
</div>
</div>
<div class="modal-footer bg-light">
<th:block th:if="${accessAuth eq 'ACC003'}">
<th:block th:if="${viewUserSeq eq ciWork.wrtUserSeq or accessAuth eq 'ACC003'}">
<div class="modal-footer bg-light">
<button type="button" class="btn btn-danger" id="deleteCiWorkBtn" th:data-ciwkey="${ciWork.ciwKey}">삭제</button>
</th:block>
<th:block th:if="${viewUserSeq eq ciWork.wrtUserSeq}">
<button type="button" class="btn btn-warning" id="editCiWorkBtn" th:data-ciwkey="${ciWork.ciwKey}">수정</button>
</th:block>
<!--
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">닫기</button>
-->
</div>
<!-- <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">닫기</button> -->
</div>
</th:block>

View File

@ -113,11 +113,13 @@
</div>
</div>
<div class="modal-footer bg-light">
<th:block th:if="${userSeq eq faRpt.wrtUserSeq}">
<th:block th:if="${userSeq eq faRpt.wrtUserSeq and accessAuth eq 'ACC003'}">
<button type="button" class="btn btn-warning" id="editFaRptBtn" th:data-farptkey="${faRpt.faRptKey}">수정</button>
</th:block>
<th:block th:if="${userSeq ne faRpt.wrtUserSeq}">
<button type="button" class="btn btn-success" id="reSendBtn" th:data-farptkey="${faRpt.faRptKey}">회신</button>
<th:block th:each="readUser:${faRpt.readUserList}">
<th:block th:if="${readUser.userSeq eq userSeq}">
<button type="button" class="btn btn-success" id="reSendBtn" th:data-farptkey="${faRpt.faRptKey}">회신</button>
</th:block>
</th:block>
<!--
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">닫기</button>

View File

@ -172,7 +172,9 @@
</nav>
</div>
<div class="col-auto">
<button class="btn btn-primary" id="ivsgtAddBtn">등록</button>
<th:block th:if="${accessAuth ne 'ACC001'}">
<button class="btn btn-primary" id="ivsgtAddBtn">등록</button>
</th:block>
</div>
</div>
</div>