diff --git a/src/main/webapp/WEB-INF/views/price/create.jsp b/src/main/webapp/WEB-INF/views/price/create.jsp
index 958e58e..57d9477 100644
--- a/src/main/webapp/WEB-INF/views/price/create.jsp
+++ b/src/main/webapp/WEB-INF/views/price/create.jsp
@@ -1,4 +1,5 @@
<%@ page contentType="text/html; charset=UTF-8"%>
+<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
@@ -45,11 +46,8 @@
aria-describedby="basic-addon1">
-
-
-
-
-
+
+
@@ -93,8 +91,8 @@ $(document).ready(function() {
type: "post",
data: {
"price": price,
- "manager_id": manager_id, // 추후 수정해야함.
- "product_id": product_id, // 추후 수정해야함.
+ "manager_id": manager_id,
+ "product_id": product_id,
"activation": true
},
datatype:"json"
@@ -102,24 +100,6 @@ $(document).ready(function() {
if (data == true) {
alert("제품 가격을 추가했습니다.");
$(location).attr("href", "/price/list");
-
-
- //생각해서 바꿔야함.
- // 조건 : DB에서 생성되는 uuid를 어떻게 자바스크립트에서 가져올것인지 궁리.
- /*
- var form = document.createElement("form");
- form.action = "/product/read";
- form.method = "POST";
- document.body.appendChild(form);
-
- var input = document.createElement("input");
- input.type = "hidden";
- input.name = "id";
- input.value = data.id;
- form.appendChild(input);
-
- form.submit();
- */
} else {
alert("제품 가격 추가에 실패하였습니다.");
}
@@ -153,8 +133,5 @@ function showSearchModal(title, val){
-
-
-
\ No newline at end of file
diff --git a/src/main/webapp/WEB-INF/views/price/update.jsp b/src/main/webapp/WEB-INF/views/price/update.jsp
index e780309..e83ffb3 100644
--- a/src/main/webapp/WEB-INF/views/price/update.jsp
+++ b/src/main/webapp/WEB-INF/views/price/update.jsp
@@ -1,4 +1,5 @@
<%@ page contentType="text/html; charset=UTF-8"%>
+<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
@@ -34,14 +35,15 @@
-
+
담당자
+ aria-label="담당자" value="${userData.name }" readonly>
+
@@ -62,6 +64,7 @@
$("#submitBtn").on("click", function() {
var id = $("#id").val();
var price = $("#price").val();
+ var manager_id = $("#manager_id").val();
if (!price || isNaN(price)) {
alert("올바른 가격을 입력하세요.");
@@ -74,7 +77,8 @@
type: "put",
data: {
"id": id,
- "price": price
+ "price": price,
+ "manager_id": manager_id
},
datatype: "json"
}).done(function(data) {
diff --git a/src/main/webapp/WEB-INF/views/product/create.jsp b/src/main/webapp/WEB-INF/views/product/create.jsp
index a2f0686..f7a2bd8 100644
--- a/src/main/webapp/WEB-INF/views/product/create.jsp
+++ b/src/main/webapp/WEB-INF/views/product/create.jsp
@@ -63,11 +63,9 @@
-
-
+
+
-
-
@@ -81,7 +79,7 @@
-
+
diff --git a/src/main/webapp/WEB-INF/views/product/update.jsp b/src/main/webapp/WEB-INF/views/product/update.jsp
index 4e43aa0..c19de7e 100644
--- a/src/main/webapp/WEB-INF/views/product/update.jsp
+++ b/src/main/webapp/WEB-INF/views/product/update.jsp
@@ -1,4 +1,5 @@
<%@ page contentType="text/html; charset=UTF-8"%>
+<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
@@ -59,10 +60,8 @@
-
-
-
-
+
+