Bläddra i källkod

Merge branch 'bin2107' into develop

bin2107 5 år sedan
förälder
incheckning
4a8471ca8e

+ 18 - 0
style24.admin/src/main/java/com/style24/admin/biz/web/TsaDisplayController.java

@@ -208,4 +208,22 @@ public class TsaDisplayController extends TsaBaseController {
 		return mav;
 	}
 
+	/**
+	 * 상품별카테고리전시관리 화면
+	 * @return
+	 * @author bin2107
+	 * @since 2021. 1. 13
+	 */
+	@GetMapping("/goods/category/form")
+	public ModelAndView goodsCategoryForm() {
+		ModelAndView mav = new ModelAndView();
+
+		// 상품상태
+		mav.addObject("goodsStatList", rendererService.getAvailCommonCodeList("G032"));
+
+		mav.setViewName("display/GoodsCategoryForm");
+
+		return mav;
+	}
+
 }

+ 212 - 0
style24.admin/src/main/webapp/WEB-INF/views/display/GoodsCategoryForm.html

@@ -0,0 +1,212 @@
+<!DOCTYPE html>
+<html lang="ko"
+	xmlns:th="http://www.thymeleaf.org">
+<!--
+ *******************************************************************************
+ * @source  : GoodsCategoryForm.html
+ * @desc    : 상품별카테고리전시관리 Page
+ *============================================================================
+ * STYLE24
+ * Copyright(C) 2020 TSIT, All rights reserved.
+ *============================================================================
+ * VER  DATE         AUTHOR      DESCRIPTION
+ * ===  ===========  ==========  =============================================
+ * 1.0  2021.01.13   bin2107     최초 작성
+ *******************************************************************************
+ -->
+	<div id="main">
+		<!-- 메인타이틀 영역 -->
+		<div class="main-title">
+		</div>
+		<!-- //메인타이틀 영역 -->
+		
+		<!-- 메뉴 설명 -->
+		<div class="infoBox menu-desc">
+		</div>
+		<!-- //메뉴 설명 -->
+		
+		<!-- 검색조건 영역 -->
+		<div class="panelStyle">
+			<form id="goodsCateForm" name="goodsCateForm" action="#" th:action="@{'/display/goods/category/list'}" onsubmit="$('#btnSearch').trigger('click'); return false;">
+				<table class="frmStyle" aria-describedby="검색조건">
+					<colgroup>
+						<col width="7%"/>
+						<col width="18%"/>
+						<col width="7%"/>
+						<col width="18%"/>
+						<col width="7%"/>
+						<col width="18%"/>
+						<col width="7%"/>
+						<col/>
+					</colgroup>
+					<tr>
+						<th>상품코드</th>
+						<td>
+							<input type="text" class="w100" name="goodsCd" id="goodsCd"/>
+						</td>
+						<th>원코드</th>
+						<td>
+							<input type="text" class="w100" name="supplyGoodsCd" maxlength="20" required="required" data-valid-name="원코드"/>
+						</td>
+						<th>상품명</th>
+						<td>
+							<input type="text" class="w100" name="goodsNm" maxlength="200" required="required" data-valid-name="상품명"/>
+						</td>
+						<th>상품상태</th>
+						<td>
+							<select name="goodsStat">
+								<option value=''>[전체]</option>
+								<!--<option th:if="${goodsStatList}" th:each="oneData, status : ${goodsStatList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>-->
+							</select>
+						</td>
+					</tr>
+					<tr>
+						<th>업체코드</th>
+						<td>
+							<select name="supplyCompCd">
+								<option value=''>[전체]</option>
+								<!--<option th:if="${supplyCompList}" th:each="oneData, status : ${supplyCompList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>-->
+							</select>
+						</td>
+						<th>담당MD</th>
+						<td>
+							<select name="mdId">
+								<option value=''>[전체]</option>
+								<!--<option th:if="${mdIdList}" th:each="oneData, status : ${mdIdList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>-->
+							</select>
+						</td>
+						<th>브랜드/품목</th>
+						<td colspan="3">
+							<select name="brandCd">
+								<option value=''>[전체]</option>
+								<!--<option th:if="${brandCdList}" th:each="oneData, status : ${brandCdList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>-->
+							</select>
+							<select name="itemkindCd">
+								<option value=''>[전체]</option>
+								<!--<option th:if="${itemkindList}" th:each="oneData, status : ${itemkindList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>-->
+							</select>
+						</td>
+					</tr>
+					<tr>
+						<th>이월구분</th>
+						<td>
+							<select name="formalGb">
+								<option value=''>[전체]</option>
+								<!--<option th:if="${formalList}" th:each="oneData, status : ${formalList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>-->
+							</select>
+						</td>
+						<th>재고수량</th>
+						<td>
+							<input type="text" class="w100" name="currStockQty" maxlength="11" required="required" data-valid-name="재고수량" data-valid-type="numeric"/>개 이상
+						</td>
+						<th>년도/시즌</th>
+						<td>
+							<select name="styleYear">
+								<option value=''>[전체]</option>
+								<!--<option th:if="${styleYearList}" th:each="oneData, status : ${styleYearList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>-->
+							</select>
+							<select name="seasonCd">
+								<option value=''>[전체]</option>
+								<!--<option th:if="${seasonCdList}" th:each="oneData, status : ${seasonCdList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>-->
+							</select>
+						</td>
+						<th>판매가</th>
+						<td>
+							<input type="text" class="w60" name="currPriceSt" required="required" data-valid-name="판매가" data-valid-type="integer"/>원 ~
+							<input type="text" class="w60" name="currPriceEd" required="required" data-valid-name="판매가" data-valid-type="integer"/>원
+						</td>
+					</tr>
+					<tr>
+						<th>품절여부</th>
+						<td>
+							<select name="soldoutYn">
+								<option value=''>[전체]</option>
+								<option value='Y'>[Y] Yes</option>
+								<option value='N'>[N] No</option>
+							</select>
+						</td>
+						<th>반품/교환</th>
+						<td colspan='3'>
+							<label><input type="checkbox" id="changeableYn">반품불가</label>
+							<input type="hidden" name="changeableYn" class="formControl">
+							<label><input type="checkbox" id="returnableYn">교환불가</label>
+							<input type="hidden" name="returnableYn" class="formControl">
+							<label><input type="checkbox" id="returnFeeFreeYn">무료반품</label>
+							<input type="hidden" name="returnFeeFreeYn" class="formControl">
+							<label><input type="checkbox" id="changeFeeFreeYn">무료교환</label>
+							<input type="hidden" name="changeFeeFreeYn" class="formControl">
+						</td>
+						<th>할인율(%)</th>
+						<td>
+							<input type="text" class="w50" name="dcRateSt" maxlength="3" required="required" data-valid-name="할인율" data-valid-type="numeric"/> ~
+							<input type="text" class="w50" name="dcRateEd" maxlength="3" required="required" data-valid-name="할인율" data-valid-type="numeric"/>
+						</td>
+					</tr>
+					<tr>
+						<th>기간</th>
+						<td id="sellTerms" colspan='7'></td>
+					</tr>
+					<tr>
+						<th>전시여부</th>
+						<td colspan='7'>
+							<select name="useYn">
+								<option value=''>[전체]</option>
+								<option value='Y'>[Y] Yes</option>
+								<option value='N'>[N] No</option>
+							</select>
+						</td>
+					</tr>
+				</table>
+			</form>
+		</div>
+		<!-- 검색조건 영역 -->
+
+		<!-- 리스트 영역 -->
+		<div class="panelStyle">
+			<div id="gridList" style="width: 100%; height: 470px" class="ag-theme-balham"></div>
+		</div>
+		<!-- //리스트 영역 -->
+		
+		<!-- 등록/수정 -->
+		<div class="panelStyle">
+			<form id="detailForm" name="detailForm" action="#" th:action="@{'/display/category/save'}">
+				<table class="frmStyle" aria-describedby="등록/수정 폼">
+					<colgroup>
+						<col style="width:10%;"/>
+						<col style="width:23%;"/>
+						<col style="width:10%;"/>
+						<col style="width:23%;"/>
+						<col style="width:10%;"/>
+						<col/>
+					</colgroup>
+
+				</table>
+			</form>
+			
+			<!-- 버튼 배치 영역 -->
+			<ul class="panelBar">
+				<li class="right">
+					<button type="button" class="btn btn-info btn-lg" id="btnNew">신규</button>
+					<button type="button" class="btn btn-success btn-lg" id="btnSave">저장</button>
+					<button type="button" class="btn btn-base btn-lg" id="btnRefresh4Srch" th:if="${sessionInfo.roleCd == 'G001_0000'}">4SRCH 갱신</button>
+				</li>
+			</ul>
+			<!-- //버튼 배치 영역 -->
+		</div>
+		<!-- 등록/수정 -->
+	</div>
+
+<script th:inline="javascript">
+/*<![CDATA[*/
+$(document).ready(function() {
+
+	cfnCreateCalendar('#sellTerms', 'searchStdt', 'searchEddt', true, '기간', 'X');
+
+	// Create a agGrid
+	//gagaAgGrid.createGrid('gridList', gridOptions);
+
+});
+/*]]>*/
+</script>
+
+</html>