瀏覽代碼

Merge branch 'develop' into bin2107

bin2107 4 年之前
父節點
當前提交
e9db80815c

+ 37 - 1
src/main/java/com/style24/admin/biz/dao/TsaDisplayDao.java

@@ -3,7 +3,16 @@ package com.style24.admin.biz.dao;
 import java.util.Collection;
 
 import com.style24.core.support.annotation.ShopDs;
-import com.style24.persistence.domain.*;
+import com.style24.persistence.domain.Category;
+import com.style24.persistence.domain.CategoryGoods;
+import com.style24.persistence.domain.Contents;
+import com.style24.persistence.domain.GnbTab;
+import com.style24.persistence.domain.Goods;
+import com.style24.persistence.domain.GoodsCategory;
+import com.style24.persistence.domain.ItemkindCategory;
+import com.style24.persistence.domain.MainDisplay;
+import com.style24.persistence.domain.SearchKeyword;
+import com.style24.persistence.domain.SplashImage;
 
 /**
  * 전시 Dao
@@ -345,6 +354,7 @@ public interface TsaDisplayDao {
 	 * @since 2021. 2. 26
 	 */
 	void deleteContentsGoodsTemp(Contents contents);
+
 	void saveContentsGoodsTemp(Contents contents);
 
 	/**
@@ -354,6 +364,7 @@ public interface TsaDisplayDao {
 	 * @since 2021. 3. 2
 	 */
 	void deleteContentsGoods(Contents contents);
+
 	void saveContentsGoods(Contents contents);
 
 	/**
@@ -407,4 +418,29 @@ public interface TsaDisplayDao {
 	 * @since 2021. 7. 1
 	 */
 	Collection<SearchKeyword> getSearchKeywordList(SearchKeyword searchKeyword);
+
+	/**
+	 * 스플래시이미지 목록
+	 * @return
+	 * @author gagamel
+	 * @since 2021. 7. 2
+	 */
+	Collection<SplashImage> getSplashImageList();
+
+	/**
+	 * 스플래시이미지 등록
+	 * @param splashImg - 스플래시이미지 정보
+	 * @author gagamel
+	 * @since 2021. 7. 2
+	 */
+	void createSplashImage(SplashImage splashImg);
+
+	/**
+	 * 스플래시이미지 수정
+	 * @param splashImage - 스플래시이미지 정보
+	 * @author gagamel
+	 * @since 2021. 7. 2
+	 */
+	void updateSplashImage(SplashImage splashImg);
+
 }

+ 93 - 66
src/main/java/com/style24/admin/biz/service/TsaDisplayService.java

@@ -4,15 +4,6 @@ import java.io.File;
 import java.io.IOException;
 import java.util.Collection;
 
-import com.style24.persistence.domain.Category;
-import com.style24.persistence.domain.CategoryGoods;
-import com.style24.persistence.domain.Contents;
-import com.style24.persistence.domain.GnbTab;
-import com.style24.persistence.domain.Goods;
-import com.style24.persistence.domain.GoodsCategory;
-import com.style24.persistence.domain.ItemkindCategory;
-import com.style24.persistence.domain.MainDisplay;
-import com.style24.persistence.domain.SearchKeyword;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.cache.annotation.CacheEvict;
 import org.springframework.core.env.Environment;
@@ -23,6 +14,16 @@ import org.springframework.util.StringUtils;
 import com.style24.admin.biz.dao.TsaDisplayDao;
 import com.style24.admin.support.security.session.TsaSession;
 import com.style24.core.biz.service.TscCommonService;
+import com.style24.persistence.domain.Category;
+import com.style24.persistence.domain.CategoryGoods;
+import com.style24.persistence.domain.Contents;
+import com.style24.persistence.domain.GnbTab;
+import com.style24.persistence.domain.Goods;
+import com.style24.persistence.domain.GoodsCategory;
+import com.style24.persistence.domain.ItemkindCategory;
+import com.style24.persistence.domain.MainDisplay;
+import com.style24.persistence.domain.SearchKeyword;
+import com.style24.persistence.domain.SplashImage;
 
 import lombok.extern.slf4j.Slf4j;
 
@@ -117,8 +118,7 @@ public class TsaDisplayService {
 		category.setUpdNo(TsaSession.getInfo().getUserNo());
 		displayDao.saveCategory1(category);
 	}
