From 30d419bb5f9686c6a93d7dfee620045d6cf2060b Mon Sep 17 00:00:00 2001 From: sungsu Date: Tue, 16 Jan 2024 00:10:40 +0900 Subject: [PATCH 1/2] #update VendorDto.java VendorMapper.xml vendor/create.jsp vendor/create.jsp vendor/create.jspvendor/create.jsp --- .../java/com/no1/wms/vendor/VendorDto.java | 14 ++-- src/main/resources/mappers/VendorMapper.xml | 44 +++++------ .../webapp/WEB-INF/views/vendor/create.jsp | 66 ++++++++-------- src/main/webapp/WEB-INF/views/vendor/list.jsp | 6 +- src/main/webapp/WEB-INF/views/vendor/read.jsp | 12 +-- .../webapp/WEB-INF/views/vendor/update.jsp | 76 +++++++++---------- 6 files changed, 109 insertions(+), 109 deletions(-) diff --git a/src/main/java/com/no1/wms/vendor/VendorDto.java b/src/main/java/com/no1/wms/vendor/VendorDto.java index a32f249..0d1bada 100644 --- a/src/main/java/com/no1/wms/vendor/VendorDto.java +++ b/src/main/java/com/no1/wms/vendor/VendorDto.java @@ -14,14 +14,14 @@ public class VendorDto { private String id; private String name; - private String presidentName; + private String president_name; private String address; - private String registrationNumber; + private String registration_number; private String email; - private String presidentTelephone; - private String vendorManager; - private String vendorManagerTelephone; - private String mainProduct; - private String managerId; + private String president_telephone; + private String vendor_manager; + private String vendor_manager_telephone; + private String main_product; + private String manager_id; private boolean activation; } diff --git a/src/main/resources/mappers/VendorMapper.xml b/src/main/resources/mappers/VendorMapper.xml index 3e3f8b4..b9c7550 100644 --- a/src/main/resources/mappers/VendorMapper.xml +++ b/src/main/resources/mappers/VendorMapper.xml @@ -23,15 +23,15 @@ select id, name, - president_name as presidentName, + president_name, address, - registration_number as registrationNumber, + registration_number, email, - president_telephone as presidentTelephone, - vendor_manager as vendorManager, - vendor_manager_telephone as vendorManagerTelephone, - main_product as mainProduct, - manager_id as managerId, + president_telephone, + vendor_manager, + vendor_manager_telephone, + main_product, + manager_id, activation from vendor @@ -76,15 +76,15 @@ update vendor set name = #{name}, - president_name = #{presidentName}, + president_name = #{president_name}, address = #{address}, - registration_number = #{registrationNumber}, + registration_number = #{registration_number}, email = #{email}, - president_telephone = #{presidentTelephone}, - vendor_manager = #{vendorManager}, - vendor_manager_telephone = #{vendorManagerTelephone}, - main_product = #{mainProduct}, - manager_id = #{managerId}, + president_telephone = #{president_telephone}, + vendor_manager = #{vendor_manager}, + vendor_manager_telephone = #{vendor_manager_telephone}, + main_product = #{main_product}, + manager_id = #{manager_id}, activation = #{activation} where id = #{id} @@ -94,7 +94,7 @@ insert into vendor (id, name, president_name, address, registration_number, email, president_telephone, vendor_manager, vendor_manager_telephone, main_product, manager_id, activation) - values (UUID(), #{name}, #{presidentName}, #{address}, #{registrationNumber}, #{email}, #{presidentTelephone}, #{vendorManager}, #{vendorManagerTelephone}, #{mainProduct}, #{managerId}, #{activation}) + values (UUID(), #{name}, #{president_name}, #{address}, #{registration_number}, #{email}, #{president_telephone}, #{vendor_manager}, #{vendor_manager_telephone}, #{main_product}, #{manager_id}, #{activation}) diff --git a/src/main/webapp/WEB-INF/views/vendor/create.jsp b/src/main/webapp/WEB-INF/views/vendor/create.jsp index 2a931b4..a9f37cf 100644 --- a/src/main/webapp/WEB-INF/views/vendor/create.jsp +++ b/src/main/webapp/WEB-INF/views/vendor/create.jsp @@ -37,7 +37,7 @@ <%-- 세션 만들어지고 value 수정--%> - + @@ -50,8 +50,8 @@
대표자명 -
@@ -64,8 +64,8 @@
사업자등록번호 -
@@ -78,29 +78,29 @@
대표번호 -
거래처 담당자 이름 -
거래처 담당자 연락 번호 -
주요품목 -
@@ -125,17 +125,17 @@ $("#submitBtn").on("click", function () { - var managerId = $("#managerId").val(); + var managerId = $("#manager_id").val(); var name = $("#name").val(); - var presidentName = $("#presidentName").val(); + var president_name = $("#president_name").val(); var address = $("#address").val(); - var registrationNumber = $("#registrationNumber").val(); + var registration_number = $("#registration_number").val(); var email = $("#email").val(); - var presidentTelephone = $("#presidentTelephone").val(); - var vendorManager = $("#vendorManager").val(); - var vendorManagerTelephone = $("#vendorManagerTelephone").val(); - var mainProduct = $("#mainProduct").val(); + var president_telephone = $("#president_telephone").val(); + var vendor_manager = $("#vendor_manager").val(); + var vendor_manager_telephone = $("#vendor_manager_telephone").val(); + var main_product = $("#main_product").val(); var activation = $("#activation").val(); if (!name) { @@ -145,7 +145,7 @@ } if (!presidentName) { alert("대표자명을 입력해야 합니다."); - $("#presidentName").focus(); + $("#president_name").focus(); return false; } @@ -157,7 +157,7 @@ if (!registrationNumber) { alert("사업자등록번호를 입력해야 합니다."); - $("#registrationNumber").focus(); + $("#registration_number").focus(); return false; } @@ -169,25 +169,25 @@ if (!presidentTelephone) { alert("대표번호를 입력해야 합니다."); - $("#presidentTelephone").focus(); + $("#president_telephone").focus(); return false; } if (!vendorManager) { alert("거래처 담당자 이름을 입력해야 합니다."); - $("#vendorManager").focus(); + $("#vendor_manager").focus(); return false; } if (!vendorManagerTelephone) { alert("거래처 담당자 연락 번호를 입력해야 합니다."); - $("#vendorManagerTelephone").focus(); + $("#vendor_manager_telephone").focus(); return false; } if (!mainProduct) { alert("주요품목을 입력해야 합니다."); - $("#mainProduct").focus(); + $("#main_product").focus(); return false; } @@ -195,17 +195,17 @@ url: "/vendor/create_process", type: "post", data: { - "managerId": managerId, + "manager_id": manager_id, "name": name, - "presidentName": presidentName, + "president_name": president_name, "address": address, - "registrationNumber": registrationNumber, + "registration_number": registration_number, "email": email, - "presidentTelephone": presidentTelephone, - "vendorManager": vendorManager, - "vendorManagerTelephone": vendorManagerTelephone, - "mainProduct": mainProduct, + "president_telephone": president_telephone, + "vendor_manager": vendor_manager, + "vendor_manager_telephone": vendor_manager_telephone, + "main_product": main_product, "activation" : activation }, diff --git a/src/main/webapp/WEB-INF/views/vendor/list.jsp b/src/main/webapp/WEB-INF/views/vendor/list.jsp index 9bd2736..078c088 100644 --- a/src/main/webapp/WEB-INF/views/vendor/list.jsp +++ b/src/main/webapp/WEB-INF/views/vendor/list.jsp @@ -55,9 +55,9 @@ ${start} ${dto.name } - ${dto.presidentTelephone } - ${dto.vendorManager } - ${dto.vendorManagerTelephone } + ${dto.president_telephone } + ${dto.vendor_manager } + ${dto.vendor_manager_telephone } diff --git a/src/main/webapp/WEB-INF/views/vendor/read.jsp b/src/main/webapp/WEB-INF/views/vendor/read.jsp index 3dcc24f..2a3ed85 100644 --- a/src/main/webapp/WEB-INF/views/vendor/read.jsp +++ b/src/main/webapp/WEB-INF/views/vendor/read.jsp @@ -38,7 +38,7 @@
대표자명 - +
@@ -48,7 +48,7 @@
사업자등록번호 -
@@ -59,24 +59,24 @@
대표번호 -
거래처 담당자 이름 - +
거래처 담당자 연락 번호 -
주요품목 - +
diff --git a/src/main/webapp/WEB-INF/views/vendor/update.jsp b/src/main/webapp/WEB-INF/views/vendor/update.jsp index 39417ab..63a34dd 100644 --- a/src/main/webapp/WEB-INF/views/vendor/update.jsp +++ b/src/main/webapp/WEB-INF/views/vendor/update.jsp @@ -37,7 +37,7 @@
- + @@ -50,8 +50,8 @@
대표자명 -
@@ -64,8 +64,8 @@
사업자등록번호 -
@@ -78,29 +78,29 @@
대표번호 -
거래처 담당자 이름 -
거래처 담당자 연락 번호 -
주요품목 -
@@ -125,17 +125,17 @@ $("#updateBtn").on("click", function () { var id = $("#id").val(); - var managerId = $("#managerId").val(); + var manager_id = $("#manager_id").val(); var name = $("#name").val(); - var presidentName = $("#presidentName").val(); + var president_name = $("#president_name").val(); var address = $("#address").val(); - var registrationNumber = $("#registrationNumber").val(); + var registration_number = $("#registration_number").val(); var email = $("#email").val(); - var presidentTelephone = $("#presidentTelephone").val(); - var vendorManager = $("#vendorManager").val(); - var vendorManagerTelephone = $("#vendorManagerTelephone").val(); - var mainProduct = $("#mainProduct").val(); + var president_telephone = $("#president_telephone").val(); + var vendor_manager = $("#vendor_manager").val(); + var vendor_manager_telephone = $("#vendor_manager_telephone").val(); + var main_product = $("#main_product").val(); var activation = $("#activation").val(); if (!name) { @@ -143,9 +143,9 @@ $("#name").focus(); return false; } - if (!presidentName) { + if (!president_name) { alert("대표자명을 입력해야 합니다."); - $("#presidentName").focus(); + $("#president_name").focus(); return false; } @@ -155,9 +155,9 @@ return false; } - if (!registrationNumber) { + if (!registration_number) { alert("사업자등록번호를 입력해야 합니다."); - $("#registrationNumber").focus(); + $("#registration_number").focus(); return false; } @@ -167,27 +167,27 @@ return false; } - if (!presidentTelephone) { + if (!president_telephone) { alert("대표번호를 입력해야 합니다."); $("#presidentTelephone").focus(); return false; } - if (!vendorManager) { + if (!vendor_manager) { alert("거래처 담당자 이름을 입력해야 합니다."); - $("#vendorManager").focus(); + $("#vendor_manager").focus(); return false; } - if (!vendorManagerTelephone) { + if (!vendor_manager_telephone) { alert("거래처 담당자 연락 번호를 입력해야 합니다."); - $("#vendorManagerTelephone").focus(); + $("#vendor_manager_telephone").focus(); return false; } - if (!mainProduct) { + if (!main_product) { alert("주요품목을 입력해야 합니다."); - $("#mainProduct").focus(); + $("#main_product").focus(); return false; } @@ -197,17 +197,17 @@ type: "put", data: { "id": id, - "managerId": managerId, + "manager_id": manager_id, "name": name, - "presidentName": presidentName, + "president_name": president_name, "address": address, - "registrationNumber": registrationNumber, + "registration_number": registration_number, "email": email, - "presidentTelephone": presidentTelephone, - "vendorManager": vendorManager, - "vendorManagerTelephone": vendorManagerTelephone, - "mainProduct": mainProduct, + "president_telephone": president_telephone, + "vendor_manager": vendor_manager, + "vendor_manager_telephone": vendor_manager_telephone, + "main_product": main_product, "activation" : activation }, From b212f14f5324ed0f17383c7be2892202f99a1409 Mon Sep 17 00:00:00 2001 From: sungsu Date: Wed, 17 Jan 2024 16:13:04 +0900 Subject: [PATCH 2/2] #update /stock/list.jsp --- src/main/webapp/WEB-INF/views/stock/list.jsp | 248 +++++++++---------- 1 file changed, 124 insertions(+), 124 deletions(-) diff --git a/src/main/webapp/WEB-INF/views/stock/list.jsp b/src/main/webapp/WEB-INF/views/stock/list.jsp index b7be395..9d62518 100644 --- a/src/main/webapp/WEB-INF/views/stock/list.jsp +++ b/src/main/webapp/WEB-INF/views/stock/list.jsp @@ -1,5 +1,5 @@ -<%@ page contentType="text/html; charset=UTF-8"%> -<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> +<%@ page contentType="text/html; charset=UTF-8" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> @@ -9,8 +9,11 @@ - - + + 재고 관리 @@ -23,12 +26,20 @@ + + + +
@@ -36,18 +47,19 @@
-
- + - - + +
@@ -67,8 +79,8 @@ - - + + ${start} ${dto.productName } ${dto.cls_nm_4 } @@ -90,21 +102,26 @@
@@ -129,7 +146,8 @@
- + @@ -155,7 +173,7 @@ - + ${start} ${dto.productName } ${dto.cls_nm_4 } @@ -177,21 +195,27 @@
@@ -209,11 +233,11 @@ \ No newline at end of file