Explorar el Código

Merge branch 'sowon' into develop

sowon4187 hace 5 años
padre
commit
d5c83d95ff

+ 38 - 0
src/main/java/com/style24/admin/biz/web/TsaMarketingController.java

@@ -1973,6 +1973,44 @@ public class TsaMarketingController extends TsaBaseController {
 		result.set("message", message.getMessage("SUCC_0001"));
 		return result;
 	}
+	
+	/**
+	 * 기획전 템플릿 팝업
+	 *
+	 * @return
+	 * @author sowon
+	 * @since 2021. 2. 18
+	 */
+	@GetMapping("/planning/webdetail/template/form")
+	public ModelAndView planTemplateForm(Plan param) {
+		ModelAndView mav = new ModelAndView();
+
+		// 신규
+		if(param.getMode().equals("C")) {
+			
+		}
+//		// 코너유형목록
+//		mav.addObject("cornerDispTypeCopyList", rendererService.getCommonCodeList("G045", "Y"));
+//
+//		// 코너유형
+//		mav.addObject("planDtlStatCopyList", rendererService.getCommonCodeList("G044", "Y"));
+//
+//		// 코너 조회
+//		mav.addObject("planList", planService.getPlanAllList(param));
+//
+//		if (param.getCopyMode().equals("CORNER")) { // 코너 복사
+//			// 기획전 일련번호
+//			mav.addObject("planSq", param.getPlanSq());
+//		}
+//
+//		// 모드
+//		mav.addObject("copyMode", param.getCopyMode());
+
+		mav.setViewName("marketing/PlanTemplatePopupForm");
+		
+
+		return mav;
+	}
 
 	
 	

+ 109 - 118
src/main/webapp/WEB-INF/views/marketing/PlanListForm.html

@@ -14,36 +14,37 @@
  * 1.0  2021.02.03   sowon        최초 작성
  *******************************************************************************
  -->
-	<div id="main">
-		<div class="main-title">
-		</div>
+<div id="main">
+	<div class="main-title"></div>
 
-		<div class="panelStyle">
-			<form id="planListSearchForm" name="planListSearchForm" action="#" th:action="@{'/marketing/planning/list'}" onsubmit="$('#btnSearch').trigger('click'); return false;">
-				<table class="frmStyle">
-					<colgroup>
-						<col style="width:5%;"/>
-						<col style="width:20%;"/>
-						<col style="width:5%;"/>
-						<col style="width:20%;"/>
-						<col style="width:5%;"/>
-						<col style="width:10%;"/>
-						<col style="width:5%;"/>
-						<col style="width:10%;"/>
-						<col/>
-					</colgroup>
-					<tbody>
-						<tr>
-							<th>사이트</th>
-							<td>
-								<select name="siteCd">
-									<option value="">전체</option>
-									<th:block th:if="${siteCdList}" th:each="oneData, status : ${siteCdList}" >
-										<option th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
-									</th:block>
-								</select>
-							</td>
-							<!-- <th>기획전명</th>
+	<div class="panelStyle">
+		<form id="planListSearchForm" name="planListSearchForm" action="#"
+			th:action="@{'/marketing/planning/list'}"
+			onsubmit="$('#btnSearch').trigger('click'); return false;">
+			<table class="frmStyle">
+				<colgroup>
+					<col style="width: 5%;" />
+					<col style="width: 20%;" />
+					<col style="width: 5%;" />
+					<col style="width: 20%;" />
+					<col style="width: 5%;" />
+					<col style="width: 10%;" />
+					<col style="width: 5%;" />
+					<col style="width: 10%;" />
+					<col />
+				</colgroup>
+				<tbody>
+					<tr>
+						<th>사이트</th>
+						<td><select name="siteCd">
+								<option value="">전체</option>
+								<th:block th:if="${siteCdList}"
+									th:each="oneData, status : ${siteCdList}">
+									<option th:value="${oneData.cd}"
+										th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
+								</th:block>
+						</select></td>
+						<!-- <th>기획전명</th>
 							<td>
 								<input type="text" name="planNm" id="planNm"/>
 							</td>