-		
-	
+
 	/**
 	 * 카테고리 갱신
 	 * @author gagamel
@@ -222,46 +222,46 @@ public class TsaDisplayService {
 		goodsCategory.setRegNo(TsaSession.getInfo().getUserNo());
 		goodsCategory.setUpdNo(TsaSession.getInfo().getUserNo());
 
-		if(!StringUtils.isEmpty(goodsCategory.getGoodsCds())){
+		if (!StringUtils.isEmpty(goodsCategory.getGoodsCds())) {
 			String[] goodsCdArr = goodsCategory.getGoodsCds().split(",");
 			for (String goodsCd : goodsCdArr) {
 				goodsCategory.setGoodsCd(goodsCd);
 				int cnt = 0;
 				for (String cateCd : goodsCategory.getCateCdArr()) {
-					if(!StringUtils.isEmpty(cateCd)){
+					if (!StringUtils.isEmpty(cateCd)) {
 						//goodsCategory.setCateCd(cateCd);
 						//goodsCategory.setCateGb(goodsCategory.getCateGbArr()[cnt]);
 						//goodsCategory.setCateType(goodsCategory.getCateTypeArr()[cnt]);
 						//displayDao.saveGoodsCategory(goodsCategory);
 
-						if(!"G031_20".equals(goodsCategory.getCateType())){
-							if(!StringUtils.isEmpty(goodsCategory.getCateCd1Arr()[cnt])){
-								String[] cate1Array = goodsCategory.getCateCd1Arr()[cnt] .split(",");
-								if(cate1Array[1].equals("Y")){
+						if (!"G031_20".equals(goodsCategory.getCateType())) {
+							if (!StringUtils.isEmpty(goodsCategory.getCateCd1Arr()[cnt])) {
+								String[] cate1Array = goodsCategory.getCateCd1Arr()[cnt].split(",");
+								if (cate1Array[1].equals("Y")) {
 									goodsCategory.setCateCd(cate1Array[0]);
 									displayDao.saveGoodsCategory(goodsCategory);
 								}
 							}
 
-							if(!StringUtils.isEmpty(goodsCategory.getCateCd2Arr()[cnt])){
-								String[] cate2Array = goodsCategory.getCateCd2Arr()[cnt] .split(",");
-								if(cate2Array[1].equals("Y")){
+							if (!StringUtils.isEmpty(goodsCategory.getCateCd2Arr()[cnt])) {
+								String[] cate2Array = goodsCategory.getCateCd2Arr()[cnt].split(",");
+								if (cate2Array[1].equals("Y")) {
 									goodsCategory.setCateCd(cate2Array[0]);
 									displayDao.saveGoodsCategory(goodsCategory);
 								}
 							}
 
-							if(!StringUtils.isEmpty(goodsCategory.getCateCd3Arr()[cnt])){
+							if (!StringUtils.isEmpty(goodsCategory.getCateCd3Arr()[cnt])) {
 								String[] cate3Array = goodsCategory.getCateCd3Arr()[cnt].split(",");
-								if(cate3Array[1].equals("Y")){
+								if (cate3Array[1].equals("Y")) {
 									goodsCategory.setCateCd(cate3Array[0]);
 									displayDao.saveGoodsCategory(goodsCategory);
 								}
 							}
 
-							if(!StringUtils.isEmpty(goodsCategory.getCateCd4Arr()[cnt])){
+							if (!StringUtils.isEmpty(goodsCategory.getCateCd4Arr()[cnt])) {
 								String[] cate4Array = goodsCategory.getCateCd4Arr()[cnt].split(",");
-								if(cate4Array[1].equals("Y")){
+								if (cate4Array[1].equals("Y")) {
 									goodsCategory.setCateCd(cate4Array[0]);
 									displayDao.saveGoodsCategory(goodsCategory);
 								}
@@ -292,7 +292,7 @@ public class TsaDisplayService {
 	 */
 	@Transactional("shopTxnManager")
 	public void deleteGoodsCategoryList(GoodsCategory goodsCategory) {
-		for(int i=0; i<goodsCategory.getGoodsList().size(); i++){
+		for (int i = 0; i < goodsCategory.getGoodsList().size(); i++) {
 			goodsCategory.setGoodsCd(goodsCategory.getGoodsList().get(i).getGoodsCd());
 			goodsCategory.setCateNo(goodsCategory.getGoodsList().get(i).getCateCd());
 			this.deleteGoodsCategory(goodsCategory);
@@ -330,14 +330,14 @@ public class TsaDisplayService {
 	 * @author bin2107
 	 * @since 2021. 2. 15
 	 */
-	public void moveCategoryGoods(CategoryGoods categoryGoods){
+	public void moveCategoryGoods(CategoryGoods categoryGoods) {
 		GoodsCategory goodsCategory = new GoodsCategory();
 		goodsCategory.setRegNo(categoryGoods.getRegNo());
-		for(int i=0; i<categoryGoods.getGoodsList().size(); i++){
+		for (int i = 0; i < categoryGoods.getGoodsList().size(); i++) {
 			goodsCategory.setGoodsCd(categoryGoods.getGoodsList().get(i).getGoodsCd());
 			goodsCategory.setCateCd(categoryGoods.getAddCateNo());
 			displayDao.saveGoodsCategory(goodsCategory);
-			if("move".equals(categoryGoods.getMode())){
+			if ("move".equals(categoryGoods.getMode())) {
 				goodsCategory.setCateNo(categoryGoods.getCateNo());
 				displayDao.deleteGoodsCategory(goodsCategory);
 			}
@@ -350,9 +350,9 @@ public class TsaDisplayService {
 	 * @author bin2107
 	 * @since 2021. 2. 15
 	 */
-	public void deleteCategoryGoods(CategoryGoods categoryGoods){
+	public void deleteCategoryGoods(CategoryGoods categoryGoods) {
 		GoodsCategory goodsCategory = new GoodsCategory();
-		for(int i=0; i<categoryGoods.getGoodsList().size(); i++){
+		for (int i = 0; i < categoryGoods.getGoodsList().size(); i++) {
 			goodsCategory.setGoodsCd(categoryGoods.getGoodsList().get(i).getGoodsCd());
 			goodsCategory.setCateNo(categoryGoods.getGoodsList().get(i).getCateNo());
 			displayDao.deleteGoodsCategory(goodsCategory);
@@ -365,10 +365,10 @@ public class TsaDisplayService {
 	 * @author bin2107
 	 * @since 2021. 2. 15
 	 */
-	public void insertCategoryGoods(CategoryGoods categoryGoods){
+	public void insertCategoryGoods(CategoryGoods categoryGoods) {
 		GoodsCategory goodsCategory = new GoodsCategory();
 		goodsCategory.setRegNo(categoryGoods.getRegNo());
-		for(int i=0; i<categoryGoods.getMultiGoods().length; i++){
+		for (int i = 0; i < categoryGoods.getMultiGoods().length; i++) {
 			goodsCategory.setGoodsCd(categoryGoods.getMultiGoods()[i]);
 			goodsCategory.setCateCd((categoryGoods.getCateNo()).toString());
 			goodsCategory.setBrandGroupNo(categoryGoods.getBrandGroupNo());
@@ -410,11 +410,11 @@ public class TsaDisplayService {
 	 */
 	@Transactional("shopTxnManager")
 	public void updateCategoryGoodsDispOrdUpdown(CategoryGoods categoryGoods) {
-		if("up".equals(categoryGoods.getChangeGb())){
+		if ("up".equals(categoryGoods.getChangeGb())) {
 			categoryGoods.setChangeGb("min");
 			displayDao.updateCategoryGoodsDispOrdUpdown(categoryGoods);
 			categoryGoods.setChangeGb("up");
-		}else if("down".equals(categoryGoods.getChangeGb())){
+		} else if ("down".equals(categoryGoods.getChangeGb())) {
 			categoryGoods.setChangeGb("max");
 			displayDao.updateCategoryGoodsDispOrdUpdown(categoryGoods);
 			categoryGoods.setChangeGb("down");
@@ -431,7 +431,7 @@ public class TsaDisplayService {
 	@Transactional("shopTxnManager")
 	public void updateCategoryGoodsDispOrd(CategoryGoods categoryGoods) {
 		int cnt = 0;
-		for(String goodsCd : categoryGoods.getGoodsCdArr()){
+		for (String goodsCd : categoryGoods.getGoodsCdArr()) {
 			categoryGoods.setGoodsCd(goodsCd);
 			categoryGoods.setDispOrd(categoryGoods.getDispOrdArr()[cnt]);
 			displayDao.updateCategoryGoodsDispOrd(categoryGoods);
@@ -468,26 +468,26 @@ public class TsaDisplayService {
 	 */
 	@Transactional("shopTxnManager")
 	public void saveMainLayout(Collection<MainDisplay> mainDisplayList) {
-		for(MainDisplay mainDisplay: mainDisplayList){
-			log.info("mainDisplay.getContentsLoc()::::{}",mainDisplay.getContentsLoc());
-			if(mainDisplay != null && mainDisplay.getContentsLoc() != null){
+		for (MainDisplay mainDisplay : mainDisplayList) {
+			log.info("mainDisplay.getContentsLoc()::::{}", mainDisplay.getContentsLoc());
+			if (mainDisplay != null && mainDisplay.getContentsLoc() != null) {
 				displayDao.deleteMainLayout(mainDisplay);
 				break;
 			}
 		}
 
-		for(MainDisplay mainDisplay: mainDisplayList){
-			log.info("mainDisplay.getCateNo()::::{}",mainDisplay.getCateNo());
+		for (MainDisplay mainDisplay : mainDisplayList) {
+			log.info("mainDisplay.getCateNo()::::{}", mainDisplay.getCateNo());
 			// 이미지 변경 시
-			if(mainDisplay.getNewSysFileNm() != null && mainDisplay.getNewSysFileNm() != ""){
+			if (mainDisplay.getNewSysFileNm() != null && mainDisplay.getNewSysFileNm() != "") {
 				String bannerUploadPath = env.getProperty("upload.default.target.path");
 				bannerUploadPath = GagaFileUtil.getConcatenationPath(bannerUploadPath, "/mainLayout");
 				String newFilename = "MAIN_LAYOUT_" + mainDisplay.getContentsLoc() + "_" + GagaDateUtil.getTodayDateTime() + "." + StringUtils.getFilenameExtension(mainDisplay.getNewSysFileNm());
 
 				// 기존이미지 삭제
-				try{
+				try {
 					GagaFileUtil.deleteFile(GagaFileUtil.getConcatenationPath(bannerUploadPath, mainDisplay.getOrgFileNm()));
-				}catch (IOException e){
+				} catch (IOException e) {
 					//  nothing
 					log.info("[saveBanner MAIN_LAYOUT 기존 이미지 삭제중 error]");
 					//e.printStackTrace();
@@ -526,7 +526,7 @@ public class TsaDisplayService {
 	 */
 	public Collection<Contents> getContentsPreviewList(Contents contents) {
 		Collection<Contents> previewList = displayDao.getContentsPreviewList(contents);
-		for(Contents tempGoods : previewList){
+		for (Contents tempGoods : previewList) {
 			tempGoods.setContentsGoodsList(displayDao.getContentsForGoodsList(tempGoods));
 		}
 
@@ -561,14 +561,14 @@ public class TsaDisplayService {
 	 */
 	@Transactional("shopTxnManager")
 	public void saveGnbtabPreview(Collection<GnbTab> gnbTabList) {
-		for(GnbTab gnbTab : gnbTabList){
-			if(gnbTab != null && gnbTab.getGtabGb() != null){
+		for (GnbTab gnbTab : gnbTabList) {
+			if (gnbTab != null && gnbTab.getGtabGb() != null) {
 				displayDao.deleteGnbTabPreview(gnbTab);
 				break;
 			}
 		}
 
-		for(GnbTab gnbTab : gnbTabList){
+		for (GnbTab gnbTab : gnbTabList) {
 			gnbTab.setRegNo(TsaSession.getInfo().getUserNo());
 			gnbTab.setUpdNo(TsaSession.getInfo().getUserNo());
 			displayDao.saveGnbTabPreview(gnbTab);
@@ -610,7 +610,7 @@ public class TsaDisplayService {
 			if (contents != null && contents.getDispStdt() != null && !contents.getDispStdt().equals("")) {
 				// 브랜드 이미지 변경이 일어났을 경우
 				String brandGroupImg = contents.getBrandGroupImg();
-				if(brandGroupImg != null && !brandGroupImg.equals("")){
+				if (brandGroupImg != null && !brandGroupImg.equals("")) {
 					String imgInd = "01";
 					String bannerUploadPath = env.getProperty("upload.default.target.path");
 					String yearMonth = GagaDateUtil.getToday().substring(0, 6);
@@ -638,17 +638,17 @@ public class TsaDisplayService {
 						}
 						String bannerUploadPath = env.getProperty("upload.default.target.path");
 						String yearMonth = GagaDateUtil.getToday().substring(0, 6);
-						if("Y".equals(contents.getMultiContentsYn())){
+						if ("Y".equals(contents.getMultiContentsYn())) {
 							bannerUploadPath = GagaFileUtil.getConcatenationPath(bannerUploadPath, "/contents/planning");
-						}else{
+						} else {
 							bannerUploadPath = GagaFileUtil.getConcatenationPath(bannerUploadPath, "/contents");
 						}
 						File newFile = new File(GagaFileUtil.getConcatenationPath(bannerUploadPath, newImgFile));
 						bannerUploadPath = GagaFileUtil.getConcatenationPath(bannerUploadPath, yearMonth);
 						String newFilename = "";
-						if("Y".equals(contents.getMultiContentsYn())){
+						if ("Y".equals(contents.getMultiContentsYn())) {
 							newFilename = "PLANNING_" + GagaDateUtil.getTodayDateTime() + "_" + imgInd + "." + StringUtils.getFilenameExtension(newImgFile);
-						}else{
+						} else {
 							newFilename = "CONTENS_" + GagaDateUtil.getTodayDateTime() + "_" + imgInd + "." + StringUtils.getFilenameExtension(newImgFile);
 						}
 						File uniqueFile = GagaFileUtil.getUniqueFile(new File(GagaFileUtil.getConcatenationPath(bannerUploadPath, newFilename)));
@@ -660,9 +660,9 @@ public class TsaDisplayService {
 						newFile.renameTo(uniqueFile);
 
 						String contentsPath = "";
-						if("Y".equals(contents.getMultiContentsYn())){
+						if ("Y".equals(contents.getMultiContentsYn())) {
 							contentsPath = "/contents/planning/";
-						}else{
+						} else {
 							contentsPath = "/contents/";
 						}
 						if (cnt == 1) {
@@ -694,17 +694,17 @@ public class TsaDisplayService {
 			}
 		}
 
-		for (Contents contents1 : contentsList){
-			if(contents1 != null && contents1.getGoodsCdArr() != null){
-				if(contents1.getContentsLoc().equals("SMM012")){
+		for (Contents contents1 : contentsList) {
+			if (contents1 != null && contents1.getGoodsCdArr() != null) {
+				if (contents1.getContentsLoc().equals("SMM012")) {
 					contents1.setCateNo(1700);
 				}
 				contents1.setContentsSq(contents1.getDispOrd());
 				contents1.setRegNo(TsaSession.getInfo().getUserNo());
 				displayDao.deleteContentsGoodsTemp(contents1);
 
-				if(contents1.getGoodsCdArr().length>0){
-					for(int i=0; i<contents1.getGoodsCdArr().length; i++){
+				if (contents1.getGoodsCdArr().length > 0) {
+					for (int i = 0; i < contents1.getGoodsCdArr().length; i++) {
 						contents1.setGoodsCd(contents1.getGoodsCdArr()[i]);
 //						contents1.setGoodsNm(contents1.getGoodsNmArr()[i]);
 //						contents1.setImgPath1(contents1.getGoodsImgArr()[i]);
@@ -723,22 +723,22 @@ public class TsaDisplayService {
 	 * @since 2021. 2. 23
 	 */
 	@Transactional("shopTxnManager")
-	public void saveContents(Contents contents){
+	public void saveContents(Contents contents) {
 		contents.setRegNo(TsaSession.getInfo().getUserNo());
 		contents.setUpdNo(TsaSession.getInfo().getUserNo());
-		for(String contentsLoc : contents.getContentsLocArr()) {
+		for (String contentsLoc : contents.getContentsLocArr()) {
 			contents.setContentsLoc(contentsLoc);
 			displayDao.deleteContents(contents);
 			displayDao.saveContents(contents);
-			if("SMM007".equals(contentsLoc) || "SMM009".equals(contentsLoc)){
+			if ("SMM007".equals(contentsLoc) || "SMM009".equals(contentsLoc)) {
 				displayDao.deleteContentsGoods(contents);
 				displayDao.saveContentsGoods(contents);
 			}
-			if("STAB002".equals(contentsLoc) || "SBM002".equals(contentsLoc)){
+			if ("STAB002".equals(contentsLoc) || "SBM002".equals(contentsLoc)) {
 				GnbTab gnbTab = new GnbTab();
-				if("STAB002".equals(contentsLoc)){
+				if ("STAB002".equals(contentsLoc)) {
 					gnbTab.setGtabGb("C");
-				}else{
+				} else {
 					gnbTab.setGtabGb("B");
 					gnbTab.setBrandGroupNo(Integer.parseInt(contents.getBrandGroupNo()));
 				}
@@ -756,7 +756,7 @@ public class TsaDisplayService {
 	 * @author bin2107
 	 * @since 2021. 2. 24
 	 */
-	public Category getCategory4srch(Category category){
+	public Category getCategory4srch(Category category) {
 		return displayDao.getCategory4srch(category);
 	}
 
@@ -791,4 +791,31 @@ public class TsaDisplayService {
 	public Collection<SearchKeyword> getSearchKeywordList(SearchKeyword searchKeyword) {
 		return displayDao.getSearchKeywordList(searchKeyword);
 	}
+
+	/**
+	 * 스플래시이미지 목록
+	 * @return
+	 * @author gagamel
+	 * @since 2021. 7. 2
+	 */
+	public Collection<SplashImage> getSplashImageList() {
+		return displayDao.getSplashImageList();
+	}
+
+	/**
+	 * 스플래시이미지 등록/수정
+	 * @param splashImg - 스플래시이미지 정보
+	 * @author gagamel
+	 * @since 2021. 7. 2
+	 */
+	@Transactional("shopTxnManager")
+	@CacheEvict(value = "splashimg", allEntries = true)
+	public void saveSplashImage(SplashImage splashImg) {
+		if (splashImg.getMode().equals("N")) {
+			displayDao.createSplashImage(splashImg);
+		} else {
+			displayDao.updateSplashImage(splashImg);
+		}
+	}
+
 }

+ 79 - 35
src/main/java/com/style24/admin/biz/web/TsaDisplayController.java

@@ -2,19 +2,6 @@ package com.style24.admin.biz.web;
 
 import java.util.Collection;
 
-import com.fasterxml.jackson.databind.ObjectMapper;
-import com.style24.persistence.domain.Brand;
-import com.style24.persistence.domain.Category;
-import com.style24.persistence.domain.CategoryGoods;
-import com.style24.persistence.domain.Contents;
-import com.style24.persistence.domain.GnbTab;
-import com.style24.persistence.domain.GoodsCategory;
-import com.style24.persistence.domain.ItemkindCategory;
-import com.style24.persistence.domain.Lookbook;
-import com.style24.persistence.domain.LookbookGoods;
-import com.style24.persistence.domain.MainDisplay;
-import com.style24.persistence.domain.Popup;
-import com.style24.persistence.domain.SearchKeyword;
 import org.apache.commons.lang3.StringUtils;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Controller;
@@ -27,6 +14,7 @@ import org.springframework.web.bind.annotation.RequestParam;
 import org.springframework.web.bind.annotation.ResponseBody;
 import org.springframework.web.servlet.ModelAndView;
 
+import com.fasterxml.jackson.databind.ObjectMapper;
 import com.style24.admin.biz.service.TsaBusinessService;
 import com.style24.admin.biz.service.TsaDisplayService;
 import com.style24.admin.biz.service.TsaRendererService;
@@ -36,6 +24,19 @@ import com.style24.core.biz.service.TscLookbookService;
 import com.style24.core.biz.service.TscPopupService;
 import com.style24.core.support.message.TscMessageByLocale;
 import com.style24.persistence.TscPageRequest;
+import com.style24.persistence.domain.Brand;
+import com.style24.persistence.domain.Category;
+import com.style24.persistence.domain.CategoryGoods;
+import com.style24.persistence.domain.Contents;
+import com.style24.persistence.domain.GnbTab;
+import com.style24.persistence.domain.GoodsCategory;
+import com.style24.persistence.domain.ItemkindCategory;
+import com.style24.persistence.domain.Lookbook;
+import com.style24.persistence.domain.LookbookGoods;
+import com.style24.persistence.domain.MainDisplay;
+import com.style24.persistence.domain.Popup;
+import com.style24.persistence.domain.SearchKeyword;
+import com.style24.persistence.domain.SplashImage;
 
 import lombok.extern.slf4j.Slf4j;
 
@@ -334,7 +335,7 @@ public class TsaDisplayController extends TsaBaseController {
 	@PostMapping("/goods/category/save")
 	@ResponseBody
 	public GagaResponse saveGoodsCategory(@RequestBody GoodsCategory goodsCategory) {
-		log.info("saveGoodsCategory goodsCategory::::::::{}",goodsCategory);
+		log.info("saveGoodsCategory goodsCategory::::::::{}", goodsCategory);
 		displayService.saveGoodsCategory(goodsCategory);
 		return super.ok(message.getMessage("SUCC_0001"));
 	}
@@ -347,7 +348,7 @@ public class TsaDisplayController extends TsaBaseController {
 	 */
 	@GetMapping("/goods/category/view/list")
 	@ResponseBody
-	public Collection<GoodsCategory> getGoodsCategoryViewList(@RequestParam(value = "goodsCd")String goodsCd) {
+	public Collection<GoodsCategory> getGoodsCategoryViewList(@RequestParam(value = "goodsCd") String goodsCd) {
 		return displayService.getGoodsCategoryViewList(goodsCd);
 	}
 
@@ -417,7 +418,7 @@ public class TsaDisplayController extends TsaBaseController {
 	 */
 	@PostMapping("/category/goods/move")
 	@ResponseBody
-	public GagaResponse moveCategoryGoods(@RequestBody CategoryGoods categoryGoods){
+	public GagaResponse moveCategoryGoods(@RequestBody CategoryGoods categoryGoods) {
 		categoryGoods.setRegNo(TsaSession.getInfo().getUserNo());
 		displayService.moveCategoryGoods(categoryGoods);
 		return super.ok(message.getMessage("SUCC_0001"));
@@ -431,7 +432,7 @@ public class TsaDisplayController extends TsaBaseController {
 	 */
 	@PostMapping("/category/goods/delete")
 	@ResponseBody
-	public GagaResponse deleteCategoryGoods(@RequestBody CategoryGoods categoryGoods){
+	public GagaResponse deleteCategoryGoods(@RequestBody CategoryGoods categoryGoods) {
 		categoryGoods.setRegNo(TsaSession.getInfo().getUserNo());
 		displayService.deleteCategoryGoods(categoryGoods);
 		return super.ok(message.getMessage("SUCC_0003"));
@@ -445,7 +446,7 @@ public class TsaDisplayController extends TsaBaseController {
 	 */
 	@PostMapping("/category/goods/save")
 	@ResponseBody
-	public GagaResponse insertCategoryGoods(@RequestBody CategoryGoods categoryGoods){
+	public GagaResponse insertCategoryGoods(@RequestBody CategoryGoods categoryGoods) {
 		categoryGoods.setRegNo(TsaSession.getInfo().getUserNo());
 		displayService.insertCategoryGoods(categoryGoods);
 		return super.ok(message.getMessage("SUCC_0001"));
@@ -477,7 +478,7 @@ public class TsaDisplayController extends TsaBaseController {
 	public GagaMap getGoodsDispOrdChangePopupList(@RequestBody CategoryGoods categoryGoods) {
 		GagaMap result = new GagaMap();
 
-		log.info("getGoodsDispOrdChangePopupList categoryGoods::{}",categoryGoods);
+		log.info("getGoodsDispOrdChangePopupList categoryGoods::{}", categoryGoods);
 		categoryGoods.setRegNo(TsaSession.getInfo().getUserNo());	//엑셀조회시 로그인 사용자의 엑셀 상품조회시 사용
 		categoryGoods.setPageable(new TscPageRequest(categoryGoods.getPageNo() - 1, categoryGoods.getPageSize()));
 		categoryGoods.getPageable().setTotalCount(displayService.getCategoryGoodsListCount(categoryGoods));
@@ -496,7 +497,7 @@ public class TsaDisplayController extends TsaBaseController {
 	 */
 	@PostMapping("/goods/dispord/change/delete")
 	@ResponseBody
-	public GagaResponse deleteDispOrdChangeGoods(@RequestBody CategoryGoods categoryGoods){
+	public GagaResponse deleteDispOrdChangeGoods(@RequestBody CategoryGoods categoryGoods) {
 		categoryGoods.setRegNo(TsaSession.getInfo().getUserNo());
 		displayService.deleteDispOrdChangeGoods(categoryGoods);
 		return super.ok(message.getMessage("SUCC_0003"));
@@ -510,7 +511,7 @@ public class TsaDisplayController extends TsaBaseController {
 	 */
 	@PostMapping("/category/goods/dispord/init")
 	@ResponseBody
-	public GagaResponse updateCategoryGoodsDispOrdInit(@RequestBody CategoryGoods categoryGoods){
+	public GagaResponse updateCategoryGoodsDispOrdInit(@RequestBody CategoryGoods categoryGoods) {
 		categoryGoods.setRegNo(TsaSession.getInfo().getUserNo());
 		displayService.updateCategoryGoodsDispOrdInit(categoryGoods);
 		return super.ok(message.getMessage("SUCC_0009"));
@@ -524,10 +525,10 @@ public class TsaDisplayController extends TsaBaseController {
 	 */
 	@PostMapping("/category/goods/dispord/updown")
 	@ResponseBody
-	public GagaResponse updateCategoryGoodsDispOrdUpdown(@RequestBody CategoryGoods categoryGoods){
-		int size = categoryGoods.getGoodsCdArr().length-1;
+	public GagaResponse updateCategoryGoodsDispOrdUpdown(@RequestBody CategoryGoods categoryGoods) {
+		int size = categoryGoods.getGoodsCdArr().length - 1;
 
-		for(int i=size; i>=0; i--){
+		for (int i = size; i >= 0; i--) {
 			categoryGoods.setGoodsCd(categoryGoods.getGoodsCdArr()[i]);
 			categoryGoods.setDispOrd(categoryGoods.getDispOrdArr()[i]);
 			displayService.updateCategoryGoodsDispOrdUpdown(categoryGoods);
@@ -543,7 +544,7 @@ public class TsaDisplayController extends TsaBaseController {
 	 */
 	@PostMapping("/category/goods/dispord/update")
 	@ResponseBody
-	public GagaResponse updateCategoryGoodsDispOrd(@RequestBody CategoryGoods categoryGoods){
+	public GagaResponse updateCategoryGoodsDispOrd(@RequestBody CategoryGoods categoryGoods) {
 		displayService.updateCategoryGoodsDispOrd(categoryGoods);
 		return super.ok(message.getMessage("SUCC_0009"));
 	}
@@ -614,7 +615,7 @@ public class TsaDisplayController extends TsaBaseController {
 	 * @since 2021. 2. 22
 	 */
 	@GetMapping("/main/contents/popup/form")
-	public ModelAndView mainContentsPopupForm(@RequestParam(value = "cateNo") String cateNo, @RequestParam(value = "contentsLoc") String contentsLoc , @RequestParam(value = "brandGroupNo", required = false) String brandGroupNo) {
+	public ModelAndView mainContentsPopupForm(@RequestParam(value = "cateNo") String cateNo, @RequestParam(value = "contentsLoc") String contentsLoc, @RequestParam(value = "brandGroupNo", required = false) String brandGroupNo) {
 		ModelAndView mav = new ModelAndView();
 		mav.addObject("cateNo", cateNo);
 		mav.addObject("contentsLoc", contentsLoc);
@@ -672,7 +673,7 @@ public class TsaDisplayController extends TsaBaseController {
 	@PostMapping("/contents/gnbtab/preview/save")
 	@ResponseBody
 	public GagaResponse saveGnbtabPreview(@RequestBody Collection<GnbTab> gnbTabList) {
-		log.info("saveGnbtabPreview:::{}",gnbTabList);
+		log.info("saveGnbtabPreview:::{}", gnbTabList);
 		displayService.saveGnbtabPreview(gnbTabList);
 		return super.ok(message.getMessage("SUCC_0001"));
 	}
@@ -686,7 +687,7 @@ public class TsaDisplayController extends TsaBaseController {
 	@PostMapping("/contents/gnbtab/save")
 	@ResponseBody
 	public GagaResponse saveGnbtabContents(@RequestBody GnbTab gnbTab) {
-		log.info("controller saveGnbtabContents gnbTab::: {}",gnbTab);
+		log.info("controller saveGnbtabContents gnbTab::: {}", gnbTab);
 		displayService.saveGnbtabContents(gnbTab);
 		return super.ok(message.getMessage("SUCC_0001"));
 	}
@@ -857,7 +858,7 @@ public class TsaDisplayController extends TsaBaseController {
 		mav.addObject("lookbookSq", lookbookSq);
 		mav.addObject("brandGroupList", rendererService.getSelfBrandGroupList());
 
-		if(!"".equals(lookbookSq)){
+		if (!"".equals(lookbookSq)) {
 			mav.addObject("lookbookMstInfo", coreLookbookService.getLookbookMstInfo(lookbookSq));
 			mav.addObject("lookbookBannerList", coreLookbookService.getLookbookBannerDetailList(lookbookSq));
 		}
@@ -890,11 +891,11 @@ public class TsaDisplayController extends TsaBaseController {
 	@ResponseBody
 	public GagaMap getLookbookList(@RequestBody Lookbook lookbook) {
 		GagaMap result = new GagaMap();
-		if(lookbook.getDispStdt() != null){
-			lookbook.setDispStdt(lookbook.getDispStdt().replaceAll("-",""));
+		if (lookbook.getDispStdt() != null) {
+			lookbook.setDispStdt(lookbook.getDispStdt().replaceAll("-", ""));
 		}
-		if(lookbook.getDispEddt() != null){
-			lookbook.setDispEddt(lookbook.getDispEddt().replaceAll("-",""));
+		if (lookbook.getDispEddt() != null) {
+			lookbook.setDispEddt(lookbook.getDispEddt().replaceAll("-", ""));
 		}
 
 		lookbook.setRegNo(TsaSession.getInfo().getUserNo());
@@ -934,9 +935,9 @@ public class TsaDisplayController extends TsaBaseController {
 		mav.addObject("imgNm", imgNm);
 		mav.addObject("lookbookBannerPickerList", coreLookbookService.getLookbookBannerPickerList(lookbookbSq));
 
-		if(coreLookbookService.getLookbookBannerPickerList(lookbookbSq).size() > 0){
+		if (coreLookbookService.getLookbookBannerPickerList(lookbookbSq).size() > 0) {
 			mav.addObject("mode", "U");
-		}else{
+		} else {
 			mav.addObject("mode", "N");
 		}
 
@@ -1037,4 +1038,47 @@ public class TsaDisplayController extends TsaBaseController {
 		return displayService.getSearchKeywordList(searchKeyword);
 	}
 
+	/**
+	 * 스플래시이미지관리 화면
+	 * @return
+	 * @author gagamel
+	 * @since 2021. 7. 2
+	 */
+	@GetMapping("/splash/image/form")
+	public ModelAndView splashImageForm() {
+		ModelAndView mav = new ModelAndView();
+
+		mav.setViewName("display/SplashImageForm");
+
+		return mav;
+	}
+
+	/**
+	 * 스플래시이미지 목록
+	 * @return
+	 * @author gagamel
+	 * @since 2021. 7. 2
+	 */
+	@GetMapping("/splash/image/list")
+	@ResponseBody
+	public Collection<SplashImage> getSplashImageList() {
+		return displayService.getSplashImageList();
+	}
+
+	/**
+	 * 스플래시이미지 등록/수정 처리
+	 * @param splashImg - 스플래시이미지 정보
+	 * @return
+	 * @author gagamel
+	 * @since 2021. 7. 2
+	 */
+	@PostMapping("/splash/image/save")
+	@ResponseBody
+	public GagaResponse saveSplashImage(@RequestBody SplashImage splashImg) {
+		splashImg.setRegNo(TsaSession.getInfo().getUserNo());
+		splashImg.setUpdNo(TsaSession.getInfo().getUserNo());
+		displayService.saveSplashImage(splashImg);
+		return super.ok(message.getMessage("SUCC_0001"));
+	}
+
 }

+ 55 - 0
src/main/java/com/style24/persistence/mybatis/shop/TsaDsiplay.xml

@@ -2142,4 +2142,59 @@
 		]]>
 		</if>
 	</select>
+	
+	<!-- 스플래시이미지 목록 -->
+	<select id="getSplashImageList" resultType="SplashImage">
+		/* TsaDisplay.getSplashImageList */
+		SELECT SPLASH_IMG_SQ
+		     , SPLASH_IMG
+		     , DATE_FORMAT(DISP_STDT,'%Y%m%d')    AS DISP_STDT
+		     , DATE_FORMAT(DISP_EDDT,'%Y%m%d')    AS DISP_EDDT
+		     , DISP_YN
+		     , FN_GET_USER_NM(UPD_NO)             AS UPD_NM
+		     , DATE_FORMAT(UPD_DT,'%Y%m%d%H%i%S') AS UPD_DT
+		FROM   TB_SPLASH_IMG SI
+		ORDER  BY SPLASH_IMG_SQ DESC
+	</select>
+
+	<!-- 스플래시이미지 등록/수정 -->
+	<insert id="createSplashImage" parameterType="SplashImage">
+		/* TsaDisplay.createSplashImage */
+		INSERT INTO TB_SPLASH_IMG (
+		       SPLASH_IMG_SQ
+		     , SPLASH_IMG
+		     , DISP_STDT
+		     , DISP_EDDT
+		     , DISP_YN
+		     , REG_NO
+		     , REG_DT
+		     , UPD_NO
+		     , UPD_DT
+		)
+		VALUES (
+		       NULL
+		     , #{splashImg}
+		     , STR_TO_DATE(#{dispStdt},'%Y-%m-%d')
+		     , STR_TO_DATE(#{dispEddt},'%Y-%m-%d')
+		     , #{dispYn}
+		     , #{regNo}
+		     , NOW()
+		     , #{updNo}
+		     , NOW()
+		)
+	</insert>
+	
+	<!-- 스플래시이미지 등록/수정 -->
+	<update id="updateSplashImage" parameterType="SplashImage">
+		/* TsaDisplay.updateSplashImage */
+		UPDATE TB_SPLASH_IMG
+		SET    SPLASH_IMG = #{splashImg}
+		     , DISP_STDT = STR_TO_DATE(#{dispStdt},'%Y-%m-%d')
+		     , DISP_EDDT = STR_TO_DATE(#{dispEddt},'%Y-%m-%d')
+		     , DISP_YN = #{dispYn}
+		     , UPD_NO = #{updNo}
+		     , UPD_DT = NOW()
+		WHERE  SPLASH_IMG_SQ = #{splashImgSq}
+	</update>
+	
 </mapper>

+ 246 - 0
src/main/webapp/WEB-INF/views/display/SplashImageForm.html

@@ -0,0 +1,246 @@
+<!DOCTYPE html>
+<html lang="ko"
+	xmlns:th="http://www.thymeleaf.org">
+<!--
+ *******************************************************************************
+ * @source  : SplashImageForm.html
+ * @desc    : 스플래시이미지관리 Page
+ *============================================================================
+ * STYLE24
+ * Copyright(C) 2020 TSIT, All rights reserved.
+ *============================================================================
+ * VER  DATE         AUTHOR      DESCRIPTION
+ * ===  ===========  ==========  =============================================
+ * 1.0  2021.07.02   gagamel     최초 작성
+ *******************************************************************************
+ -->
+	<div id="main">
+		<!-- 메인타이틀 영역 -->
+		<div class="main-title">
+		</div>
+		<!-- //메인타이틀 영역 -->
+		
+		<!-- 메뉴 설명 -->
+		<div class="infoBox menu-desc">
+		</div>
+		<!-- //메뉴 설명 -->
+
+		<!-- 검색조건 영역 -->
+		<div class="panelStyle">
+			<!-- Search -->
+			<form id="searchForm" name="searchForm" action="#" th:action="@{'/display/splash/image/list'}" onsubmit="$('#btnSearch').trigger('click'); return false;">
+				<ul class="panelBar">
+					<li class="center">
+						<button type="button" class="btn btn-base btn-lg" id="btnSearch">조회</button>
+					</li>
+				</ul>
+			</form>
+		</div>
+		
+		<!-- 리스트 영역 -->
+		<div class="panelStyle">
+			<div id="gridList" style="width: 100%; height: 470px" class="ag-theme-balham"></div>
+		</div>
+		<!-- //리스트 영역 -->
+		
+		<!-- 등록/수정 영역 -->
+		<div class="panelStyle">
+			<form id="detailForm" name="detailForm" action="#" th:action="@{'/display/splash/image/save'}">
+				<input type="hidden" name="mode" value="N"/>
+				
+				<table class="frmStyle" aria-describedby="신규">
+					<colgroup>
+						<col style="width:12%;"/>
+						<col style="width:38%;"/>
+						<col style="width:12%;"/>
+						<col/>
+					</colgroup>
+					<tr>
+						<th>스플래시이미지번호<em class="required" title="필수"></em></th>
+						<td>
+							<input type="text" class="w100" name="splashImgSq" placeholder="" value="자동생성" readonly="readonly"/>
+						</td>
+						<th>스플래시이미지<em class="required" title="필수"></em></th>
+						<td colspan="3">
+							<div class="uFile w600">
+								<input type="file" id="file" name="file" class="uFileInput"/>
+								<label for="file" class="uFileLabel">파일 선택</label>
+								<input type="hidden" name="orgFileNm"/>
+								<input type="hidden" name="splashImg"/>
+							</div>
+							<span style="margin-left: 10px; display: none;" id="splashImgFile">
+								<a href="">style24_box[0].png</a>
+							</span>
+						</td>
+					</tr>
+					<tr>
+						<th>노출기간<em class="required" title="필수"></em></th>
+						<td>
+							<input type="text" class="schDate w80" name="dispStdt" maxlength="10" required="required" data-valid-type="calendar" data-valid-name="노출시작일자"/>
+							~
+							<input type="text" class="schDate w80" name="dispEddt" maxlength="10" required="required" data-valid-type="calendar" data-valid-name="노출종료일자"/>
+						</td>
+						<th>노출여부<em class="required" title="필수"></em></th>
+						<td>
+							<input type="hidden" name="dispYn"/>
+							<label class="chkBox"><input type="checkbox" name="chkDispYn" value="Y" checked="checked" readonly="readonly"/>노출</label>
+						</td>
+					</tr>
+				</table>
+
+				<ul class="panelBar">
+					<li class="right">
+						<button type="button" class="btn btn-info btn-lg" id="btnNew">신규</button>
+						<button type="button" class="btn btn-success btn-lg" id="btnSave">저장</button>
+					</li>
+				</ul>
+			</form>
+		</div>
+		<!-- //등록/수정 영역 -->
+	</div>
+
+<script th:inline="javascript">
+/*<![CDATA[*/
+	// specify the columns
+	var columnDefs = [
+		{headerName: "스플래시이미지번호", field: "splashImgSq", width: 150, cellClass: 'text-center'},
+		{
+			headerName: "스플래시이미지", field: "splashImg", width: 400,
+			cellRenderer: function(params) {
+				return '<a href="javascript:void(0);">' + params.value + '</a>';
+			}
+		},
+		{
+			headerName: "노출시작일", field: "dispStdt", width: 150, cellClass: 'text-center',
+			cellRenderer: function (params) { return gagaAgGrid.toDateFormat(params.value); }
+		},
+		{
+			headerName: "노출종료일", field: "dispEddt", width: 150, cellClass: 'text-center',
+			cellRenderer: function (params) { return gagaAgGrid.toDateFormat(params.value); }
+		},
+		{headerName: "노출여부", field: "dispYn", width: 100, cellClass: 'text-center'},
+		{headerName: "최종수정자", field: "updNm", width: 100, cellClass: 'text-center'},
+		{
+			headerName: "최종수정일시", field: "updDt", width: 150, cellClass: 'text-center',
+			cellRenderer: function (params) { return gagaAgGrid.toDateTimeFormat(params.value); }
+		},
+	];
+
+	// Get GridOptions
+	var gridOptions = gagaAgGrid.getGridOptions(columnDefs);
+
+	// Cell Click
+	gridOptions.onCellClicked = function(event) {
+		if (event.colDef.field != 'splashImg')
+			return;
+
+		$('#detailForm input[name=mode]').val('U');
+		$('#detailForm input[name=splashImgSq]').val(event.data.splashImgSq);
+		$('#detailForm input[name=orgFileNm]').val(event.data.splashImg);
+		$('#detailForm input[name=splashImg]').val(event.data.splashImg);
+		$('#detailForm input[name=dispStdt]').val(event.data.dispStdt.toDate('YYYYMMDD').format('YYYY-MM-DD'));
+		$('#detailForm input[name=dispEddt]').val(event.data.dispEddt.toDate('YYYYMMDD').format('YYYY-MM-DD'));
+		$('#splashImgFile').html('<a href="javascript:void(0);" onclick="cfnDownloadSampleFile(\'' + event.data.splashImgSq + '\');">' + event.data.splashImg + '</a>');
+		$('#splashImgFile').show();
+
+		if (event.data.dispYn == 'Y') {
+			$("#detailForm input:checkbox[name=chkDispYn]").prop('checked', true);
+			$("#detailForm input:checkbox[name=chkDispYn]").parent().addClass('checked');
+		} else {
+			$("#detailForm input:checkbox[name=chkDispYn]").prop('checked', false);
+			$("#detailForm input:checkbox[name=chkDispYn]").parent().removeClass('checked');
+		}
+		
+		$('#detailForm input:checkbox[name=chkDispYn]').attr('readonly', false);
+	}
+
+	// 조회
+	$('#btnSearch').on('click', function() {
+		let actionUrl = $('#searchForm').prop('action') + '?' + $('#searchForm').serialize();
+		
+		// Fetch data
+		gagaAgGrid.fetch(actionUrl, gridOptions);
+	});
+
+	// 신규
+	$('#btnNew').on('click', function() {
+		$('#detailForm')[0].reset();
+		$('#detailForm input[name=mode]').val('N');
+		$('#detailForm input[name=splashImgSq]').val('자동생성');
+		$('#detailForm input[name=file]').val('');
+		var date = new Date();
+		$('#detailForm input[name=dispStdt]').val(date.format("YYYY-MM-DD"));
+		$('#detailForm input[name=dispEddt]').val(date.format("YYYY-MM-DD"));
+		$('#detailForm input:checkbox[name=chkDispYn]').prop('checked', true);
+		$('#detailForm input:checkbox[name=chkDispYn]').attr('readonly', true);
+		$('#splashImgFile').html('');
+		$('#splashImgFile').hide();
+	});
+
+	// 저장 처리
+	$('#btnSave').on('click', function() {
+		// 입력 값 체크
+		if (!gagajf.validation('#detailForm'))
+			return;
+
+		if (gagajf.isNull($('#detailForm input[name=splashImg]').val())) {
+			mcxDialog.alert('스플래시이미지 파일을 선택해 주세요.');
+			return;
+		}
+		
+		// 노출기간 체크
+		let stdt = $('#detailForm input[name=dispStdt]').val().toDate('YYYY-MM-DD');
+		let eddt = $('#detailForm input[name=dispEddt]').val().toDate('YYYY-MM-DD');
+		console.log(stdt + ':' + eddt);
+		
+		if (stdt > eddt) {
+			mcxDialog.alert('노출시작일자는 노출종료일자 보다 클 수 없습니다.');
+			return;
+		}
+
+		$('#detailForm input[name=splashImgSq]').val('');
+		$('#detailForm input[name=dispYn]').val($('#detailForm input:checkbox[name=chkDispYn]').is(":checked") ? 'Y' : 'N');
+
+		mcxDialog.confirm("저장하시겠습니까?", {
+			cancelBtnText: "취소",
+			sureBtnText: "확인",
+			sureBtnClick: function() {
+				gagajf.ajaxFormSubmit($('#detailForm').prop('action')
+						, $('#detailForm')
+						, function() {
+							$('#btnNew').trigger('click');
+							$('#btnSearch').trigger('click');
+						}
+				);
+			}
+		});
+	});
+
+	// 파일첨부 선택 시
+	$('#detailForm input[name=file]').on('change', function() {
+		// multiple 속성이 있으면 files에는 다수의 객체가 할당됨
+		var file = this.files[0];
+
+		// 파일 업로드
+		gagajf.ajaxFileUpload('/common/file/upload?policy=image&subDir=/splashimg'
+				, file
+				, function(result) {
+					// 업로드한 파일명 설정
+					$('#detailForm input[name=orgFileNm]').val(result.oldFileName);
+					$('#detailForm input[name=splashImg]').val(result.newFileName);
+				}
+		);
+	});
+
+	$(document).ready(function() {
+		// Create a agGrid
+		gagaAgGrid.createGrid('gridList', gridOptions);
+		
+		var date = new Date();
+		$('#detailForm input[name=dispStdt]').val(date.format("YYYY-MM-DD"));
+		$('#detailForm input[name=dispEddt]').val(date.format("YYYY-MM-DD"));
+	});
+/*]]>*/
+</script>
+
+</html>