Kaynağa Gözat

Merge branch 'develop' into eskim

eskim 5 yıl önce
ebeveyn
işleme
6e12572378

+ 1 - 0
src/main/java/com/style24/admin/biz/dao/TsaBusinessDao.java

@@ -14,6 +14,7 @@ import com.style24.persistence.domain.SellStore;
 import com.style24.persistence.domain.ShipCompany;
 import com.style24.persistence.domain.SiteBrand;
 import com.style24.persistence.domain.StockSyncBase;
+
 import com.style24.persistence.domain.SupplyCompany;
 
 /**

+ 1 - 1
src/main/java/com/style24/persistence/mybatis/shop/TsaClause.xml

@@ -81,7 +81,7 @@
 		     , CLAUSE_TYPE = #{clauseType}
 		     , CLAUSE_TITLE = #{clauseTitle}
 		     , CLAUSE_CONTENT = #{clauseContent}
-		     , EFFECT_DT = STR_TO_DATE(#{effectDt},'%Y-%m-%d')
+		     , EFFECT_DT = STR_TO_DATE(#{effectDt},'%Y%m%d')
 		     , DISP_YN = #{dispYn}
 		     , UPD_NO = #{updNo}
 		     , UPD_DT = NOW()

+ 0 - 1
src/main/webapp/WEB-INF/views/common/fragments/header.html

@@ -56,7 +56,6 @@
 	<script type="text/javascript" th:src="@{'/ux/plugins/gaga/gaga.common.js?v=' + ${#calendars.format(#calendars.createNow(), 'yyyyMMddHHmmss')}}" src="/ux/plugins/gaga/gaga.common.js"></script>
 	<script type="text/javascript" th:src="@{'/ux/plugins/gaga/gaga.validation.js?v=' + ${#calendars.format(#calendars.createNow(), 'yyyyMMddHHmmss')}}" src="/ux/plugins/gaga/gaga.validation.js"></script>
 	<script type="text/javascript" th:src="@{'/ux/plugins/gaga/gaga.agGrid.js?v=' + ${#calendars.format(#calendars.createNow(), 'yyyyMMddHHmmss')}}" src="/ux/plugins/gaga/gaga.agGrid.js"></script>
-	<script type="text/javascript" th:src="@{'/ux/plugins/gaga/gaga.alert.js?v=' + ${#calendars.format(#calendars.createNow(), 'yyyyMMddHHmmss')}}" src="/ux/plugins/gaga/gaga.alert.js"></script>
 </head>
 
 </html>

+ 1 - 1
src/main/webapp/WEB-INF/views/marketing/CouponPopupForm.html

@@ -914,7 +914,7 @@
 						,newCustYn : $('#CouponForm select[name=newCustYn]').val()
 						,afChannel : $('#CouponForm select[name=afChannel]').val()
 						,dcCdGb : $('input:radio[name="dcCdGb"]:checked').val()
-						,rdCpnNm : $('input:radio[name="rdCpnNm"]:checked').val()
+						,rdCpnNm : $('input[name="serialCpnNm"]').val()
 						,supplyCompList : gagaAgGrid.getAllRowData(supplyGridOptions)
 						,brandList : gagaAgGrid.getAllRowData(brandGridOptions)
 						,applyGoodsList : gagaAgGrid.getAllRowData(goodsGridOptions)

+ 2 - 2
src/main/webapp/WEB-INF/views/marketing/FreeGoodsPromotionRegiForm.html

@@ -484,7 +484,7 @@
 			// 상태명 상태에 따라 변경
 			if(freegift.freegiftStat == "G232_12") {					// 중지상태일 경우 중지 일시 노출
 				freegiftStatNm = freegiftStatNm + " (" + freegift.updDt + ")";
-			} else if (freegift.freegiftStat == "G232_11" && freegift.freegiftEddt < yyyy+"."+mm+"."+dd) {	// 종료된 프로모션일 경우 종료일 노출
+			} else if (freegift.freegiftStat == "G232_11" && freegift.freegiftEddt < yyyy+"-"+mm+"-"+dd) {	// 종료된 프로모션일 경우 종료일 노출
 				freegiftStatNm = "종료 (" + freegift.freegiftEddt + ")";
 			}
 
@@ -617,7 +617,7 @@
 			let date = new Date();
 			$("#freeGoodsPromotionForm #freegiftStDate").val(date.format("YYYY-MM-DD"));	// 오늘 날짜
 			date.setDate(date.getDate() + 7);												// 등록일 + 7일
-			$("#freeGoodsPromotionForm #freegiftStDate").val(date.format("YYYY-MM-DD"));	// 1주일 후 날짜
+			$("#freeGoodsPromotionForm #freegiftEdDate").val(date.format("YYYY-MM-DD"));	// 1주일 후 날짜
 
 			$('#freeGoodsPromotionForm #freegiftEdHH option:last').prop("selected", true);
 			$("#freeGoodsPromotionForm #freegiftEdMM option").hide();

+ 9 - 7
src/main/webapp/WEB-INF/views/signin.html

@@ -42,7 +42,7 @@
 							<input type="password" name="passwd" placeholder="비밀번호" maxlength="20" required="required" data-valid-name="비밀번호"/>
 						</li>
 						<li>
-							<label class="chkBox"><input type="checkbox" id="saveId"/>아이디 저장</label>
+							<label class="chkBox"><input type="checkbox" id="chkSaveId"/>아이디 저장</label>
 							<!-- <input type="submit" class="btn btn-black btn-lg" value="Login"/> -->
 							<button type="submit" class="btn btn-black btn-lg">Login</button>
 						</li>
@@ -58,12 +58,12 @@
 				<li>
 					<div class="loginInfo">
 						<p><em><i class="fa fa-info-circle" aria-hidden="true"></i>안내문</em></p>
-						<p>이 시스템은 <b>STYLE24 Admin</b> 전용 시스템입니다.<br/>
+						<p>이 시스템은 <strong>STYLE24 Admin</strong> 전용 시스템입니다.<br/>
 						인증되지 않은 사용자의 다른 접근은 허용하지 않습니다.<br/>
 						본 시스템으로 접근을 시도한 것은 기록에 남게 되며, 반복되는 접근은 불법적인 침입을 하려는 시도로 간주하겠습니다.<br/><br/>
 						본 시스템의 사용과 관련된 문의는<br/>
 						<strong>스타일24(주) 고객센터 (1544-5336)</strong>으로 연락 주시기 바랍니다.</p>
-					<div>
+					</div>
 				</li>
 			</ul>
 		</div>
@@ -76,8 +76,8 @@
 	var ckDefaultExpireDays = 90;
 
 	// Save ID
-	$('#saveId').on('click', function() {
-		if ($('#saveId').is(":checked")) {
+	$('#chkSaveId').on('click', function() {
+		if ($('#chkSaveId').is(":checked")) {
 			if (!gagajf.isNull($('#loginForm input[name=userId]').val())) {
 				gagajf.setCookie(ckAdminId, $('#loginForm input[name=userId]').val(), ckDefaultExpireDays);
 			}
@@ -92,10 +92,12 @@
 		$('#loginForm input[name=userId]').val(gagajf.getCookie(ckAdminId));
 		if (gagajf.isNull($('#loginForm input[name=userId]').val())) {
 			$('#loginForm input[name=userId]').focus();
-			$('#saveId').prop('checked', false);
+			$('#chkSaveId').prop('checked', false);
+			$('#chkSaveId').parent().addClass('checked');
 		} else {
 			$('#loginForm input[name=passwd]').focus();
-			$('#saveId').prop('checked', true);
+			$('#chkSaveId').prop('checked', true);
+			$('#chkSaveId').parent().removeClass('checked');
 		}
 	});
 /*]]>*/

