浏览代码

테스트 수정

eskim 4 年之前
父节点
当前提交
8731a5cd85

+ 1 - 1
src/main/java/com/style24/admin/biz/web/TsaGoodsController.java

@@ -1806,7 +1806,7 @@ public class TsaGoodsController extends TsaBaseController {
 		cellName = new String[2];
 		cellName[0] = "goodsCd";
 		cellName[1] = "kmcKey";
-		String targetPath = GagaFileUtil.getConcatenationPath(env.getProperty("upload.default.target.path"), "excel");
+		String targetPath = GagaFileUtil.getConcatenationPath(env.getProperty("upload.excel.target.path"), "excel");
 		Collection<GagaMap> dataList = GagaExcelUtil.getList(GagaFileUtil.getConcatenationPath(targetPath, goodsVideo.getExcelFileNm()), 0, cellName);
 
 		int cnt = goodsService.saveExcelGoodsVideo(dataList);

+ 7 - 8
src/main/webapp/WEB-INF/views/goods/GoodsNoticeForm.html

@@ -68,7 +68,7 @@
 					<tr>
 						<th>공지제목</th>
 						<td>
-							<input name="noteicTitle" type="text" maxlength="200"/>
+							<input name="noticeTitle" type="text" maxlength="200"/>
 						</td>
 						<th>사용여부</th>
 						<td>
@@ -405,22 +405,21 @@
 			return;
 		}
 		
-		var removedData = gagaAgGrid.removeRowData(gridNoticeGoodsOptions, false);
-		
 		// 신규 상세 공지일경우 화면에서만 삭제
 		if (gagajf.isNull($('#goodsNoticeForm input[name=noticeSq]').val())){
 			return;
 		}
 		
-		var arrGoodsCd = [];
-		$.each(selectedData, function(idx, item) {
-			arrGoodsCd.push(item.goodsCd);
-		});
-		
 		mcxDialog.confirm('삭제하시겠습니까?',  {
 			cancelBtnText: "취소",
 			sureBtnText: "확인",
 			sureBtnClick: function(){
+				var removedData = gagaAgGrid.removeRowData(gridNoticeGoodsOptions, false);
+				var arrGoodsCd = [];
+				$.each(selectedData, function(idx, item) {
+					arrGoodsCd.push(item.goodsCd);
+				});
+				
 				var data = {arrGoodsCd : arrGoodsCd
 							,noticeSq : $('#goodsNoticeForm input[name=noticeSq]').val()
 			};

+ 1 - 1
src/main/webapp/WEB-INF/views/goods/GoodsReserveSellForm.html

@@ -375,7 +375,7 @@
 	});
 	
 	var fnGoodsResSellDeleteCallBack = function(){
-		//fnGoodsResSellRegistListSearch($("#goodsResSellListForm input[name=searchGb]").val());
+		fnGoodsResSellRegistListSearch($("#goodsResSellListForm input[name=searchGb]").val());
 	}
 	
 	$(document).ready(function() {

+ 1 - 1
src/main/webapp/WEB-INF/views/goods/GoodsTitleReservePopupForm.html

@@ -167,7 +167,7 @@
 		}
 
 		if (fromDate > toDate) {
-			mcxDialog.alertC("예약 시작일자는 종료일자 보다 클 수 없습니다.", {
+			mcxDialog.alertC("예약 종료일시는 시작료일시 보다 작을 수 없습니다.", {
 				sureBtnText: "확인",
 				sureBtnClick: function() {
 					$('#goodsRsvtTnmForm input[name=applyEdYMD]').focus();

+ 4 - 0
src/main/webapp/WEB-INF/views/marketing/CardInterestPopupForm.html

@@ -296,6 +296,10 @@
 		// Create a summernote
 		var snOptions = gagaSn.getToolbarOptions('media');
 		gagaSn.createSummernote(snOptions, '#note');
+		
+		var date = new Date();
+		$('#cardInterestForm  input[name=prmtStd]').val(date.format("YYYY-MM-DD"));
+		$('#cardInterestForm  input[name=prmtEdd]').val(date.format("YYYY-MM-DD"));
 	});
 
 /*]]>*/

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

@@ -40,7 +40,7 @@
 					</tr>
 					<tr>
 						<th>행사기간<em class="required" title="필수"></em></th>
-						<td >
+						<td id="sellTermsP">
 							<input name="prmtStd" id="prmtStd" type="text" class="w80 schDate" maxlength="10" required="required" data-valid-name="행사시작일" th:value="${cardPrmt.prmtStd}"/>
 							~
 							<input name="prmtEdd" id="prmtEdd" type="text" class="w80 schDate" maxlength="10" required="required" data-valid-name="행사종료일" th:value="${cardPrmt.prmtEdd}"/>
@@ -319,7 +319,10 @@
 	}
 
 	$(document).ready(function() {
-
+		//gagajf.setDate('#sellTermsP','prmtStd', 'prmtEdd', 't');
+		var date = new Date();
+		$('#cardPromotionForm  input[name=prmtStd]').val(date.format("YYYY-MM-DD"));
+		$('#cardPromotionForm  input[name=prmtEdd]').val(date.format("YYYY-MM-DD"));
 	});
 
 /*]]>*/