외사정보관리~방첩공작 권한별 버튼 점검, 수정.
parent
2107603416
commit
a85d179341
|
|
@ -42,10 +42,10 @@ public class CounterIntelligenceController {
|
||||||
mav.addObject("accessAuth", accessAuth);
|
mav.addObject("accessAuth", accessAuth);
|
||||||
if(accessAuth.equals("ACC003")){
|
if(accessAuth.equals("ACC003")){
|
||||||
mav.addObject("downOrganCdList", loginUser.getDownOrganCdList());
|
mav.addObject("downOrganCdList", loginUser.getDownOrganCdList());
|
||||||
|
ciWork.setDownOrganCdList(loginUser.getDownOrganCdList());
|
||||||
}else{
|
}else{
|
||||||
ciWork.setWrtUserSeq(loginUser.getUserSeq());
|
ciWork.setWrtOrgan(loginUser.getOgCd());
|
||||||
}
|
}
|
||||||
|
|
||||||
ciWork.setQueryInfo();
|
ciWork.setQueryInfo();
|
||||||
mav.addObject("ciWorkList", ciService.selectCounterIntelligenceWorkList(ciWork));
|
mav.addObject("ciWorkList", ciService.selectCounterIntelligenceWorkList(ciWork));
|
||||||
ciWork.setContentCnt(ciService.selectCounterIntelligenceWorkCnt(ciWork));
|
ciWork.setContentCnt(ciService.selectCounterIntelligenceWorkCnt(ciWork));
|
||||||
|
|
|
||||||
|
|
@ -70,6 +70,12 @@
|
||||||
and a.wrt_dt <= #{endDate}::date+1
|
and a.wrt_dt <= #{endDate}::date+1
|
||||||
</if>
|
</if>
|
||||||
</if>
|
</if>
|
||||||
|
<if test="downOrganCdList != null">
|
||||||
|
and a.wrt_organ in
|
||||||
|
<foreach collection="downOrganCdList" item="organCd" separator="," open="(" close=")">
|
||||||
|
#{organCd}
|
||||||
|
</foreach>
|
||||||
|
</if>
|
||||||
</where>
|
</where>
|
||||||
</sql>
|
</sql>
|
||||||
<select id="selectCounterIntelligenceWorkList" parameterType="CounterIntelligenceWork" resultType="CounterIntelligenceWork">
|
<select id="selectCounterIntelligenceWorkList" parameterType="CounterIntelligenceWork" resultType="CounterIntelligenceWork">
|
||||||
|
|
|
||||||
|
|
@ -154,9 +154,10 @@ function saveFaRpt(faRptState){
|
||||||
contentType: false,
|
contentType: false,
|
||||||
success : function(result) {
|
success : function(result) {
|
||||||
alert("송신 되었습니다.");
|
alert("송신 되었습니다.");
|
||||||
contentFade("out");
|
location.reload();
|
||||||
|
/*contentFade("out");
|
||||||
$("#faRptEditModal").modal('hide');
|
$("#faRptEditModal").modal('hide');
|
||||||
getFaRptViewModal(result);
|
getFaRptViewModal(result);*/
|
||||||
},
|
},
|
||||||
error : function(xhr, status) {
|
error : function(xhr, status) {
|
||||||
alert("송신에 실패하였습니다.")
|
alert("송신에 실패하였습니다.")
|
||||||
|
|
|
||||||
|
|
@ -158,9 +158,10 @@ function saveBoardInvestigation(contentState){
|
||||||
contentType: false,
|
contentType: false,
|
||||||
success : function(result) {
|
success : function(result) {
|
||||||
alert("저장되었습니다.");
|
alert("저장되었습니다.");
|
||||||
contentFade("out");
|
location.reload();
|
||||||
|
/*contentFade("out");
|
||||||
$("#ivsgtEditModal").modal('hide');
|
$("#ivsgtEditModal").modal('hide');
|
||||||
getIvsgtViewModal(result);
|
getIvsgtViewModal(result);*/
|
||||||
},
|
},
|
||||||
error : function(xhr, status) {
|
error : function(xhr, status) {
|
||||||
alert("저장에 실패하였습니다.")
|
alert("저장에 실패하였습니다.")
|
||||||
|
|
|
||||||
|
|
@ -97,14 +97,10 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer bg-light">
|
<th:block th:if="${viewUserSeq eq ciWork.wrtUserSeq or accessAuth eq 'ACC003'}">
|
||||||
<th:block th:if="${accessAuth eq 'ACC003'}">
|
<div class="modal-footer bg-light">
|
||||||
<button type="button" class="btn btn-danger" id="deleteCiWorkBtn" th:data-ciwkey="${ciWork.ciwKey}">삭제</button>
|
<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>
|
<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>
|
</th:block>
|
||||||
-->
|
|
||||||
</div>
|
|
||||||
|
|
@ -113,11 +113,13 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer bg-light">
|
<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>
|
<button type="button" class="btn btn-warning" id="editFaRptBtn" th:data-farptkey="${faRpt.faRptKey}">수정</button>
|
||||||
</th:block>
|
</th:block>
|
||||||
<th:block th:if="${userSeq ne faRpt.wrtUserSeq}">
|
<th:block th:each="readUser:${faRpt.readUserList}">
|
||||||
<button type="button" class="btn btn-success" id="reSendBtn" th:data-farptkey="${faRpt.faRptKey}">회신</button>
|
<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>
|
</th:block>
|
||||||
<!--
|
<!--
|
||||||
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">닫기</button>
|
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">닫기</button>
|
||||||
|
|
|
||||||
|
|
@ -172,7 +172,9 @@
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-auto">
|
<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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue