--- src/main/java/itn/let/mjo/test/web/TestController.java
+++ src/main/java/itn/let/mjo/test/web/TestController.java
... | ... | @@ -47,6 +47,7 @@ |
| 47 | 47 |
import org.springframework.web.bind.annotation.ModelAttribute; |
| 48 | 48 |
import org.springframework.web.bind.annotation.RequestBody; |
| 49 | 49 |
import org.springframework.web.bind.annotation.RequestMapping; |
| 50 |
+import org.springframework.web.bind.annotation.RequestParam; |
|
| 50 | 51 |
import org.springframework.web.client.RestTemplate; |
| 51 | 52 |
import org.springframework.web.multipart.MultipartFile; |
| 52 | 53 |
import org.springframework.web.multipart.MultipartHttpServletRequest; |
... | ... | @@ -3380,5 +3381,24 @@ |
| 3380 | 3381 |
} |
| 3381 | 3382 |
|
| 3382 | 3383 |
} |
| 3384 |
+ |
|
| 3385 |
+ @RequestMapping(value = "/web/mjon/test/ajaxTest.do") |
|
| 3386 |
+ public ResponseEntity<StatusResponse> ajaxTest( |
|
| 3387 |
+ @RequestParam String isSuccess, |
|
| 3388 |
+ @RequestParam String s_msg, |
|
| 3389 |
+ @RequestParam String f_msg, |
|
| 3390 |
+ HttpServletRequest request, |
|
| 3391 |
+ ModelMap model) throws Exception {
|
|
| 3392 |
+ |
|
| 3393 |
+ if("Y".equals(isSuccess)) {
|
|
| 3394 |
+ return ResponseEntity.ok().body(new StatusResponse(HttpStatus.OK, s_msg, "")); |
|
| 3395 |
+ |
|
| 3396 |
+ }else {
|
|
| 3397 |
+ return ResponseEntity.ok().body(new StatusResponse(HttpStatus.BAD_REQUEST, f_msg, "")); |
|
| 3398 |
+ |
|
| 3399 |
+ } |
|
| 3400 |
+ |
|
| 3401 |
+ } |
|
| 3402 |
+ |
|
| 3383 | 3403 |
|
| 3384 | 3404 |
} |
--- src/main/webapp/WEB-INF/jsp/web/msgdata/MsgDataView.jsp
+++ src/main/webapp/WEB-INF/jsp/web/msgdata/MsgDataView.jsp
... | ... | @@ -1043,6 +1043,9 @@ |
| 1043 | 1043 |
return confCheck; |
| 1044 | 1044 |
} |
| 1045 | 1045 |
|
| 1046 |
+ |
|
| 1047 |
+ |
|
| 1048 |
+ |
|
| 1046 | 1049 |
//문자발송 처리 함수 |
| 1047 | 1050 |
function fn_sendMsgData(){
|
| 1048 | 1051 |
|
... | ... | @@ -1233,6 +1236,10 @@ |
| 1233 | 1236 |
} |
| 1234 | 1237 |
|
| 1235 | 1238 |
|
| 1239 |
+ |
|
| 1240 |
+ |
|
| 1241 |
+ |
|
| 1242 |
+ |
|
| 1236 | 1243 |
function sendMsgAjax_advc(){
|
| 1237 | 1244 |
// 타블레이터 호출 |
| 1238 | 1245 |
var $selectedData = tableL.getData(); // 데이터 가져오기 |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?