@@ -51,102 +52,92 @@
 							<td colspan="3">
 								<input type="text" name="planSq" id="planSq"/>
 							</td> -->
-							<th>오픈여부</th>
-							<td>
-								<select name="openYn">
-									<option value="">전체</option>
-									<option th:if="${useYnList}" th:each="oneData, status : ${useYnList}" th:value="${oneData.cd}" th:text="|[${oneData.cd}] ${oneData.cdNm}|"></option>
-								</select>
-							</td>
-							<th>등록자</th>
-							<td>
-								<input type="text" name="regId" id="regId"/>
-							</td>
-							<th rowspan="3">키워드</th>
-							<td rowspan="3">
-								<select name="search" id="search">
-									<option value="searchPlanNm">기획전명</option>
-									<option value="searchPlanSq">기획전번호</option>
-								</select> 
-								<textarea class="textareaR3 w70p" name="condition" id="condition"></textarea>
-							</td>
-						</tr>
-						<tr>
-							<th>PC/모바일구분</th>
-							<td>
-								<select name="frontGb">
-									<option value="">ALL</option>
-									<option value="P">웹</option>
-									<option value="M">모바일</option>
-								</select>
-							</td>
+						<th>오픈여부</th>
+						<td><select name="openYn">
+								<option value="">전체</option>
+								<option th:if="${useYnList}"
+									th:each="oneData, status : ${useYnList}"
+									th:value="${oneData.cd}"
+									th:text="|[${oneData.cd}] ${oneData.cdNm}|"></option>
+						</select></td>
+						<th>등록자</th>
+						<td><input type="text" name="regId" id="regId" /></td>
+						<th rowspan="3">키워드</th>
+						<td rowspan="3"><select name="search" id="search">
+								<option value="searchPlanNm">기획전명</option>
+								<option value="searchPlanSq">기획전번호</option>
+						</select> <textarea class="textareaR3 w70p" name="condition" id="condition"></textarea>
+						</td>
+					</tr>
+					<tr>
+						<th>PC/모바일구분</th>
+						<td><select name="frontGb">
+								<option value="">ALL</option>
+								<option value="P">웹</option>
+								<option value="M">모바일</option>
+						</select></td>
 
-							<th>기획전구분</th>
-							<td>
-								<select name="planGb">
-									<option value="">전체</option>
-									<option value="P">기획전</option>
-									<option value="E">이벤트</option>
-								</select>
-							</td>
-							<th>기획전템플릿유형</th>
-							<td colspan="1">
-								<select name="templateType">
-									<option value="">전체</option>
-									<option value="H">HTML</option>
-									<option value="T">TEXT</option>
-								</select>
-							</td>
-						</tr>
+						<th>기획전구분</th>
+						<td><select name="planGb">
+								<option value="">전체</option>
+								<option value="P">기획전</option>
+								<option value="E">이벤트</option>
+						</select></td>
+						<th>기획전템플릿유형</th>
+						<td colspan="1"><select name="templateType">
+								<option value="">전체</option>
+								<option value="H">HTML</option>
+								<option value="T">TEXT</option>
+						</select></td>
+					</tr>
 
-						<tr>
-							<th>진행기간</th>
-							<td colspan="6" id="sellTerms"></td>
-						</tr>
-					</tbody>
-				</table>
-				
-				<ul class="panelBar">
-					<li class="center">
-					<input type="button" value="초기화" class="btn btn-gray btn-lg" id="btnInit"/>
-					<input type="button" value="조회" class="btn btn-base btn-lg" id="btnSearch"/>
-					</li>
-				</ul>
-				
+					<tr>
+						<th>진행기간</th>
+						<td colspan="6" id="sellTerms"></td>
+					</tr>
+				</tbody>
+			</table>
 
