Преглед на файлове

2/4 csh
메일헤더푸터

ChoiSooHwan преди 5 години
родител
ревизия
2f28b3ede9

+ 0 - 1
src/main/java/com/style24/admin/biz/service/TsaMailTemplateService.java

@@ -8,7 +8,6 @@ import org.springframework.stereotype.Service;
 import org.springframework.transaction.annotation.Transactional;
 import com.style24.admin.biz.dao.TsaMailTemplateDao;
 import com.style24.admin.support.security.session.TsaSession;
-import com.style24.persistence.domain.Itemkind;
 import com.style24.persistence.domain.MailTemplate;
 
 import lombok.extern.slf4j.Slf4j;

+ 10 - 4
src/main/java/com/style24/admin/biz/web/TsaMarketingController.java

@@ -35,8 +35,6 @@ import com.style24.core.support.env.TscConstants;
 import com.style24.core.support.message.TscMessageByLocale;
 import com.style24.persistence.TscPageRequest;
 
-import com.style24.persistence.domain.AnswerPhase;
-
 import com.style24.persistence.domain.CardPromotion;
 import com.style24.persistence.domain.CardPromotionTarget;
 
@@ -44,9 +42,7 @@ import com.style24.persistence.domain.CommonCode;
 import com.style24.persistence.domain.Coupon;
 import com.style24.persistence.domain.CouponRefval;
 import com.style24.persistence.domain.CustCoupon;
-import com.style24.persistence.domain.Faq;
 import com.style24.persistence.domain.FreeGoodsPromotion;
-import com.style24.persistence.domain.Itemkind;
 import com.style24.persistence.domain.MailTemplate;
 import com.style24.persistence.domain.MoreBetter;
 import com.style24.persistence.domain.MoreBetterBurden;
@@ -952,6 +948,16 @@ public class TsaMarketingController extends TsaBaseController {
 		return super.ok(message.getMessage("SUCC_0003"));
 	}
 	
+	/**
+	 * MKT 메일관리 화면
+	 * @param
+	 * @return
+	 * @author csh9191
+	 * @since 2021. 02. 05
+	 */
+	//TODO
+	
+	
 	/* // CSB 진행 */
 
 	/**

+ 8 - 8
src/main/webapp/WEB-INF/views/marketing/MailHeaderFooterDetailForm.html

@@ -25,7 +25,7 @@
 		
 		<!-- CONTENT -->
 		<div class="panelContent">
-			<form id="MailHFForm" name="MailHFForm" action="#" th:action="@{'/marketing/mailtemplate/save'}" th:method="post">
+			<form id="mailHFForm" name="mailHFForm" action="#" th:action="@{'/marketing/mailtemplate/save'}" th:method="post">
 				<input type="hidden" name="mode" th:value="${mode}"/>
 				
 				<table class="frmStyle" aria-describedby="등록폼">
@@ -99,7 +99,7 @@
 	// 저장
 	$('#btnSaveMailHF').on('click', function() {
 		// 입력 값 체크
-		if (!gagajf.validation('#MailHFForm'))
+		if (!gagajf.validation('#mailHFForm'))
 			return false;
 		
 		if (gagajf.isNull($('#mailhfContent').val())) {
@@ -108,7 +108,7 @@
 		}
 		
 		//타이틀 길이 제한 2자 이상 50자 미만
-		var check = $('#MailHFForm input[name=mailhfNm]').val();
+		var check = $('#mailHFForm input[name=mailhfNm]').val();
 
 		if(check.length < 2){
 			mcxDialog.alert('타이틀은 2자 이상 50자 미만으로 입력하세요.');
@@ -119,7 +119,7 @@
 			cancelBtnText: "취소",
 			sureBtnText: "확인",
 			sureBtnClick: function() {
-				gagajf.ajaxFormSubmit($('#MailHFForm').prop('action'), '#MailHFForm', function() {
+				gagajf.ajaxFormSubmit($('#mailHFForm').prop('action'), '#mailHFForm', function() {
 					uifnPopupClose('popupMailHF');
 					$('#btnSearch').trigger('click');
 				});
@@ -131,12 +131,12 @@
 
 	$(document).ready(function() {
 		if (mode == 'U') {
-			$('#MailHFForm input[name=mailhfSq]').val(mailhfInfo.mailhfSq);
-			$('#MailHFForm input[name=mailhfNm]').val(mailhfInfo.mailhfNm);
-			$('#MailHFForm textarea[name=mailhfContent]').val(mailhfInfo.mailhfContent);
+			$('#mailHFForm input[name=mailhfSq]').val(mailhfInfo.mailhfSq);
+			$('#mailHFForm input[name=mailhfNm]').val(mailhfInfo.mailhfNm);
+			$('#mailHFForm textarea[name=mailhfContent]').val(mailhfInfo.mailhfContent);
 			
 			if (mailhfInfo.mailhfGb == 'F') {
-				$('#MailHFForm input:radio[name="mailhfGb"]:radio[value="F"]').prop('checked', true);
+				$('#mailHFForm input:radio[name="mailhfGb"]:radio[value="F"]').prop('checked', true);
 			}
 		}
 		

+ 3 - 7
src/main/webapp/WEB-INF/views/marketing/MailHeaderFooterForm.html

@@ -76,7 +76,7 @@
 						<button type="button" class="btn btn-danger btn-lg" id="btnDeleteRow">선택삭제</button>	
 					</li>
 					<li class="right">
-						<button type="button" class="btn btn-info btn-lg" onclick="fnOpenMailHFPopup('N');">메일등록</button>
+						<button type="button" class="btn btn-info btn-lg" onclick="fnOpenMailHFPopup('N');">메일헤더푸터 등록</button>
 					</li>
 				</ul>
 				<!-- //버튼 배치 영역 -->
@@ -110,17 +110,13 @@
 			headerName: "등록자", field: "regNm", width: 150, cellClass: 'text-center'},
 		{
 			headerName: "등록일시", field: "regDt", width: 200, cellClass: 'text-center',
-			cellRenderer: function(params) {
-			return !gagajf.isNull(params.value) ? params.value.toDate("YYYYMMDDHHmmss").format("YYYY-MM-DD HH:mm:ss") : '';
-			}
+			cellRenderer: function(params) { return gagaAgGrid.toDateTimeFormat(params.value); }
 		},
 		{
 			headerName: "수정자", field: "updNm", width: 150, cellClass: 'text-center'},
 		{
 			headerName: "수정일시", field: "updDt", width: 200, cellClass: 'text-center', 
-			cellRenderer: function(params) {
-			return !gagajf.isNull(params.value) ? params.value.toDate("YYYYMMDDHHmmss").format("YYYY-MM-DD HH:mm:ss") : '';
-			}
+			cellRenderer: function(params) { return gagaAgGrid.toDateTimeFormat(params.value); }
 		}
 	];