parent
9a7fe92321
commit
562ddd1507
|
|
@ -1,4 +1,4 @@
|
||||||
#해양경찰청 외사종합포털
|
#해양경찰청 외사포털
|
||||||
|
|
||||||
java 11
|
java 11
|
||||||
postgreSql 14.2
|
postgreSql 14.2
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ import org.hibernate.annotations.DynamicUpdate;
|
||||||
|
|
||||||
import javax.persistence.*;
|
import javax.persistence.*;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
import java.time.LocalDate;
|
||||||
|
|
||||||
@Getter
|
@Getter
|
||||||
@Setter
|
@Setter
|
||||||
|
|
@ -27,6 +28,13 @@ public class ResultInfo {
|
||||||
@Column(name = "contact_info")
|
@Column(name = "contact_info")
|
||||||
private String contactInfo;
|
private String contactInfo;
|
||||||
|
|
||||||
|
@Transient
|
||||||
|
private LocalDate wrtDt;
|
||||||
|
@Transient
|
||||||
|
private String title;
|
||||||
|
@Transient
|
||||||
|
private String affairRate;
|
||||||
|
|
||||||
@Embeddable
|
@Embeddable
|
||||||
@Data
|
@Data
|
||||||
@NoArgsConstructor
|
@NoArgsConstructor
|
||||||
|
|
|
||||||
|
|
@ -132,7 +132,7 @@ $(document).on('click', '#resultInfoAddBtn', function (){
|
||||||
dataType:"html",
|
dataType:"html",
|
||||||
success: function(html){
|
success: function(html){
|
||||||
infoRow.append(html);
|
infoRow.append(html);
|
||||||
$("#contactInfo"+infoSeq).summernote({
|
/*$("#contactInfo"+infoSeq).summernote({
|
||||||
lang:'ko-KR',
|
lang:'ko-KR',
|
||||||
height: 60,
|
height: 60,
|
||||||
disableDragAndDrop: true,
|
disableDragAndDrop: true,
|
||||||
|
|
@ -143,7 +143,7 @@ $(document).on('click', '#resultInfoAddBtn', function (){
|
||||||
['para', ['ul', 'ol', 'paragraph']],
|
['para', ['ul', 'ol', 'paragraph']],
|
||||||
['table', ['table']]
|
['table', ['table']]
|
||||||
]
|
]
|
||||||
});
|
});*/
|
||||||
},
|
},
|
||||||
error:function(e){
|
error:function(e){
|
||||||
ajaxErrorAction(e);
|
ajaxErrorAction(e);
|
||||||
|
|
@ -195,6 +195,30 @@ $(document).on('click', '.apprvBtn', function (){
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
$(document).on('click', '#printBtn', function (){
|
||||||
|
$.ajax({
|
||||||
|
url: '/affairResult/resultBoardJson',
|
||||||
|
type: 'GET',
|
||||||
|
data: {resultKey: $(this).attr('data-resultkey')},
|
||||||
|
dataType:"json",
|
||||||
|
success: function(data){
|
||||||
|
var url = $("#printUrl").attr("data-printurl")+"/resultBoard.jsp";
|
||||||
|
var title = "청산 보고서 인쇄";
|
||||||
|
var status = "width=900px,height=800px,scrollbars=yes";
|
||||||
|
window.open("", title, status);
|
||||||
|
const form = $("#printForm")[0];
|
||||||
|
form.target = title;
|
||||||
|
form.action = url;
|
||||||
|
form.result.value = JSON.stringify(data);
|
||||||
|
form.method = "post";
|
||||||
|
form.submit();
|
||||||
|
},
|
||||||
|
error:function(e){
|
||||||
|
ajaxErrorAction(e);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
})
|
||||||
|
|
||||||
function getResultViewModal(resultKey){
|
function getResultViewModal(resultKey){
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: '/affairResult/resultViewModal',
|
url: '/affairResult/resultViewModal',
|
||||||
|
|
@ -225,7 +249,7 @@ function getResultEditModal(resultKey){
|
||||||
language: "ko",
|
language: "ko",
|
||||||
autoclose: true
|
autoclose: true
|
||||||
});
|
});
|
||||||
$(".contactInfo").summernote({
|
/*$(".contactInfo").summernote({
|
||||||
lang:'ko-KR',
|
lang:'ko-KR',
|
||||||
height: 60,
|
height: 60,
|
||||||
disableDragAndDrop: true,
|
disableDragAndDrop: true,
|
||||||
|
|
@ -236,7 +260,7 @@ function getResultEditModal(resultKey){
|
||||||
['para', ['ul', 'ol', 'paragraph']],
|
['para', ['ul', 'ol', 'paragraph']],
|
||||||
['table', ['table']]
|
['table', ['table']]
|
||||||
]
|
]
|
||||||
});
|
});*/
|
||||||
setUploadDiv();
|
setUploadDiv();
|
||||||
},
|
},
|
||||||
error:function(e){
|
error:function(e){
|
||||||
|
|
|
||||||
|
|
@ -164,7 +164,9 @@
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-auto">
|
<div class="col-auto">
|
||||||
<input type="button" class="btn btn-success" value="등록" id="addFaRptBtn" th:unless="${accessAuth eq 'ACC001'}">
|
<th:block th:if="${accessAuth eq 'ACC001' and searchParams.activeTab eq 'send'}">
|
||||||
|
<input type="button" class="btn btn-success" value="등록" id="addFaRptBtn">
|
||||||
|
</th:block>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -198,12 +198,10 @@
|
||||||
<input type="hidden" class="infoSeq resultInfoSeq" th:name="${#strings.concat('resultInfoList[', info.infoSeq,'].infoSeq')}" th:value="${info.infoSeq}">
|
<input type="hidden" class="infoSeq resultInfoSeq" th:name="${#strings.concat('resultInfoList[', info.infoSeq,'].infoSeq')}" th:value="${info.infoSeq}">
|
||||||
<div class="col-1 infoSeq" th:text="${info.infoSeq+1}"></div>
|
<div class="col-1 infoSeq" th:text="${info.infoSeq+1}"></div>
|
||||||
<div class="col-3">
|
<div class="col-3">
|
||||||
<input type="text" class="form-control form-control-sm" th:name="${#strings.concat('resultInfoList[', info.infoSeq,'].contactTarget')}"
|
<input type="text" class="form-control form-control-sm" th:name="${#strings.concat('resultInfoList[', info.infoSeq,'].contactTarget')}" th:value="${info.contactTarget}">
|
||||||
th:value="${info.contactTarget}">
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-7">
|
<div class="col-7">
|
||||||
<textarea class="contactInfo" th:id="|contactInfo${info.infoSeq}|" th:name="${#strings.concat('resultInfoList[', info.infoSeq,'].contactInfo')}"
|
<textarea class="form-control contactInfo" th:id="|contactInfo${info.infoSeq}|" th:name="${#strings.concat('resultInfoList[', info.infoSeq,'].contactInfo')}" th:utext="${info.contactInfo}"></textarea>
|
||||||
th:utext="${info.contactInfo}"></textarea>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-1">
|
<div class="col-1">
|
||||||
<button type="button" class="btn btn-sm btn-outline-danger rowDeleteBtn"><i class="bi bi-x"></i></button>
|
<button type="button" class="btn btn-sm btn-outline-danger rowDeleteBtn"><i class="bi bi-x"></i></button>
|
||||||
|
|
@ -301,7 +299,7 @@
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer bg-light">
|
<div class="modal-footer bg-light">
|
||||||
<!-- <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">닫기</button>-->
|
<!-- <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">닫기</button>-->
|
||||||
<button type="button" class="btn btn-warning" id="saveTempBtn">임시저장</button>
|
<button type="button" class="btn btn-warning" id="saveTempBtn">임시저장</button>
|
||||||
<button type="button" class="btn btn-primary" id="saveResultBtn">저장</button>
|
<button type="button" class="btn btn-primary" id="saveResultBtn">저장</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
<input type="text" class="form-control form-control-sm" th:name="${#strings.concat('resultInfoList[', info.infoSeq,'].contactTarget')}">
|
<input type="text" class="form-control form-control-sm" th:name="${#strings.concat('resultInfoList[', info.infoSeq,'].contactTarget')}">
|
||||||
</div>
|
</div>
|
||||||
<div class="col-7">
|
<div class="col-7">
|
||||||
<textarea th:id="|contactInfo${info.infoSeq}|" th:name="${#strings.concat('resultInfoList[', info.infoSeq,'].contactInfo')}"></textarea>
|
<textarea class="form-control" th:id="|contactInfo${info.infoSeq}|" th:name="${#strings.concat('resultInfoList[', info.infoSeq,'].contactInfo')}"></textarea>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-1">
|
<div class="col-1">
|
||||||
<button type="button" class="btn btn-sm btn-outline-danger rowDeleteBtn"><i class="bi bi-x"></i></button>
|
<button type="button" class="btn btn-sm btn-outline-danger rowDeleteBtn"><i class="bi bi-x"></i></button>
|
||||||
|
|
|
||||||
|
|
@ -198,5 +198,12 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="d-none">
|
||||||
|
<form id="printForm">
|
||||||
|
<input type="hidden" name="planList">
|
||||||
|
<input type="hidden" name="affairList">
|
||||||
|
<input type="hidden" name="result">
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</html>
|
</html>
|
||||||
|
|
@ -259,6 +259,9 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer bg-light">
|
<div class="modal-footer bg-light">
|
||||||
|
<th:block th:if="${result.resultState eq 'DST006'}">
|
||||||
|
<button type="button" class="btn btn-secondary" id="printBtn" th:data-affairkey="${result.resultKey}">인쇄</button>
|
||||||
|
</th:block>
|
||||||
<th:block th:unless="${result.resultState eq 'DST004' or result.resultState eq 'DST006'}"><!--승인 상태일때는 수정 불가-->
|
<th:block th:unless="${result.resultState eq 'DST004' or result.resultState eq 'DST006'}"><!--승인 상태일때는 수정 불가-->
|
||||||
<th:block th:if="${userSeq eq result.wrtUserSeq or accessAuth eq 'ACC003'}"><!--작성자일 경우 수정 허용--><!--관리자일 경우 수정 허용-->
|
<th:block th:if="${userSeq eq result.wrtUserSeq or accessAuth eq 'ACC003'}"><!--작성자일 경우 수정 허용--><!--관리자일 경우 수정 허용-->
|
||||||
<button type="button" class="btn btn-warning" id="editResultBtn">수정</button>
|
<button type="button" class="btn btn-warning" id="editResultBtn">수정</button>
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8"/>
|
<meta charset="UTF-8"/>
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
|
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
|
||||||
<title>해양경찰청 외사종합포털</title>
|
<title>해양경찰청 외사포털</title>
|
||||||
|
|
||||||
<!--bootstrap-->
|
<!--bootstrap-->
|
||||||
<link rel="stylesheet" th:href="@{/vendor/bootstrap-5.2.0-dist/css/bootstrap.min.css}">
|
<link rel="stylesheet" th:href="@{/vendor/bootstrap-5.2.0-dist/css/bootstrap.min.css}">
|
||||||
|
|
|
||||||
|
|
@ -162,7 +162,9 @@
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-auto">
|
<div class="col-auto">
|
||||||
<input type="button" class="btn btn-success" value="등록" id="addSriBtn" th:unless="${accessAuth eq 'ACC001' and searchParams.activeTab eq 'send'}">
|
<th:block th:if="${accessAuth eq 'ACC001' and searchParams.activeTab eq 'send'}">
|
||||||
|
<input type="button" class="btn btn-success" value="등록" id="addSriBtn">
|
||||||
|
</th:block>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue