|
|
@@ -3,7 +3,7 @@
|
|
|
xmlns:th="http://www.thymeleaf.org">
|
|
|
<!--
|
|
|
*******************************************************************************
|
|
|
- * @source : PlanWebDetailForm.html
|
|
|
+ * @source : PlanDetailForm.html
|
|
|
* @desc : 웹 수정 / 웹 등록 팝업 화면 Page
|
|
|
*============================================================================
|
|
|
* SISUN
|
|
|
@@ -14,16 +14,16 @@
|
|
|
* 1.0 2020.02.04 sowon 최초 작성
|
|
|
*******************************************************************************
|
|
|
-->
|
|
|
-<div class="modalPopup" data-width="1100" id="planWebRegisterFormDiv">
|
|
|
+<div class="modalPopup" data-width="1100" id="planRegisterFormDiv">
|
|
|
<div class="panelStyle">
|
|
|
<div class="panelTitle">
|
|
|
- <h2 th:text="${'기획전 웹 ' + (mode == 'N' ? '등록' : '수정')}">기획전 웹 수정</h2>
|
|
|
- <button type="button" class="close" onclick="uifnPopupClose('popupPlanWebDetail')"><i class="fa fa-times"></i></button>
|
|
|
+ <h2 th:text="${'기획전 ' + (mode == 'N' ? '등록' : '수정')}"></h2>
|
|
|
+ <button type="button" class="close" onclick="uifnPopupClose('planRegisterFormDiv')"><i class="fa fa-times"></i></button>
|
|
|
</div>
|
|
|
|
|
|
<!-- 기획전 웹 수정 -->
|
|
|
<div class="panelContent" th:if="${mode == 'U'}">
|
|
|
- <form th:object="${planInfo}" id="planWebUpdateForm" name="planWebUpdateForm" action="#" th:action="@{'/system/user/save'}" th:method="post">
|
|
|
+ <form th:object="${planInfo}" id="planUpdateForm" name="planUpdateForm" action="#" th:method="post">
|
|
|
<input type="hidden" name="mode" th:value="${mode}"/>
|
|
|
<input type="hidden" name="planSq" th:value="*{planSq}"/>
|
|
|
|
|
|
@@ -271,7 +271,7 @@
|
|
|
<div style='margin: 13px;'>
|
|
|
<ul class="panelBar">
|
|
|
<li class="right" th:if="${mode == 'U'}">
|
|
|
- <button type="button" class="btn btn-success btn-lg" onclick="fnPlanSave('#planWebUpdateForm');">저장</button>
|
|
|
+ <button type="button" class="btn btn-success btn-lg" onclick="fnPlanSave('#planUpdateForm');">저장</button>
|
|
|
</li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
@@ -281,22 +281,25 @@
|
|
|
|
|
|
<!-- 기획전 웹 등록 -->
|
|
|
<div class="panelContent" th:if="${mode == 'N'}">
|
|
|
- <form id="planWebRegisterForm" name="planWebRegisterForm" action="#" th:action="@{'/system/user/save'}" th:method="post">
|
|
|
+ <form id="planRegisterForm" name="planRegisterForm" action="#" th:action="@{'/system/user/save'}" th:method="post">
|
|
|
<input type="hidden" name="mode" th:value="${mode}"/>
|
|
|
<div>
|
|
|
<table class="frmStyle">
|
|
|
<colgroup>
|
|
|
- <col style="width: 150px;"/>
|
|
|
+ <col style="width:13%;"/>
|
|
|
<col/>
|
|
|
</colgroup>
|
|
|
<tr>
|
|
|
<th>기존 기획전</th>
|
|
|
<td>
|
|
|
- <select name="planSq" id="planSq">
|
|
|
+ <!-- <select name="planSq" id="planSq">
|
|
|
<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>
|
|
|
+ </select> -->
|
|
|
+ <input type="text" class="w100" name="searchTxt" id="searchTxt" maxlength="20" readonly="readonly"/>
|
|
|
+ <input type="hidden" class="w100" name="planSq_Hideen" id="planSq_Hideen" maxlength="20"/>
|
|
|
+ <button type="button" class="btn icn" id="btnPopupSearchPlan"><i class="fa fa-search"></i></button>
|
|
|
+ <button type="button" class="btn btn-primary btn-lg" onclick="fnPlanCopyPopup();">기획전 복사</button>
|
|
|
</td>
|
|
|
</tr>
|
|
|
</table>
|
|
|
@@ -534,7 +537,7 @@
|
|
|
</div>
|
|
|
<ul class="panelBar">
|
|
|
<li class="right" th:if="${mode == 'N'}">
|
|
|
- <button type="button" class="btn btn-info btn-lg" onclick="fnPlanSave('#planWebRegisterForm');">저장</button>
|
|
|
+ <button type="button" class="btn btn-info btn-lg" onclick="fnPlanSave('#planRegisterForm');">저장</button>
|
|
|
</li>
|
|
|
</ul>
|
|
|
</form>
|
|
|
@@ -580,14 +583,25 @@
|
|
|
|
|
|
//템플릿 유형 설정
|
|
|
var fnPlanTemplatePopup = function () {
|
|
|
- var actionUrl = "/marketing/planning/webdetail/template/form?mode=C";
|
|
|
+ var actionUrl = "/marketing/planning/detail/template/form?mode=C";
|
|
|
cfnOpenModalPopup(actionUrl,'popupPlanTemplate');
|
|
|
}
|
|
|
|
|
|
+ // 기존 기획전 조회 선택시
|
|
|
+ $('#btnPopupSearchPlan').on('click', function(result) {
|
|
|
+ cfnOpenPlanPopup('popupPlan');
|
|
|
+
|
|
|
+ });
|
|
|
+
|
|
|
+ var popupPlan = function (result) {
|
|
|
+ $("#planSq_Hideen").val(result[0].planSq);
|
|
|
+ $("#searchTxt").val("[" + result[0].planSq + "] " +result[0].planNm);
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
// 기획전 복사
|
|
|
var fnPlanCopyPopup = function() {
|
|
|
- var planSq = $('#planWebRegisterForm select[name=planSq]').val();
|
|
|
+ var planSq = $("#planSq_Hideen").val();
|
|
|
|
|
|
if (gagajf.isNull(planSq)) {
|
|
|
mcxDialog.alert('복사할 기획전을 선택하세요.');
|
|
|
@@ -609,11 +623,11 @@
|
|
|
|
|
|
// 기획전 복사 callback
|
|
|
var fnCopyCallback = function(result) {
|
|
|
- uifnPopupClose('planWebRegisterFormDiv');
|
|
|
+ uifnPopupClose('planRegisterFormDiv');
|
|
|
fnPlanListSearch();
|
|
|
|
|
|
- var actionUrl = "/marketing/planning/webdetail/form?mode=U&planSq=" + result.planSq;
|
|
|
- cfnOpenModalPopup(actionUrl,'popupPlanWebDetail');
|
|
|
+ var actionUrl = "/marketing/planning/detail/form?mode=U&planSq=" + result.planSq;
|
|
|
+ cfnOpenModalPopup(actionUrl,'popupPlan');
|
|
|
}
|
|
|
|
|
|
var fnPlanSave = function(formId) {
|
|
|
@@ -711,7 +725,7 @@
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- //var jsonData = JSON.stringify($("#planWebRegisterForm").serializeObject());
|
|
|
+ //var jsonData = JSON.stringify($("#planRegisterForm").serializeObject());
|
|
|
|
|
|
let allBrandData = gagaAgGrid.getAllRowData(gridOptionsFGBrandList);
|
|
|
var multiBrand = [];
|
|
|
@@ -726,7 +740,7 @@
|
|
|
});
|
|
|
|
|
|
// 기획전 등록
|
|
|
- if (formId == '#planWebRegisterForm') {
|
|
|
+ if (formId == '#planRegisterForm') {
|
|
|
mcxDialog.confirm('등록 하시겠습니까?', {
|
|
|
cancelBtnText: "취소",
|
|
|
sureBtnText: "확인",
|
|
|
@@ -737,37 +751,37 @@
|
|
|
,brandList : allBrandData
|
|
|
,multiCate : multiCate
|
|
|
,CateList : allCateData
|
|
|
- ,mode : $('#planWebRegisterForm input[name=mode]').val()
|
|
|
- ,planSq : $('#planWebRegisterForm input[name=planSq]').val()
|
|
|
- ,planGb : $('#planWebRegisterForm select[name=planGb]').val()
|
|
|
- ,templateType : $('#planWebRegisterForm select[name=templateType]').val()
|
|
|
- ,frontGb : $('#planWebRegisterForm select[name=frontGb]').val()
|
|
|
- ,planNm : $('#planWebRegisterForm input[name=planNm]').val()
|
|
|
- ,startSearchDate : $('#planWebRegisterForm input[name=startSearchDate]').val()
|
|
|
- ,startSearchHour : $('#planWebRegisterForm input[name=startSearchHour]').val()
|
|
|
- ,startSearchMin : $('#planWebRegisterForm input[name=startSearchMin]').val()
|
|
|
- ,endSearchDate : $('#planWebRegisterForm input[name=endSearchDate]').val()
|
|
|
- ,endSearchHour : $('#planWebRegisterForm input[name=endSearchHour]').val()
|
|
|
- ,endSearchMin : $('#planWebRegisterForm input[name=endSearchMin]').val()
|
|
|
- ,dispStdt : $('#planWebRegisterForm input[name=dispStdt]').val()
|
|
|
- ,dispEddt : $('#planWebRegisterForm input[name=dispEddt]').val()
|
|
|
- ,dtlTitle1 : $('#planWebRegisterForm input[name=dtlTitle1]').val()
|
|
|
- ,cornerNmDispYn : $('#planWebRegisterForm select[name=cornerNmDispYn]').val()
|
|
|
- ,openYn : $('#planWebRegisterForm select[name=openYn]').val()
|
|
|
- ,siteCd :$('#planWebRegisterForm select[name=siteCd]').val()
|
|
|
- ,dispOrd : $('#planWebRegisterForm input[name=dispOrd]').val()
|
|
|
- ,replyYn : $('#planWebRegisterForm select[name=replyYn]').val()
|
|
|
- ,mainPimg :$('#planWebRegisterForm input[name=mainPimg]').val()
|
|
|
- ,mainMimg : $('#planWebRegisterForm input[name=mainMimg]').val()
|
|
|
- ,fsrcPc : $('#planWebRegisterForm input[name=fsrcPc]').val()
|
|
|
- ,fsrcMobile : $('#planWebRegisterForm input[name=fsrcMobile]').val()
|
|
|
+ ,mode : $('#planRegisterForm input[name=mode]').val()
|
|
|
+ ,planSq : $('#planRegisterForm input[name=planSq]').val()
|
|
|
+ ,planGb : $('#planRegisterForm select[name=planGb]').val()
|
|
|
+ ,templateType : $('#planRegisterForm select[name=templateType]').val()
|
|
|
+ ,frontGb : $('#planRegisterForm select[name=frontGb]').val()
|
|
|
+ ,planNm : $('#planRegisterForm input[name=planNm]').val()
|
|
|
+ ,startSearchDate : $('#planRegisterForm input[name=startSearchDate]').val()
|
|
|
+ ,startSearchHour : $('#planRegisterForm input[name=startSearchHour]').val()
|
|
|
+ ,startSearchMin : $('#planRegisterForm input[name=startSearchMin]').val()
|
|
|
+ ,endSearchDate : $('#planRegisterForm input[name=endSearchDate]').val()
|
|
|
+ ,endSearchHour : $('#planRegisterForm input[name=endSearchHour]').val()
|
|
|
+ ,endSearchMin : $('#planRegisterForm input[name=endSearchMin]').val()
|
|
|
+ ,dispStdt : $('#planRegisterForm input[name=dispStdt]').val()
|
|
|
+ ,dispEddt : $('#planRegisterForm input[name=dispEddt]').val()
|
|
|
+ ,dtlTitle1 : $('#planRegisterForm input[name=dtlTitle1]').val()
|
|
|
+ ,cornerNmDispYn : $('#planRegisterForm select[name=cornerNmDispYn]').val()
|
|
|
+ ,openYn : $('#planRegisterForm select[name=openYn]').val()
|
|
|
+ ,siteCd :$('#planRegisterForm select[name=siteCd]').val()
|
|
|
+ ,dispOrd : $('#planRegisterForm input[name=dispOrd]').val()
|
|
|
+ ,replyYn : $('#planRegisterForm select[name=replyYn]').val()
|
|
|
+ ,mainPimg :$('#planRegisterForm input[name=mainPimg]').val()
|
|
|
+ ,mainMimg : $('#planRegisterForm input[name=mainMimg]').val()
|
|
|
+ ,fsrcPc : $('#planRegisterForm input[name=fsrcPc]').val()
|
|
|
+ ,fsrcMobile : $('#planRegisterForm input[name=fsrcMobile]').val()
|
|
|
}
|
|
|
|
|
|
var jsonData = JSON.stringify(data);
|
|
|
- gagajf.ajaxJsonSubmit("/marketing/planning/webdetail/create", jsonData, fnPlanWebDetailCallBack);
|
|
|
- uifnPopupClose('planWebRegisterFormDiv');
|
|
|
+ gagajf.ajaxJsonSubmit("/marketing/planning/detail/create", jsonData, fnPlanDetailCallBack);
|
|
|
+ uifnPopupClose('planRegisterFormDiv');
|
|
|
fnPlanListSearch();
|
|
|
- //fnPlanWebDetailClose();
|
|
|
+ //fnPlanDetailClose();
|
|
|
}
|
|
|
});
|
|
|
} else { // 기획전 수정
|
|
|
@@ -781,39 +795,39 @@
|
|
|
,brandList : allBrandData
|
|
|
,multiCate : multiCate
|
|
|
,CateList : allCateData
|
|
|
- ,mode : $('#planWebUpdateForm input[name=mode]').val()
|
|
|
- ,planSq : $('#planWebUpdateForm input[name=planSq]').val()
|
|
|
- ,planGb : $('#planWebUpdateForm select[name=planGb]').val()
|
|
|
- ,templateType : $('#planWebUpdateForm select[name=templateType]').val()
|
|
|
- ,frontGb : $('#planWebUpdateForm select[name=frontGb]').val()
|
|
|
- ,planNm : $('#planWebUpdateForm input[name=planNm]').val()
|
|
|
- ,startSearchDate : $('#planWebUpdateForm input[name=startSearchDate]').val()
|
|
|
- ,startSearchHour : $('#planWebUpdateForm input[name=startSearchHour]').val()
|
|
|
- ,startSearchMin : $('#planWebUpdateForm input[name=startSearchMin]').val()
|
|
|
- ,endSearchDate : $('#planWebUpdateForm input[name=endSearchDate]').val()
|
|
|
- ,endSearchHour : $('#planWebUpdateForm input[name=endSearchHour]').val()
|
|
|
- ,endSearchMin : $('#planWebUpdateForm input[name=endSearchMin]').val()
|
|
|
- ,dispStdt : $('#planWebUpdateForm input[name=dispStdt]').val()
|
|
|
- ,dispEddt : $('#planWebUpdateForm input[name=dispEddt]').val()
|
|
|
- ,dtlTitle1 : $('#planWebUpdateForm input[name=dtlTitle1]').val()
|
|
|
- ,cornerNmDispYn : $('#planWebUpdateForm select[name=cornerNmDispYn]').val()
|
|
|
- ,openYn : $('#planWebUpdateForm select[name=openYn]').val()
|
|
|
- ,siteCd :$('#planWebUpdateForm select[name=siteCd]').val()
|
|
|
- ,dispOrd : $('#planWebUpdateForm input[name=dispOrd]').val()
|
|
|
- ,replyYn : $('#planWebUpdateForm select[name=replyYn]').val()
|
|
|
- ,mainPimg :$('#planWebUpdateForm input[name=mainPimg]').val()
|
|
|
- ,mainMimg : $('#planWebUpdateForm input[name=mainMimg]').val()
|
|
|
- ,fsrcPc : $('#planWebUpdateForm input[name=fsrcPc]').val()
|
|
|
- ,fsrcMobile : $('#planWebUpdateForm input[name=fsrcMobile]').val()
|
|
|
+ ,mode : $('#planUpdateForm input[name=mode]').val()
|
|
|
+ ,planSq : $('#planUpdateForm input[name=planSq]').val()
|
|
|
+ ,planGb : $('#planUpdateForm select[name=planGb]').val()
|
|
|
+ ,templateType : $('#planUpdateForm select[name=templateType]').val()
|
|
|
+ ,frontGb : $('#planUpdateForm select[name=frontGb]').val()
|
|
|
+ ,planNm : $('#planUpdateForm input[name=planNm]').val()
|
|
|
+ ,startSearchDate : $('#planUpdateForm input[name=startSearchDate]').val()
|
|
|
+ ,startSearchHour : $('#planUpdateForm input[name=startSearchHour]').val()
|
|
|
+ ,startSearchMin : $('#planUpdateForm input[name=startSearchMin]').val()
|
|
|
+ ,endSearchDate : $('#planUpdateForm input[name=endSearchDate]').val()
|
|
|
+ ,endSearchHour : $('#planUpdateForm input[name=endSearchHour]').val()
|
|
|
+ ,endSearchMin : $('#planUpdateForm input[name=endSearchMin]').val()
|
|
|
+ ,dispStdt : $('#planUpdateForm input[name=dispStdt]').val()
|
|
|
+ ,dispEddt : $('#planUpdateForm input[name=dispEddt]').val()
|
|
|
+ ,dtlTitle1 : $('#planUpdateForm input[name=dtlTitle1]').val()
|
|
|
+ ,cornerNmDispYn : $('#planUpdateForm select[name=cornerNmDispYn]').val()
|
|
|
+ ,openYn : $('#planUpdateForm select[name=openYn]').val()
|
|
|
+ ,siteCd :$('#planUpdateForm select[name=siteCd]').val()
|
|
|
+ ,dispOrd : $('#planUpdateForm input[name=dispOrd]').val()
|
|
|
+ ,replyYn : $('#planUpdateForm select[name=replyYn]').val()
|
|
|
+ ,mainPimg :$('#planUpdateForm input[name=mainPimg]').val()
|
|
|
+ ,mainMimg : $('#planUpdateForm input[name=mainMimg]').val()
|
|
|
+ ,fsrcPc : $('#planUpdateForm input[name=fsrcPc]').val()
|
|
|
+ ,fsrcMobile : $('#planUpdateForm input[name=fsrcMobile]').val()
|
|
|
}
|
|
|
|
|
|
|
|
|
- var actionUrl = '/marketing/plan/webdetail/update';
|
|
|
+ var actionUrl = '/marketing/plan/detail/update';
|
|
|
var jsonData = JSON.stringify(data);
|
|
|
- gagajf.ajaxJsonSubmit(actionUrl, jsonData, fnPlanWebDetailCallBack);
|
|
|
- uifnPopupClose('planWebRegisterFormDiv');
|
|
|
+ gagajf.ajaxJsonSubmit(actionUrl, jsonData, fnPlanDetailCallBack);
|
|
|
+ uifnPopupClose('planRegisterFormDiv');
|
|
|
fnPlanListSearch();
|
|
|
- //fnPlanWebDetailClose();
|
|
|
+ //fnPlanDetailClose();
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
@@ -889,8 +903,8 @@
|
|
|
$(obj).closest('div').find('input[name="attachYn"]').val(val);
|
|
|
}
|
|
|
|
|
|
- var fnPlanWebDetailCallBack = function() {
|
|
|
- uifnPopupClose('planWebRegisterForm');
|
|
|
+ var fnPlanDetailCallBack = function() {
|
|
|
+ uifnPopupClose('planRegisterForm');
|
|
|
fnPlanListSearch();
|
|
|
|
|
|
}
|
|
|
@@ -900,6 +914,7 @@
|
|
|
{width: 40, minWidth: 40, cellClass: 'text-center', headerCheckboxSelection: true, checkboxSelection: true, filter: false},
|
|
|
{headerName: "브랜드ID", field: "brandCd", width: 110, cellClass: 'text-center'},
|
|
|
{headerName: "브랜드명", field: "brandEnm", width: 120, cellClass: 'text-center'},
|
|
|
+ {headerName: "브랜드그룹명", field: "brandGrpNm", width: 150, cellClass: 'text-center'},
|
|
|
{headerName: "", field: "brandKnm", width: 150, cellClass: 'text-center'},
|
|
|
/* {headerName: "적용대상", field: "targetGb", width: 150, cellClass: 'text-center', hide: true},
|
|
|
{headerName: "시퀀스", field: "tmtbGoodsSq", width: 150, cellClass: 'text-center', hide: true},
|
|
|
@@ -1005,13 +1020,13 @@
|
|
|
gagaAgGrid.createGrid("gridFGCateList", gridOptionsFGCateList);
|
|
|
|
|
|
if (mode =='U') {
|
|
|
- /* $('#planWebDetailForm input[name=badgeFcolor]').spectrum({
|
|
|
+ /* $('#planDetailForm input[name=badgeFcolor]').spectrum({
|
|
|
preferredFormat: "hex",
|
|
|
showInput: true,
|
|
|
allowEmpty: true
|
|
|
});
|
|
|
|
|
|
- $('#planWebDetailForm input[name=badgeBcolor]').spectrum({
|
|
|
+ $('#planDetailForm input[name=badgeBcolor]').spectrum({
|
|
|
preferredFormat: "hex",
|
|
|
showInput: true,
|
|
|
allowEmpty: true
|
|
|
@@ -1021,9 +1036,9 @@
|
|
|
gridOptionsFGCateList.api.setRowData(planCateList);
|
|
|
|
|
|
if (planInfo.goodsLimitYn == 'N') {
|
|
|
- $('#planWebDetailForm input[name=goodsLimitQty]').hide();
|
|
|
+ $('#planDetailForm input[name=goodsLimitQty]').hide();
|
|
|
} else {
|
|
|
- $('#planWebDetailForm input[name=goodsLimitQty]').show();
|
|
|
+ $('#planDetailForm input[name=goodsLimitQty]').show();
|
|
|
}
|
|
|
|
|
|
// 썸머노트 값 설정
|
|
|
@@ -1038,13 +1053,13 @@
|
|
|
}
|
|
|
|
|
|
} else {
|
|
|
- /* $('#planWebRegisterForm input[name=badgeFcolor]').spectrum({
|
|
|
+ /* $('#planRegisterForm input[name=badgeFcolor]').spectrum({
|
|
|
preferredFormat: "hex",
|
|
|
showInput: true,
|
|
|
allowEmpty: true
|
|
|
});
|
|
|
|
|
|
- $('#planWebRegisterForm input[name=badgeBcolor]').spectrum({
|
|
|
+ $('#planRegisterForm input[name=badgeBcolor]').spectrum({
|
|
|
preferredFormat: "hex",
|
|
|
showInput: true,
|
|
|
allowEmpty: true
|