|
@@ -1,5 +1,8 @@
|
|
|
package com.lemon.lifecenter.controller;
|
|
|
|
|
|
+import java.net.MalformedURLException;
|
|
|
+import java.net.URL;
|
|
|
+
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
@@ -44,9 +47,11 @@ public class MobileHealthController extends LifeCenterController {
|
|
|
@RequestParam( value="phrTypeAnother", required=false, defaultValue="" ) String phrTypeAnother,
|
|
|
@RequestParam( value="phrValueAnother", required=false, defaultValue="" ) String phrValueAnother,
|
|
|
@RequestParam( value="phrValueAnother2", required=false, defaultValue="" ) String phrValueAnother2,
|
|
|
- HttpServletRequest request, HttpServletResponse response ) {
|
|
|
+ HttpServletRequest request, HttpServletResponse response ) throws MalformedURLException {
|
|
|
String patientName = LifeCenterSessionController.getSession( request, "sesMName" );
|
|
|
int patientIdx = Integer.valueOf( LifeCenterSessionController.getSession( request, "sesMpIdx" ) );
|
|
|
+ String referer = request.getHeader( "Referer" );
|
|
|
+ String path = new URL( referer ).getPath();
|
|
|
|
|
|
if( pdto.getPhrType().equals( "symptom" ) ) {
|
|
|
|
|
@@ -75,8 +80,8 @@ public class MobileHealthController extends LifeCenterController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- LifeCenterFunction.scriptMessage(response, "alert('기록되었습니다');location.href='/mobile/menu';" );
|
|
|
- return "/common/black";
|
|
|
+ LifeCenterFunction.scriptMessage(response, "alert('기록이 정상적으로 저장되었습니다.');location.href='"+path+"';" );
|
|
|
+ return "/common/blank";
|
|
|
}
|
|
|
|
|
|
}
|