소스 검색

[진료관리 상세] 임상증상, 메모 엑셀다운로드 버튼 추가.

sjpark 4 년 전
부모
커밋
fb00f29984
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      src/main/webapp/WEB-INF/jsp/clinic/info.jsp

+ 4 - 2
src/main/webapp/WEB-INF/jsp/clinic/info.jsp

@@ -580,9 +580,9 @@ function gotoList() {
 	location.href = url;
 }
 
-function getExcel() {
+function getExcel(type = null) {
 	const patientIdx = ${patientIdx};
-	const phrType = $("#phrTypeSelect option:selected").val();
+	const phrType = (type !== null) ? type : $("#phrTypeSelect option:selected").val();
 
 	const url = "./excel?patientIdx=" + patientIdx + "&phrType=" + phrType;
 	window.open(url);
@@ -1082,6 +1082,7 @@ $(document).ready(function() {
 											- 임상증상 <label class="ml-1">
 												<button type="button" class="btn btn-primary ml-2" data-toggle="modal" data-target="#defaultModalPrimary_2">증상추가</button>
 											</label>
+											<button class="btn btn-success text-right" style="float:right;" onclick="getExcel('symptom');">Excel 다운로드</button>
 										</h1>
 									</div>
 									<div class="card-body">
@@ -1123,6 +1124,7 @@ $(document).ready(function() {
 										<h1 class="h4">
 											- 의료진 메모
 											<button type="button" class="btn btn-primary ml-2" data-toggle="modal" data-target="#defaultModalPrimaryMemo">메모추가</button>
+										<button class="btn btn-success text-right" style="float:right;" onclick="getExcel('memo');">Excel 다운로드</button>
 										</h1>
 									</div>
 									<div class="card-body">