-	<div class="panelStyle">
-			<!-- 검색결과 영역 -->
-			<!-- 상단버튼 영역  -->
-			<ul class="panelBar">
-				<li>
-					<button type="button" class="btn btn-danger btn-lg" onclick="fnSelectedDelete();">삭제</button>
-				</li>
-				<li class="right">
-					<button type="button" class="btn btn-primary btn-lg" onclick="fnPlanWebRegisterPopup();">등록</button>
-					검색결과 : <strong><span id="gridRowTotalCount">0</span> 건</strong>&nbsp;
-					
-					쪽번호 <span id="pgNo">0</span>/ <strong id="endPgNo">0</strong>&nbsp;&nbsp;
-					<select id="pageSize" name="pageSize">
-						<option value="50" selected="selected">50개씩 보기</option>
-						<option value="100">100개씩 보기</option>
-						<option value="500">500개씩 보기</option>
-						<option value="1000">1000개씩 보기</option>
-					</select>
-					<input type="hidden" name="pageNo" id="pageNo" value ="1"/>
-				</li>
-			</ul>
-			
-			<div id="gridList" style="width: 100%; height: 500px;" class="ag-theme-balham"></div>
 			<ul class="panelBar">
-				<li class="center">
-					<div class="tablePaging" id="planListPagination"></div>
-				</li>
+				<li class="center"><input type="button" value="초기화"
+					class="btn btn-gray btn-lg" id="btnInit" /> <input type="button"
+					value="조회" class="btn btn-base btn-lg" id="btnSearch" /></li>
 			</ul>
 		</div>
-			</form>
-		</div>
 
-	</div>
+			<div class="panelStyle">
+				<!-- 검색결과 영역 -->
+				<!-- 상단버튼 영역  -->
+				<ul class="panelBar">
+					<li>
+						<button type="button" class="btn btn-danger btn-lg"
+							onclick="fnSelectedDelete();">삭제</button>
+					</li>
+					<li class="right">
+						<button type="button" class="btn btn-primary btn-lg"
+							onclick="fnPlanWebRegisterPopup();">등록</button> 검색결과 : <strong><span
+							id="gridRowTotalCount">0</span> 건</strong>&nbsp; 쪽번호 <span id="pgNo">0</span>/
+						<strong id="endPgNo">0</strong>&nbsp;&nbsp; <select id="pageSize"
+						name="pageSize">
+							<option value="50" selected="selected">50개씩 보기</option>
+							<option value="100">100개씩 보기</option>
+							<option value="500">500개씩 보기</option>
+							<option value="1000">1000개씩 보기</option>
+					</select> <input type="hidden" name="pageNo" id="pageNo" value="1" />
+					</li>
+				</ul>
+
+				<div id="gridList" style="width: 100%; height: 500px;"
+					class="ag-theme-balham"></div>
+				<ul class="panelBar">
+					<li class="center">
+						<div class="tablePaging" id="planListPagination"></div>
+					</li>
+				</ul>
+			</div>
+
+	</form>
+</div>
 
 <!-- 컬러 피커 -->
 <!-- <script src='https://bgrins.github.io/spectrum/spectrum.js'></script> -->

+ 393 - 0
src/main/webapp/WEB-INF/views/marketing/PlanTemplatePopupForm.html

