|
@@ -6,16 +6,26 @@
|
|
|
<jsp:include page="${data._INCLUDE}/header.jsp"></jsp:include>
|
|
|
<script>
|
|
|
function deleteConfirm(){
|
|
|
+ if( $.trim( $( "#deleteReason" ).val() ) == "" ){
|
|
|
+ alertBox({ txt : "사유를 입력해주세요" });
|
|
|
+ $( ".modal-header>.modal-title h3" ).remove();
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
alertBox({ type : "confirm",
|
|
|
txt : "정말로 삭제할까요? (기록된 환자의 모든정보가 삭제되며 복구가 불가능합니다)",
|
|
|
callBack : function( result ){
|
|
|
console.log( result );
|
|
|
if( result ){
|
|
|
$( "#pForm" ).attr( "action", "./delete" );
|
|
|
+ $( "#pForm" ).append( $("#deleteReason").clone() );
|
|
|
$( "#pForm" ).submit();
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
+
|
|
|
+ $( "#deletePatientMemo h3" ).remove();
|
|
|
+
|
|
|
return false;
|
|
|
}
|
|
|
|
|
@@ -58,6 +68,36 @@ function goListPage(){
|
|
|
</script>
|
|
|
</head>
|
|
|
<body>
|
|
|
+ <div class="modal fade" id="deletePatientMemo" tabindex="-1" role="dialog" aria-hidden="true" data-memoid="">
|
|
|
+ <div class="modal-dialog modal-sm" role="document">
|
|
|
+ <div class="modal-content">
|
|
|
+ <div class="modal-header">
|
|
|
+ <h5 class="modal-title">환자삭제 사유 입력</h5>
|
|
|
+ <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
|
|
|
+ aria-hidden="true">×</span> </button>
|
|
|
+ </div>
|
|
|
+ <div class="modal-body m-3">
|
|
|
+ <table class="table mobile-table">
|
|
|
+ <colgroup>
|
|
|
+ <col style="width: 80%">
|
|
|
+ </colgroup>
|
|
|
+ <tr>
|
|
|
+ <td>
|
|
|
+ <div class="form-row">
|
|
|
+ <textarea id="deleteReason" name="deleteReason" class="form-control" rows="3" placeholder="삭제사유를 50자 이내로 입력하세요" maxlength="50"></textarea>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ <div class="addMemoTools modal-footer">
|
|
|
+ <button type="button" class="btn btn-outline-primary" data-dismiss="modal">취소</button>
|
|
|
+ <button type="button" class="btn btn-primary" onclick="deleteConfirm();">제출 후 환자삭제</button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
<div class="wrapper">
|
|
|
<jsp:include page="${data._INCLUDE}/sidebar.jsp"></jsp:include>
|
|
|
|
|
@@ -99,7 +139,7 @@ function goListPage(){
|
|
|
<button type="button" class="btn btn-warning w100" onclick="location.href='/clinic/info?patientIdx=${patientIdx}';">건강정보</button>
|
|
|
|
|
|
<c:if test="${role._DELETE eq 'Y'}">
|
|
|
- <button type="button" class="btn btn-danger w100" onclick="deleteConfirm();">삭제</button>
|
|
|
+ <button type="button" class="btn btn-danger w100" data-toggle="modal" data-target="#deletePatientMemo">삭제</button>
|
|
|
</c:if>
|
|
|
|
|
|
<c:if test="${role._UPDATE eq 'Y'}">
|