瀏覽代碼

[진료관리 - 상세] 메모 기록일시 createDate => updateDate 표시하도록 변경.

sjpark 4 年之前
父節點
當前提交
af5bf07c7c

+ 3 - 0
src/main/java/com/lemon/lifecenter/dto/PatientMemoDTO.java

@@ -93,6 +93,9 @@ public class PatientMemoDTO {
   public String getRecordedDateFormatted() {
 		return getDateFormatted(this.recordedDate);
   }
+  public String getUpdateDateFormatted() {
+		return getDateFormatted(this.updateDate);
+  }
   private String getDateFormatted(String dateString) {
 		SimpleDateFormat originalFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
 		SimpleDateFormat targetFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm");

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

@@ -732,7 +732,7 @@ function retrieveMemoData() {
             html += "<td><pre>" + d.contents + "</pre></td>";
           }
           html += "<td>" + d.recordedByName + "</td>";
-          html += "<td>" + gridDateFormatter(d.createDate) + "</td>";
+          html += "<td>" + gridDateFormatter(d.updateDate) + "</td>";
 					html += "</tr>";
 				});
 			};
@@ -1831,7 +1831,7 @@ $(document).ready(function() {
                                             </c:otherwise>
                                           </c:choose>
                                           <td><c:out value="${d.recordedByName}" /></td>
-                                          <td><c:out value="${d.createDateFormatted}" /></td>
+                                          <td><c:out value="${d.updateDateFormatted}" /></td>
                                         </tr>
                                       </c:forEach>
                                     </c:when>