@@ -0,0 +1,393 @@
+<!DOCTYPE html>
+<html lang="ko"
+	xmlns:th="http://www.thymeleaf.org">
+<!--
+ *******************************************************************************
+ * @source  : PlanCornerCopyForm.html
+ * @desc    : 기획전 템플릿  화면 Page
+ *============================================================================
+ * SISUN
+ * Copyright(C) 2020 TSIT, All rights reserved.
+ *============================================================================
+ * VER  DATE         AUTHOR      DESCRIPTION
+ * ===  ===========  ==========  =============================================
+ * 1.0  2021.02.18   sowon 		  최초 작성
+ *******************************************************************************
+ -->
+<div class="modalPopup" data-width="1200" data-height="800" id="popupPlanTemplate">
+	<div class="panelStyle" style="height: 750px;">
+		<div class="panelTitle">
+			<strong>기획전 템플릿</strong>
+			<button type="button" class="close"
+				onclick="uifnPopupClose('popupPlanTemplate')">
+				<i class="fa fa-times"></i>
+			</button>
+		</div>
+		
+	<div class="cardArea" style="height: 700px;margin: 3px;">
+		<form id="planTemplateForm" name="planTemplateForm" action="#" th:action="@{'/marketing/planning/corner/list'}" th:method="post">
+			<div class="panelContent">
+				<div class="panelStyle" style="margin: unset;">
+					<!-- TITLE -->
+					<div class="panelTitle">
+						<h2>리뷰 구간</h2>
+						<span class="panelControl"> 
+							<i class="fa inner-fa-chevron-up"></i> <!-- 열림/닫힘 화살표 -->
+						</span>
+					</div>
+					<!-- //TITLE -->
+					<div class="inner-panelContent">
+						<div class="panelContent">
+							<table class="frmStyle">
+								<colgroup>
+									<col width="10%" />
+									<col width="90%" />
+								</colgroup>
+								<tr>
+									<th>리뷰</th>
+									<td>
+										<div class="padding10">
+											<span class="buttonSpan">
+												<button type="button" class="btn btnRight btn-success btn-lg" id="">리뷰조회</button>
+												<button type="button" class="btn btnRight btn-success btn-lg" id="">행삭제</button>
+											</span> <br />
+											<div id="gridListPlanReview" style="width: 100%; height: 200px;" class="ag-theme-balham"></div>
+										</div>
+									</td>
+									
+									<th>전시순서</th>
+									<td><input type="text" value="" placeholder="1" class="w100 aR"></td>
+								</tr>
+							</table>
+						</div>
+					</div>
+				</div>
+			</div>
+
+			<div class="panelContent">
+				<div class="panelStyle" style="margin: unset;">
+					<!-- TITLE -->
+					<div class="panelTitle">
+						<h2>쿠폰 조회</h2>
+						<span class="panelControl"> 
+							<i class="fa inner-fa-chevron-up"></i> <!-- 열림/닫힘 화살표 -->
+						</span>
+					</div>
+					<!-- //TITLE -->
+					<div class="inner-panelContent">
+						<div class="panelContent">
+							<table class="frmStyle">
+								<colgroup>
+									<col width="10%" />
+									<col width="90%" />
+								</colgroup>
+								<tr>
+									<th>쿠폰</th>
+									<td>
+										<div class="padding10">
+											<span class="buttonSpan">
+												<button type="button" class="btn btnRight btn-success btn-lg" id="">쿠폰 조회</button>
+												<button type="button" class="btn btnRight btn-success btn-lg" id="">행 삭제</button>
+											</span> <br />
+											<div id="gridListPlanCoupon" style="width: 100%; height: 200px;" class="ag-theme-balham"></div>
+										</div>
+									</td>
+									
+									<th>전시순서</th>
+									<td><input type="text" value="" placeholder="2" class="w100 aR"></td>
+								</tr>
+							</table>
+						</div>
+					</div>
+				</div>
+			</div>
+			
+			<div class="panelContent">
+				<div class="panelStyle" style="margin: unset;">
+					<!-- TITLE -->
+					<div class="panelTitle">
+						<h2>이미지 첨부</h2>
+						<span class="panelControl"> 
+							<i class="fa inner-fa-chevron-up"></i> <!-- 열림/닫힘 화살표 -->
+						</span>
+					</div>
+					<!-- //TITLE -->
+					<div class="inner-panelContent">
+						<div class="panelContent">
+							<table class="frmStyle">
+								<colgroup>
+									<col width="10%" />
+									<col width="90%" />
+								</colgroup>
+								<tr>
+									<th>파일첨부</th>
+									<td colspan="5">
+										<div id="registeredFile"></div>
+										<div style="display: block">
+											<select name="fileCnt" id="fileCnt">
+												<th:block th:each="num: ${#numbers.sequence(1,5)}">
+													<option th:value="${num}" th:text="${num}"></option>
+												</th:block>
+											</select>* 파일 개수 선택(5개까지 가능)
+										</div>
+										<th:block th:each="num: ${#numbers.sequence(1,5)}">
+											<div>
+												<div class="uFile w500">
+													<input type="file" th:id="${'file' + num}" th:name="${'file' + num}" class="uFileInput w500"/>
+													<label th:for="${'file' + num}" class="uFileLabel">파일선택</label>
+													<input type="hidden" name="orgFileNms" th:id="${'orgFileNm' + num}"/>
+													<input type="hidden" name="sysFileNms" th:id="${'sysFileNm' + num}"/>
+												</div>
+												<br/>
+											</div>
+										</th:block>
+									</td>
+									
+									<th>전시순서</th>
+									<td><input type="text" value="" placeholder="3" class="w100 aR"></td>
+								</tr>
+							</table>
+						</div>
+					</div>
+				</div>
+			</div>
+			
+			<div class="panelContent">
+				<div class="panelStyle" style="margin: unset;">
+					<!-- TITLE -->
+					<div class="panelTitle">
+						<h2>HTML</h2>
+						<select>
+							<option>상단</option>
+							<option>하단</option>
+						</select>
+						<span class="panelControl"> 
+							<i class="fa inner-fa-chevron-up"></i> <!-- 열림/닫힘 화살표 -->
+						</span>
+					</div>
+					<!-- //TITLE -->
+					<div class="inner-panelContent">
+						<div class="panelContent">
+							<table class="frmStyle">
+								<colgroup>
+									<col width="10%" />
+									<col width="90%" />
+								</colgroup>
+								<tr>
+									<th>웹용소스</th>
+									<td colspan="5">
+										<div style="margin-top:5px;">
+											<textarea name="fsrcPc" id="fsrcPcDetail" rows="15" cols="95" style="width:1280px;"></textarea>
+										</div>
+									</td>
+								</tr>
+								<tr>
+									<th>모바일용소스</th>
+									<td colspan="5">
+										<div style="margin-top:5px;">
+											<textarea name="fsrcMobile" id="fsrcMobileDetail" rows="15" cols="95" style="width:1280px;"></textarea>
+										</div>
+									</td>
+								</tr>
+								<tr>
+									<th colspan="2">전시순서</th>
+									<td><input type="text" value="" placeholder="4" class="w100 aR"></td>
+								</tr>
+							</table>
+						</div>
+					</div>
+				</div>
+			</div>
+			
+			<div class="panelContent">
+				<div class="panelStyle" style="margin: unset;">
+					<!-- TITLE -->
+					<div class="panelTitle">
+						<h2>상품</h2>
+						<button type="button" class="btn btnRight btn-success btn-lg" id="">추가</button><br>
+						<span class="panelControl"> 
+							<i class="fa inner-fa-chevron-up"></i> <!-- 열림/닫힘 화살표 -->
+						</span>
+					</div>
+					<!-- //TITLE -->
+					<div class="inner-panelContent">
+						<div class="panelContent">
+						<strong>화면 구성:</strong>
+							<select>
+								<option>1</option>
+								<option>2</option>
+								<option>4</option>
+							</select><br>
+							<table class="frmStyle">
+								<colgroup>
+									<col width="10%" />
+									<col width="90%" />
+								</colgroup>
+								<tr>
+									<th>상품</th>
+									<td>
+										<div class="padding10">
+											<ul class="panelBar">
+											<li class="right">
+												<button type="button" class="btn btn-base btn-lg" id="">상품 조회</button>
+												<button type="button" class="btn btn-danger btn-lg" id="">행 삭제</button>
+											</li>
+											</ul><br />
+												<table class="frmStyle">
+													<colgroup>
+														<col width="10%" />
+														<col width="90%" />
+													</colgroup>
+													<tr>
+														<th>상품이름</th>
+														<td colspan="5">
+															<div style="margin-top: 5px;">
+
+															</div>
+														</td>
+														<th>재고</th>
+														<td colspan="5">
+															<div style="margin-top: 5px;">
+
+															</div>
+														</td>
+													</tr>
+												</table>
+											</div>
+									</td>
+									
+									<th>전시순서</th>
+									<td><input type="text" value="" placeholder="5" class="w100 aR"></td>
+								</tr>
+							</table>
+						</div>
+					</div>
+				</div>
+			</div>
+			
+			
+		</form>
+	</div>
+</div>
+</div>
+
+<script type="text/javascript" src="/ux/plugins/summernote/summernote.js?v=2020103001"></script>
+<script type="text/javascript" src="/ux/plugins/gaga/gaga.summernote.js?v=2020103001"></script>
+<script th:inline="javascript">
+/*<![CDATA[*/
+	// 리뷰 리스트 설정
+	var columnReviewList = [
+		{width: 40, minWidth: 40, cellClass: 'text-center', headerCheckboxSelection: true, checkboxSelection: true, filter: false},
+		{headerName: "리뷰ID", field: "", width: 110, cellClass: 'text-center'},
+		{headerName: "", field: "", width: 120, cellClass: 'text-center'},
+		{headerName: "", field: "", width: 150, cellClass: 'text-center'},
+	];
+	
+	// 쿠폰 리스트 설정
+	var columnCouponList = [
+		{width: 40, minWidth: 40, cellClass: 'text-center', headerCheckboxSelection: true, checkboxSelection: true, filter: false},
+		{headerName: "쿠폰ID", field: "", width: 110, cellClass: 'text-center'},
+		{headerName: "", field: "", width: 120, cellClass: 'text-center'},
+		{headerName: "", field: "", width: 150, cellClass: 'text-center'},
+	];
+	
+	// 상품 리스트 설정
+	//var columnGoodsList = [
+	//	{width: 40, minWidth: 40, cellClass: 'text-center', headerCheckboxSelection: true, checkboxSelection: true, filter: false},
+	//	{headerName: "상품ID", field: "", width: 110, cellClass: 'text-center'},
+	//	{headerName: "", field: "", width: 120, cellClass: 'text-center'},
+	//	{headerName: "", field: "", width: 150, cellClass: 'text-center'},
+	//];
+	
+	
+	// 리뷰 그리드 설정
+	var gridOptionsPlanReviewList = gagaAgGrid.getGridOptions(columnReviewList);
+	gridOptionsPlanReviewList.rowSelection = "single";
+	gridOptionsPlanReviewList.suppressRowClickSelection = true;
+	
+	// 리뷰 그리드 설정
+	var gridOptionsPlanCouponeList = gagaAgGrid.getGridOptions(columnCouponList);
+	gridOptionsPlanCouponeList.rowSelection = "single";
+	gridOptionsPlanCouponeList.suppressRowClickSelection = true;
+	
+	// 상품 그리드 설정
+	//var gridOptionsPlanGoodsList = gagaAgGrid.getGridOptions(columnGoodsList);
+	//gridOptionsPlanGoodsList.rowSelection = "single";
+	//gridOptionsPlanGoodsList.suppressRowClickSelection = true;
+	
+	
+	
+	
+	// 첨부파일 삭제
+	var fnDeleteFile = function(obj, noticeSq, seq, sysFileNm) {
+		mcxDialog.confirm('정말 삭제하시겠습니까?', {
+			cancelBtnText: "취소",
+			sureBtnText: "확인",
+			sureBtnClick: function(){
+				var params = new Object();
+				params.noticeSq = noticeSq;
+				params.seq = seq;
+				params.sysFileNm = sysFileNm;
+
+				var jsonData = JSON.stringify(params);
+				gagajf.ajaxJsonSubmit('/board/notice/file/delete', jsonData, function() {
+					$(obj).parent().remove();
+				});
+			}
+		});
+	}
+	
+	
+	// 첨부파일 개수 선택시
+	$("#fileCnt").on("change", function() {
+		for (var i = 1; i <= 5; i++) {
+			$('#file' + i).parent().parent().show();
+		}
+
+		var fileCnt = $(this).val();
+		for (var i = 5; i > fileCnt; i--) {
+			$('#file' + i).parent().parent().hide();
+		}
+	});
+
+	// 파일첨부 선택 시
+	$('#file1').on('change', function() { fnChooseFile(this, 1); });
+	$('#file2').on('change', function() { fnChooseFile(this, 2); });
+	$('#file3').on('change', function() { fnChooseFile(this, 3); });
+	$('#file4').on('change', function() { fnChooseFile(this, 4); });
+	$('#file5').on('change', function() { fnChooseFile(this, 5); });
+
+	var fnChooseFile = function(obj, fileNo) {
+		// multiple 속성이 있으면 files에는 다수의 객체가 할당됨
+		var file = obj.files[0];
+
+		// 파일 업로드
+		gagajf.ajaxFileUpload('/common/file/upload?subDir=/planning'
+				, file
+				, function(result) {
+					// 업로드한 파일명 설정
+					$('#orgFileNm' + fileNo).val(result.oldFileName);
+					$('#sysFileNm' + fileNo).val(result.newFileName);
+				}
+		);
+	}
+	
+$(document).ready(function() {
+		
+		
+		// 썸머노트 그리기
+		gagaSn.createSummernote(snOptions, '#fsrcPcDetail');
+		gagaSn.createSummernote(snOptions, '#fsrcMobileDetail');
+		
+		// 그리드 그리기
+		gagaAgGrid.createGrid("gridListPlanReview", gridOptionsPlanReviewList);
+		gagaAgGrid.createGrid("gridListPlanCoupon", gridOptionsPlanCouponeList);
+		//gagaAgGrid.createGrid("gridListPlanGoods", gridOptionsPlanGoodsList);
+		
+		$("#fileCnt").trigger('change');
+		
+});
+
+/*]]>*/
+</script>
+</html>