+ 31 - 55
src/main/webapp/ux/js/admin.ui.js

@@ -147,71 +147,47 @@ function lnbToggle(){
 	};
 };
 
+
+//체크박스 전체선택 : 210401
+function uifnAllCheck(el, grpId) {
+	let $thisId = $("#"+grpId);
+	$thisId.find('input').prop("checked", $(el).find("input").is(":checked"));
+	uiChkCount(grpId);
+};
+
+//체크박스 선택된 갯수 출력 : 210401
+function uiChkCount(grpId){
+	let chkLen = $(".chkBox[data-group='"+grpId+"']").find("input:checked").length;//체크된 갯수
+	if( $(".tagNum[data-count='"+grpId+"']") != undefined ){
+		$(".tagNum[data-count='"+grpId+"']").text(chkLen);
+	}
+};
+
 $(document).ready(function(){
 
 	//MODELESS POPUP : draggable
 	$(document).find(".draggable").draggable({containment:"#wrapper", scroll:false});
 
-	//chart resizing
-/* 	$(window).resize(function(){
-	}); */
-
-	//체크박스(단일), 라디오버튼 : readOnly 처리
-	$(document).on("click", "[type=checkbox][readonly],[type=radio][readonly]", function(){
+	//input readOnly 처리
+	$(document).on("click", "[readonly='readonly']", function(){
 		return false;
 	});
 
-	$(document).on("click", ".chkBox", function(e){
-		if (  !$(this).children("input").is("[disabled]")  && !$(this).children("input").is("[readonly]") ) {
-
-			let cntId = $(this).parent().parent("ul").attr("data-count-id");
-			let cntLen;
-
-			if ( $(this).children("input").is('[id]') ){ // ---------------전체선택ID
-				let $id = $(this).children("input").attr("id");
-				if ( $(this).children("input").is(":checked") ) { //체크된 경우
-					$("input[id="+$id+"]").prop("checked", false);
-					$("input[name="+$id+"]").prop("checked", false);
-				} else {
-					$("input[id="+$id+"]").prop("checked", true);
-					$("input[name="+$id+"]").prop("checked", true);
-				};
-				//선택된 개수 출력 (checkBoxList)
-				if (cntId != undefined ) {
-					cntLen =  $("input[name="+$id+"]:checked").length; //체크된 개수
-					$("#"+cntId).text(cntLen);
-				};
-				return false;
-
-			} else {	// ---------------개별선택
-				let $name = $(this).find("input").attr("name");
-				let totLen = $("input[name="+$name+"]").length; //전체 개수
-				if ( $(this).children("input").is(":checked") ) {
-					$(this).find("input").prop("checked", false);
-					$("input[id="+$name+"]").prop("checked", false); //전체선택 체크 해제
-				} else {
-					//$(this).addClass("checked");
-					$(this).find("input").prop("checked", true);
-					cntLen =  $("input[name="+$name+"]:checked").length; //체크된 개수
-					if (totLen == cntLen ){
-						$("input[id="+$name+"]").prop("checked", true); //전체선택 체크
-					}
-				};
-				//선택된 개수 출력 (checkBoxList)
-				if (cntId != undefined ) {
-					cntLen =  $("input[name="+$name+"]:checked").length; //체크된 개수
-					if (totLen > cntLen ) {
-						$("#"+cntId).text(cntLen);
-					} else if  (totLen == cntLen ) {
-						$("#"+cntId).text(totLen);
-					};
-				};
-				return false;
-			};
+	//그룹내 개별 체크박스 선택 : 210401
+	$(document).on("click", ".chkBox", function(){
+		if( $(this).attr("data-group") ) {
+			let grpId = $(this).attr("data-group");
+			let is_checked = true;
+			let chkLen;
+			$(".chkBox[data-group='"+grpId+"']").each(function(){
+				is_checked = is_checked && $(this).find("input").is(":checked");
+			});
+			$("#"+grpId).find("input[name='전체선택']").prop("checked", is_checked); //전체선택 체크 또는 해제
+			uiChkCount(grpId);
 		}
 	});
 
-	/* CheckBox List : More(+) 버튼 */
+	//checkBoxList : More(+,-) 버튼
 	$(document).on("click", ".checkBoxList .more", function(){
 		var thisI = $(this).find("i");
 		if( $(thisI).hasClass("fa-plus") ){
@@ -223,7 +199,7 @@ $(document).ready(function(){
 		}
 	});
 
-	/* Multi CheckBox - 다중선택 체크박스 */
+	//multiCheckBox : Header open
 	$(document).on("click", ".multiCheckBox .sltBtn", function(){
 		if($(this).hasClass("on")){
 			$(this).removeClass("on");