Browse Source

환자 리스트 엑셀 다운로드 완료

huiwon.seo 4 years ago
parent
commit
a7ad4af26d

+ 6 - 5
src/main/java/com/lemon/lifecenter/controller/PatientController.java

@@ -453,7 +453,7 @@ public class PatientController extends LifeCenterController {
         List<PatientDTO> result = new ArrayList<PatientDTO>();
 
         if (total > 0) {
-            dto.setLimit( 1 );
+            dto.setLimit( 0 );
             dto.setLimitMax( total );
             
             result = patientService.selectPatietList(dto);
@@ -643,10 +643,11 @@ public class PatientController extends LifeCenterController {
         cell14 = row.createCell(15);
         
         try {
-            File file = new File(".");
-            String rootPath = file.getAbsolutePath();
-            System.out.println("현재 프로젝트의 경로 : "+rootPath );
-
+//            File file = new File(".");
+//            String rootPath = file.getAbsolutePath();
+//            System.out.println("현재 프로젝트의 경로 : "+rootPath );
+            
+            // JBOSS에서 구동시 /home1/jboss/jboss-eap-7.3/domain/test/excel-temp 경로에 저장이됨
             String tempPath = "../excel-temp/testExcel.xlsx";
             String downName = LifeCenterFunction.getNow() + " 환자리스트.xlsx";
             File xlsFile = new File(tempPath);

+ 1 - 1
src/main/webapp/WEB-INF/jsp/patient/list.jsp

@@ -213,7 +213,7 @@ tr.phr-info td span.no-data{color:#999999;}
                                             <fmt:formatNumber value="${total}" pattern="#,###" />
                                         </div>
                                         <div class="col-6 text-right">
-                                            <button class="btn btn-success" onclick="getExcel();" style="display:none;">Excel 다운로드</button>
+                                            <button class="btn btn-success" onclick="getExcel();">Excel 다운로드</button>
                                             <a class="btn btn-primary" target="_blank" href="/store/manual/survey">입소자 문진표 서식 다운로드</a>
                                             <c:if test="${sesGroupIdx ne '1'}">
                                                 <button class="btn btn-primary" onclick="location.href='./new';">신규환자등록</button>