+ 11 - 3
src/main/webapp/WEB-INF/views/marketing/PlanWebDetailPopupForm.html

@@ -296,7 +296,7 @@
 								<option value="">선택</option>
 								<option th:if="${planList}" th:each="oneData, status : ${planList}" th:value="${oneData.planSq}" th:text="|[${oneData.planSq}]  ${oneData.planNm}|"></option>
 							</select>
-							<button type="button" class="btn btn-default btn-lg" onclick="fnPlanCopyPopup();">기획전복사</button>
+							<button type="button" class="btn btn-default btn-lg" onclick="fnPlanCopyPopup();">기획전 복사</button>
 						</td>
 					</tr>
 				</table>
@@ -320,10 +320,11 @@
 						</td>
 						<th>기획전탬플릿유형<i class="star"></i></th>
 						<td colspan="3">
-							<select name="templateType" required="required" data-valid-name="기획전탬플릿유형">
+							<button type="button" class="btn btn-default btn-lg" onclick="fnPlanTemplatePopup();">템플릿</button>
+							<!-- <select name="templateType" required="required" data-valid-name="기획전탬플릿유형">
 								<option value="H">HTML</option>
 								<option value="T">TEXT</option>
-							</select>
+							</select> -->
 						</td>
 					</tr>
 					<tr>
@@ -576,6 +577,13 @@
 			$(formId + ' input[name=goodsLimitQty]').hide();
 		}
 	}
+	
+	//템플릿 유형 설정
+	var fnPlanTemplatePopup = function () {
+		var actionUrl = "/marketing/planning/webdetail/template/form?mode=C";
+		cfnOpenModalPopup(actionUrl,'popupPlanTemplate');
+	}
+	
 
 	// 기획전 복사
 	var fnPlanCopyPopup = function() {