ソースを参照

pom.xml 추가

gagamel 5 年 前
コミット
991caaf695
100 ファイル変更7295 行追加0 行削除
  1. 1 0
      pom.xml
  2. 45 0
      style24.scm/.classpath
  3. 42 0
      style24.scm/.project
  4. 13 0
      style24.scm/.settings/.jsdtscope
  5. 6 0
      style24.scm/.settings/org.eclipse.core.resources.prefs
  6. 12 0
      style24.scm/.settings/org.eclipse.jdt.core.prefs
  7. 4 0
      style24.scm/.settings/org.eclipse.m2e.core.prefs
  8. 10 0
      style24.scm/.settings/org.eclipse.wst.common.component
  9. 7 0
      style24.scm/.settings/org.eclipse.wst.common.project.facet.core.xml
  10. 1 0
      style24.scm/.settings/org.eclipse.wst.jsdt.ui.superType.container
  11. 1 0
      style24.scm/.settings/org.eclipse.wst.jsdt.ui.superType.name
  12. 2 0
      style24.scm/.settings/org.eclipse.wst.validation.prefs
  13. 2 0
      style24.scm/.settings/org.springframework.ide.eclipse.prefs
  14. 84 0
      style24.scm/pom.xml
  15. 50 0
      style24.scm/src/main/java/com/style24/persistence/TssBaseDomain.java
  16. 123 0
      style24.scm/src/main/java/com/style24/persistence/TssPageRequest.java
  17. 81 0
      style24.scm/src/main/java/com/style24/persistence/domain/Brand.java
  18. 25 0
      style24.scm/src/main/java/com/style24/persistence/domain/Color.java
  19. 29 0
      style24.scm/src/main/java/com/style24/persistence/domain/CommonCode.java
  20. 45 0
      style24.scm/src/main/java/com/style24/persistence/domain/Menu.java
  21. 23 0
      style24.scm/src/main/java/com/style24/persistence/domain/MenuAccessHst.java
  22. 22 0
      style24.scm/src/main/java/com/style24/persistence/domain/MenuRole.java
  23. 57 0
      style24.scm/src/main/java/com/style24/persistence/domain/SupplyCompany.java
  24. 47 0
      style24.scm/src/main/java/com/style24/persistence/domain/User.java
  25. 25 0
      style24.scm/src/main/java/com/style24/persistence/domain/UserHst.java
  26. 24 0
      style24.scm/src/main/java/com/style24/persistence/domain/UserMenu.java
  27. 6 0
      style24.scm/src/main/java/com/style24/persistence/mybatis/shop/TssDelivery.xml
  28. 5 0
      style24.scm/src/main/java/com/style24/persistence/mybatis/shop/TssGoods.xml
  29. 192 0
      style24.scm/src/main/java/com/style24/persistence/mybatis/shop/TssLogin.xml
  30. 53 0
      style24.scm/src/main/java/com/style24/persistence/mybatis/shop/TssRenderer.xml
  31. 14 0
      style24.scm/src/main/java/com/style24/scm/biz/dao/TssDeliveryDao.java
  32. 14 0
      style24.scm/src/main/java/com/style24/scm/biz/dao/TssGoodsDao.java
  33. 68 0
      style24.scm/src/main/java/com/style24/scm/biz/dao/TssLoginDao.java
  34. 14 0
      style24.scm/src/main/java/com/style24/scm/biz/dao/TssOrderDao.java
  35. 36 0
      style24.scm/src/main/java/com/style24/scm/biz/dao/TssRendererDao.java
  36. 27 0
      style24.scm/src/main/java/com/style24/scm/biz/service/TssDeliveryService.java
  37. 27 0
      style24.scm/src/main/java/com/style24/scm/biz/service/TssGoodsService.java
  38. 111 0
      style24.scm/src/main/java/com/style24/scm/biz/service/TssLoginService.java
  39. 27 0
      style24.scm/src/main/java/com/style24/scm/biz/service/TssOrderService.java
  40. 173 0
      style24.scm/src/main/java/com/style24/scm/biz/service/TssRendererService.java
  41. 30 0
      style24.scm/src/main/java/com/style24/scm/biz/web/TssDeliveryController.java
  42. 34 0
      style24.scm/src/main/java/com/style24/scm/biz/web/TssGoodsController.java
  43. 55 0
      style24.scm/src/main/java/com/style24/scm/biz/web/TssIndexController.java
  44. 30 0
      style24.scm/src/main/java/com/style24/scm/biz/web/TssOrderController.java
  45. 48 0
      style24.scm/src/main/java/com/style24/scm/support/config/TssMybatisShopConfig.java
  46. 100 0
      style24.scm/src/main/java/com/style24/scm/support/config/TssRedisSessionConfig.java
  47. 70 0
      style24.scm/src/main/java/com/style24/scm/support/config/TssThymeleafConfig.java
  48. 110 0
      style24.scm/src/main/java/com/style24/scm/support/config/TssWebMvcConfig.java
  49. 49 0
      style24.scm/src/main/java/com/style24/scm/support/controller/TssBaseController.java
  50. 65 0
      style24.scm/src/main/java/com/style24/scm/support/controller/TssErrorController.java
  51. 14 0
      style24.scm/src/main/java/com/style24/scm/support/env/TssConstants.java
  52. 64 0
      style24.scm/src/main/java/com/style24/scm/support/interceptor/TssDefaultInterceptor.java
  53. 90 0
      style24.scm/src/main/java/com/style24/scm/support/security/TssAuthenticationProvider.java
  54. 97 0
      style24.scm/src/main/java/com/style24/scm/support/security/TssLoginDetails.java
  55. 117 0
      style24.scm/src/main/java/com/style24/scm/support/security/config/TssSecurityConfig.java
  56. 73 0
      style24.scm/src/main/java/com/style24/scm/support/security/handler/TssLoginSuccessHandler.java
  57. 33 0
      style24.scm/src/main/java/com/style24/scm/support/security/handler/TssLogoutSuccessHandler.java
  58. 63 0
      style24.scm/src/main/java/com/style24/scm/support/security/session/TssSession.java
  59. 54 0
      style24.scm/src/main/java/com/style24/scm/support/startup/TssApplication.java
  60. 19 0
      style24.scm/src/main/java/com/style24/scm/support/startup/TssServletInitializer.java
  61. 8 0
      style24.scm/src/main/resources/banner.txt
  62. 82 0
      style24.scm/src/main/resources/config/application-dev.yml
  63. 66 0
      style24.scm/src/main/resources/config/application-locd.yml
  64. 82 0
      style24.scm/src/main/resources/config/application-locp.yml
  65. 82 0
      style24.scm/src/main/resources/config/application-run.yml
  66. 64 0
      style24.scm/src/main/resources/config/application.yml
  67. 78 0
      style24.scm/src/main/resources/i18n/messages/message_ko_KR.properties
  68. 25 0
      style24.scm/src/main/resources/log/logback-dev.xml
  69. 41 0
      style24.scm/src/main/resources/log/logback-locd.xml
  70. 55 0
      style24.scm/src/main/resources/log/logback-locp.xml
  71. 39 0
      style24.scm/src/main/resources/log/logback-run.xml
  72. 23 0
      style24.scm/src/main/resources/persistence/mybatis-shop-config.xml
  73. BIN
      style24.scm/src/main/webapp/WEB-INF/lib/gagaframework-web-core-1.7-RELEASE.jar
  74. BIN
      style24.scm/src/main/webapp/WEB-INF/lib/gagaframework-web-parameter-1.7-RELEASE.jar
  75. BIN
      style24.scm/src/main/webapp/WEB-INF/lib/gagaframework-web-rest-1.7-RELEASE.jar
  76. BIN
      style24.scm/src/main/webapp/WEB-INF/lib/gagaframework-web-util-1.7-RELEASE.jar
  77. 2 0
      style24.scm/src/main/webapp/WEB-INF/robots.txt
  78. 377 0
      style24.scm/src/main/webapp/WEB-INF/views/business/DeliveryLocForm.html
  79. 442 0
      style24.scm/src/main/webapp/WEB-INF/views/business/SupplyCompanyForm.html
  80. 106 0
      style24.scm/src/main/webapp/WEB-INF/views/common/fragments/footer.html
  81. 94 0
      style24.scm/src/main/webapp/WEB-INF/views/common/fragments/gnb.html
  82. 61 0
      style24.scm/src/main/webapp/WEB-INF/views/common/fragments/header.html
  83. 98 0
      style24.scm/src/main/webapp/WEB-INF/views/common/fragments/lnb.html
  84. 34 0
      style24.scm/src/main/webapp/WEB-INF/views/common/fragments/variables.html
  85. 46 0
      style24.scm/src/main/webapp/WEB-INF/views/common/layout/dashboard.html
  86. 46 0
      style24.scm/src/main/webapp/WEB-INF/views/common/layout/default.html
  87. 23 0
      style24.scm/src/main/webapp/WEB-INF/views/common/layout/error.html
  88. 23 0
      style24.scm/src/main/webapp/WEB-INF/views/common/layout/login.html
  89. 65 0
      style24.scm/src/main/webapp/WEB-INF/views/dashboard.html
  90. 53 0
      style24.scm/src/main/webapp/WEB-INF/views/error/500.html
  91. 170 0
      style24.scm/src/main/webapp/WEB-INF/views/goods/ItemkindBaseForm.html
  92. 107 0
      style24.scm/src/main/webapp/WEB-INF/views/signin.html
  93. 266 0
      style24.scm/src/main/webapp/WEB-INF/views/system/BasicAnswerForm.html
  94. 735 0
      style24.scm/src/main/webapp/WEB-INF/views/system/BasicEnvsetForm.html
  95. 141 0
      style24.scm/src/main/webapp/WEB-INF/views/system/BizdayForm.html
  96. 206 0
      style24.scm/src/main/webapp/WEB-INF/views/system/ClauseDetailForm.html
  97. 147 0
      style24.scm/src/main/webapp/WEB-INF/views/system/ClauseListForm.html
  98. 252 0
      style24.scm/src/main/webapp/WEB-INF/views/system/CommoncodeForm.html
  99. 229 0
      style24.scm/src/main/webapp/WEB-INF/views/system/EnvsetHistoryForm.html
  100. 164 0
      style24.scm/src/main/webapp/WEB-INF/views/system/HilandDeliveryFeeDetailForm.html

+ 1 - 0
pom.xml

@@ -16,6 +16,7 @@
 	<modules>
 		<module>style24.core</module>
 		<module>style24.admin</module>
+		<module>style24.scm</module>
 	</modules>
 	
 	<properties>

+ 45 - 0
style24.scm/.classpath

@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry including="**/*.java" kind="src" output="target/classes" path="src/main/java">
+		<attributes>
+			<attribute name="optional" value="true"/>
+			<attribute name="maven.pomderived" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
+		<attributes>
+			<attribute name="maven.pomderived" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="src" output="target/test-classes" path="src/test/java">
+		<attributes>
+			<attribute name="test" value="true"/>
+			<attribute name="optional" value="true"/>
+			<attribute name="maven.pomderived" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
+		<attributes>
+			<attribute name="test" value="true"/>
+			<attribute name="maven.pomderived" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
+		<attributes>
+			<attribute name="maven.pomderived" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
+		<attributes>
+			<attribute name="maven.pomderived" value="true"/>
+			<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v9.0.22"/>
+	<classpathentry kind="lib" path="/style24.core/target/classes">
+		<attributes>
+			<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/classes"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="output" path="target/classes"/>
+</classpath>

+ 42 - 0
style24.scm/.project

@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>style24.scm</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.jdt.core.javabuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.wst.common.project.facet.core.builder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.wst.validation.validationbuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.springframework.ide.eclipse.boot.validation.springbootbuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.m2e.core.maven2Builder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
+		<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
+		<nature>org.eclipse.jdt.core.javanature</nature>
+		<nature>org.eclipse.m2e.core.maven2Nature</nature>
+		<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
+		<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
+	</natures>
+</projectDescription>

+ 13 - 0
style24.scm/.settings/.jsdtscope

@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="src/main/webapp"/>
+	<classpathentry kind="src" path="target/m2e-wtp/web-resources"/>
+	<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
+	<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
+		<attributes>
+			<attribute name="hide" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
+	<classpathentry kind="output" path=""/>
+</classpath>

+ 6 - 0
style24.scm/.settings/org.eclipse.core.resources.prefs

@@ -0,0 +1,6 @@
+eclipse.preferences.version=1
+encoding//src/main/java=UTF-8
+encoding//src/main/resources=UTF-8
+encoding//src/test/java=UTF-8
+encoding//src/test/resources=UTF-8
+encoding/<project>=UTF-8

+ 12 - 0
style24.scm/.settings/org.eclipse.jdt.core.prefs

@@ -0,0 +1,12 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.methodParameters=generate
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
+org.eclipse.jdt.core.compiler.compliance=1.8
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
+org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore
+org.eclipse.jdt.core.compiler.release=disabled
+org.eclipse.jdt.core.compiler.source=1.8

+ 4 - 0
style24.scm/.settings/org.eclipse.m2e.core.prefs

@@ -0,0 +1,4 @@
+activeProfiles=
+eclipse.preferences.version=1
+resolveWorkspaceProjects=true
+version=1

+ 10 - 0
style24.scm/.settings/org.eclipse.wst.common.component

@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
+    <wb-module deploy-name="style24.scm">
+        <wb-resource deploy-path="/" source-path="/target/m2e-wtp/web-resources"/>
+        <wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/>
+        <wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
+        <wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
+        <property name="context-root" value="style24.scm"/>
+        <property name="java-output-path" value="/style24.scm/target/classes"/>
+    </wb-module>
+</project-modules>

+ 7 - 0
style24.scm/.settings/org.eclipse.wst.common.project.facet.core.xml

@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<faceted-project>
+  <fixed facet="wst.jsdt.web"/>
+  <installed facet="java" version="1.8"/>
+  <installed facet="jst.web" version="4.0"/>
+  <installed facet="wst.jsdt.web" version="1.0"/>
+</faceted-project>

+ 1 - 0
style24.scm/.settings/org.eclipse.wst.jsdt.ui.superType.container

@@ -0,0 +1 @@
+org.eclipse.wst.jsdt.launching.baseBrowserLibrary

+ 1 - 0
style24.scm/.settings/org.eclipse.wst.jsdt.ui.superType.name

@@ -0,0 +1 @@
+Window

+ 2 - 0
style24.scm/.settings/org.eclipse.wst.validation.prefs

@@ -0,0 +1,2 @@
+disabled=06target
+eclipse.preferences.version=1

+ 2 - 0
style24.scm/.settings/org.springframework.ide.eclipse.prefs

@@ -0,0 +1,2 @@
+boot.validation.initialized=true
+eclipse.preferences.version=1

+ 84 - 0
style24.scm/pom.xml

@@ -0,0 +1,84 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
+	<modelVersion>4.0.0</modelVersion>
+	<parent>
+		<groupId>com.style24</groupId>
+		<artifactId>root</artifactId>
+		<version>0.0.1-SNAPSHOT</version>
+	</parent>
+	<groupId>com.style24.scm</groupId>
+	<artifactId>style24.scm</artifactId>
+	<packaging>war</packaging>
+	<name>style24.scm</name>
+	<description>STYLE24 SCM</description>
+	
+	<dependencies>
+		<dependency>
+			<groupId>org.springframework.boot</groupId>
+			<artifactId>spring-boot-starter-security</artifactId>
+		</dependency>
+		<dependency>
+			<groupId>org.springframework.security</groupId>
+			<artifactId>spring-security-test</artifactId>
+			<scope>test</scope>
+		</dependency>
+		
+		<dependency>
+			<groupId>org.springframework.boot</groupId>
+			<artifactId>spring-boot-starter-thymeleaf</artifactId>
+		</dependency>
+		<dependency>
+			<groupId>nz.net.ultraq.thymeleaf</groupId>
+			<artifactId>thymeleaf-layout-dialect</artifactId>
+		</dependency>
+		
+		<!-- /// WEB-INF lib -->
+		<dependency>
+			<groupId>com.gagaframework</groupId>
+			<artifactId>gagaframework-web-core</artifactId>
+			<version>1.7-RELEASE</version>
+			<scope>system</scope>
+			<systemPath>${basedir}/src/main/webapp/WEB-INF/lib/gagaframework-web-core-1.7-RELEASE.jar</systemPath>
+		</dependency>
+		<dependency>
+			<groupId>com.gagaframework</groupId>
+			<artifactId>gagaframework-web-parameter</artifactId>
+			<version>1.7-RELEASE</version>
+			<scope>system</scope>
+			<systemPath>${basedir}/src/main/webapp/WEB-INF/lib/gagaframework-web-parameter-1.7-RELEASE.jar</systemPath>
+		</dependency>
+		<dependency>
+			<groupId>com.gagaframework</groupId>
+			<artifactId>gagaframework-web-rest</artifactId>
+			<version>1.7.1-RELEASE</version>
+			<scope>system</scope>
+			<systemPath>${basedir}/src/main/webapp/WEB-INF/lib/gagaframework-web-rest-1.7-RELEASE.jar</systemPath>
+		</dependency>
+		<dependency>
+			<groupId>com.gagaframework</groupId>
+			<artifactId>gagaframework-web-util</artifactId>
+			<version>1.7-RELEASE</version>
+			<scope>system</scope>
+			<systemPath>${basedir}/src/main/webapp/WEB-INF/lib/gagaframework-web-util-1.7-RELEASE.jar</systemPath>
+		</dependency>
+		<!-- \\\ WEB-INF lib -->
+	</dependencies>
+	
+	<build>
+		<finalName>${project.name}</finalName>
+		<resources>
+			<resource>
+				<directory>src/main/java</directory>
+				<includes>
+					<include>**/*.xml</include>
+				</includes>
+			</resource>
+			<resource>
+				<directory>src/main/resources</directory>
+				<includes>
+					<include>**/*</include>
+				</includes>
+			</resource>
+		</resources>
+	</build>
+</project>

+ 50 - 0
style24.scm/src/main/java/com/style24/persistence/TssBaseDomain.java

@@ -0,0 +1,50 @@
+package com.style24.persistence;
+
+import java.io.Serializable;
+
+import com.fasterxml.jackson.annotation.JsonInclude;
+
+import lombok.Data;
+
+/**
+ * Domain의 기본 Super class
+ * Domain 클래스 생성 시 이 클래스를 상속받아서 처리한다.
+ *
+ * @author gagamel
+ * @since 2020. 10. 19
+ */
+@SuppressWarnings("serial")
+@Data
+public class TssBaseDomain implements Serializable {
+
+	@JsonInclude(JsonInclude.Include.NON_EMPTY)
+	private Integer regNo;
+
+	@JsonInclude(JsonInclude.Include.NON_EMPTY)
+	private String regNm;
+
+	@JsonInclude(JsonInclude.Include.NON_EMPTY)
+	private String regDt;
+
+	@JsonInclude(JsonInclude.Include.NON_EMPTY)
+	private Integer updNo;
+
+	@JsonInclude(JsonInclude.Include.NON_EMPTY)
+	private String updNm;
+
+	@JsonInclude(JsonInclude.Include.NON_EMPTY)
+	private String updDt;
+
+	// 등록/수정화면 제어용(N:신규, U:상세/수정, C:복사)
+	private String mode;
+
+	// CRUD
+	private String crud;
+
+	// Pagination
+	private TssPageRequest pageable;
+	private int pageNo = 1;
+	private int pageSize = 50;
+	private int pageUnit = 10;
+
+}

+ 123 - 0
style24.scm/src/main/java/com/style24/persistence/TssPageRequest.java

@@ -0,0 +1,123 @@
+package com.style24.persistence;
+
+import java.io.Serializable;
+
+import lombok.Data;
+
+/**
+ * Paging
+ *
+ * @author gagamel
+ * @since 2020. 10. 19
+ */
+@SuppressWarnings("serial")
+@Data
+public class TssPageRequest implements Serializable {
+
+	private final int pageNo;   // 페이지번호
+	private final int pageSize; // 조회할 row수
+	private final int pageUnit; // 그룹핑 페이지 단위
+	private int totalCount = 0; // 전체 row 건수
+
+	public TssPageRequest(int pageNo, int pageSize) {
+		this(pageNo, pageSize, 10);
+	}
+
+	public TssPageRequest(int pageNo, int pageSize, int pageUnit) {
+		if (pageNo < 0) {
+			throw new IllegalArgumentException("Current page index must not be less than zero!");
+		}
+
+		if (pageSize < 1) {
+			throw new IllegalArgumentException("Page size must not be less than one!");
+		}
+
+		if (pageUnit < 1) {
+			throw new IllegalArgumentException("Page unit must not be less than one!");
+		}
+
+		this.pageNo = pageNo;
+		this.pageSize = pageSize;
+		this.pageUnit = pageUnit;
+	}
+
+	public int getPageNo() {
+		return pageNo + 1;
+	}
+
+	public int getOffset() {
+		return pageNo * pageSize;
+	}
+
+	public int getStartRow() {
+		return pageNo * pageSize + 1;
+	}
+
+	public int getEndRow() {
+		return getOffset() + pageSize;
+	}
+
+	public int getPageGroup() {
+		return pageNo / pageUnit + 1;
+	}
+
+	public void setTotalCount(int totalCount) {
+		this.totalCount = totalCount;
+	}
+
+	public int getTotalPage() {
+		int totalPage = totalCount / pageSize;
+		if (totalCount % pageSize > 0) {
+			totalPage++;
+		}
+		return totalPage;
+	}
+
+	public String getGeneratedPagination() {
+		int firstCount = (getPageGroup() - 1) * pageUnit + 1;
+		int loopCount = firstCount + pageUnit;
+		if (loopCount > getTotalPage()) {
+			loopCount = getTotalPage() + 1;
+		}
+
+		StringBuffer pageTag = new StringBuffer();
+		if (!(firstCount == 1 && loopCount == 1)) {
+			if (getPageNo() == 1) {
+				pageTag.append("<a class=\"arrow\" href=\"#\"><i class=\"fa fa-angle-double-left\" alt=\"맨처음\"></i></a>\n");
+			} else {
+				pageTag.append("<a class=\"arrow\" href=\"#pageNo=1\"><i class=\"fa fa-angle-double-left\" alt=\"맨처음\"></i></a>\n");
+			}
+
+			if (getPageGroup() == 1) {
+				pageTag.append("<a class=\"arrow\" href=\"#\"><i class=\"fa fa-angle-left\" alt=\"이전페이지\"></i></a>\n");
+			} else {
+				pageTag.append("<a class=\"arrow\" href=\"#pageNo=").append((getPageGroup() - 1) * pageUnit).append("\"><i class=\"fa fa-angle-left\" alt=\"이전페이지\"></i></a>\n");
+			}
+
+			for (int i = firstCount; i < loopCount; i++) {
+				if (getPageNo() == i) {
+					pageTag.append("<a class=\"num on\" href=\"#\">").append(i).append("</a>\n");
+				} else {
+					pageTag.append("<a class=\"num\" href=\"#pageNo=").append(i).append("\">").append(i).append("</a>\n");
+				}
+			}
+
+			if (loopCount <= (getTotalPage() + 1)) {
+				if (getPageNo() == getTotalPage()) {
+					pageTag.append("<a class=\"arrow\" href=\"#\"><i class=\"fa fa-angle-right\" alt=\"다음페이지\"></i></a>\n");
+					pageTag.append("<a class=\"arrow\" href=\"#\"><i class=\"fa fa-angle-double-right\" alt=\"맨마지막\"></i></a>\n");
+				} else {
+					pageTag.append("<a class=\"arrow\" href=\"#pageNo=").append(getPageGroup() * pageUnit + 1).append("\"><i class=\"fa fa-angle-right\" alt=\"다음페이지\"></i></a>\n");
+					pageTag.append("<a class=\"arrow\" href=\"#pageNo=").append(getTotalPage()).append("\"><i class=\"fa fa-angle-double-right\" alt=\"맨마지막\"></i></a>\n");
+				}
+			}
+		}
+		return pageTag.toString();
+	}
+
+	@Override
+	public String toString() {
+		return String.format("Page request [pageNo: %d, pageSize %d, pageUnit %d]", getPageNo(), pageSize, pageUnit);
+	}
+
+}

+ 81 - 0
style24.scm/src/main/java/com/style24/persistence/domain/Brand.java

@@ -0,0 +1,81 @@
+package com.style24.persistence.domain;
+
+import com.style24.persistence.TssBaseDomain;
+
+import lombok.Data;
+
+/**
+ * 브랜드 Domain
+ * 
+ * @author gagamel
+ * @since 2020. 10. 20
+ */
+@SuppressWarnings("serial")
+@Data
+public class Brand extends TssBaseDomain {
+
+//	//HTML
+//	private String cpnId;		//쿠폰ID
+//	private String cpnType;		//쿠폰유형
+//	private String cpnApplyYn;	//쿠폰적용여부
+//	private String refVal;		//관련값(쿠폰유형이 "10:상품쿠폰"일 때는 상품코드, "11:브랜드쿠폰"일 때는 브랜드코드, "12:카테고리쿠폰"일 때는 카테고리코드)
+//	private String delYn;		//삭제여부
+
+	private String brandGb;		// 브랜드구분(자사(S) 입점(E))
+	private String brandCd;		// 브랜드코드
+	private String brandEnm;	// 브랜드영문명
+	private String brandKnm;	// 브랜드한글명
+	private String brandGrpNm;	// 브랜드그룹명
+//	private String erpBrandCd;	// ERP브랜드코드
+	private int minOrdAmt;		// 무료배송비최소주문금액
+	private int delvFee;		// 배송비
+	private String delvLocCd;	// 출고처코드
+	private String delvLocNm;	// 출고처명
+	private float sellFeeRate;	// 판매수수료율
+	private String brandImg;	// 브랜드이미지
+	private float pntPrate10;	// 포인트적립율(PC정상)
+	private float pntMrate10;	// 포인트적립율(모바일정상)
+	private float pntPrate20;	// 포인트적립율(PC이월)
+	private float pntMrate20;	// 포인트적립율(모바일이월)
+	private float dispOrd;		// 표시순서
+
+//	//TB_SUPPLY_COMPANY
+//	private String supplyCompCd; /*공급업체코드*/
+//	private String supplyCompNm; /*공급업체명*/
+//	private String bizGb; /*사업자구분(C:법인, P:개인)*/
+//	private String bizNo; /*사업자등록번호*/
+//	private String bizKind; /*업종*/
+//	private String bizType; /*업태*/
+//	private String ownerNm; /*대표자명*/
+//	private String bizZipcode; /*사업장우편번호*/
+//	private String bizBaseAddr; /*사업장기본주소*/
+//	private String bizDtlAddr; /*사업장상세주소*/
+//	private String mainTelno; /*대표전화번호*/
+//	private String mainFaxno; /*대표팩스번호*/
+//	private String homepageUrl; /*홈페이지URL*/
+//	private String selfYn; /*자사여부(Y:자사, N:입점)*/
+//	private String supplyStat; /*입점상태(공통코드G010)*/
+//	private String settleDay; /*정산일(매월)*/
+//	private String bankNm; /*은행명*/
+//	private String accountNo; /*계좌번호*/
+//	private String depositorNm; /*예금주명*/
+//	private String remarks; /*비고*/
+//	private String useYn; /*사용여부(Y:사용)*/
+//
+//	//TB_DELIVERY_LOC
+//	private String delvLocClsf; /*출고처분류(공통코드G024)*/
+//	private String delvAssignOrd; /*출고지정순서(출고처유형이 "21:직송매장"일 때만 사용)*/
+//	private String delvAssignGrade; /*출고지정등급(출고처유형이 "21:직송매장"일 때만 사용)*/
+//	private String delvPossibQty; /*출고가능수량(출고처유형이 "21:직송매장"일 때만 사용)*/
+//	private String delvFeeRate; /*출고수수료율*/
+//	private String delvLocPostNo; /*출고처우편번호*/
+//	private String delvLocBaseAddr; /*출고처기본주소*/
+//	private String delvLocDtlAddr; /*출고처상세주소*/
+//	private String rtnLocPostNo; /*반품처우편번호*/
+//	private String rtnLocBaseAddr; /*반품처기본주소*/
+//	private String rtnLocDtlAddr; /*반품처상세주소*/
+//	private String rtnLocTelno; /*반품처전화번호*/
+//	private String rtnLocNm; /*반품처명*/
+//	private String invoicePrintType; /*송장출력형태(공통코드G025)*/
+
+}

+ 25 - 0
style24.scm/src/main/java/com/style24/persistence/domain/Color.java

@@ -0,0 +1,25 @@
+package com.style24.persistence.domain;
+
+import com.style24.persistence.TssBaseDomain;
+
+import lombok.Data;
+
+/**
+ * 색상 Domain
+ *
+ * @author gagamel
+ * @since 2020. 10. 20
+ */
+@SuppressWarnings("serial")
+@Data
+public class Color extends TssBaseDomain {
+
+	private String colorCd;			// 색상코드
+	private String colorEnm;		// 색상영문명
+	private String colorKnm;		// 색상한글명
+	private String colorFile;		// 색상파일
+	private String colorGrpNm;		// 색상그룹명
+	private String colorGrpCd;		// 색상그룹코드
+	private String useYn;			// 사용여부
+
+}

+ 29 - 0
style24.scm/src/main/java/com/style24/persistence/domain/CommonCode.java

@@ -0,0 +1,29 @@
+package com.style24.persistence.domain;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+import com.style24.persistence.TssBaseDomain;
+
+import lombok.Data;
+
+/**
+ * 공통코드 Domain
+ * 
+ * @author gagamel
+ * @since 2020. 10. 7
+ */
+@SuppressWarnings("serial")
+@Data
+public class CommonCode extends TssBaseDomain {
+
+	private String cdGb;
+	private String cd;
+	private String cdNm;
+	private String cdDesc;
+	private int dispOrd;
+	private String useYn;
+	private String mdId;
+
+	@JsonFormat(with = JsonFormat.Feature.ACCEPT_SINGLE_VALUE_AS_ARRAY)
+	private String[] exceptCds;
+
+}

+ 45 - 0
style24.scm/src/main/java/com/style24/persistence/domain/Menu.java

@@ -0,0 +1,45 @@
+package com.style24.persistence.domain;
+
+import java.util.Collection;
+
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.style24.persistence.TssBaseDomain;
+
+import lombok.Data;
+
+/**
+ * 메뉴 Domain
+ * 
+ * @author gagamel
+ * @since 2020. 10. 5
+ */
+@SuppressWarnings("serial")
+@Data
+@JsonSerialize
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class Menu extends TssBaseDomain {
+
+	public Menu() {
+
+	}
+
+	private String menuId;
+	private String menuNm;
+	private String menuGb;
+	private String menuDesc;
+	private String menuUrl;
+	private int dispOrd;
+	private String useYn;
+	private String pmenuId;
+	private String pmenuNm;
+	private String navigation;
+	private int menuLvl;
+	private int leafLvl;
+	private String treePath; // AG-GRID트리패스(ag-Grid에서 트리를 표시하기 위한 패스. ag-Grid미사용시 필요 없음)
+
+	private Collection<MenuRole> menuRoleList;
+	private String roleCds;
+	private String roleNms;
+
+}

+ 23 - 0
style24.scm/src/main/java/com/style24/persistence/domain/MenuAccessHst.java

@@ -0,0 +1,23 @@
+package com.style24.persistence.domain;
+
+import com.style24.persistence.TssBaseDomain;
+
+import lombok.Data;
+
+/**
+ * 메뉴접속이력 Domain
+ * 
+ * @author gagamel
+ * @since 2020. 10. 7
+ */
+@SuppressWarnings("serial")
+@Data
+public class MenuAccessHst extends TssBaseDomain {
+
+	private Integer menuAccessSq;
+	private String userNo;
+	private String menuId;
+	private String reqUrl;
+	private String params;
+
+}

+ 22 - 0
style24.scm/src/main/java/com/style24/persistence/domain/MenuRole.java

@@ -0,0 +1,22 @@
+package com.style24.persistence.domain;
+
+import com.style24.persistence.TssBaseDomain;
+
+import lombok.Data;
+
+/**
+ * 메뉴권한 Domain
+ * 
+ * @author gagamel
+ * @since 2020. 10. 5
+ */
+@SuppressWarnings("serial")
+@Data
+public class MenuRole extends TssBaseDomain {
+
+	private String roleCd;	// 권한코드
+	private String roleNm;	// 권한명
+	private String menuId;	// 메뉴ID
+	private String useRole;	// 사용권한(RCUD)
+
+}

+ 57 - 0
style24.scm/src/main/java/com/style24/persistence/domain/SupplyCompany.java

@@ -0,0 +1,57 @@
+package com.style24.persistence.domain;
+
+import com.style24.persistence.TssBaseDomain;
+
+import lombok.Data;
+
+/**
+ * 공급업체 Domain
+ * 
+ * @author gagamel
+ * @since 2020. 10. 7
+ */
+@SuppressWarnings("serial")
+@Data
+public class SupplyCompany extends TssBaseDomain {
+
+	private String supplyCompCd;		// 공급업체코드
+	private String supplyCompNm;		// 공급업체명
+	private String bizGb;				// 사업자구분
+	private String bizNo;				// 사업자번호
+	private String bizKind;				// 업종
+	private String bizType;				// 업태
+	private String ownerNm;				// 대표자명
+	private String bizZipcode;			// 사업장우편번호
+	private String bizBaseAddr;			// 사업장기본주소
+	private String bizDtlAddr;			// 사업장상세주소
+	private String mainTelno;			// 대표전화번호
+	private String mainFaxno;			// 대표팩스번호
+	private String homepageUrl;			// 홈페이지URL
+	private String selfYn;				// 자사여부(Y:자사, N:입점)
+	private String distributionGb;		// 유통구분(공통코드G065)
+	private String supplyStat;			// 입점상태(공통코드G010)
+	private int minOrdAmt;				// 무료배송비최소주문금액
+	private int delvFee;				// 배송비
+	private float sellFeeRate;			// 판매수수료율
+	private String settleDay;			// 정산일(매월)
+	private String bankCd;				// 은행코드
+	private String accountNo;			// 계좌번호
+	private String depositorNm;			// 예금주명
+//	private String salesMgrNm;			// 영업담당자명
+//	private String salesMgrTelno;		// 영업담당자전화번호
+//	private String salesMgrCellPhnno;	// 영업담당자휴대전화번호
+	private String csChargeNm;			// CS담당자명
+	private String csChargeTelno;		// CS담당자전화번호
+	private String settleChargeNm;		// 정산담당자명
+	private String settleChargeTelno;	// 정산담당자전화번호
+	private String settleChargeEmail;	// 정산담당자이메일
+	private String billEmail;			// 계산서이메일
+	private String econtractYn;			// 전자계약여부
+	private String remarks;				// 비고
+	private String useYn;				// 사용여부
+
+	// 검색조건
+	private String searchGb;			// 검색구분
+	private String searchTxt;			// 검색어
+
+}

+ 47 - 0
style24.scm/src/main/java/com/style24/persistence/domain/User.java

@@ -0,0 +1,47 @@
+package com.style24.persistence.domain;
+
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.style24.persistence.TssBaseDomain;
+
+import lombok.Data;
+
+/**
+ * 사용자 Domain
+ * 
+ * @author gagamel
+ * @since 2020. 10. 19
+ */
+@SuppressWarnings("serial")
+@Data
+@JsonSerialize
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class User extends TssBaseDomain {
+
+	// 세션을 JSON 형식으로 레디스에 저장하려면 기본 생성자를 반드시 명시해야 한다
+	public User() {
+
+	}
+
+	private Integer userNo;
+	private String userId;
+	private String userNm;
+	private String passwd;
+	private String roleCd;
+	private String roleNm;
+	private String roleRefVal;
+	private String supplyCompCd;
+	private String supplyCompNm;
+	private String photoCompCd;
+	private String photoCompNm;
+	private String email;
+	private String cellPhnno;
+	private String ipAddr;
+	private String ipChkYn;
+	private String loginLdt;
+	private String passwdChgDt;
+	private String useYn;
+	private int loginFailCnt;
+	private String loginFailYn;
+
+}

+ 25 - 0
style24.scm/src/main/java/com/style24/persistence/domain/UserHst.java

@@ -0,0 +1,25 @@
+package com.style24.persistence.domain;
+
+import com.style24.persistence.TssBaseDomain;
+
+import lombok.Data;
+
+/**
+ * 사용자이력 Domain
+ * 
+ * @author gagamel
+ * @since 2020. 10. 7
+ */
+@SuppressWarnings("serial")
+@Data
+public class UserHst extends TssBaseDomain {
+
+	private Integer chgHstSq;	// 변경이력일련번호
+	private Integer userNo;		// 사용자번호
+	private String chgGb;		// 변경구분
+	private String chgContent;	// 변경내용
+
+	private String orgRoleCd;	// 변경전권한코드
+	private String roleCd;		// 변경후권한코드
+
+}

+ 24 - 0
style24.scm/src/main/java/com/style24/persistence/domain/UserMenu.java

@@ -0,0 +1,24 @@
+package com.style24.persistence.domain;
+
+import com.style24.persistence.TssBaseDomain;
+
+import lombok.Data;
+
+/**
+ * 사용자메뉴 Domain
+ * 
+ * @author gagamel
+ * @since 2020. 10. 7
+ */
+@SuppressWarnings("serial")
+@Data
+public class UserMenu extends TssBaseDomain {
+
+	private Integer userNo;	// 사용자번호
+	private String menuId;	// 메뉴ID
+	private String menuNm;	// 메뉴명
+	private String menuGb;	// 메뉴구분
+	private int menuLvl;	// 메뉴레벨
+	private String useYn;	// 사용여부
+
+}

+ 6 - 0
style24.scm/src/main/java/com/style24/persistence/mybatis/shop/TssDelivery.xml

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.style24.scm.biz.dao.TssDeliveryDao">
+
+
+</mapper>

+ 5 - 0
style24.scm/src/main/java/com/style24/persistence/mybatis/shop/TssGoods.xml

@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.style24.scm.biz.dao.TssGoodsDao">
+
+</mapper>

+ 192 - 0
style24.scm/src/main/java/com/style24/persistence/mybatis/shop/TssLogin.xml

@@ -0,0 +1,192 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.style24.scm.biz.dao.TssLoginDao">
+
+	<!-- ID로 사용자 조회 -->
+	<select id="getUserById" parameterType="String" resultType="User">
+		/* TsaLogin.getUserById */
+		SELECT USER_NO                                                     /*사용자명*/
+		     , USER_ID                                                     /*사용자ID*/
+		     , USER_NM                                                     /*사용자명*/
+		     , PASSWD                                                      /*비밀번호*/
+		     , ROLE_CD                                                     /*권한코드*/
+		     , FN_GET_CODE_NM('G001',ROLE_CD)            AS ROLE_NM        /*권한명*/
+		     , ROLE_REF_VAL                                                /*권한관련값*/
+		     , CASE WHEN SUBSTRING(ROLE_CD,1,1) = 'B' THEN
+		                ROLE_REF_VAL
+		            END                                  AS SUPPLY_COMP_CD /*공급업체코드
+		     , CASE WHEN SUBSTRING(ROLE_CD,1,1) = 'B' THEN
+		                (SELECT SUPPLY_COMP_NM
+		                 FROM   TB_SUPPLY_COMPANY
+		                 WHERE  SUPPLY_COMP_CD = A.ROLE_REF_VAL
+		                )
+		       END                                       AS SUPPLY_COMP_NM /*공급업체명*/
+		     , CASE WHEN SUBSTRING(ROLE_CD,1,1) = 'E' THEN
+		                ROLE_REF_VAL
+		       END                                       AS PHOTO_COMP_CD  /*촬영업체코드*/
+		     , CASE WHEN SUBSTRING(ROLE_CD,1,1) = 'E' THEN
+		                FN_GET_CODE_NM('G003',ROLE_REF_VAL)
+		       END                                       AS PHOTO_COMP_NM  /*촬영업체명*/
+		     , EMAIL                                                       /*이메일*/
+		     , CELL_PHNNO                                                  /*휴대전화번호*/
+		     , IP_ADDR                                                     /*IP주소*/
+		     , IP_CHK_YN                                                   /*IP체크여부*/
+		     , DATE_FORMAT(PASSWD_CHG_DT,'%Y%m%d%H%i%S') AS PASSWD_CHG_DT  /*비밀번호변경일시*/
+		FROM   TB_USER A
+		WHERE  USER_ID = #{userId}
+		AND    (ROLE_CD LIKE 'G001_B%' OR ROLE_CD LIKE 'G001_E%') /*입점업체담당자, 촬영업체담당자*/
+		AND    USE_YN = 'Y'
+	</select>
+	
+	<!-- 로그인실패 남기기 -->
+	<insert id="createLoginFail" parameterType="User">
+		/* TsaLogin.createLoginFail */
+		INSERT INTO TB_USER_LOGIN_FAIL (
+		       USER_NO
+		     , IP_ADDR
+		     , LOGIN_FAIL_CNT
+		     , REG_NO
+		     , REG_DT
+		     , UPD_NO
+		     , UPD_DT
+		)
+		VALUES (
+		       #{userNo}
+		     , #{ipAddr}
+		     , 1
+		     , #{userNo}
+		     , NOW()
+		     , #{userNo}
+		     , NOW()
+		)
+		ON DUPLICATE KEY UPDATE
+		       LOGIN_FAIL_CNT = CASE WHEN #{loginFailYn} = 'Y' THEN LOGIN_FAIL_CNT + 1 ELSE 0 END
+		     , UPD_NO = #{userNo}
+		     , UPD_DT = NOW()
+	</insert>
+
+	<!-- 로그인 실패건수 조회 -->
+	<select id="getLoginFailCount" parameterType="User" resultType="int">
+		/* TsaLogin.getLoginFailCount */
+		SELECT IFNULL((SELECT LOGIN_FAIL_CNT
+		               FROM   TB_USER_LOGIN_FAIL
+		               WHERE  USER_NO = #{userNo}
+		               AND    IP_ADDR = #{ipAddr}
+		              ),0) AS CNT
+		FROM   DUAL
+	</select>
+
+	<!-- 최종로그인일시 Update -->
+	<update id="updateLastLoginDate" parameterType="Integer">
+		/* TsaLogin.updateLastLoginDate */
+		UPDATE TB_USER
+		SET    LOGIN_LDT = NOW()
+		     , UPD_NO = #{userNo}
+		     , UPD_DT = NOW()
+		WHERE  USER_NO = #{userNo}
+	</update>
+
+	<!-- 로그인이력 남기기 -->
+	<insert id="createLoginHistory" parameterType="User">
+		/* TsaLogin.createLoginHistory */
+		INSERT INTO TB_USER_LOGIN_HST (
+		       USER_LOGIN_SQ
+		     , USER_NO
+		     , IP_ADDR
+		     , LOGIN_DT
+		     , REG_NO
+		     , REG_DT
+		)
+		VALUES (
+		       NULL
+		     , #{userNo}
+		     , #{ipAddr}
+		     , NOW()
+		     , #{userNo}
+		     , NOW()
+		)
+	</insert>
+
+	<!-- 로그인 메뉴 목록 -->
+	<select id="getLoginMenuList" parameterType="Integer" resultType="Menu">
+		/* TsaLogin.getLoginMenuList */
+		WITH RECURSIVE CONNECTBY2 AS (
+		    WITH RECURSIVE CONNECTBY1 AS (
+		        SELECT 1                                                  AS MENU_LVL
+		             , PMENU_ID
+		             , MENU_ID
+		             , MENU_NM
+		             , MENU_NM                                            AS NAVIGATION
+		             , MENU_GB
+		             , MENU_DESC
+		             , MENU_URL
+		             , CONCAT(MENU_ID,LPAD(CAST(DISP_ORD AS CHAR),4,'0')) AS DISP_ORD
+		        FROM   TB_MENU
+		        WHERE  PMENU_ID = 'ROOT'
+		        AND    USE_YN = 'Y'
+		        
+		        UNION ALL
+		        
+		        SELECT A.MENU_LVL + 1                                          AS MENU_LVL
+		             , B.PMENU_ID
+		             , B.MENU_ID
+		             , B.MENU_NM
+		             , CONCAT(A.NAVIGATION,' > ',B.MENU_NM)                    AS NAVIGATION
+		             , B.MENU_GB
+		             , B.MENU_DESC
+		             , B.MENU_URL
+		             , CONCAT(A.DISP_ORD,LPAD(CAST(B.DISP_ORD AS CHAR),4,'0')) AS DISP_ORD
+		        FROM   CONNECTBY1 A
+		        INNER JOIN TB_MENU B ON A.MENU_ID = B.PMENU_ID
+		                            AND B.USE_YN = 'Y'
+		    )
+		    SELECT MENU_LVL
+		         , PMENU_ID
+		         , MENU_ID
+		         , MENU_NM
+		         , NAVIGATION
+		         , MENU_GB
+		         , MENU_DESC
+		         , MENU_URL
+		         , DISP_ORD
+		    FROM   CONNECTBY1
+		    WHERE  MENU_ID IN (SELECT MENU_ID
+		                       FROM   TB_USER_MENU
+		                       WHERE  USER_NO = #{userNo}
+		                       AND    USE_ROLE != 'NNNN'
+		                      )
+		    
+		    UNION ALL
+		    
+		    SELECT B.MENU_LVL
+		         , B.PMENU_ID
+		         , B.MENU_ID
+		         , B.MENU_NM
+		         , B.NAVIGATION
+		         , B.MENU_GB
+		         , B.MENU_DESC
+		         , B.MENU_URL
+		         , B.DISP_ORD
+		    FROM   CONNECTBY2 A
+		    INNER JOIN CONNECTBY1 B ON A.PMENU_ID = B.MENU_ID
+		)
+		SELECT DISTINCT
+		       PMENU_ID               /*상위메뉴ID*/
+		     , MENU_ID                /*메뉴ID*/
+		     , MENU_NM                /*메뉴명*/
+		     , NAVIGATION             /*네비게이션*/
+		     , MENU_DESC              /*메뉴설명*/
+		     , MENU_URL               /*메뉴URL*/
+		     , MENU_LVL               /*메뉴레벨*/
+		     , CASE WHEN IFNULL((SELECT MAX(MENU_LVL)
+		                         FROM   CONNECTBY2
+		                         WHERE  PMENU_ID = A.MENU_ID
+		                        ),0) > 0 THEN 1
+		            ELSE 0
+		       END        AS LEAF_LVL /*말단레벨*/
+		FROM   CONNECTBY2 A
+		WHERE  MENU_ID NOT LIKE 'P%' /*팝업메뉴제외*/
+		ORDER  BY DISP_ORD
+	</select>
+
+</mapper>

+ 53 - 0
style24.scm/src/main/java/com/style24/persistence/mybatis/shop/TssRenderer.xml

@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.style24.scm.biz.dao.TssRendererDao">
+
+	<!-- 공급업체 목록 -->
+	<select id="getSupplyCompanyList" parameterType="SupplyCompany" resultType="CommonCode">
+		/* TsaRenderer.getSupplyCompanyList */
+		SELECT SUPPLY_COMP_CD AS CD
+		     , SUPPLY_COMP_NM AS CD_NM
+		FROM   TB_SUPPLY_COMPANY
+		WHERE  USE_YN = 'Y'
+		<if test='supplyCompCd != null and supplyCompCd != ""'>
+		AND    SUPPLY_COMP_CD = #{supplyCompCd}
+		</if>
+		<if test='selfYn == "Y"'>
+		AND    DISTRIBUTION_GB IN ('G065_10','G065_11','G065_12')
+		</if>
+		<if test='selfYn == "N"'>
+		AND    DISTRIBUTION_GB = 'G065_20'
+		</if>
+		ORDER  BY SUPPLY_COMP_NM
+	</select>
+	
+	<!-- 공통코드 목록 -->
+	<select id="getCommonCodeList" parameterType="CommonCode" resultType="CommonCode">
+		/* TsaRenderer.getCommonCodeList */
+		SELECT CD
+		     , CD_NM
+		FROM   TB_COMMON_CODE
+		WHERE  1 = 1
+		<if test="useYn != null and useYn != ''">
+		AND    USE_YN = #{useYn}
+		</if>
+		AND    CD_GB = #{cdGb}
+		<if test="cd != null and cd != ''">
+		AND    CD = #{cd}
+		</if>
+		<if test="cdNm != null and cdNm != ''">
+		AND    CD_NM = #{cdNm}
+		</if>
+		<if test="cdDesc != null and cdDesc != ''">
+		AND    CD_DESC = #{cdDesc}
+		</if>
+		<if test="exceptCds != null and exceptCds != ''">
+		AND    CD NOT IN
+		    <foreach collection="exceptCds" item="item" index="index"  open="(" close=")" separator=",">
+		    #{item}
+		    </foreach>
+		</if>
+		ORDER  BY CD_GB, DISP_ORD
+	</select>
+
+</mapper>

+ 14 - 0
style24.scm/src/main/java/com/style24/scm/biz/dao/TssDeliveryDao.java

@@ -0,0 +1,14 @@
+package com.style24.scm.biz.dao;
+
+import com.style24.core.support.annotation.ShopDs;
+
+/**
+ * 배송 Dao
+ *
+ * @author gagamel
+ * @since 2020. 10. 19
+ */
+@ShopDs
+public interface TssDeliveryDao {
+
+}

+ 14 - 0
style24.scm/src/main/java/com/style24/scm/biz/dao/TssGoodsDao.java

@@ -0,0 +1,14 @@
+package com.style24.scm.biz.dao;
+
+import com.style24.core.support.annotation.ShopDs;
+
+/**
+ * 상품 Dao
+ *
+ * @author gagamel
+ * @since 2020. 10. 19
+ */
+@ShopDs
+public interface TssGoodsDao {
+
+}

+ 68 - 0
style24.scm/src/main/java/com/style24/scm/biz/dao/TssLoginDao.java

@@ -0,0 +1,68 @@
+package com.style24.scm.biz.dao;
+
+import java.util.Collection;
+
+import com.style24.core.support.annotation.ShopDs;
+import com.style24.persistence.domain.Menu;
+import com.style24.persistence.domain.User;
+
+/**
+ * 로그인 Dao
+ * @author gagamel
+ * @since 2020. 10. 19
+ */
+@ShopDs
+public interface TssLoginDao {
+
+	/**
+	 * ID로 사용자 정보 조회
+	 * @param userId - 사용자ID
+	 * @return
+	 * @author gagamel
+	 * @since 2020. 10. 5
+	 */
+	User getUserById(String userId);
+
+	/**
+	 * 로그인실패 남기기
+	 * @param user - 사용자정보
+	 * @author gagamel
+	 * @date 2020. 10. 5
+	 */
+	void createLoginFail(User user);
+
+	/**
+	 * 로그인 실패건수 조회
+	 * @param user - 사용자정보
+	 * @return 로그인 실패건수
+	 * @author gagamel
+	 * @date 2020. 10. 5
+	 */
+	int getLoginFailCount(User user);
+
+	/**
+	 * 최종로그인일시 Update
+	 * @param userNo - 사용자번호
+	 * @author gagamel
+	 * @since 2020. 10. 5
+	 */
+	void updateLastLoginDate(Integer userNo);
+
+	/**
+	 * 로그인이력 남기기
+	 * @param user - 사용자정보
+	 * @author gagamel
+	 * @date 2020. 10. 5
+	 */
+	void createLoginHistory(User user);
+
+	/**
+	 * 로그인 메뉴 목록
+	 * @param userNo - 사용자번호
+	 * @return
+	 * @author gagamel
+	 * @since 2020. 10. 5
+	 */
+	Collection<Menu> getLoginMenuList(Integer userNo);
+
+}

+ 14 - 0
style24.scm/src/main/java/com/style24/scm/biz/dao/TssOrderDao.java

@@ -0,0 +1,14 @@
+package com.style24.scm.biz.dao;
+
+import com.style24.core.support.annotation.ShopDs;
+
+/**
+ * 주문 Dao
+ *
+ * @author gagamel
+ * @since 2020. 10. 19
+ */
+@ShopDs
+public interface TssOrderDao {
+
+}

+ 36 - 0
style24.scm/src/main/java/com/style24/scm/biz/dao/TssRendererDao.java

@@ -0,0 +1,36 @@
+package com.style24.scm.biz.dao;
+
+import java.util.Collection;
+
+import com.style24.core.support.annotation.ShopDs;
+import com.style24.persistence.domain.CommonCode;
+import com.style24.persistence.domain.SupplyCompany;
+
+/**
+ * 콤보박스, 체크박스, 라디오버튼 구성 시 필요한 Renderer Dao
+ * 
+ * @author gagamel
+ * @since 2020. 10. 19
+ */
+@ShopDs
+public interface TssRendererDao {
+
+	/**
+	 * 공급업체 목록
+	 * @param supplyComp
+	 * @return 공급업체 목록
+	 * @author gagamel
+	 * @since 2020. 10. 7
+	 */
+	Collection<CommonCode> getSupplyCompanyList(SupplyCompany supplyComp);
+
+	/**
+	 * 공통코드 목록
+	 * @param commoncode - 공통코드 정보
+	 * @return 공통코드 목록
+	 * @author gagamel
+	 * @since 2020. 10. 7
+	 */
+	Collection<CommonCode> getCommonCodeList(CommonCode commoncode);
+
+}

+ 27 - 0
style24.scm/src/main/java/com/style24/scm/biz/service/TssDeliveryService.java

@@ -0,0 +1,27 @@
+package com.style24.scm.biz.service;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import com.style24.core.support.message.TscMessageByLocale;
+import com.style24.scm.biz.dao.TssDeliveryDao;
+
+import lombok.extern.slf4j.Slf4j;
+
+/**
+ * 배송 Service
+ *
+ * @author gagamel
+ * @since 2020. 10. 19
+ */
+@Service
+@Slf4j
+public class TssDeliveryService {
+
+	@Autowired
+	private TscMessageByLocale message;
+
+	@Autowired
+	private TssDeliveryDao deliveryDao;
+
+}

+ 27 - 0
style24.scm/src/main/java/com/style24/scm/biz/service/TssGoodsService.java

@@ -0,0 +1,27 @@
+package com.style24.scm.biz.service;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import com.style24.core.support.message.TscMessageByLocale;
+import com.style24.scm.biz.dao.TssGoodsDao;
+
+import lombok.extern.slf4j.Slf4j;
+
+/**
+ *상품 Service
+ *
+ * @author gagamel
+ * @since 2020. 10. 19
+ */
+@Service
+@Slf4j
+public class TssGoodsService {
+
+	@Autowired
+	private TscMessageByLocale message;
+
+	@Autowired
+	private TssGoodsDao goodsDao;
+
+}

+ 111 - 0
style24.scm/src/main/java/com/style24/scm/biz/service/TssLoginService.java

@@ -0,0 +1,111 @@
+package com.style24.scm.biz.service;
+
+import java.util.Collection;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.core.env.Environment;
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
+
+import com.style24.persistence.domain.Menu;
+import com.style24.persistence.domain.User;
+import com.style24.scm.biz.dao.TssLoginDao;
+import com.style24.scm.support.security.session.TssSession;
+
+import lombok.extern.slf4j.Slf4j;
+
+/**
+ * 로그인 Service
+ *
+ * @author gagamel
+ * @since 2020. 10. 19
+ */
+@Service
+@Slf4j
+public class TssLoginService {
+
+	@Autowired
+	private TssLoginDao loginDao;
+
+	@Autowired
+	private Environment env;
+
+	/**
+	 * 사용자ID로 사용자 정보 조회
+	 * @param userId - 사용자ID
+	 * @return
+	 * @author gagamel
+	 * @since 2020. 10. 5
+	 */
+	public User getUserById(String userId) {
+		return loginDao.getUserById(userId);
+	}
+
+	/**
+	 * 로그인실패 남기기. 로그인실패여부가 "N:성공"이면 실패건수 0으로 초기화
+	 * @param userNo - 사용자번호
+	 * @param loginFailYn - 로그인실패여부(Y:실패, N:성공)
+	 * @author gagamel
+	 * @since 2020. 10. 5
+	 */
+	@Transactional("shopTxnManager")
+	public void createLoginFail(Integer userNo, String loginFailYn) {
+		User user = new User();
+		user.setUserNo(userNo);
+		user.setIpAddr(TssSession.getIpAddress());
+		user.setLoginFailYn(loginFailYn);
+		loginDao.createLoginFail(user);
+	}
+
+	/**
+	 * 로그인 실패건수 조회
+	 * @param userNo - 사용자번호
+	 * @return 로그인 실패건수
+	 * @author gagamel
+	 * @since 2020. 10. 5
+	 */
+	public int getLoginFailCount(Integer userNo) {
+		User user = new User();
+		user.setUserNo(userNo);
+		user.setIpAddr(TssSession.getIpAddress());
+		return loginDao.getLoginFailCount(user);
+	}
+
+	/**
+	 * 최종로그인일시 Update
+	 * @param userNo - 사용자번호
+	 * @author gagamel
+	 * @since 2020. 10. 5
+	 */
+	@Transactional("shopTxnManager")
+	public void updateLastLoginDate(Integer userNo) {
+		loginDao.updateLastLoginDate(userNo);
+	}
+
+	/**
+	 * 로그인이력 남기기
+	 * @param userNo - 사용자번호
+	 * @author gagamel
+	 * @date 2020. 10. 5
+	 */
+	@Transactional("shopTxnManager")
+	public void createLoginHistory(Integer userNo) {
+		User user = new User();
+		user.setUserNo(userNo);
+		user.setIpAddr(TssSession.getIpAddress());
+
+		loginDao.createLoginHistory(user);
+	}
+
+	/**
+	 * 로그인 메뉴 목록
+	 * @param userNo - 사용자번호
+	 * @return
+	 * @author gagamel
+	 * @since 2020. 10. 5
+	 */
+	public Collection<Menu> getLoginMenuList(Integer userNo) {
+		return loginDao.getLoginMenuList(userNo);
+	}
+
+}

+ 27 - 0
style24.scm/src/main/java/com/style24/scm/biz/service/TssOrderService.java

@@ -0,0 +1,27 @@
+package com.style24.scm.biz.service;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import com.style24.core.support.message.TscMessageByLocale;
+import com.style24.scm.biz.dao.TssOrderDao;
+
+import lombok.extern.slf4j.Slf4j;
+
+/**
+ * 주문 Service
+ *
+ * @author gagamel
+ * @since 2020. 10. 19
+ */
+@Service
+@Slf4j
+public class TssOrderService {
+
+	@Autowired
+	private TscMessageByLocale message;
+
+	@Autowired
+	private TssOrderDao orderDao;
+
+}

+ 173 - 0
style24.scm/src/main/java/com/style24/scm/biz/service/TssRendererService.java

@@ -0,0 +1,173 @@
+package com.style24.scm.biz.service;
+
+import java.util.Collection;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import com.style24.persistence.domain.CommonCode;
+import com.style24.persistence.domain.SupplyCompany;
+import com.style24.scm.biz.dao.TssRendererDao;
+
+import lombok.extern.slf4j.Slf4j;
+
+/**
+ * 콤보박스, 체크박스, 라디오버튼 구성 시 필요한 Renderer Service
+ *
+ * @author gagamel
+ * @since 2020. 10. 19
+ */
+@Service
+@Slf4j
+public class TssRendererService {
+
+	@Autowired
+	private TssRendererDao rendererDao;
+
+	/**
+	 * 공급업체 목록
+	 * @param supplyCompany - 공급업체 정보
+	 * @return 공급업체 목록
+	 * @author Daehyoung
+	 * @since 2020. 10. 7
+	 */
+	public Collection<CommonCode> getSupplyCompanyList(SupplyCompany supplyCompany) {
+		return rendererDao.getSupplyCompanyList(supplyCompany);
+	}
+
+	/**
+	 * 공급업체 목록
+	 * @return 공급업체 목록
+	 * @author gagamel
+	 * @since 2020. 10. 7
+	 */
+	public Collection<CommonCode> getSupplyCompanyList() {
+		return this.getSupplyCompanyList(new SupplyCompany());
+	}
+
+	/**
+	 * 공급업체 목록
+	 * @param supplyCompCd - 공급업체코드
+	 * @return 공급업체 목록
+	 * @author gagamel
+	 * @since 2020. 10. 7
+	 */
+	public Collection<CommonCode> getSupplyCompanyList(String supplyCompCd) {
+		SupplyCompany supplyCompany = new SupplyCompany();
+		supplyCompany.setSupplyCompCd(supplyCompCd);
+		return this.getSupplyCompanyList(supplyCompany);
+	}
+
+	/**
+	 * 공급업체 목록
+	 * @param supplyCompCd - 공급업체코드
+	 * @param selfYn - 자사여부
+	 * @return 공급업체 목록
+	 * @author gagamel
+	 * @since 2020. 10. 7
+	 */
+	public Collection<CommonCode> getSupplyCompanyList(String supplyCompCd, String selfYn) {
+		SupplyCompany supplyCompany = new SupplyCompany();
+		supplyCompany.setSupplyCompCd(supplyCompCd);
+		supplyCompany.setSelfYn(selfYn);
+		return this.getSupplyCompanyList(supplyCompany);
+	}
+
+	/**
+	 * 자사공급업체 목록
+	 * @return 자사공급업체 목록
+	 * @author gagamel
+	 * @since 2020. 10. 7
+	 */
+	public Collection<CommonCode> getSelfSupplyCompanyList() {
+		SupplyCompany supplyCompany = new SupplyCompany();
+		supplyCompany.setSelfYn("Y");
+		return this.getSupplyCompanyList(supplyCompany);
+	}
+
+	/**
+	 * 공통코드 목록 - 어드민 공통코드 캐시 미적용 - 상품등록시 시즌년도 캐쉬로 인한 정보 오류로 수정 2020.06.02
+	 * @param commoncode - 공통코드 정보
+	 * @return
+	 * @author gagamel
+	 * @since 2020. 10. 7
+	 */
+//	@Cacheable(value = "common", key = "'commoncode-'.concat(#commoncode.cdGb)")
+	public Collection<CommonCode> getCommonCodeList(CommonCode commoncode) {
+		return rendererDao.getCommonCodeList(commoncode);
+	}
+
+	/**
+	 * 공통코드 목록
+	 * @param cdGb - 코드구분
+	 * @return
+	 * @author gagamel
+	 * @since 2020. 10. 7
+	 */
+	public Collection<CommonCode> getCommonCodeList(String cdGb) {
+		CommonCode commoncode = new CommonCode();
+		commoncode.setCdGb(cdGb);
+		return this.getCommonCodeList(commoncode);
+	}
+
+	/**
+	 * 공통코드 목록
+	 * @param grpCodeId - 코드구분
+	 * @param useYn     - 사용여부
+	 * @return
+	 * @author gagamel
+	 * @since 2020. 10. 7
+	 */
+	public Collection<CommonCode> getCommonCodeList(String cdGb, String useYn) {
+		CommonCode commoncode = new CommonCode();
+		commoncode.setCdGb(cdGb);
+		commoncode.setUseYn(useYn);
+		return this.getCommonCodeList(commoncode);
+	}
+
+	/**
+	 * 현재 유효한 공통코드 목록
+	 * @param cdGb - 코드구분
+	 * @return
+	 * @author gagamel
+	 * @since 2020. 10. 7
+	 */
+	public Collection<CommonCode> getAvailCommonCodeList(String cdGb) {
+		return this.getCommonCodeList(cdGb, "Y");
+	}
+
+	/**
+	 * 공통코드 목록
+	 * @param cdGb   -코드구분
+	 * @param useYn  - 사용여부
+	 * @param cdDesc - 코드설명
+	 * @return
+	 * @author gagamel
+	 * @since 2020. 10. 7
+	 */
+	public Collection<CommonCode> getCommonCodeList(String cdGb, String useYn, String cdDesc) {
+		CommonCode commoncode = new CommonCode();
+		commoncode.setCdGb(cdGb);
+		commoncode.setUseYn(useYn);
+		commoncode.setCdDesc(cdDesc);
+		return this.getCommonCodeList(commoncode);
+	}
+
+	/**
+	 * 공통코드 목록
+	 * @param cdGb      -코드구분
+	 * @param useYn     - 사용여부
+	 * @param exceptCds - 제외코드배열
+	 * @return
+	 * @author gagamel
+	 * @since 2020. 10. 7
+	 */
+	public Collection<CommonCode> getCommonCodeList(String cdGb, String useYn, String[] exceptCds) {
+		CommonCode commoncode = new CommonCode();
+		commoncode.setCdGb(cdGb);
+		commoncode.setUseYn(useYn);
+		commoncode.setExceptCds(exceptCds);
+		return this.getCommonCodeList(commoncode);
+	}
+
+}

+ 30 - 0
style24.scm/src/main/java/com/style24/scm/biz/web/TssDeliveryController.java

@@ -0,0 +1,30 @@
+package com.style24.scm.biz.web;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.RequestMapping;
+
+import com.style24.core.support.message.TscMessageByLocale;
+import com.style24.scm.biz.service.TssDeliveryService;
+import com.style24.scm.support.controller.TssBaseController;
+
+import lombok.extern.slf4j.Slf4j;
+
+/**
+ * 배송 Controller
+ *
+ * @author gagamel
+ * @since 2020. 10. 19
+ */
+@Controller
+@RequestMapping("/order")
+@Slf4j
+public class TssDeliveryController extends TssBaseController {
+
+	@Autowired
+	private TscMessageByLocale message;
+
+	@Autowired
+	private TssDeliveryService deliveryService;
+
+}

+ 34 - 0
style24.scm/src/main/java/com/style24/scm/biz/web/TssGoodsController.java

@@ -0,0 +1,34 @@
+package com.style24.scm.biz.web;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.RequestMapping;
+
+import com.style24.core.support.message.TscMessageByLocale;
+import com.style24.scm.biz.service.TssGoodsService;
+import com.style24.scm.biz.service.TssRendererService;
+import com.style24.scm.support.controller.TssBaseController;
+
+import lombok.extern.slf4j.Slf4j;
+
+/**
+ * 상품관리 Controller
+ *
+ * @author gagamel
+ * @since 2020. 10. 19
+ */
+@Controller
+@RequestMapping("/goods")
+@Slf4j
+public class TssGoodsController extends TssBaseController {
+
+	@Autowired
+	private TscMessageByLocale message;
+
+	@Autowired
+	private TssGoodsService goodsService;
+
+	@Autowired
+	private TssRendererService rendererService;
+
+}

+ 55 - 0
style24.scm/src/main/java/com/style24/scm/biz/web/TssIndexController.java

@@ -0,0 +1,55 @@
+package com.style24.scm.biz.web;
+
+import javax.servlet.http.HttpSession;
+
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.servlet.ModelAndView;
+
+import com.style24.scm.support.controller.TssBaseController;
+import com.style24.scm.support.security.session.TssSession;
+
+import lombok.extern.slf4j.Slf4j;
+
+/**
+ * Index Controller
+ * 
+ * @author gagamel
+ * @since 2020. 10. 19
+ */
+@Controller
+@Slf4j
+public class TssIndexController extends TssBaseController {
+
+	/**
+	 * 첫 페이지. 로그인 된 상태이면 대쉬보드 화면으로 아니면 로그인 페이지로
+	 * @param error - 로그인 오류 정보
+	 * @param session - HttpSession
+	 * @return
+	 * @author gagamel
+	 * @since 2020. 10. 19
+	 */
+	@GetMapping({"/", "/index"})
+	public ModelAndView index(@RequestParam(value = "error", required = false) boolean isError, HttpSession session) {
+		ModelAndView mav = new ModelAndView();
+
+		if (TssSession.isLogin()) {
+			mav.setViewName("dashboard");
+			return mav;
+		}
+
+		log.info("isError: {}", isError);
+		if (isError) {
+			Exception e = (Exception)session.getAttribute("SPRING_SECURITY_LAST_EXCEPTION");
+			log.info("e.getMessage(): {}", e.getMessage());
+			mav.addObject("error", e.getMessage());
+		}
+
+		// 로그인 페이지로
+		mav.setViewName("signin");
+
+		return mav;
+	}
+
+}

+ 30 - 0
style24.scm/src/main/java/com/style24/scm/biz/web/TssOrderController.java

@@ -0,0 +1,30 @@
+package com.style24.scm.biz.web;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.RequestMapping;
+
+import com.style24.core.support.message.TscMessageByLocale;
+import com.style24.scm.biz.service.TssOrderService;
+import com.style24.scm.support.controller.TssBaseController;
+
+import lombok.extern.slf4j.Slf4j;
+
+/**
+ * 주문 Controller
+ *
+ * @author gagamel
+ * @since 2020. 10. 19
+ */
+@Controller
+@RequestMapping("/order")
+@Slf4j
+public class TssOrderController extends TssBaseController {
+
+	@Autowired
+	private TscMessageByLocale message;
+
+	@Autowired
+	private TssOrderService orderService;
+
+}

+ 48 - 0
style24.scm/src/main/java/com/style24/scm/support/config/TssMybatisShopConfig.java

@@ -0,0 +1,48 @@
+package com.style24.scm.support.config;
+
+import javax.sql.DataSource;
+
+import org.apache.ibatis.session.SqlSessionFactory;
+import org.mybatis.spring.SqlSessionFactoryBean;
+import org.mybatis.spring.SqlSessionTemplate;
+import org.mybatis.spring.annotation.MapperScan;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.beans.factory.annotation.Qualifier;
+import org.springframework.context.ApplicationContext;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+import com.style24.core.support.annotation.ShopDs;
+import com.style24.core.support.env.TscConstants;
+
+/**
+ * shopDs용 Mybatis Configuration
+ * 
+ * @author gagamel
+ * @since 2020. 10. 19
+ */
+@Configuration
+@MapperScan(basePackages = TscConstants.BASE_PACKAGE, annotationClass = ShopDs.class, sqlSessionFactoryRef = "shopSqlSessionFactory")
+public class TssMybatisShopConfig {
+
+	@Autowired
+	private ApplicationContext applicationContext;
+
+	@Bean(name = "shopSqlSessionFactory")
+	public SqlSessionFactory shopSqlSessionFactory(@Qualifier("shopDataSource") DataSource dataSource) throws Exception {
+		SqlSessionFactoryBean sessionFactoryBean = new SqlSessionFactoryBean();
+
+		sessionFactoryBean.setDataSource(dataSource);
+		sessionFactoryBean.setTypeAliasesPackage(TscConstants.DOMAIN_PACKAGE);
+		sessionFactoryBean.setConfigLocation(applicationContext.getResource("classpath:persistence/mybatis-shop-config.xml"));
+		sessionFactoryBean.setMapperLocations(applicationContext.getResources(TscConstants.MAPPER_LOCATION_PATH + "/shop/*.xml"));
+
+		return sessionFactoryBean.getObject();
+	}
+
+	@Bean(name = "shopSqlSessionTemplate")
+	public SqlSessionTemplate shopSqlSessionTemplate(@Qualifier("shopSqlSessionFactory") SqlSessionFactory sqlSessionFactory) throws Exception {
+		return new SqlSessionTemplate(sqlSessionFactory);
+	}
+
+}

+ 100 - 0
style24.scm/src/main/java/com/style24/scm/support/config/TssRedisSessionConfig.java

@@ -0,0 +1,100 @@
+package com.style24.scm.support.config;
+
+import org.springframework.beans.factory.BeanClassLoaderAware;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.data.redis.serializer.GenericJackson2JsonRedisSerializer;
+import org.springframework.data.redis.serializer.RedisSerializer;
+import org.springframework.security.jackson2.SecurityJackson2Modules;
+import org.springframework.session.data.redis.config.ConfigureRedisAction;
+import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;
+import org.springframework.session.web.context.AbstractHttpSessionApplicationInitializer;
+import org.springframework.session.web.http.CookieSerializer;
+import org.springframework.session.web.http.DefaultCookieSerializer;
+
+import com.fasterxml.jackson.databind.ObjectMapper;
+
+/**
+ * Spring Session을 JSON 형태로 Redis에 저장하기 위한 Configuration
+ * HttpSession 구현체를 대체하는 서블릿 필터를 생성
+ *
+ * @EnableRedisHttpSession 어노테이션은 SpringSessionRepositoryFilter(Filter의 구현체)라는 빈을 생성하는데,
+ * yml 파일의 "spring.session.store-type: redis"와 같다.
+ * 이 필터는 HttpSession의 구현체를 바꾸는 역할을 한다.
+ * @EnableRedisHttpSession 어노테이션을 하고
+ * "spring.data.redis.repositories.enabled: true" 속성을 application.yml 파일에 추가한다.
+ * 
+ * @author gagamel
+ * @since 2020. 10. 19
+ */
+@Configuration
+@EnableRedisHttpSession(maxInactiveIntervalInSeconds = 1800)
+public class TssRedisSessionConfig
+	extends AbstractHttpSessionApplicationInitializer implements BeanClassLoaderAware {
+
+	private ClassLoader classLoader;
+
+	@Override
+	public void setBeanClassLoader(ClassLoader classLoader) {
+		this.classLoader = classLoader;
+	}
+
+	/**
+	 * Redis Keyspace Notification 역시 받을 필요가 없도록 처리
+	 *
+	 * @return
+	 * @author gagamel
+	 * @since 2020. 5. 31.
+	 */
+	@Bean
+	public static ConfigureRedisAction configureRedisAction() {
+		return ConfigureRedisAction.NO_OP;
+	}
+
+	/**
+	 * Serialize 수행 방법을 스프링에 알려준다.
+	 *
+	 * @return
+	 * @author gagamel
+	 * @since 2020. 5. 29.
+	 */
+	@Bean
+	public RedisSerializer<Object> springSessionDefaultRedisSerializer() {
+		return new GenericJackson2JsonRedisSerializer(objectMapper());
+	}
+
+	/**
+	 * Spring Security 관련 변수 및 매개 변수를 저장하기 위해 SecurityJackson2Modules를 사용
+	 *
+	 * @return
+	 * @author gagamel
+	 * @since 2020. 5. 29.
+	 */
+	private ObjectMapper objectMapper() {
+		ObjectMapper mapper = new ObjectMapper();
+		mapper.registerModules(SecurityJackson2Modules.getModules(this.classLoader));
+		return mapper;
+	}
+
+	/**
+	 * @EnableRedisHttpSession 어노테이션을 통해 redis-session을 처리할 경우
+	 * 결제, 본인인증 후 콜백시 로그인이 풀림
+	 * SAME_SITE = NONE 그리고 SECURE 를 하기위해서 해당 메소드가 필요함
+	 * @return
+	 * @author gagamel
+	 * @since 2020. 5. 21.
+	 */
+	@Bean
+	public CookieSerializer cookieSerializer() {
+		DefaultCookieSerializer serializer = new DefaultCookieSerializer();
+		serializer.setCookiePath("/");
+		serializer.setUseBase64Encoding(false);
+
+		// SSL인증서 적용 시 주석 제거
+//		serializer.setUseSecureCookie(true);
+//		serializer.setSameSite("NONE");
+
+		return serializer;
+	}
+
+}

+ 70 - 0
style24.scm/src/main/java/com/style24/scm/support/config/TssThymeleafConfig.java

@@ -0,0 +1,70 @@
+package com.style24.scm.support.config;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.context.ApplicationContext;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.core.Ordered;
+import org.springframework.core.env.Environment;
+import org.springframework.web.servlet.ViewResolver;
+import org.thymeleaf.extras.java8time.dialect.Java8TimeDialect;
+import org.thymeleaf.spring5.SpringTemplateEngine;
+import org.thymeleaf.spring5.templateresolver.SpringResourceTemplateResolver;
+import org.thymeleaf.spring5.view.ThymeleafViewResolver;
+import org.thymeleaf.templatemode.TemplateMode;
+
+import nz.net.ultraq.thymeleaf.LayoutDialect;
+
+/**
+ * THYMELEAF Configuration
+ * 
+ * @author gagamel
+ * @since 2020. 10. 19
+ */
+@Configuration
+public class TssThymeleafConfig {
+
+	@Autowired
+	private ApplicationContext applicationContext;
+
+	@Autowired
+	private Environment env;
+
+	@Bean
+	public SpringResourceTemplateResolver templateResolver() {
+		SpringResourceTemplateResolver templateResolver = new SpringResourceTemplateResolver();
+		templateResolver.setApplicationContext(applicationContext);
+		templateResolver.setPrefix(env.getProperty("spring.thymeleaf.prefix"));
+		templateResolver.setSuffix(env.getProperty("spring.thymeleaf.suffix"));
+		templateResolver.setTemplateMode(TemplateMode.HTML);
+		templateResolver.setCharacterEncoding("UTF-8");
+		templateResolver.setCacheable(false);
+
+		return templateResolver;
+	}
+
+	@Bean
+	public SpringTemplateEngine templateEngine() {
+		SpringTemplateEngine templateEngine = new SpringTemplateEngine();
+		templateEngine.setTemplateResolver(templateResolver());
+		templateEngine.setEnableSpringELCompiler(true);
+		templateEngine.addDialect(new LayoutDialect());
+		templateEngine.addDialect(new Java8TimeDialect());
+		return templateEngine;
+	}
+
+	@Bean
+	public ViewResolver thymeleafViewResolver() {
+		ThymeleafViewResolver viewResolver = new ThymeleafViewResolver();
+
+		viewResolver.setTemplateEngine(templateEngine());
+		viewResolver.setCharacterEncoding("UTF-8");
+		viewResolver.setOrder(Ordered.HIGHEST_PRECEDENCE);
+
+		// below views will not be handled by this reslover.
+		viewResolver.setExcludedViewNames(new String[] {"common/**/*"});
+
+		return viewResolver;
+	}
+
+}

+ 110 - 0
style24.scm/src/main/java/com/style24/scm/support/config/TssWebMvcConfig.java

@@ -0,0 +1,110 @@
+package com.style24.scm.support.config;
+
+import java.nio.charset.Charset;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.boot.web.servlet.FilterRegistrationBean;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.http.client.HttpComponentsClientHttpRequestFactory;
+import org.springframework.http.converter.StringHttpMessageConverter;
+import org.springframework.web.client.RestTemplate;
+import org.springframework.web.multipart.support.MultipartFilter;
+import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
+import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
+
+import com.style24.scm.support.interceptor.TssDefaultInterceptor;
+
+import com.gagaframework.web.core.filter.GagaXssServletFilter;
+import com.gagaframework.web.rest.client.GagaRequestStringTrim;
+
+/**
+ * Web MVC Configuration
+ *
+ * @author gagamel
+ * @since 2020. 10. 19
+ */
+@Configuration
+public class TssWebMvcConfig implements WebMvcConfigurer {
+
+	@Autowired
+	private TssDefaultInterceptor defaultInterceptor;
+
+	@Override
+	public void addInterceptors(InterceptorRegistry registry) {
+		final String[] excludePathPatterns = new String[] {
+			"/", "/index", "/signin", "/image/**", "/ux/**", "/smartEditor/**",
+			"/error/**", "/data/**", "/login", "/logout"
+		};
+
+		registry.addInterceptor(defaultInterceptor)
+			.addPathPatterns("/**/*")
+			.excludePathPatterns(excludePathPatterns);
+	}
+
+	/**
+	 * @RequestBody annotation 이용 시 json data 형식의 모든 문자열의 앞, 뒤 공백을 제거
+	 */
+	@Bean
+	public GagaRequestStringTrim stringTrim() {
+		return new GagaRequestStringTrim();
+	}
+
+	/**
+	 * XSS(Cross Site Script) Prevention Filter
+	 *
+	 * @return
+	 */
+	@SuppressWarnings({"rawtypes", "unchecked"})
+	@Bean
+	public FilterRegistrationBean xssFilterRegistrationBean() {
+		FilterRegistrationBean bean = new FilterRegistrationBean();
+		bean.setFilter(new GagaXssServletFilter());
+		bean.setOrder(2);
+		bean.addUrlPatterns("/*");
+		return bean;
+	}
+
+	/**
+	 * Multipart Filter
+	 * 파일 업로드 구현 시 MultipartRequest를 처리함에 따라 해당 부분은 불필요 하나,
+	 * com.oreilly.servlet.MultipartRequest 같은 걸 이용 시
+	 * "Corrupt form data: premature ending" exception이 발생한다.
+	 * 이를 해결하고자 Filter를 구성
+	 *
+	 * @return
+	 */
+	@SuppressWarnings({"rawtypes", "unchecked"})
+	@Bean
+	public FilterRegistrationBean springMultipartRegistrationBean() {
+		FilterRegistrationBean bean = new FilterRegistrationBean();
+		bean.setName("springMultipartResolver");
+		bean.setFilter(new MultipartFilter());
+		bean.setOrder(1);
+		bean.addUrlPatterns(new String[] {
+			"/common/file/upload/**",
+			"/common/files/upload/**"
+		});
+		return bean;
+	}
+
+	/**
+	 * API 호출을 위한 RestTemplate 설정
+	 *
+	 * @return
+	 */
+	@Bean
+	public RestTemplate restTemplate() {
+		HttpComponentsClientHttpRequestFactory factory = new HttpComponentsClientHttpRequestFactory();
+		factory.setConnectTimeout(300000);
+		factory.setReadTimeout(300000);
+
+		RestTemplate restTemplate = new RestTemplate(factory);
+
+		// Convert the message to UTF-8
+		restTemplate.getMessageConverters().add(0, new StringHttpMessageConverter(Charset.forName("UTF-8")));
+
+		return restTemplate;
+	}
+
+}

+ 49 - 0
style24.scm/src/main/java/com/style24/scm/support/controller/TssBaseController.java

@@ -0,0 +1,49 @@
+package com.style24.scm.support.controller;
+
+import java.util.Collection;
+
+import org.springframework.web.bind.annotation.ControllerAdvice;
+import org.springframework.web.bind.annotation.ModelAttribute;
+
+import com.style24.core.support.controller.TscBaseController;
+import com.style24.persistence.domain.Menu;
+import com.style24.persistence.domain.User;
+import com.style24.scm.support.security.session.TssSession;
+
+import lombok.extern.slf4j.Slf4j;
+
+/**
+ * Controller Advice
+ * 
+ * @author gagamel
+ * @since 2020. 10. 19
+ */
+@ControllerAdvice
+@Slf4j
+public class TssBaseController extends TscBaseController {
+
+	/**
+	 * Get 세션 정보
+	 * 1.View 단에서 사용법
+	 * th:value="${sessionInfo.userId}"
+	 * 2.Java 단에서 사용법
+	 * super.getSession().getUserId()
+	 * 
+	 * @return
+	 */
+	@ModelAttribute("sessionInfo")
+	public User getSession() {
+		return TssSession.getInfo();
+	}
+
+	/**
+	 * Get 로그인 메뉴 목록
+	 * 
+	 * @return
+	 */
+	@ModelAttribute("loginMenuList")
+	public Collection<Menu> getLoginMenuList() {
+		return TssSession.getLoginMenuList();
+	}
+
+}

+ 65 - 0
style24.scm/src/main/java/com/style24/scm/support/controller/TssErrorController.java

@@ -0,0 +1,65 @@
+package com.style24.scm.support.controller;
+
+import javax.servlet.RequestDispatcher;
+import javax.servlet.http.HttpServletRequest;
+
+import org.springframework.stereotype.Controller;
+import org.springframework.web.HttpRequestMethodNotSupportedException;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.servlet.ModelAndView;
+
+import lombok.extern.slf4j.Slf4j;
+
+import com.gagaframework.web.rest.server.GagaResponseStatus;
+
+/**
+ * Error Controller
+ * 
+ * @author gagamel
+ * @since 2020. 10. 5
+ */
+@Controller
+@Slf4j
+@RequestMapping(value = "/error")
+public class TssErrorController extends TssBaseController {
+
+	/**
+	 * Error
+	 */
+	@GetMapping("/500")
+	public ModelAndView error(HttpServletRequest request) throws HttpRequestMethodNotSupportedException {
+		ModelAndView mav = new ModelAndView("error/500");
+
+		Object status = request.getAttribute(RequestDispatcher.ERROR_STATUS_CODE);
+
+		if (status != null) {
+			Integer statusCode = Integer.valueOf(status.toString());
+			log.debug("statusCode: {}", statusCode);
+
+			if (statusCode == GagaResponseStatus.NOT_FOUND.getCode()) {
+				mav.addObject("status", GagaResponseStatus.NOT_FOUND.getCode());
+				mav.addObject("message", "No mapping found for HTTP request with URI ["
+					+ String.valueOf(request.getAttribute(RequestDispatcher.FORWARD_REQUEST_URI)) + "]");
+
+				return mav;
+			}
+		}
+
+		mav.addObject("status", GagaResponseStatus.INTERNAL_SERVER_ERROR.getCode());
+		mav.addObject("message", String.valueOf(request.getAttribute(RequestDispatcher.ERROR_MESSAGE)));
+
+		return mav;
+	}
+
+	@GetMapping("/noSession")
+	public ModelAndView noSession(HttpServletRequest request) throws HttpRequestMethodNotSupportedException {
+		ModelAndView mav = new ModelAndView("error/500");
+
+		mav.addObject("status", GagaResponseStatus.UNAUTHORIZED.getCode());
+		mav.addObject("message", String.valueOf(request.getAttribute(RequestDispatcher.ERROR_MESSAGE)));
+
+		return mav;
+	}
+
+}

+ 14 - 0
style24.scm/src/main/java/com/style24/scm/support/env/TssConstants.java

@@ -0,0 +1,14 @@
+package com.style24.scm.support.env;
+
+/**
+ * 변경될 소지가 있는 변수 값을 정의
+ * 
+ * @author gagamel
+ * @since 2020. 10. 19
+ */
+public class TssConstants {
+
+	// 사이트코드
+	public static final String SITE_CD = "10";
+
+}

+ 64 - 0
style24.scm/src/main/java/com/style24/scm/support/interceptor/TssDefaultInterceptor.java

@@ -0,0 +1,64 @@
+package com.style24.scm.support.interceptor;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Component;
+import org.springframework.web.servlet.ModelAndView;
+import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;
+
+import com.style24.core.support.exception.TscNoSessionException;
+import com.style24.core.support.message.TscMessageByLocale;
+import com.style24.scm.support.security.session.TssSession;
+
+import lombok.extern.slf4j.Slf4j;
+
+/**
+ * 모든 Request에 대해 세션 확인
+ * 
+ * @author gagamel
+ * @since 2020. 10. 19
+ */
+@Component
+@Slf4j
+public class TssDefaultInterceptor extends HandlerInterceptorAdapter {
+
+	@Autowired
+	private TscMessageByLocale message;
+
+	@Override
+	public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
+		log.info("request.isSecure(): [{}]", request.isSecure());
+		log.info("request.getServerName(): [{}]", request.getServerName());
+		log.info("request.getRequestURI(): [{}]", request.getRequestURI());
+		log.info("request.getRequestURL(): [{}]", request.getRequestURL());
+		log.info("request.getQueryString(): [{}]", request.getQueryString());
+
+		boolean isLogin = TssSession.isLogin();
+		log.info("isLogin: [{}]", isLogin);
+
+		if (!isLogin) {
+			boolean isAjaxCall = Boolean.parseBoolean(request.getHeader("AJAX"));
+			log.info("isAjaxCall: {}", isAjaxCall);
+
+			if (isAjaxCall) { // ajax call
+				// Ajax call은 status 세팅 후 ajax.status == 901일 경우 로그인 페이지로 이동 처리
+				response.setStatus(901); // No Session
+			} else { // Submit
+				throw new TscNoSessionException(message.getMessage("LOGN_0003"));
+			}
+
+			return false;
+		}
+
+		return super.preHandle(request, response, handler);
+	}
+
+	@Override
+	public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,
+		ModelAndView modelAndView) throws Exception {
+		// Do nothing
+	}
+
+}

+ 90 - 0
style24.scm/src/main/java/com/style24/scm/support/security/TssAuthenticationProvider.java

@@ -0,0 +1,90 @@
+package com.style24.scm.support.security;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.security.authentication.AuthenticationProvider;
+import org.springframework.security.authentication.BadCredentialsException;
+import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
+import org.springframework.security.core.Authentication;
+import org.springframework.security.core.AuthenticationException;
+import org.springframework.security.core.authority.SimpleGrantedAuthority;
+import org.springframework.stereotype.Component;
+
+import com.style24.core.support.message.TscMessageByLocale;
+import com.style24.persistence.domain.User;
+import com.style24.scm.biz.service.TssLoginService;
+
+import lombok.extern.slf4j.Slf4j;
+
+import com.gagaframework.web.core.security.GagaPasswordEncoder;
+import com.gagaframework.web.util.GagaCryptoUtil;
+
+/**
+ * 로그인 인증 처리
+ * 
+ * @author gagamel
+ * @since 2020. 10. 19
+ */
+@Component
+@Slf4j
+public class TssAuthenticationProvider implements AuthenticationProvider {
+
+	@Autowired
+	private TssLoginService loginService;
+
+	@Autowired
+	private TscMessageByLocale message;
+
+	@Autowired
+	private GagaPasswordEncoder passwordEncoder;
+
+	@Override
+	public Authentication authenticate(Authentication authentication) throws AuthenticationException {
+		String userId = authentication.getName();
+		String passwd = authentication.getCredentials().toString();
+		log.info("userId: {}, passwd: {}", userId, passwd);
+
+		// 로그인 정보
+		User loginInfo = loginService.getUserById(authentication.getName());
+		log.info("loginInfo: {}", loginInfo);
+
+		if (loginInfo == null) {
+			log.error(String.format("User with ID=%s was not found!", userId));
+			throw new BadCredentialsException(message.getMessage("LOGN_0001"));
+		}
+
+		// 로그인 실패누적건수가 5이면
+		if (loginInfo.getLoginFailCnt() == 5) {
+			throw new BadCredentialsException(message.getMessage("LOGN_0005"));
+		}
+
+		log.info("encoded password: {}", GagaCryptoUtil.encryptSha512(passwd));
+		boolean isMatch = passwordEncoder.matches(passwd, loginInfo.getPasswd());
+		log.info("isMatch: {}", isMatch);
+
+		if (!isMatch) {
+			// 로그인 실패 남기기
+			loginService.createLoginFail(loginInfo.getUserNo(), "Y");
+			throw new BadCredentialsException(message.getMessage("LOGN_0002"));
+		}
+
+		// 권한 설정
+		List<SimpleGrantedAuthority> authorities = new ArrayList<>();
+		authorities.add(new SimpleGrantedAuthority(loginInfo.getRoleCd()));
+
+		// 인증 토큰 생성
+		UsernamePasswordAuthenticationToken authToken = new UsernamePasswordAuthenticationToken(
+			loginInfo.getUserId(), loginInfo.getPasswd(), authorities);
+		authToken.setDetails(new TssLoginDetails(loginInfo, authorities));
+
+		return authToken;
+	}
+
+	@Override
+	public boolean supports(Class<?> authentication) {
+		return (UsernamePasswordAuthenticationToken.class.isAssignableFrom(authentication));
+	}
+
+}

+ 97 - 0
style24.scm/src/main/java/com/style24/scm/support/security/TssLoginDetails.java

@@ -0,0 +1,97 @@
+package com.style24.scm.support.security;
+
+import java.util.Collection;
+
+import org.apache.commons.lang3.StringUtils;
+import org.springframework.security.core.GrantedAuthority;
+import org.springframework.security.core.authority.SimpleGrantedAuthority;
+import org.springframework.security.core.userdetails.UserDetails;
+
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.style24.persistence.domain.Menu;
+import com.style24.persistence.domain.User;
+
+/**
+ * 로그인 상세 정보
+ * 
+ * @author gagamel
+ * @since 2020. 10. 19
+ */
+@SuppressWarnings("serial")
+@JsonSerialize
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class TssLoginDetails implements UserDetails {
+
+	private User loginInfo = null;
+
+	private Collection<SimpleGrantedAuthority> authorities = null;
+
+	// 메뉴 목록 (로그인 시 설정)
+	private Collection<Menu> menuList;
+
+	public TssLoginDetails() {
+
+	}
+
+	public TssLoginDetails(User loginInfo, Collection<SimpleGrantedAuthority> authorities) {
+		this.loginInfo = loginInfo;
+		this.authorities = authorities;
+
+//		if (authorities != null && !authorities.isEmpty()) {
+//			isLogin = true;
+//		}
+	}
+
+	@Override
+	public Collection<? extends GrantedAuthority> getAuthorities() {
+		return authorities;
+	}
+
+	@Override
+	public String getPassword() {
+		return loginInfo.getPasswd();
+	}
+
+	@Override
+	public String getUsername() {
+		return loginInfo.getUserId();
+	}
+
+	@Override
+	public boolean isAccountNonExpired() {
+		return true;
+	}
+
+	@Override
+	public boolean isAccountNonLocked() {
+		return true;
+	}
+
+	@Override
+	public boolean isCredentialsNonExpired() {
+		return true;
+	}
+
+	@Override
+	public boolean isEnabled() {
+		return true;
+	}
+
+	public boolean isLogin() {
+		return (StringUtils.isNotBlank(loginInfo.getUserId())) ? true : false;
+	}
+
+	public User getLoginInfo() {
+		return loginInfo;
+	}
+
+	public void setLoginMenuList(Collection<Menu> menuList) {
+		this.menuList = menuList;
+	}
+
+	public Collection<Menu> getLoginMenuList() {
+		return menuList;
+	}
+
+}

+ 117 - 0
style24.scm/src/main/java/com/style24/scm/support/security/config/TssSecurityConfig.java

@@ -0,0 +1,117 @@
+package com.style24.scm.support.security.config;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
+import org.springframework.security.config.annotation.web.builders.HttpSecurity;
+import org.springframework.security.config.annotation.web.builders.WebSecurity;
+import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
+import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
+import org.springframework.security.web.util.matcher.AntPathRequestMatcher;
+
+import com.style24.scm.support.security.TssAuthenticationProvider;
+import com.style24.scm.support.security.handler.TssLoginSuccessHandler;
+import com.style24.scm.support.security.handler.TssLogoutSuccessHandler;
+
+/**
+ * Java Security를 이용한 Login 처리
+ * 
+ * @author gagamel
+ * @since 2020. 10. 19
+ */
+@Configuration
+@EnableWebSecurity
+//@EnableGlobalMethodSecurity(prePostEnabled = true, securedEnabled = true)
+//@Order(SecurityProperties.ACCESS_OVERRIDE_ORDER)
+public class TssSecurityConfig extends WebSecurityConfigurerAdapter {
+
+	private static final String[] UNAUTHORIZED_RESOURCE_LIST = new String[] {"/*", "/index"};
+
+	private static final String[] UNSECURED_RESOURCE_LIST = new String[] {"/image/**", "/ux/**", "/data/**", "/smartEditor/**"};
+
+	@Autowired
+	private TssAuthenticationProvider authenticationProvider;
+
+	/**
+	 * Register the Authentication Provider
+	 */
+	@Override
+	public void configure(AuthenticationManagerBuilder auth) throws Exception {
+		auth.authenticationProvider(authenticationProvider);
+	}
+
+	@Override
+	protected void configure(HttpSecurity httpSecurity) throws Exception {
+		// static resources
+		httpSecurity.authorizeRequests()
+			.antMatchers(UNAUTHORIZED_RESOURCE_LIST).permitAll()
+//			.anyRequest().authenticated()
+//				.antMatchers("/backoffice/**").hasAnyAuthority(FccConstants.ROLE.ADMIN.value())
+//				.antMatchers(new String[] { "/backoffice/*", "/backoffice/chairman/**" }).hasAnyAuthority(FccConstants.ROLE.CC_CHIEF.value())
+//				.antMatchers(new String[] { "/backoffice/*", "/backoffice/evaluator/**" }).hasAnyAuthority(FccConstants.ROLE.COUNSELOR.value())
+			.and()
+			.formLogin()
+			.usernameParameter("userId")
+			.passwordParameter("passwd")
+			.loginPage("/signin")
+			.loginProcessingUrl("/login")
+			.successHandler(loginSuccessHandler())
+			.failureUrl("/?error=true")
+			.and()
+			.logout()
+			.logoutRequestMatcher(new AntPathRequestMatcher("/logout"))
+			.logoutSuccessHandler(logoutSuccessHandler())
+			.and()
+			.csrf().disable() // CSRF(Cross Site Request Forgery) 해제
+//			.csrf().requireCsrfProtectionMatcher(requireCsrfProtectionMatcher())
+			.exceptionHandling()
+			.accessDeniedPage("/403")
+			.and()
+			.headers().frameOptions().disable() // iframe deny 설정 제거(네이버스마트에디터 사용 때문에 추가)
+//			.and()
+//			.rememberMe().tokenRepository(persistentTokenRepository())
+//				.tokenValiditySeconds(60 * 60 * 24 * 10) // 10 days
+//				.useSecureCookie(true)
+//				.key("sisunTsa")
+//			.and()
+//			.sessionManagement()
+//				.maximumSessions(1)
+//				.maxSessionsPreventsLogin(false)
+//				.maxSessionsPreventsLogin(true)
+//				.sessionRegistry(sessionRegistry())
+//				.expiredUrl("/index")
+		;
+	}
+
+	@Override
+	public void configure(WebSecurity webSecurity) throws Exception {
+		webSecurity
+			.ignoring()
+			.antMatchers(UNSECURED_RESOURCE_LIST);
+	}
+
+	@Bean
+	public TssLoginSuccessHandler loginSuccessHandler() {
+		return new TssLoginSuccessHandler();
+	}
+
+	@Bean
+	public TssLogoutSuccessHandler logoutSuccessHandler() {
+		return new TssLogoutSuccessHandler();
+	}
+
+//	@Bean
+//	public RequestMatcher requireCsrfProtectionMatcher() {
+//		GagaCsrfSecurityRequestMatcher bean = new GagaCsrfSecurityRequestMatcher();
+//
+//		bean.setDisableUrls(new String[] {
+//				"/",
+//				"/index",
+//				"/customer/post/find/form"
+//		});
+//
+//		return bean;
+//	}
+
+}

+ 73 - 0
style24.scm/src/main/java/com/style24/scm/support/security/handler/TssLoginSuccessHandler.java

@@ -0,0 +1,73 @@
+package com.style24.scm.support.security.handler;
+
+import java.io.IOException;
+
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.security.core.Authentication;
+import org.springframework.security.web.authentication.AuthenticationSuccessHandler;
+import org.springframework.stereotype.Component;
+
+import com.style24.scm.biz.service.TssLoginService;
+import com.style24.scm.support.security.TssLoginDetails;
+import com.style24.scm.support.security.session.TssSession;
+
+import lombok.extern.slf4j.Slf4j;
+
+/**
+ * 로그인 성공 시 호출되는 Handler
+ * 
+ * @author gagamel
+ * @since 2020. 10. 19
+ */
+@Component
+@Slf4j
+public class TssLoginSuccessHandler implements AuthenticationSuccessHandler {
+
+	@Autowired
+	private TssLoginService loginService;
+
+	@Override
+	public void onAuthenticationSuccess(HttpServletRequest request, HttpServletResponse response, Authentication authentication) throws IOException, ServletException {
+		// 로그인 상세 정보
+		TssLoginDetails loginDetails = (TssLoginDetails)authentication.getDetails();
+
+		Integer userNo = loginDetails.getLoginInfo().getUserNo();
+		log.info("userNo: {}", userNo);
+
+		// 로그인 성공 시 로그인실패수가 0보다 크면 로그인실패수 reset
+		int failCnt = loginService.getLoginFailCount(userNo);
+		if (failCnt > 0) {
+			loginService.createLoginFail(userNo, "N");
+		}
+
+		// 로그인 메뉴 목록
+		loginDetails.setLoginMenuList(loginService.getLoginMenuList(userNo));
+
+		// 최종로그인일시 Update
+		loginService.updateLastLoginDate(userNo);
+
+		// 로그인이력 남기기
+		loginService.createLoginHistory(userNo);
+
+		// 세션 생성
+		this.createSession(request, loginDetails);
+
+		response.sendRedirect("/");
+	}
+
+	/**
+	 * Session 생성
+	 * 
+	 * @param request - HttpServletRequest
+	 * @param loginDetails - 로그인 상세 정보
+	 */
+	private void createSession(HttpServletRequest request, TssLoginDetails loginDetails) {
+		TssSession.getNewSess(request, -1);
+		TssSession.setAttribute(request, loginDetails);
+	}
+
+}

+ 33 - 0
style24.scm/src/main/java/com/style24/scm/support/security/handler/TssLogoutSuccessHandler.java

@@ -0,0 +1,33 @@
+package com.style24.scm.support.security.handler;
+
+import java.io.IOException;
+
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.springframework.security.core.Authentication;
+import org.springframework.security.web.authentication.logout.SimpleUrlLogoutSuccessHandler;
+import org.springframework.stereotype.Component;
+
+import com.style24.scm.support.security.session.TssSession;
+
+import lombok.extern.slf4j.Slf4j;
+
+/**
+ * 로그아웃 성공 시 호출되는 Handler
+ * 
+ * @author gagamel
+ * @since 2020. 10. 19
+ */
+@Component
+@Slf4j
+public class TssLogoutSuccessHandler extends SimpleUrlLogoutSuccessHandler {
+
+	@Override
+	public void onLogoutSuccess(HttpServletRequest request, HttpServletResponse response, Authentication authentication) throws IOException, ServletException {
+		TssSession.invalidate(request);
+		response.sendRedirect("/");
+	}
+
+}

+ 63 - 0
style24.scm/src/main/java/com/style24/scm/support/security/session/TssSession.java

@@ -0,0 +1,63 @@
+package com.style24.scm.support.security.session;
+
+import java.util.Collection;
+
+import org.springframework.web.context.request.RequestAttributes;
+import org.springframework.web.context.request.RequestContextHolder;
+
+import com.style24.core.support.session.TscSession;
+import com.style24.persistence.domain.Menu;
+import com.style24.persistence.domain.User;
+import com.style24.scm.support.security.TssLoginDetails;
+
+import lombok.extern.slf4j.Slf4j;
+
+/**
+ * Session
+ * 
+ * @author gagamel
+ * @since 2020. 10. 19
+ */
+@Slf4j
+public class TssSession extends TscSession {
+
+	/**
+	 * Get Session Info.
+	 * @return 세션 정보
+	 */
+	public static User getInfo() {
+		TssLoginDetails loginDetails = (TssLoginDetails)RequestContextHolder.currentRequestAttributes().getAttribute("session", RequestAttributes.SCOPE_SESSION);
+
+		if (loginDetails == null)
+			return null;
+
+		return loginDetails.getLoginInfo();
+	}
+
+	/**
+	 * 로그인 여부
+	 * @return true/false
+	 */
+	public static boolean isLogin() {
+		TssLoginDetails loginDetails = (TssLoginDetails)RequestContextHolder.currentRequestAttributes().getAttribute("session", RequestAttributes.SCOPE_SESSION);
+
+		if (loginDetails == null)
+			return false;
+
+		return loginDetails.isLogin();
+	}
+
+	/**
+	 * Get the login menu list.
+	 * @return 로그인 메뉴 목록
+	 */
+	public static Collection<Menu> getLoginMenuList() {
+		TssLoginDetails loginDetails = (TssLoginDetails)RequestContextHolder.currentRequestAttributes().getAttribute("session", RequestAttributes.SCOPE_SESSION);
+
+		if (loginDetails == null)
+			return null;
+
+		return loginDetails.getLoginMenuList();
+	}
+
+}

+ 54 - 0
style24.scm/src/main/java/com/style24/scm/support/startup/TssApplication.java

@@ -0,0 +1,54 @@
+package com.style24.scm.support.startup;
+
+import java.io.IOException;
+import java.util.Arrays;
+
+import javax.annotation.PostConstruct;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
+import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
+import org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration;
+import org.springframework.cache.annotation.EnableCaching;
+import org.springframework.context.annotation.ComponentScan;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.core.env.Environment;
+
+import com.style24.core.support.env.TscConstants;
+
+import lombok.extern.slf4j.Slf4j;
+
+import com.gagaframework.web.core.GagaConstants;
+
+/**
+ * Application
+ * 
+ * @author gagamel
+ * @since 2020. 10. 19
+ */
+@EnableCaching
+@Configuration
+@EnableAutoConfiguration(exclude = {DataSourceTransactionManagerAutoConfiguration.class, DataSourceAutoConfiguration.class})
+@ComponentScan(basePackages = {GagaConstants.GAGA_PACKAGE, TscConstants.BASE_PACKAGE})
+@Slf4j
+public class TssApplication {
+
+	@Autowired
+	private Environment env;
+
+	@PostConstruct
+	public void initApplication() throws IOException {
+		log.info("Running with Spring Profiles: {}", Arrays.toString(env.getActiveProfiles()));
+		if (env.getActiveProfiles().length == 0) {
+			log.warn("No spring profile configured, running with default configuration.");
+		} else if (env.getActiveProfiles().length > 1) {
+			log.error("You have misconfigured your application! It should not run with both Spring Profiles at the same time.");
+		}
+	}
+
+	public static void main(String[] args) {
+		SpringApplication.run(TssApplication.class, args);
+	}
+
+}

+ 19 - 0
style24.scm/src/main/java/com/style24/scm/support/startup/TssServletInitializer.java

@@ -0,0 +1,19 @@
+package com.style24.scm.support.startup;
+
+import org.springframework.boot.builder.SpringApplicationBuilder;
+import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
+
+/**
+ * ServletInitializer
+ * 
+ * @author gagamel
+ * @since 2020. 10. 19
+ */
+public class TssServletInitializer extends SpringBootServletInitializer {
+
+	@Override
+	protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
+		return application.sources(TssApplication.class);
+	}
+
+}

+ 8 - 0
style24.scm/src/main/resources/banner.txt

@@ -0,0 +1,8 @@
+ _______  _______  __   __  ___      _______  _______  _   ___    _______  _______  __   __ 
+|       ||       ||  | |  ||   |    |       ||       || | |   |  |       ||       ||  |_|  |
+|  _____||_     _||  |_|  ||   |    |    ___||____   || |_|   |  |  _____||       ||       |
+| |_____   |   |  |       ||   |    |   |___  ____|  ||       |  | |_____ |       ||       |
+|_____  |  |   |  |_     _||   |___ |    ___|| ______||___    |  |_____  ||      _||       |
+ _____| |  |   |    |   |  |       ||   |___ | |_____     |   |   _____| ||     |_ | ||_|| |
+|_______|  |___|    |___|  |_______||_______||_______|    |___|  |_______||_______||_|   |_|
+:: (v1.0.0.RELEASE by tsinfotech.co.kr 2020) ::

+ 82 - 0
style24.scm/src/main/resources/config/application-dev.yml

@@ -0,0 +1,82 @@
+spring:
+    profiles:
+        active: dev
+    cache:
+        type: redis
+    redis:
+        lettuce:
+            pool:
+                max-active: 10
+                max-idle: 10
+                min-idle: 2
+        host: 116.121.60.104
+        port: 6379
+        password: 
+
+logging.config: classpath:log/logback-dev.xml
+
+domain:
+    admin: //dev.admin.wivismall.com
+    wivis: //dev.wivismall.com
+    #image: //dev.image.wivismall.com
+    image: //116.121.60.104:90
+    uximage: //dev.wivismall.com
+
+upload:
+    default:
+        target.path: /home/app/www/data
+        max.size: 10
+        allow.extension: jpg|gif|jpeg|png|bmp|txt|doc|docx|ppt|pptx|xls|xlsx|hwp|pdf
+        view: //116.121.60.104:90
+    goods:
+        target.path: /home/app/www/data
+        max.size: 10
+        allow.extension: jpg|gif|jpeg|png
+        view: //image.wivismall.com/speedy_image-wivismall/goods
+    image:
+        target.path: /home/app/www/data
+        max.size: 10
+        allow.extension: jpg|gif|jpeg|png
+        view: //116.121.60.104:90
+    excel:
+        target.path: /home/app/www/data
+        max.size: 10
+        allow.extension: xls|xlsx
+        view: //116.121.60.104:90/excel
+    sample:
+        target.path: /home/app/www/data
+        max.size: 10
+        allow.extension: txt|doc|docx|ppt|pptx|xls|xlsx|hwp|pdf
+        view: //116.121.60.104:90/sample
+        
+download.path: /home/app/www/data
+
+# SMTP(운영서버만 설정되어 있어 작동안함)
+mail:
+    host: mail.wivis.com
+    #    port: 465
+    username: admin@wivis.com
+    password: dnlqltm1!
+    protocol: smtp
+    #    tls: true
+    auth: true
+    from: admin@wivis.com
+    wivis.url: http://dev.wivismall.com
+    image.url: http://dev.wivismall.com/image/mailing
+    template.path: /home/app/www/admin/WEB-INF/mail
+
+# 사방넷 API
+sabangnet:
+    xml:
+        path: /home/app/www/data/sabangnet
+        url: http://dev.image.wivismall.com
+
+# PG
+pg:
+    nicepay:
+        merchantId: nictest00m
+        merchantKey: 33F49GnCMS1mFYlGXisbUDzVf2ATWCl9k3R++d5hDd3Frmuos/XLx8XhXpe+LDYAbpGKZYSwtlyyLOtS/8aD7A==
+        log.path: /home/app/logs/nicepay
+        account.cert.url: https://webapi.nicepay.co.kr/api/checkBankAccountAPI.jsp
+        vbank.refund.url: https://webapi.nicepay.co.kr/v2/api/merchant/vbank_refund.jsp
+

+ 66 - 0
style24.scm/src/main/resources/config/application-locd.yml

@@ -0,0 +1,66 @@
+spring:
+    profiles:
+        active: locd
+    cache:
+        type: redis
+    redis:
+        lettuce:
+            pool:
+                max-active: 10
+                max-idle: 10
+                min-idle: 2
+        host: localhost
+        port: 6379
+        password: 
+
+logging:
+    config: classpath:log/logback-locd.xml
+    
+domain:
+    scm: //ldscm.style24.com
+    front: //ldfront.style24.com
+    image: //ldimage.style24.com
+    uximage: //ldscm.style24.com
+
+upload:
+    default:
+        target.path: /WIDE/workspace/files/data
+        max.size: 10
+        allow.extension: jpg|gif|jpeg|png|bmp|txt|doc|docx|ppt|pptx|xls|xlsx|hwp|pdf
+        view: //ldimage.style24.com
+    goods:
+        target.path: /WIDE/workspace/files/data
+        max.size: 10
+        allow.extension: jpg|gif|jpeg|png
+        view: //image.style24.com/goods
+    image:
+        target.path: /WIDE/workspace/files/data
+        max.size: 10
+        allow.extension: jpg|gif|jpeg|png
+        view: //ldimage.style24.com
+    excel:
+        target.path: /WIDE/workspace/files/data
+        max.size: 10
+        allow.extension: xls|xlsx
+        view: //ldimage.style24.com/data/excel
+    sample:
+        target.path: /WIDE/workspace/files/data
+        max.size: 10
+        allow.extension: txt|doc|docx|ppt|pptx|xls|xlsx|hwp|pdf
+        view: //ldimage.style24.com/data/sample
+
+download.path: /WIDE/workspace/files/data
+
+# SMTP(naver의 본인 username과 password, from(메일주소) 입려 후 테스트 하면 됨)
+mail:
+    host: mail.wivis.com
+    #    port: 465
+    username: admin@wivis.com
+    password: dnlqltm1!
+    protocol: smtp
+    #    tls: true
+    auth: true
+    from: admin@wivis.com
+    front.url: https://ldfront.style24.com
+    image.url: http://ldfront.style24.com/image/mailing
+    template.path: /WIDE/workspace/webapps/style24/STYLE24/style24.scm/src/main/webapp/WEB-INF/mail

+ 82 - 0
style24.scm/src/main/resources/config/application-locp.yml

@@ -0,0 +1,82 @@
+spring:
+    profiles:
+        active: locp
+    cache:
+        type: redis
+    redis:
+        lettuce:
+            pool:
+                max-active: 10
+                max-idle: 10
+                min-idle: 2
+        host: localhost
+        port: 6379
+        password: 
+
+logging:
+    config: classpath:log/logback-locp.xml
+    
+domain:
+    scm: //lpscm.wivismall.com
+    front: //lpfront.wivismall.com
+    image: //image.wivismall.com/speedy_image-wivismall
+    uximage: //lpscm.wivismall.com
+
+upload:
+    default:
+        target.path: /WIDE/workspace/files/data
+        max.size: 10
+        allow.extension: jpg|gif|jpeg|png|bmp|txt|doc|docx|ppt|pptx|xls|xlsx|hwp|pdf
+        view: //image.wivismall.com/speedy_image-wivismall
+    goods:
+        target.path: /WIDE/workspace/files/data
+        max.size: 10
+        allow.extension: jpg|gif|jpeg|png
+        view: //image.wivismall.com/speedy_image-wivismall/goods
+    image:
+        target.path: /WIDE/workspace/files/data
+        max.size: 10
+        allow.extension: jpg|gif|jpeg|png
+        view: //image.wivismall.com/speedy_image-wivismall
+    excel:
+        target.path: /WIDE/workspace/files/data
+        max.size: 10
+        allow.extension: xls|xlsx
+        view: //locp.image.wivismall.com/data/excel
+    sample:
+        target.path: /WIDE/workspace/files/data
+        max.size: 10
+        allow.extension: txt|doc|docx|ppt|pptx|xls|xlsx|hwp|pdf
+        view: //locp.image.wivismall.com/data/sample
+
+download.path: /WIDE/workspace/files/data
+
+# SMTP(naver의 본인 username과 password, from(메일주소) 입려 후 테스트 하면 됨)
+mail:
+    host: mail.wivis.com
+#    port: 465
+    username: admin@wivis.com
+    password: dnlqltm1!
+    protocol: smtp
+#    tls: true
+    auth: true
+    from: admin@wivis.com
+    wivis.url: //lpfront.wivismall.com
+    image.url: //lpfront.wivismall.com/image/mailing
+    template.path: /WIDE/workspace/webapps/wivis/wivismall.admin/src/main/webapp/WEB-INF/mail
+# 사방넷 API
+sabangnet:
+    xml:
+        path: /WIDE/workspace/webapps/wivis/wivismall.admin/src/main/webapp/sabangnet
+        url: http://112.172.147.34:88
+
+# PG
+pg:
+    nicepay:
+        merchantId: wivismallm
+        merchantKey: pXTdML8rIaOVCeXQQsyRp1uCfTSTT/n80BV4LCqa+/yJM64MYIqeBCIQdH1rKhJRwSOsdCxVPa1V6hRxkkdJxg==
+        cancelPwd: wivis@2020
+        log.path: /WIDE/workspace/logs/wivis
+        account.cert.url: https://webapi.nicepay.co.kr/api/checkBankAccountAPI.jsp
+        vbank.refund.url: https://webapi.nicepay.co.kr/v2/api/merchant/vbank_refund.jsp
+

+ 82 - 0
style24.scm/src/main/resources/config/application-run.yml

@@ -0,0 +1,82 @@
+spring:
+    profiles:
+        active: run
+    cache:
+        type: redis
+    redis:
+        lettuce:
+            pool:
+                max-active: 10
+                max-idle: 10
+                min-idle: 2
+        host: 192.186.1.30
+        port: 6379
+        password: wivismall
+
+logging.config: classpath:log/logback-run.xml
+
+domain:
+    admin: //admin.wivismall.com
+    wivis: //www.wivismall.com
+    image: //image.wivismall.com/speedy_image-wivismall
+    uximage: //www.wivismall.com
+
+upload:
+    default:
+        target.path: /app/was/deploy/admin/data
+        max.size: 10
+        allow.extension: jpg|gif|jpeg|png|bmp|txt|doc|docx|ppt|pptx|xls|xlsx|hwp|pdf
+        view: //image.wivismall.com/speedy_image-wivismall
+    goods:
+        target.path: /app/was/deploy/admin/data
+        max.size: 10
+        allow.extension: jpg|gif|jpeg|png
+        view: //image.wivismall.com/speedy_image-wivismall/goods
+    image:
+        target.path: /app/was/deploy/admin/data
+        max.size: 10
+        allow.extension: jpg|gif|jpeg|png
+        view: //image.wivismall.com/speedy_image-wivismall
+    excel:
+        target.path: /app/was/deploy/admin/data
+        max.size: 10
+        allow.extension: xls|xlsx
+        view: //admin.wivismall.com/data/excel
+    sample:
+        target.path: /app/was/deploy/admin/data
+        max.size: 10
+        allow.extension: txt|doc|docx|ppt|pptx|xls|xlsx|hwp|pdf
+        view: //admin.wivismall.com/data/sample
+
+download.path: /app/was/deploy/admin/data
+
+# 사방넷 API
+sabangnet:
+    xml:
+        path: /app/was/deploy/api/data/sabangnet
+        url: http://api.wivismall.com/data/sabangnet
+
+# SMTP
+mail:
+    host: mail.wivis.com
+    #    port: 465
+    username: admin@wivis.com
+    password: dnlqltm1!
+    protocol: smtp
+#    tls: true
+    auth: true
+    from: admin@wivis.com
+    wivis.url: https://www.wivismall.com
+    image.url: http://www.wivismall.com/image/mailing
+    template.path: /app/was/deploy/admin/WEB-INF/mail
+
+# PG
+pg:
+    nicepay:
+        merchantId: wivismallm
+        merchantKey: pXTdML8rIaOVCeXQQsyRp1uCfTSTT/n80BV4LCqa+/yJM64MYIqeBCIQdH1rKhJRwSOsdCxVPa1V6hRxkkdJxg==
+        cancelPwd: wivis@2020
+        log.path: /app/was/applogs/nicepay
+        account.cert.url: https://webapi.nicepay.co.kr/api/checkBankAccountAPI.jsp
+        vbank.refund.url: https://webapi.nicepay.co.kr/v2/api/merchant/vbank_refund.jsp
+

+ 64 - 0
style24.scm/src/main/resources/config/application.yml

@@ -0,0 +1,64 @@
+spring:
+    messages:
+        cache-duration: -1
+        basename: classpath:i18n/messages/message
+        encoding: UTF-8
+    thymeleaf:
+        check-template-location: true
+        prefix: /WEB-INF/views/
+        suffix: .html
+    servlet:
+        multipart:
+            max-file-size: 30MB
+            max-request-size: 30MB
+
+server.error.whitelabel.enabled: false
+
+# 사방넷 API
+sabangnet:
+    wivis:
+        admin.id: hohomomo00
+        auth.key: TMYP5CEPHyuEx7K4xFPTAXPZd65NT88MyV
+    flyingtiger:
+        admin.id: js5353
+        auth.key: 36XBSHE2KW4MPBr3ZuT5FRF34MK9NK4uP
+
+# Instagram
+instagram:
+    api.url: https://api.instagram.com/v1
+    api.method: https://graph.instagram.com/[userId]/media?fields=id,media_type,media_url,permalink,thumbnail_url,username,caption,timestamp
+    token.url: https://graph.instagram.com/refresh_access_token?grant_type=ig_refresh_token
+
+# 네이버 API
+naver:
+    clientId: OMmbCMu7ac7GgYWgjlhv
+    clientSecret: jwRNdDbEBG
+    shortUrl: https://openapi.naver.com/v1/util/shorturl
+
+# SPEEDY Image Upload
+speedy:
+    ftp:
+        host: fileupload.cdn.cloudn.co.kr
+        port: 21
+        username: speedy_image-wivismall
+        pwd: wZ31jS_!@
+        
+#카카오 API        
+kakao:
+  appId : 399207
+  appName : WIVISMALL
+  companyName : 위비스
+  restApiKey: 8f8db3657b60b2c83df79a37d38becd4           
+  nativeAppKey : a4790e2102950309d87ad81a39c0597d
+  javascriptKey : f435c12d89ddb9cc6337f4cf0a05fd30
+  adminKey : 567e9476b15d2149c714aaecd0fee740
+  addressApiRequestUrl : https://dapi.kakao.com/v2/local/search/address.json?page=1&query=
+  
+# CJ대한통운
+cj:
+    logistic:
+        custid: 30321070
+    call:
+        tel1: 02
+        tel2: 1544
+        tel3: 4097

+ 78 - 0
style24.scm/src/main/resources/i18n/messages/message_ko_KR.properties

@@ -0,0 +1,78 @@
+## -----------------------------------------------------------------------------
+## Message properties
+## -----------------------------------------------------------------------------
+SUCC_0001=\uC131\uACF5\uC801\uC73C\uB85C \uC800\uC7A5\uB418\uC5C8\uC2B5\uB2C8\uB2E4.
+SUCC_0002=\uC131\uACF5\uC801\uC73C\uB85C \uC218\uC815\uB418\uC5C8\uC2B5\uB2C8\uB2E4.
+SUCC_0003=\uC131\uACF5\uC801\uC73C\uB85C \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4.
+SUCC_0004=\uC131\uACF5\uC801\uC73C\uB85C \uCC98\uB9AC\uB418\uC5C8\uC2B5\uB2C8\uB2E4.
+SUCC_0005=\uC131\uACF5\uC801\uC73C\uB85C \uBC1C\uC1A1\uB418\uC5C8\uC2B5\uB2C8\uB2E4.
+SUCC_0006=\uC131\uACF5\uC801\uC73C\uB85C \uBC1C\uD589\uB418\uC5C8\uC2B5\uB2C8\uB2E4.
+SUCC_0007=\uC131\uACF5\uC801\uC73C\uB85C \uC5C5\uB85C\uB4DC \uB418\uC5C8\uC2B5\uB2C8\uB2E4.
+#SUCC_0008=\uC131\uACF5\uC801\uC73C\uB85C \uB4F1\uB85D\uB418\uC5C8\uC2B5\uB2C8\uB2E4.
+SUCC_0009=\uC131\uACF5\uC801\uC73C\uB85C \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4.
+
+FAIL_0001=\uC624\uB958\uB85C \uC778\uD574 \uC800\uC7A5\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4.
+FAIL_0002=\uC624\uB958\uB85C \uC778\uD574 \uC218\uC815\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4.
+FAIL_0003=\uC624\uB958\uB85C \uC778\uD574 \uC0AD\uC81C\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4.
+FAIL_0004=\uC624\uB958\uB85C \uC778\uD574 \uCC98\uB9AC\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4.
+FAIL_0005=\uC624\uB958\uB85C \uC778\uD574 \uBC1C\uC1A1\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4.
+FAIL_0006=\uC624\uB958\uB85C \uC778\uD574 \uBC1C\uD589\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4.
+FAIL_0007=\uC624\uB958\uB85C \uC778\uD574 \uC5C5\uB85C\uB4DC \uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4.
+#FAIL_0008=\uC624\uB958\uB85C \uC778\uD574 \uB4F1\uB85D\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4.
+FAIL_0009=\uC624\uB958\uB85C \uC778\uD574 \uBCC0\uACBD\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4.
+FAIL_1001=\uC800\uC7A5\uD560 \uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.
+FAIL_1002=\uC804\uC1A1\uD560 \uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.
+FAIL_1003=\uC5D1\uC140\uB2E4\uC6B4\uB85C\uB4DC\uD560 \uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.
+
+LOGN_0001=\uC785\uB825\uD558\uC2E0 \uC815\uBCF4\uB85C \uAC00\uC785\uB41C \uB0B4\uC5ED\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.
+LOGN_0002=\uBE44\uBC00\uBC88\uD638\uAC00 \uC77C\uCE58\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.
+LOGN_0003=\uB85C\uADF8\uC778 \uC0C1\uD0DC\uAC00 \uC544\uB2D9\uB2C8\uB2E4. \uB2E4\uC2DC \uB85C\uADF8\uC778 \uD574\uC8FC\uC138\uC694.
+LOGN_0004=\uBE44\uBC00\uBC88\uD638\uB97C \uBCC0\uACBD\uD55C \uB0A0\uB85C\uBD80\uD130 3\uAC1C\uC6D4\uC774 \uACBD\uACFC\uB418\uC5C8\uC2B5\uB2C8\uB2E4.
+
+##\uC8FC\uBB38
+ORDER_0001=\uC8FC\uBB38\uC815\uBCF4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.
+ORDER_0002=\uC8FC\uBB38\uC0C1\uD0DC\uB97C \uD655\uC778\uD574\uC8FC\uC138\uC694.\n[\uACB0\uC81C\uC644\uB8CC][\uCD9C\uACE0\uC644\uB8CC] \uC0C1\uD0DC\uC5D0\uC11C\uB9CC \uC0C1\uD488\uC900\uBE44\uC911\uC73C\uB85C \uBCC0\uACBD\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.
+ORDER_0003=\uD574\uB2F9 \uC0C1\uD488 \uBE0C\uB79C\uB4DC \uC218\uC815 \uAD8C\uD55C\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.
+ORDER_0004=\uC8FC\uBB38\uC0C1\uD0DC\uB97C \uD655\uC778\uD574\uC8FC\uC138\uC694.\n[\uC0C1\uD488\uC900\uBE44\uC911][\uAD6C\uB9E4\uD655\uC815] \uC0C1\uD0DC\uC5D0\uB9CC \uC1A1\uC7A5\uBC88\uD638\uB97C \uC785\uB825\uD558\uC2E4\uC218 \uC788\uC2B5\uB2C8\uB2E4.
+ORDER_0005=\uC8FC\uBB38\uC0C1\uD0DC\uB97C \uD655\uC778\uD574\uC8FC\uC138\uC694.\n[\uCD9C\uACE0\uC644\uB8CC]\uC0C1\uD0DC\uC5D0\uC11C\uB9CC \uAD6C\uB9E4\uD655\uC815 \uC0C1\uD0DC\uB85C \uBCC0\uACBD\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.
+ORDER_0006=\uAD6C\uB9E4\uD655\uC815\uC744 \uD558\uC2E4\uC218 \uC788\uB294 \uC0C1\uD488\uC774 \uC5C6\uC2B5\uB2C8\uB2E4. \n\uBC18\uD488\uC774\uB098 \uAD50\uD658\uC0C1\uD0DC\uB97C \uD655\uC778\uD574\uC8FC\uC2DC\uAE30 \uBC14\uB78D\uB2C8\uB2E4.
+ORDER_0007=\uC8FC\uBB38 \uC804\uCCB4\uCDE8\uC18C\uB97C \uD558\uC2E4\uC218 \uC5C6\uC2B5\uB2C8\uB2E4.\n\uAD50\uD658,\uBC18\uD488,\uCDE8\uC18C\uC911\uC778 \uC0C1\uD488\uC774 \uC788\uB294\uC9C0 \uD655\uC778 \uBC14\uB78D\uB2C8\uB2E4.
+ORDER_0008=\uD0C0 \uC5C5\uCCB4\uC758 \uC0C1\uD488\uC774 \uC788\uC2B5\uB2C8\uB2E4. \uC804\uCCB4 \uBC18\uD488\uC744 \uC9C4\uD589\uD558\uC2E4\uC218 \uC5C6\uC2B5\uB2C8\uB2E4.
+ORDER_0009=\uD3EC\uC778\uD2B8 \uC6D0\uBCF5 \uCC98\uB9AC\uB97C \uC2E4\uD328\uD558\uC600\uC2B5\uB2C8\uB2E4.
+ORDER_0010=\uACB0\uC81C \uCDE8\uC18C\uB97C \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4.
+ORDER_0011=\uCE74\uB4DC \uACB0\uC81C\uC778 \uACBD\uC6B0\uC5D0\uB9CC \uBD80\uBD84\uCDE8\uC18C\uAC00 \uAC00\uB2A5\uD569\uB2C8\uB2E4.
+ORDER_0012=\uCDE8\uC18C\uC218\uB7C9\uC744 \uD655\uC778\uD574\uC8FC\uC138\uC694. \uCDE8\uC18C\uAC00\uB2A5 \uC218\uB7C9\uBCF4\uB2E4 \uB9CE\uC2B5\uB2C8\uB2E4.
+ORDER_0013=\uC8FC\uBB38\uC0C1\uD0DC\uB97C \uD655\uC778\uD574\uC8FC\uC138\uC694.\n[\uACB0\uC81C\uC644\uB8CC][\uC0C1\uD488\uC900\uBE44\uC911]\uC0C1\uD0DC\uC5D0\uC11C\uB9CC \uBD80\uBD84\uCDE8\uC18C\uAC00 \uAC00\uB2A5\uD569\uB2C8\uB2E4.
+ORDER_0014=\uCD9C\uACE0\uC644\uB8CC\uB97C \uD558\uC2E4\uC218 \uC5C6\uC2B5\uB2C8\uB2E4.\n\uC8FC\uBB38 \uCDE8\uC18C\uC2E0\uCCAD\uB41C \uC8FC\uBB38\uC744 \uBA3C\uC800 \uCC98\uB9AC\uD574\uC8FC\uC2DC\uAE30\uBC14\uB78D\uB2C8\uB2E4.
+ORDER_0015=\uC8FC\uBB38\uC0C1\uD0DC\uB97C \uD655\uC778\uD574\uC8FC\uC138\uC694.\n[\uCD9C\uACE0\uC644\uB8CC]\uC0C1\uD0DC\uC5D0\uC11C\uB9CC \uC8FC\uBB38\uAD50\uD658\uC774 \uAC00\uB2A5\uD569\uB2C8\uB2E4.
+ORDER_0016=\uAD50\uD658\uC218\uB7C9\uC744 \uD655\uC778\uD574\uC8FC\uC138\uC694.\uAD50\uD658\uAC00\uB2A5 \uC218\uB7C9\uBCF4\uB2E4 \uB9CE\uC2B5\uB2C8\uB2E4.
+ORDER_0017=\uC8FC\uBB38\uC0C1\uD0DC\uB97C \uD655\uC778\uD574\uC8FC\uC138\uC694.\n[\uAD50\uD658\uC2E0\uCCAD]\uC0C1\uD0DC\uC5D0\uC11C\uB9CC \uAD50\uD658\uC9C4\uD589\uC774 \uAC00\uB2A5\uD569\uB2C8\uB2E4.
+ORDER_0018=\uC8FC\uBB38\uC0C1\uD0DC\uB97C \uD655\uC778\uD574\uC8FC\uC138\uC694.\n[\uAD50\uD658\uC9C4\uD589]\uC0C1\uD0DC\uC5D0\uC11C\uB9CC \uAD50\uD658\uC644\uB8CC\uAC00 \uAC00\uB2A5\uD569\uB2C8\uB2E4.
+ORDER_0019=\uC8FC\uBB38\uC0C1\uD0DC\uB97C \uD655\uC778\uD574\uC8FC\uC138\uC694.\n[\uAD50\uD658\uC2E0\uCCAD]\uC0C1\uD0DC\uC5D0\uC11C\uB9CC \uAD50\uD658\uBC18\uB824\uAC00 \uAC00\uB2A5\uD569\uB2C8\uB2E4.
+ORDER_0020=\uC8FC\uBB38\uC0C1\uD0DC\uB97C \uD655\uC778\uD574\uC8FC\uC138\uC694.\n[\uBC18\uD488\uC2E0\uCCAD]\uC0C1\uD0DC\uC5D0\uC11C\uB9CC \uBC18\uD488\uC9C4\uD589\uC774 \uAC00\uB2A5\uD569\uB2C8\uB2E4.
+ORDER_0021=\uC8FC\uBB38\uC0C1\uD0DC\uB97C \uD655\uC778\uD574\uC8FC\uC138\uC694.\n[\uBC18\uD488\uC9C4\uD589]\uC0C1\uD0DC\uC5D0\uC11C\uB9CC \uBC18\uD488\uC644\uB8CC\uAC00 \uAC00\uB2A5\uD569\uB2C8\uB2E4.
+ORDER_0022=\uC8FC\uBB38\uC0C1\uD0DC\uB97C \uD655\uC778\uD574\uC8FC\uC138\uC694.\n[\uBC18\uD488\uC2E0\uCCAD]\uC0C1\uD0DC\uC5D0\uC11C\uB9CC \uBC18\uD488\uBC18\uB824\uAC00 \uAC00\uB2A5\uD569\uB2C8\uB2E4.
+ORDER_0023=\uC8FC\uBB38\uC0C1\uD0DC\uB97C \uD655\uC778\uD574\uC8FC\uC138\uC694.\n[\uCDE8\uC18C\uC2E0\uCCAD]\uC0C1\uD0DC\uC5D0\uC11C\uB9CC \uCDE8\uC18C\uBC18\uB824\uAC00 \uAC00\uB2A5\uD569\uB2C8\uB2E4.
+ORDER_0024=\uC8FC\uBB38\uC0C1\uD0DC\uB97C \uD655\uC778\uD574\uC8FC\uC138\uC694.\n[\uCDE8\uC18C\uC2E0\uCCAD]\uC0C1\uD0DC\uC5D0\uC11C\uB9CC \uCDE8\uC18C\uC644\uB8CC\uAC00 \uAC00\uB2A5\uD569\uB2C8\uB2E4.
+ORDER_0025=\uBC18\uD488\uC218\uB7C9\uC744 \uD655\uC778\uD574\uC8FC\uC138\uC694. \uBC18\uD488\uAC00\uB2A5 \uC218\uB7C9\uBCF4\uB2E4 \uB9CE\uC2B5\uB2C8\uB2E4.
+ORDER_0026=\uC8FC\uBB38 \uC804\uCCB4\uBC18\uD488\uC744 \uD558\uC2E4\uC218 \uC5C6\uC2B5\uB2C8\uB2E4.\n\uAD50\uD658,\uBC18\uD488,\uCDE8\uC18C\uC911\uC778 \uC0C1\uD488\uC774 \uC788\uB294\uC9C0 \uD655\uC778 \uBC14\uB78D\uB2C8\uB2E4.
+ORDER_0027=\uC8FC\uBB38\uC0C1\uD0DC\uB97C \uD655\uC778\uD574\uC8FC\uC138\uC694.\n[\uC0C1\uD488\uC900\uBE44\uC911] \uC0C1\uD0DC\uC5D0\uC11C\uB9CC \uACB0\uC81C\uC644\uB8CC \uBCC0\uACBD\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.
+ORDER_0028=\uACB0\uC81C \uC644\uB8CC \uC0C1\uD0DC\uB85C \uBCC0\uACBD\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.\n\uCDE8\uC18C,\uBC18\uD488\uC774 \uC644\uB8CC\uB41C \uC8FC\uBB38\uC785\uB2C8\uB2E4.
+ORDER_0029=\uC8FC\uBB38 \uC0C1\uD0DC\uB97C \uD655\uC778\uD574 \uC8FC\uC138\uC694. [\uCD9C\uACE0\uC911][\uAD6C\uB9E4\uD655\uC815]\uC0C1\uD0DC\uC778 \uC8FC\uBB38\uAC74\uC774 \uC788\uC2B5\uB2C8\uB2E4.
+ORDER_0030=\uD544\uC218\uAC12\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.
+ORDER_0031=\uC8FC\uBB38\uC804\uCCB4\uCDE8\uC18C \uCC98\uB9AC\uAC00 \uC644\uB8CC\uB418\uC5C8\uC2B5\uB2C8\uB2E4.
+
+#\uC0AC\uBC29\uB137
+SABANGNET_0001=\uC131\uACF5\uC801\uC73C\uB85C \uC0C1\uD488 \uC815\uBCF4\uAC00 \uC804\uC1A1\uB418\uC5C8\uC2B5\uB2C8\uB2E4.(\uCD1D {0}\uAC74 \uC911 {1}\uAC74 \uC131\uACF5)
+SABANGNET_0002=\uC131\uACF5\uC801\uC73C\uB85C \uC1FC\uD551\uBAB0\uBCC4 DATA \uAC00 \uC804\uC1A1\uB418\uC5C8\uC2B5\uB2C8\uB2E4.(\uCD1D {0}\uAC74 \uC911 {1}\uAC74 \uC131\uACF5)
+SABANGNET_0003=\uC131\uACF5\uC801\uC73C\uB85C \uC0C1\uD488 \uC694\uC57D \uC815\uBCF4\uAC00 \uC804\uC1A1\uB418\uC5C8\uC2B5\uB2C8\uB2E4.(\uCD1D {0}\uAC74 \uC911 {1}\uAC74 \uC131\uACF5)
+SABANGNET_0004=\uC8FC\uBB38\uC774 \uC218\uC9D1\uB418\uC5C8\uC2B5\uB2C8\uB2E4.(\uCD1D {0}\uAC74 \uC911 {1}\uAC74 \uC131\uACF5, \uC2E4\uD328: {2}\uAC74)
+SABANGNET_0005=\uC131\uACF5\uC801\uC73C\uB85C \uC1A1\uC7A5\uBC88\uD638\uAC00 \uB4F1\uB85D\uB418\uC5C8\uC2B5\uB2C8\uB2E4.
+SABANGNET_0006=\uCDE8\uC18C\uC8FC\uBB38\uC774 \uC218\uC9D1\uB418\uC5C8\uC2B5\uB2C8\uB2E4.(\uCD1D {0}\uAC74 \uC911 {1}\uAC74 \uC2E4\uD328 {2}\uAC74 \uC131\uACF5)
+SABANGNET_0007=\uAD50\uD658\uC8FC\uBB38\uC774 \uC218\uC9D1\uB418\uC5C8\uC2B5\uB2C8\uB2E4.(\uCD1D {0}\uAC74 \uC911 {1}\uAC74 \uC2E4\uD328 {2}\uAC74 \uC131\uACF5)
+SABANGNET_0008=\uBC18\uD488\uC8FC\uBB38\uC774 \uC218\uC9D1\uB418\uC5C8\uC2B5\uB2C8\uB2E4.(\uCD1D {0}\uAC74 \uC911 {1}\uAC74 \uC2E4\uD328 {2}\uAC74 \uC131\uACF5)
+SABANGNET_0009=\uC720\uD6A8\uC131 \uAC80\uC99D \uC2E4\uD328\uB85C \uCC98\uB9AC\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.
+SABANGNET_0010=\uCD9C\uACE0\uB97C \uC704\uD574 ERP\uB85C \uC804\uC1A1\uD558\uC600\uC2B5\uB2C8\uB2E4.(\uC131\uACF5: {0}\uAC74, \uC2E4\uD328: {1}\uAC74)
+
+#\uBC30\uC1A1
+DELIVERY_0001=\uB4F1\uB85D \uC2E4\uD328\uD558\uC600\uC2B5\uB2C8\uB2E4. \uC774\uBBF8 \uB4F1\uB85D\uB41C \uCD9C\uACE0\uAE08\uC9C0 \uC0C1\uD488\uC774 \uC788\uC2B5\uB2C8\uB2E4.

+ 25 - 0
style24.scm/src/main/resources/log/logback-dev.xml

@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<configuration scan="true">
+	<property name="LOG_HOME" value="/home/app/logs/scm"/>
+	<property name="LOG_LEVEL" value="DEBUG"/>
+	
+	<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
+		<encoder>
+			<charset>utf-8</charset>
+			<pattern>[%d] [%thread] %-5level %logger{32} : %msg%n</pattern>
+		</encoder>
+	</appender>
+
+	<logger name="org.springframework" level="ERROR"/>
+	
+	<!-- SQL문과 해당 SQL을 실행시키는데 수행된 시간 정보(milliseconds)를 포함한다. -->
+	<logger name="jdbc.sqltiming" level="INFO" additivity="false">
+		<appender-ref ref="CONSOLE"/>
+	</logger>
+	
+	<root level="${LOG_LEVEL}">
+		<appender-ref ref="CONSOLE"/>
+	</root>
+
+</configuration>

+ 41 - 0
style24.scm/src/main/resources/log/logback-locd.xml

@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<configuration scan="true">
+	<property name="LOG_HOME" value="/WIDE/workspace/logs/style24/scm"/>
+	<property name="LOG_LEVEL" value="INFO"/>
+	
+	<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
+		<encoder>
+			<charset>utf-8</charset>
+			<pattern>[%d] [%thread] %-5level %logger{32} : %msg%n</pattern>
+		</encoder>
+	</appender>
+	
+	<logger name="org.springframework" level="ERROR"/>
+	
+	<!-- SQL문만을 로그로 남기며, PreparedStatement일 경우 관련된 argument 값으로 대체된 SQL문이 보여진다. -->
+	<!-- <logger name="jdbc.sqlonly" level="${LOG_LEVEL}">
+		<appender-ref ref="CONSOLE"/>
+	</logger> -->
+	
+	<!-- SQL문과 해당 SQL을 실행시키는데 수행된 시간 정보(milliseconds)를 포함한다. -->
+	<!-- <logger name="jdbc.sqltiming" level="${LOG_LEVEL}">
+		<appender-ref ref="CONSOLE"/>
+	</logger> -->
+	
+	<!-- ResultSet을 제외한 모든 JDBC 호출 정보를 로그로 남긴다. -->
+	<!-- 많은 양의 로그가 생성되므로 특별히 JDBC 문제를 추적해야 할 필요가 있는 경우를 제외하고는 사용을 권장하지 않는다. -->
+	<!-- <logger name="jdbc.audit" level="ERROR">
+		<appender-ref ref="CONSOLE"/>
+	</logger> -->
+	
+	<!-- ResultSet을 포함한 모든 JDBC 호출 정보를 로그로 남기므로 매우 방대한 양의 로그가 생성된다. -->
+	<!-- <logger name="jdbc.resultset" level="ERROR">
+		<appender-ref ref="CONSOLE"/>
+	</logger> -->
+
+	<root level="${LOG_LEVEL}">
+		<appender-ref ref="CONSOLE"/>
+	</root>
+
+</configuration>

+ 55 - 0
style24.scm/src/main/resources/log/logback-locp.xml

@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<configuration scan="true">
+	<property name="LOG_HOME" value="/WIDE/workspace/logs/wivismall/scm"/>
+	<property name="LOG_LEVEL" value="DEBUG"/>
+	
+	<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
+		<encoder>
+			<charset>utf-8</charset>
+			<pattern>[%d] [%thread] %-5level %logger{32} : %msg%n</pattern>
+		</encoder>
+	</appender>
+
+	<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
+		<file>${LOG_HOME}/style24_scm.log</file>
+		<encoder>
+			<charset>utf-8</charset>
+			<pattern>[%d] [%thread] %-5level %logger{32} : %msg%n</pattern>
+		</encoder>
+		<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
+			<fileNamePattern>${LOG_HOME}/style24_scm.%d{yyyy-MM-dd}.log.zip</fileNamePattern>
+			<!-- keep 60 days' worth of history -->
+			<maxHistory>60</maxHistory>
+		</rollingPolicy>
+	</appender>
+
+	<logger name="org.springframework" level="ERROR"/>
+
+	<!-- SQL문만을 로그로 남기며, PreparedStatement일 경우 관련된 argument 값으로 대체된 SQL문이 보여진다. -->
+	<!-- <logger name="jdbc.sqlonly" level="${LOG_LEVEL}">
+		<appender-ref ref="CONSOLE"/>
+	</logger> -->
+	
+	<!-- SQL문과 해당 SQL을 실행시키는데 수행된 시간 정보(milliseconds)를 포함한다. -->
+	<!-- <logger name="jdbc.sqltiming" level="${LOG_LEVEL}">
+		<appender-ref ref="CONSOLE"/>
+	</logger> -->
+	
+	<!-- ResultSet을 제외한 모든 JDBC 호출 정보를 로그로 남긴다. -->
+	<!-- 많은 양의 로그가 생성되므로 특별히 JDBC 문제를 추적해야 할 필요가 있는 경우를 제외하고는 사용을 권장하지 않는다. -->
+	<!-- <logger name="jdbc.audit" level="ERROR">
+		<appender-ref ref="CONSOLE"/>
+	</logger> -->
+	
+	<!-- ResultSet을 포함한 모든 JDBC 호출 정보를 로그로 남기므로 매우 방대한 양의 로그가 생성된다. -->
+	<!-- <logger name="jdbc.resultset" level="ERROR">
+		<appender-ref ref="CONSOLE"/>
+	</logger> -->
+
+	<root level="${LOG_LEVEL}">
+		<appender-ref ref="CONSOLE"/>
+		<appender-ref ref="FILE"/>
+	</root>
+
+</configuration>

+ 39 - 0
style24.scm/src/main/resources/log/logback-run.xml

@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<configuration scan="true">
+	<property name="LOG_HOME" value="./logs/applog/scm"/>
+	<property name="LOG_LEVEL" value="INFO"/>
+	
+	<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
+		<encoder>
+			<charset>utf-8</charset>
+			<pattern>[%d] [%thread] %-5level %logger{32} : %msg%n</pattern>
+		</encoder>
+	</appender>
+
+	<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
+		<file>${LOG_HOME}/style24_scm.log</file>
+		<encoder>
+			<charset>utf-8</charset>
+			<pattern>[%d] [%thread] %-5level %logger{32} : %msg%n</pattern>
+		</encoder>
+		<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
+			<fileNamePattern>${LOG_HOME}/style24_scm.%d{yyyy-MM-dd}.log.zip</fileNamePattern>
+			<!-- keep 30 days' worth of history -->
+			<maxHistory>30</maxHistory>
+		</rollingPolicy>
+	</appender>
+
+	<logger name="org.springframework" level="ERROR"/>
+	
+	<!-- SQL문과 해당 SQL을 실행시키는데 수행된 시간 정보(milliseconds)를 포함한다. -->
+	<logger name="jdbc.sqltiming" level="INFO" additivity="false">
+		<appender-ref ref="CONSOLE"/>
+	</logger>
+
+	<root level="${LOG_LEVEL}">
+		<appender-ref ref="CONSOLE"/>
+		<appender-ref ref="FILE" />
+	</root>
+
+</configuration>

+ 23 - 0
style24.scm/src/main/resources/persistence/mybatis-shop-config.xml

@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "HTTP://mybatis.org/dtd/mybatis-3-config.dtd">
+
+<configuration>
+
+	<settings>
+		<setting name="cacheEnabled" value="false" /> <!-- 설정에서 각 매퍼에 설정된 캐시를 전역적으로 사용할지 말지에 대한 여부 (default true)-->
+		<!-- <setting name="lazyLoadingEnabled" value="true" /> --> <!-- 지연로딩을 사용할지에 대한 여부. 사용하지 않는다면 모두 즉시 로딩 (default true) -->
+		<!-- <setting name="multipleResultSetsEnabled" value="true" /> --> <!-- 한개의 구문에서 여러개의 ResultSet을 허용할지의 여부 (default true) -->
+		<setting name="useGeneratedKeys" value="true" /> <!-- 생성키를 강제로 생성 (default false) -->
+		<setting name="defaultExecutorType" value="REUSE" /> <!-- 디폴트 실행자(executor) 설정. PreparedStatement를 재사용 (default SIMPLE)-->
+		<setting name="defaultStatementTimeout" value="25" /> <!-- 데이터베이스로의 응답을 얼마나 오래 기다릴지를 판단하는 타임아웃(초)를 설정 -->
+		<setting name="mapUnderscoreToCamelCase" value="true"/> <!-- 데이터베이스 칼럼명 형태인 A_COLUMN을 CamelCase 형태의 자바 프로퍼티명 형태인 aColumn으로 자동으로 매핑하도록 함 (default false) -->
+		<setting name="logImpl" value="NO_LOGGING" /> <!-- 마이바티스가 사용할 로깅 구현체를 명시. 이 설정을 사용하지 않으면 마이바티스가 사용할 로깅 구현체를 자동으로 찾는다. -->
+		<setting name="jdbcTypeForNull" value="NULL"/> <!-- JDBC 타입을 파라미터에 제공하지 않을 때 null 값을 처리한 JDBC 타입을 명시 -->
+		<setting name="callSettersOnNulls" value="true"/> <!-- 가져온 값이 null일때 setter나 맵의 put 메소드를 호출할지를 명시 (default false) -->
+	</settings>
+	
+	<typeAliases>
+		<typeAlias alias="paramMap" type="com.gagaframework.web.parameter.GagaMap" />
+	</typeAliases>
+
+</configuration>

BIN
style24.scm/src/main/webapp/WEB-INF/lib/gagaframework-web-core-1.7-RELEASE.jar


BIN
style24.scm/src/main/webapp/WEB-INF/lib/gagaframework-web-parameter-1.7-RELEASE.jar


BIN
style24.scm/src/main/webapp/WEB-INF/lib/gagaframework-web-rest-1.7-RELEASE.jar


BIN
style24.scm/src/main/webapp/WEB-INF/lib/gagaframework-web-util-1.7-RELEASE.jar


+ 2 - 0
style24.scm/src/main/webapp/WEB-INF/robots.txt

@@ -0,0 +1,2 @@
+User-agent: *
+Disallow: /

+ 377 - 0
style24.scm/src/main/webapp/WEB-INF/views/business/DeliveryLocForm.html

@@ -0,0 +1,377 @@
+<!DOCTYPE html>
+<html lang="ko"
+	xmlns:th="http://www.thymeleaf.org">
+<!--
+ *******************************************************************************
+ * @source  : DeliveryLocForm.html
+ * @desc    : 출고처관리 Page
+ *============================================================================
+ * STYLE24
+ * Copyright(C) 2020 TSIT, All rights reserved.
+ *============================================================================
+ * VER  DATE         AUTHOR      DESCRIPTION
+ * ===  ===========  ==========  =============================================
+ * 1.0  2020.10.14   gagamel     최초 작성
+ *******************************************************************************
+ -->
+	<div id="main">
+		<!-- 메인타이틀 영역 -->
+		<div class="main-title">
+		</div>
+		<!-- //메인타이틀 영역 -->
+		
+		<!-- 메뉴 설명 -->
+		<div class="infoBox menu-desc">
+		</div>
+		<!-- //메뉴 설명 -->
+		
+		<!-- 검색조건 영역 -->
+		<div class="panelStyle">
+			<form id="searchForm" name="searchForm" action="#" th:action="@{'/business/supply/company/delvloc/list'}" onsubmit="$('#btnSearch').trigger('click'); return false;">
+				<table class="frmStyle" aria-describedby="검색조건">
+					<colgroup>
+						<col style="width:10%;"/>
+						<col style="width:15%;"/>
+						<col style="width:10%;"/>
+						<col style="width:15%;"/>
+						<col style="width:10%;"/>
+						<col style="width:15%;"/>
+						<col style="width:10%;"/>
+						<col/>
+					</colgroup>
+					<tr>
+						<th>공급업체</th>
+						<td>
+							<select name="supplyCompCd">
+								<option value="">[전체]</option>
+								<option th:if="${supplyCompList}" th:each="oneData, status : ${supplyCompList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
+							</select>
+						</td>
+						<th>출고처유형</th>
+						<td>
+							<select name="delvLocClsf">
+								<option value="">[전체]</option>
+								<option th:if="${delvLocClsfList}" th:each="oneData, status : ${delvLocClsfList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
+							</select>
+						</td>
+						<th>출고처명</th>
+						<td>
+							<input type="text" name="delvLocNm" maxlength="50"/>
+						</td>
+						<th>사용여부</th>
+						<td>
+							<select name="useYn">
+								<option value="Y">Yes</option>
+								<option value="N">No</option>
+							</select>
+						</td>
+					</tr>
+				</table>
+				
+				<ul class="panelBar">
+					<li class="center">
+						<button type="button" class="btn btn-base btn-lg" id="btnSearch">조회</button>
+						<button type="button" class="btn btn-gray btn-lg" onclick="$('#searchForm')[0].reset();">초기화</button>
+					</li>
+				</ul>
+			</form>
+		</div>
+		<!-- 검색조건 영역 -->
+
+		<!-- 리스트 영역 -->
+		<div class="panelStyle">
+			<!-- 버튼 배치 영역 -->
+			<ul class="panelBar">
+				<li class="right">
+					<button type="button" class="btn btn-default btn-lg" id="btnExcel">엑셀다운로드</button>
+				</li>
+			</ul>
+			<!-- //버튼 배치 영역 -->
+			
+			<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="@{'/business/supply/company/delvloc/save'}">
+				<table class="frmStyle" aria-describedby="등록/수정 폼">
+					<colgroup>
+						<col style="width:10%;"/>
+						<col style="width:15%;"/>
+						<col style="width:10%;"/>
+						<col style="width:15%;"/>
+						<col style="width:10%;"/>
+						<col style="width:15%;"/>
+						<col style="width:10%;"/>
+						<col style="width:15%;"/>
+					</colgroup>
+					<tr>
+						<th>출고처코드<i class="required" title="필수"></i></th>
+						<td>
+							<input type="text" class="w100" name="delvLocCd" maxlength="20" placeholder="출고처코드" required="required" data-valid-type="alphaNumeric" data-valid-name="출고처코드"/>
+						</td>
+						<th>출고처명<i class="required" title="필수"></i></th>
+						<td>
+							<input type="text" class="w200" name="delvLocNm" maxlength="100" placeholder="출고처명" required="required" data-valid-name="출고처명"/>
+						</td>
+						<th>출고처유형<i class="required" title="필수"></i></th>
+						<td>
+							<select name="delvLocClsf" required="required" data-valid-name="출고처유형">
+								<option value="">[선택]</option>
+								<option th:if="${delvLocClsfList}" th:each="oneData, status : ${delvLocClsfList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
+							</select>
+						</td>
+						<th>공급업체<i class="required" title="필수"></i></th>
+						<td>
+							<select name="supplyCompCd" required="required" data-valid-name="공급업체">
+								<option value="">[선택]</option>
+								<option th:if="${supplyCompList}" th:each="oneData, status : ${supplyCompList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
+							</select>
+						</td>
+					</tr>
+					<tr>
+						<th>재고적용율</th>
+						<td colspan="3">
+							<input type="text" class="w100 aR" name="stockApplRate" maxlength="5" data-valid-type="real"/>%
+							<span class="cBlue">* WMS부터 수신된 재고의 판매가용재고 적용율(%). 물류창고와 직송매장에 한함</span>
+						</td>
+						<th>출고수수료율</th>
+						<td colspan="3">
+							<input type="text" class="w100 aR" name="delvFeeRate" maxlength="5" data-valid-type="real"/>%
+							<span class="cBlue">* 직송매장 출고 시 적용할 출고수수료율(%)</span>
+						</td>
+					</tr>
+					<tr>
+						<th>출고지정순서</th>
+						<td colspan="3">
+							<input type="text" class="w100 aR" name="delvAssignOrd" maxlength="3" data-valid-type="integer"/>
+							<span class="cBlue">* 물류창고와 직송매장에 대해 출고지정되는 순서</span>
+						</td>
+<!-- 						<th>출고지정등급</th> -->
+<!-- 						<td> -->
+<!-- 							<select name="delvAssignGrade"> -->
+<!-- 								<option value="">[선택]</option> -->
+<!-- 								<option value="A">[A] A등급</option> -->
+<!-- 								<option value="B">[B] B등급</option> -->
+<!-- 								<option value="C">[C] C등급</option> -->
+<!-- 								<option value="Z">[Z] 출고지정제외</option> -->
+<!-- 							</select> -->
+<!-- 						</td> -->
+						<th>사용여부<i class="required" title="필수"></i></th>
+						<td colspan="3">
+							<label class="rdoBtn"><input type="radio" name="useYn" id="useYn" value="Y" checked="checked">Yes<span></span></label>
+							<label class="rdoBtn"><input type="radio" name="useYn" id="useYn" value="N">No<span></span></label>
+						</td>
+					</tr>
+					<tr>
+						<th>출고처주소<i class="required" title="필수"></i></th>
+						<td colspan="7">
+							<input type="text" class="w100" name="delvLocZipcode" data-valid-name="출고처 우편번호" readonly="readonly"/>
+							<button type="button" class="btn btn-info btn-sm" onclick="fnOpenDaumAddr('delvLoc');">우편번호찾기</button>
+							<input type="text" class="w300" name="delvLocBaseAddr" required="required" data-valid-name="출고처 기본주소" readonly="readonly"/>
+							-
+							<input type="text" class="w300" name="delvLocDtlAddr" maxlength="100" data-valid-name="출고처 상세주소"/>
+						</td>
+					</tr>
+					<tr>
+						<th>반품처명</th>
+						<td>
+							<input type="text" class="w200" name="rtnLocNm" maxlength="100" placeholder="반품처명"/>
+						</td>
+						<th>반품처주소<i class="required" title="필수"></i></th>
+						<td colspan="5">
+							<input type="text" class="w100" name="rtnLocZipcode" data-valid-name="반품처 우편번호" readonly="readonly"/>
+							<button type="button" class="btn btn-info btn-sm" onclick="fnOpenDaumAddr('rtnLoc');">우편번호찾기</button>
+							<input type="text" class="w300" name="rtnLocBaseAddr" required="required" data-valid-name="반품처 기본주소" readonly="readonly"/>
+							-
+							<input type="text" class="w300" name="rtnLocDtlAddr" maxlength="100" data-valid-name="반품처 상세주소"/>
+						</td>
+					</tr>
+				</table>
+			</form>
+			
+			<!-- 버튼 배치 영역 -->
+			<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>
+			<!-- //버튼 배치 영역 -->
+		</div>
+		<!-- 등록/수정 -->
+	</div>
+
+<script th:inline="javascript">
+/*<![CDATA[*/
+	let supplyCompList = gagajf.convertToArray([[${supplyCompList}]]);
+	let delvLocClsfList = gagajf.convertToArray([[${delvLocClsfList}]]);
+	let delvGradeList = { "A":"A등급", "B":"B등급", "C":"C등급", "Z":"출고지정제외" };
+	let invoicePrintTypeList = gagajf.convertToArray([[${invoicePrintTypeList}]]);
+
+	let columnDefs = [
+		{ headerName: "출고처코드", field: "delvLocCd", width: 100, cellClass: 'text-center' },
+		{
+			headerName: "출고처명", field: "delvLocNm", width: 150, cellClass: 'text-center',
+			cellRenderer: function(params) {
+				return '<a href="javascript:void(0);">' + params.value + '</a>';
+			}
+		},
+		{
+			headerName: "출고처유형", field: "delvLocClsf", width: 150, cellClass: 'text-center',
+			valueGetter: function (params) {
+				return gagaAgGrid.lookupValue(delvLocClsfList, params.data.delvLocClsf);
+			}
+		},
+		{
+			headerName: "매장POS", field: "btnPos", width: 120, cellClass: 'text-center',
+			cellRenderer: function(params) {
+				var btn = '';
+				if (params.value === '21') {
+					btn ='<button type="button" class="btn btn-success btn-sm" onclick="cfnPopPos(\'' + params.data.delvLocCd + '\');\">매장[POS]</button>';
+				}
+				return btn;
+			}
+		},
+		{
+			headerName: "공급업체", field: "supplyCompCd", width: 150, cellClass: 'text-center',
+			valueGetter: function (params) {
+				return gagaAgGrid.lookupValue(supplyCompList, params.data.supplyCompCd);
+			}
+		},
+		{ headerName: "재고적용율(%)", field: "stockApplRate", width: 120, cellClass: 'text-center' },
+		{ headerName: "출고수수료율(%)", field: "delvFeeRate", width:120, cellClass: 'text-center' },
+		{ headerName: "출고지정순서", field: "delvAssignOrd", width: 120, cellClass: 'text-center' },
+// 		{
+// 			headerName: "출고지정등급", field: "delvAssignGrade", width: 150, cellClass: 'text-center',
+// 			cellRenderer: function (params) {
+// 				return gagaAgGrid.lookupValue(delvGradeList, params.value);
+// 			}
+// 		},
+		{
+			headerName: "송장출력형태", field: "invoicePrintType", width:150 , cellClass: 'text-center',
+			valueGetter: function (params) {
+				return gagaAgGrid.lookupValue(invoicePrintTypeList, params.data.invoicePrintType);
+			}
+		},
+		{ headerName: "출고처우편번호", field: "delvLocZipcode", width: 150, cellClass: 'text-center', hide: true },
+		{ headerName: "출고처기본주소", field: "delvLocBaseAddr", width: 300, hide: true },
+		{ headerName: "출고처상세주소", field: "delvLocDtlAddr", width: 300, hide: true },
+		{ headerName: "반품처명", field: "rtnLocNm", width: 100, cellClass: 'text-center', hide: true },
+		{ headerName: "반품처우편번호", field: "rtnLocZipcode", width: 150, cellClass: 'text-center', hide: true },
+		{ headerName: "반품처기본주소", field: "rtnLocBaseAddr", width: 300, hide: true },
+		{ headerName: "반품처상세주소", field: "rtnLocDtlAddr", width: 300, hide: true },
+		{
+			headerName: "사용여부", field: "useYn", width: 100, cellClass: 'text-center',
+			valueGetter: function (params) { return params.data.useYn == 'Y' ? 'Yes' : 'No'; }
+		}
+	];
+
+	let gridOptions = gagaAgGrid.getGridOptions(columnDefs);
+
+	// Cell click
+	gridOptions.onCellClicked = function(event) {
+		if (event.colDef.field != 'delvLocNm')
+			return;
+		
+		$('#detailForm input[name=delvLocCd]').attr('readonly', true);
+		$('#detailForm input[name=delvLocCd]').val(event.data.delvLocCd);
+		$('#detailForm input[name=delvLocNm]').val(event.data.delvLocNm);
+		$('#detailForm select[name=delvLocClsf]').val(event.data.delvLocClsf);
+		$('#detailForm select[name=supplyCompCd]').val(event.data.supplyCompCd);
+		$('#detailForm input[name=delvAssignOrd]').val(event.data.delvAssignOrd);
+		$('#detailForm select[name=delvAssignGrade]').val(event.data.delvAssignGrade);
+		$('#detailForm input[name=stockApplRate]').val(Number(event.data.stockApplRate).addComma());
+		$('#detailForm input[name=delvFeeRate]').val(Number(event.data.delvFeeRate).addComma());
+		$('#detailForm select[name=invoicePrintType]').val(event.data.invoicePrintType	);
+		$('#detailForm input[name=delvLocZipcode]').val(event.data.delvLocZipcode);
+		$('#detailForm input[name=delvLocBaseAddr]').val(event.data.delvLocBaseAddr);
+		$('#detailForm input[name=delvLocDtlAddr]').val(event.data.delvLocDtlAddr);
+		$('#detailForm input[name=rtnLocZipcode]').val(event.data.rtnLocZipcode);
+		$('#detailForm input[name=rtnLocBaseAddr]').val(event.data.rtnLocBaseAddr);
+		$('#detailForm input[name=rtnLocDtlAddr]').val(event.data.rtnLocDtlAddr);
+		$('#detailForm input[name=rtnLocNm]').val(event.data.rtnLocNm);
+		$('#detailForm input:radio[name=useYn]:input[value= ' + event.data.useYn + '] ').click();
+	}
+
+	// 출고처유형 셀렉트박스 변경 시 이벤트
+	$('#detailForm select[name=delvLocClsf]').on('change', function() {
+		let val = $(this).val();
+		
+		if (val == 'G024_10' || val == 'G024_21') { // 물류창고, 직송매장
+			$('#detailForm input[name=stockApplRate]').val(100);
+		} else {
+			$('#detailForm input[name=stockApplRate]').val('');
+		}
+	});
+	
+	// 검색
+	$('#btnSearch').on('click', function() {
+		gagaAgGrid.fetch($('#searchForm').prop('action'), gridOptions, '#searchForm');
+	});
+
+	// 신규버튼
+	$('#btnNew').on('click', function() {
+		$("#detailForm")[0].reset();
+		$('#detailForm input[name=delvLocCd]').attr('readonly', false);
+		$('#detailForm input[name=delvLocCd]').focus();
+	});
+	
+	// 저장
+	$("#btnSave").on("click", function() {
+		// 필수값 체크
+		if (!gagajf.validation('#detailForm'))
+			return false;
+
+		mcxDialog.confirm("저장하시겠습니까?", {
+			cancelBtnText: "취소",
+			sureBtnText: "확인",
+			sureBtnClick: function() {
+				gagajf.ajaxFormSubmit($('#detailForm').prop('action'), '#detailForm', function() {
+					$('#btnNew').trigger('click');
+					$('#btnSearch').trigger('click');
+				});
+			}
+		});
+	});
+	
+	// 엑셀다운로드
+	$('#btnExcel').on('click', function() {
+		gagaAgGrid.exportToExcel('출고처 목록', gridOptions);
+	});
+	
+	/**
+	 * DAUM을 이용한 우편번호 팝업 레이어
+	 * @param callbackPosition - 우편번호 정보를 설정할 위치
+	 */
+	var fnOpenDaumAddr = function(callbackPosition) {
+		let daumZip = new daum.Postcode({
+			oncomplete: function(data) {
+				// 우편번호와 주소 정보를 해당 필드에 넣는다.
+				if (callbackPosition == 'delvLoc') {
+					$('#detailForm input[name=delvLocZipcode]').val(data.zonecode);
+					$('#detailForm input[name=delvLocBaseAddr]').val(cfnGetDaumRoadAddr(data));
+					$('#detailForm input[name=delvLocDtlAddr]').focus();
+				} else if (callbackPosition == 'rtnLoc') {
+					$('#detailForm input[name=rtnLocZipcode]').val(data.zonecode);
+					$('#detailForm input[name=rtnLocBaseAddr]').val(cfnGetDaumRoadAddr(data));
+					$('#detailForm input[name=rtnLocDtlAddr]').focus();
+				}
+				
+				cfnCloseDaumAddr();
+			},
+			width: '100%'
+		});
+		
+		cfnOpenDaumAddr(daumZip);
+	}
+	
+	$(document).ready(function() {
+		// Create a agGrid
+		gagaAgGrid.createGrid('gridList', gridOptions);
+	});
+/*]]>*/
+</script>
+
+</html>

+ 442 - 0
style24.scm/src/main/webapp/WEB-INF/views/business/SupplyCompanyForm.html

@@ -0,0 +1,442 @@
+<!DOCTYPE html>
+<html lang="ko"
+	xmlns:th="http://www.thymeleaf.org">
+<!--
+ *******************************************************************************
+ * @source  : SupplyCompanyForm.html
+ * @desc    : 공급업체관리 Page
+ *============================================================================
+ * STYLE24
+ * Copyright(C) 2020 TSIT, All rights reserved.
+ *============================================================================
+ * VER  DATE         AUTHOR      DESCRIPTION
+ * ===  ===========  ==========  =============================================
+ * 1.0  2020.10.14   gagamel     최초 작성
+ *******************************************************************************
+ -->
+	<div id="main">
+		<!-- 메인타이틀 영역 -->
+		<div class="main-title">
+		</div>
+		<!-- //메인타이틀 영역 -->
+		
+		<!-- 메뉴 설명 -->
+		<div class="infoBox menu-desc">
+		</div>
+		<!-- //메뉴 설명 -->
+		
+		<!-- 검색조건 영역 -->
+		<div class="panelStyle">
+			<form id="searchForm" name="searchForm" action="#" th:action="@{'/business/supply/company/list'}" onsubmit="$('#btnSearch').trigger('click'); return false;">
+				<table class="frmStyle" aria-describedby="검색조건">
+					<colgroup>
+						<col style="width:10%;"/>
+						<col style="width:40%;"/>
+						<col style="width:10%;"/>
+						<col/>
+					</colgroup>
+					<tr>
+						<th>검색어</th>
+						<td>
+							<select name="searchGb">
+								<option value="NAME">업체명</option>
+								<option value="OWNER">대표자명</option>
+							</select>
+							<input type="text" name="searchTxt" class="w300" maxlength="20"/>
+						</td>
+						<th>입점상태</th>
+						<td>
+							<select name="supplyStat">
+								<option value="">[전체]</option>
+								<option th:if="${supplyStatList}" th:each="oneData, status : ${supplyStatList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
+							</select>
+						</td>
+					</tr>
+				</table>
+				
+				<ul class="panelBar">
+					<li class="center">
+						<button type="button" class="btn btn-base btn-lg" id="btnSearch">조회</button>
+						<button type="button" class="btn btn-gray btn-lg" onclick="$('#searchForm')[0].reset();">초기화</button>
+					</li>
+				</ul>
+			</form>
+		</div>
+		<!-- 검색조건 영역 -->
+
+		<!-- 리스트 영역 -->
+		<div class="panelStyle">
+			<!-- 버튼 배치 영역 -->
+			<ul class="panelBar">
+				<li class="right">
+					<button type="button" class="btn btn-default btn-lg" id="btnExcel">엑셀다운로드</button>
+				</li>
+			</ul>
+			<!-- //버튼 배치 영역 -->
+			
+			<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="@{'/business/supply/company/save'}">
+				<table class="frmStyle" aria-describedby="등록/수정 폼">
+					<colgroup>
+						<col style="width:10%;"/>
+						<col style="width:15%;"/>
+						<col style="width:10%;"/>
+						<col style="width:15%;"/>
+						<col style="width:10%;"/>
+						<col style="width:15%;"/>
+						<col style="width:10%;"/>
+						<col style="width:15%;"/>
+					</colgroup>
+					<tr>
+						<th>업체코드</th>
+						<td>
+							<input type="text" class="w150" name="supplyCompCd" placeholder="자동생성" maxlength="5" data-valid-name="업체코드" readonly="readonly"/>
+						</td>
+						<th>업체명<i class="required" title="필수"></i></th>
+						<td>
+							<input type="text" name="supplyCompNm" maxlength="100" required="required" data-valid-name="업체명"/>
+						</td>
+						<th>사업자구분<i class="required" title="필수"></i></th>
+						<td>
+							<label class="rdoBtn"><input type="radio" name="bizGb" id="bizGb" value="C" checked="checked"/>법인<span></span></label>
+							<label class="rdoBtn"><input type="radio" name="bizGb" id="bizGb" value="P"/>개인<span></span></label>
+						</td>
+						<th>사업자등록번호<i class="required" title="필수"></i></th>
+						<td>
+							<input type="text" name="bizNo" maxlength="20" required="required" data-valid-name="사업자등록번호"/>
+						</td>
+					</tr>
+					<tr>
+						<th>업종<i class="required" title="필수"></i></th>
+						<td>
+							<input type="text" name="bizKind" maxlength="100" required="required" data-valid-name="업종"/>
+						</td>
+						<th>업태<i class="required" title="필수"></i></th>
+						<td>
+							<input type="text" name="bizType" maxlength="100" required="required" data-valid-name="업태"/>
+						</td>
+						<th>입점상태<i class="required" title="필수"></i></th>
+						<td>
+							<select name="supplyStat" id="supplyStat">
+								<option value="">[선택]</option>
+								<option th:if="${supplyStatList}" th:each="oneData, status : ${supplyStatList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
+							</select>
+						</td>
+						<th>대표자명<i class="required" title="필수"></i></th>
+						<td>
+							<input type="text" name="ownerNm" maxlength="50" required="required" data-valid-name="대표자명"/>
+						</td>
+					</tr>
+					<tr>
+						<th rowspan="2">사업장주소<i class="required" title="필수"></i></th>
+						<td colspan="3" rowspan="2">
+							<input type="text" name="bizZipcode"  class="w100" data-valid-name="우편번호" readonly="readonly"/>
+							&nbsp;&nbsp;&nbsp;
+							<button type="button" class="btn btn-info btn-sm" onclick="fnOpenDaumAddr();">우편번호찾기</button>
+							<br>
+							<input type="text" name="bizBaseAddr" class="w300" maxlength="200" required="required" data-valid-name="사업장주소" readonly="readonly"/>
+							-
+							<input type="text" name="bizDtlAddr" class="w300" maxlength="200"/>
+						</td>
+						<th>홈페이지URL</th>
+						<td colspan="3">
+							<input type="text" name="homepageUrl" data-valid-name="홈페이지URL"/>
+						</td>
+					</tr>
+					<tr>
+						<th>대표전화<i class="required" title="필수"></i></th>
+						<td>
+							<input type="text" name="mainTelno" placeholder="02-0000-0000" maxlength="20" required="required" data-valid-name="대표전화"/>
+						</td>
+						<th>대표팩스번호</th>
+						<td>
+							<input type="text" name="mainFaxno" placeholder="02-0000-0000" maxlength="20" data-valid-name="대표팩스번호"/>
+						</td>
+					</tr>
+					<tr>
+						<th>유통구분<i class="required" title="필수"></i></th>
+						<td>
+							<select name="distributionGb" data-valid-name="유통구분">
+								<option value="">[선택]</option>
+								<option th:if="${distributionGbList}" th:each="oneData, status : ${distributionGbList}" th:value="${oneData.cd}" th:text="${oneData.cdNm}" th:selected="${bankNm}"></option>
+							</select>
+						</td>
+						<th>무료배송비최소주문금액<i class="required" title="필수"></i></th>
+						<td>
+							<input type="text" name="minOrdAmt" class="w100 aR" placeholder="30,000" maxlength="7" required="required" data-valid-type="integer" data-valid-name="무료배송비최소주문금액"/>원
+						</td>
+						<th>배송비<i class="required" title="필수"></i></th>
+						<td>
+							<input type="text" name="delvFee" class="w100 aR" placeholder="2,500" maxlength="7" required="required" data-valid-type="integer" data-valid-name="배송비"/>원
+						</td>
+						<th>판매수수료율<i class="required" title="필수"></i></th>
+						<td>
+							<input type="text" name="sellFeeRate" class="w100 aR" placeholder="0.0" maxlength="5" required="required" data-valid-type="real" data-valid-name="판매수수료율"/>%
+						</td>
+					</tr>
+					<tr>
+						<th>CS담당자</th>
+						<td>
+							<input type="text" name="csChargeNm" class="w100 aR" maxlength="50"/>
+						</td>
+						<th>CS담당자 연락처</th>
+						<td>
+							<input type="text" name="csChargeTelno" placeholder="02-0000-0000" maxlength="20"/>
+						</td>
+						<th>정산담당자</th>
+						<td>
+							<input type="text" name="settleChargeNm" class="w100 aR" maxlength="50"/>
+						</td>
+						<th>정산담당자 연락처</th>
+						<td>
+							<input type="text" name="settleChargeTelno" placeholder="02-0000-0000" maxlength="20"/>
+						</td>
+					</tr>
+					<tr>
+						<th>정산담당자 이메일</th>
+						<td>
+							<input type="email" name="settleChargeEmail" maxlength="100"/>
+						</td>
+						<th>계산서 이메일</th>
+						<td>
+							<input type="email" name="billEmail" maxlength="100"/>
+						</td>
+						<th>전자계약여부<i class="required" title="필수"></i></th>
+						<td>
+							<label class="rdoBtn"><input type="radio" name="econtractYn" value="Y" checked="checked">Yes<span></span></label>
+							<label class="rdoBtn"><input type="radio" name="econtractYn" value="N">No<span></span></label>
+						</td>
+						<th>정산일<i class="required" title="필수"></i></th>
+						<td>
+							매일&nbsp;<input type="text" name="settleDay" class="w100 aR" maxlength="2" data-valid-type="numeric"/>일
+						</td>
+					</tr>
+					<tr>
+						<th>거래은행</th>
+						<td>
+							<select name="bankCd">
+								<option value="">[선택]</option>
+								<option th:if="${bankList}" th:each="oneData, status : ${bankList}"	th:value="${oneData.cd}"th:text="${oneData.cdNm}"th:selected="${bankNm}" ></option>
+							</select>
+						</td>
+						<th>계좌번호</th>
+						<td>
+							<input type="text" name="accountNo" maxlength="20"/>
+						</td>
+						<th>예금주명</th>
+						<td>
+							<input type="text" name="depositorNm" maxlength="50"/>
+						</td>
+						<th>사용여부<i class="required" title="필수"></i></th>
+						<td colspan="7">
+							<label class="rdoBtn"><input type="radio" name="useYn" value="Y" checked="checked">Yes<span></span></label>
+							<label class="rdoBtn"><input type="radio" name="useYn" value="N">No<span></span></label>
+						</td>
+					</tr>
+					<tr>
+						<th>비고</th>
+						<td colspan="7">
+							<textarea name="remarks" class="textareaR3"  data-valid-name="비고" ></textarea>
+						</td>
+					</tr>
+				</table>
+			</form>
+			
+			<!-- 버튼 배치 영역 -->
+			<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>
+			<!-- //버튼 배치 영역 -->
+		</div>
+		<!-- 등록/수정 -->
+	</div>
+
+<script th:inline="javascript">
+/*<![CDATA[*/
+	let supplyStatList = gagajf.convertToArray([[${supplyStatList}]]);
+	let distributionGbList = gagajf.convertToArray([[${distributionGbList}]]);
+	let bankList = gagajf.convertToArray([[${bankList}]]);
+
+	let columnDefs = [
+		{ headerName: "업체코드", field: "supplyCompCd", width: 100, cellClass: 'text-center' },
+		{
+			headerName: "업체명", field: "supplyCompNm", width: 150, cellClass: 'text-center',
+			cellRenderer: function(params) {
+				return '<a href="javascript:void(0);">' + params.value + '</a>';
+			}
+		},
+		{
+			headerName: "사업자구분", field: "bizGb", width: 100, cellClass: 'text-center',
+			valueGetter: function (params) { return params.data.bizGb == 'C' ? '법인' : '개인'; }
+		},
+		{ headerName: "사업장자록번호", field: "bizNo", width: 120, cellClass: 'text-center' },
+		{ headerName: "업종", field: "bizKind", width: 200, cellClass: 'text-center' },
+		{ headerName: "업태", field: "bizType", width: 200, cellClass: 'text-center' },
+		{
+			headerName: "입점상태", field: "supplyStat", width: 100, cellClass: 'text-center',
+			valueGetter: function (params) {
+				return gagaAgGrid.lookupValue(supplyStatList, params.data.supplyStat);
+			}
+		},
+		{ headerName: "대표자명", field: "ownerNm", width: 100, cellClass: 'text-center' },
+		{ headerName: "우편번호", field: "bizZipcode", width: 80, cellClass: 'text-center' },
+		{ headerName: "기본주소", field: "bizBaseAddr", width: 250 },
+		{ headerName: "상세주소", field: "bizDtlAddr", width: 150 },
+		{ headerName: "대표전화번호", field: "mainTelno", width: 120, cellClass: 'text-center' },
+		{ headerName: "대표팩스번호", field: "mainFaxno", width: 120, cellClass: 'text-center' },
+		{ headerName: "홈페이지URL", field: "homepageUrl", width: 200 },
+		{
+			headerName: "유통구분", field: "distributionGb", width: 100, cellClass: 'text-center',
+			valueGetter: function (params) {
+				return gagaAgGrid.lookupValue(distributionGbList, params.data.distributionGb);
+			}
+		},
+		{
+			headerName: "무료배송비최소주문금액", field: "minOrdAmt", width: 150, cellClass: 'text-center',
+			valueGetter: function(params) {
+				return Number(params.data.minOrdAmt).addComma();
+			}
+		},
+		{
+			headerName: "배송비", field: "delvFee", width: 100, cellClass: 'text-center',
+			valueGetter: function(params) {
+				return Number(params.data.delvFee).addComma();
+			}
+		},
+		{
+			headerName: "판매수수료율", field: "sellFeeRate", width: 120, cellClass: 'text-center',
+			valueGetter: function(params) {
+				return params.data.sellFeeRate + '%';
+			}
+		},
+		{ headerName: "CS담당자", field: "csChargeNm", width: 100, cellClass: 'text-center', hide: true },
+		{ headerName: "CS담당자연락처", field: "csChargeTelno", width: 100, cellClass: 'text-center', hide: true },
+		{ headerName: "정산담당자", field: "settleChargeNm", width: 100, cellClass: 'text-center', hide: true },
+		{ headerName: "정산담당자연락처", field: "settleChargeTelno", width: 100, cellClass: 'text-center', hide: true },
+		{ headerName: "정산담당자이메일", field: "settleChargeEmail", width: 100, cellClass: 'text-center', hide: true },
+		{ headerName: "계산서이메일", field: "billEmail", width: 100, cellClass: 'text-center', hide: true },
+		{ headerName: "전자계약여부", field: "econtractYn", width: 100, cellClass: 'text-center', hide: true },
+		{ headerName: "정산일(매월)", field: "settleDay", width: 100, cellClass: 'text-center', hide: true },
+		{
+			headerName: "은행명", field: "bankCd", width: 150, cellClass: 'text-center', hide: true,
+			valueGetter: function (params) {
+				return gagaAgGrid.lookupValue(bankList, params.data.bankCd);
+			}
+		},
+		{ headerName: "계좌번호", field: "accountNo", width: 150, cellClass: 'text-center', hide: true },
+		{ headerName: "예금주명", field: "depositorNm", width: 100, cellClass: 'text-center', hide: true },
+		{
+			headerName: "사용여부", field: "useYn", width: 100, cellClass: 'text-center',
+			valueGetter: function (params) { return params.data.useYn == 'Y' ? 'Yes' : 'No'; }
+		},
+		{ headerName: "비고", field: "remarks", width: 150, hide: true }
+	];
+
+	let gridOptions = gagaAgGrid.getGridOptions(columnDefs);
+
+	// Cell click
+	gridOptions.onCellClicked = function(event) {
+		if (event.colDef.field != 'supplyCompNm')
+			return;
+		
+		$('#detailForm input[name=supplyCompCd]').val(event.data.supplyCompCd);
+		$('#detailForm input[name=supplyCompNm]').val(event.data.supplyCompNm);
+		$('#detailForm select[name=supplyStat]').val(event.data.supplyStat);
+		$('#detailForm input[name=ownerNm]').val(event.data.ownerNm);
+		$('#detailForm input:radio[name=useYn]:input[value= ' + event.data.useYn + '] ').click();
+		$('#detailForm input:radio[name=bizGb]:input[value= ' + event.data.bizGb + '] ').click();
+		$('#detailForm input[name=bizNo] ').val(event.data.bizNo);
+		$('#detailForm input[name=bizKind]').val(event.data.bizKind);
+		$('#detailForm input[name=bizType]').val(event.data.bizType);
+		$('#detailForm input[name=bizZipcode]').val(event.data.bizZipcode);
+		$('#detailForm input[name=bizBaseAddr]').val(event.data.bizBaseAddr);
+		$('#detailForm input[name=bizDtlAddr]').val(event.data.bizDtlAddr);
+		$('#detailForm input[name=homepageUrl]').val(event.data.homepageUrl);
+		$('#detailForm select[name=distributionGb]').val(event.data.distributionGb);
+		$('#detailForm input[name=mainTelno]').val(event.data.mainTelno);
+		$('#detailForm input[name=mainFaxno]').val(event.data.mainFaxno);
+		$('#detailForm input[name=sellFeeRate]').val(event.data.sellFeeRate);
+		$('#detailForm input[name=csChargeNm]').val(event.data.csChargeNm);
+		$('#detailForm input[name=csChargeTelno]').val(event.data.csChargeTelno);
+		$('#detailForm input[name=settleChargeNm]').val(event.data.settleChargeNm);
+		$('#detailForm input[name=settleChargeTelno]').val(event.data.settleChargeTelno);
+		$('#detailForm input[name=settleChargeEmail]').val(event.data.settleChargeEmail);
+		$('#detailForm input[name=billEmail]').val(event.data.billEmail);
+		$('#detailForm input:radio[name=econtractYn]:input[value= ' + event.data.econtractYn + '] ').click();
+		$('#detailForm input[name=settleDay]').val(event.data.settleDay);
+		$('#detailForm input[name=minOrdAmt]').val(Number(event.data.minOrdAmt).addComma());
+		$('#detailForm input[name=delvFee]').val(Number(event.data.delvFee).addComma());
+		$('#detailForm select[name=bankCd]').val(event.data.bankCd);
+		$('#detailForm input[name=accountNo]').val(event.data.accountNo);
+		$('#detailForm input[name=depositorNm]').val(event.data.depositorNm);
+		$('#detailForm textarea[name=remarks]').val(event.data.remarks);
+	}
+
+	// 검색
+	$('#btnSearch').on('click', function() {
+		gagaAgGrid.fetch($('#searchForm').prop('action'), gridOptions, '#searchForm');
+	});
+	
+	// 신규버튼
+	$('#btnNew').on('click', function() {
+		$("#detailForm")[0].reset();
+	});
+
+	// 저장
+	$("#btnSave").on("click", function() {
+		// 필수값 체크
+		if (!gagajf.validation('#detailForm'))
+			return false;
+
+		mcxDialog.confirm("저장하시겠습니까?", {
+			cancelBtnText: "취소",
+			sureBtnText: "확인",
+			sureBtnClick: function() {
+				gagajf.ajaxFormSubmit($('#detailForm').prop('action'), '#detailForm', function() {
+					$('#btnNew').trigger('click');
+					$('#btnSearch').trigger('click');
+				});
+			}
+		});
+	});
+	
+	// 엑셀다운로드
+	$('#btnExcel').on('click', function() {
+		gagaAgGrid.exportToExcel('공급업체 목록', gridOptions);
+	});
+
+	/**
+	 * DAUM을 이용한 우편번호 팝업 레이어
+	 */
+	var fnOpenDaumAddr = function() {
+		let daumZip = new daum.Postcode({
+			oncomplete: function(data) {
+				// 우편번호와 주소 정보를 해당 필드에 넣는다.
+				$('#detailForm input[name=bizZipcode]').val(data.zonecode);
+				$('#detailForm input[name=bizBaseAddr]').val(cfnGetDaumRoadAddr(data));
+				$('#detailForm input[name=bizDtlAddr]').focus();
+				
+				cfnCloseDaumAddr();
+			},
+			width: '100%'
+		});
+		
+		cfnOpenDaumAddr(daumZip);
+	}
+	
+	$(document).ready(function() {
+		// Create a agGrid
+		gagaAgGrid.createGrid('gridList', gridOptions);
+	});
+/*]]>*/
+</script>
+
+</html>

+ 106 - 0
style24.scm/src/main/webapp/WEB-INF/views/common/fragments/footer.html

@@ -0,0 +1,106 @@
+<!DOCTYPE html>
+<html lang="ko"
+	xmlns:th="http://www.thymeleaf.org">
+<!--
+ *******************************************************************************
+ * @source  : footer.html
+ * @desc    : Footer
+ *============================================================================
+ * STYLE24
+ * Copyright(C) 2020 TSIT, All rights reserved.
+ *============================================================================
+ * VER  DATE         AUTHOR      DESCRIPTION
+ * ===  ===========  ==========  =============================================
+ * 1.0  2020.10.06   gagamel     최초 작성
+ *******************************************************************************
+ -->
+<body>
+
+<footer th:fragment="footer">
+	<span class="f-left"><strong>Copyright</strong> STYLE24 © 2020</span>
+	<span class="f-right">style24.com - <strong> Admin</strong></span>
+	
+	<!-- 우편번호찾기 레이 -->
+	<div id="zipcode_layer" style="display: none; position: fixed; overflow: hidden; -webkit-overflow-scrolling: touch; z-index: 9999;">
+		<img src="//i1.daumcdn.net/localimg/localimages/07/postcode/320/close.png" id="btnCloseLayer" style="cursor:pointer;position:absolute;right:-3px;top:-3px;z-index:1" onclick="cfnCloseDaumAddr();" alt="닫기 버튼">
+	</div>
+
+<script th:inline="javascript">
+/*<![CDATA[*/
+let element_layer = document.getElementById('zipcode_layer');
+let cfnGetDaumRoadAddr = function(data) {
+	// 팝업에서 검색결과 항목을 클릭했을 때 실행할 코드를 작성하는 부분입니다.
+	// 예제를 참고하여 다양한 활용법을 확인해 보세요.
+	// 팝업에서 검색결과 항목을 클릭했을때 실행할 코드를 작성하는 부분
+
+	// 도로명 주소의 노출 규칙에 따라 주소를 조합한다.
+	// 내려오는 변수가 값이 없는 경우엔 공백('') 값을 가지므로, 이를 참고하여 분기한다.
+	let fullRoadAddr = data.roadAddress; // 도로명 주소 변수
+	let extraRoadAddr = ''; // 도로명 조합형 주소 변수
+
+	// 법정동명이 있을 경우 추가한다. (법정리는 제외)
+	// 법정동의 경우 마지막 문자가 "동/로/가"로 끝난다.
+	if (data.bname !== '' && /[동|로|가]$/g.test(data.bname)) {
+		extraRoadAddr += data.bname;
+	}
+
+	// 건물명이 있고, 공동주택일 경우 추가한다.
+	if (data.buildingName !== '' && data.apartment === 'Y') {
+		extraRoadAddr += (extraRoadAddr !== '' ? ', ' + data.buildingName : data.buildingName);
+	}
+	
+	// 도로명, 지번 조합형 주소가 있을 경우, 괄호까지 추가한 최종 문자열을 만든다.
+	if (extraRoadAddr !== '') {
+		extraRoadAddr = ' (' + extraRoadAddr + ')';
+	}
+	
+	// 도로명, 지번 주소의 유무에 따라 해당 조합형 주소를 추가한다.
+	if (fullRoadAddr !== '') {
+		fullRoadAddr += extraRoadAddr;
+	}
+	
+	return fullRoadAddr;
+}
+
+let cfnOpenDaumAddr = function(daumZip) {
+	if ($('html').hasClass('is-ie')) {
+		daumZip.open();
+	} else {
+		daumZip.embed(element_layer);
+		
+		// iframe을 넣은 element를 보이게 한다.
+		element_layer.style.display = 'block';
+
+		// iframe을 넣은 element의 위치를 화면의 가운데로 이동시킨다.
+		cfnInitLayerPosition();
+	}
+}
+
+let cfnCloseDaumAddr = function() {
+	// iframe을 넣은 element를 안보이게 한다.
+	element_layer.style.display = 'none';
+}
+
+// 브라우저의 크기 변경에 따라 레이어를 가운데로 이동시키고자 하실때에는
+// resize이벤트나, orientationchange이벤트를 이용하여 값이 변경될때마다 아래 함수를 실행 시켜 주시거나,
+// 직접 element_layer의 top,left값을 수정해 주시면 됩니다.
+let cfnInitLayerPosition = function() {
+	let width = 420; //우편번호서비스가 들어갈 element의 width
+	let height = 470; //우편번호서비스가 들어갈 element의 height
+	let borderWidth = 1; //샘플에서 사용하는 border의 두께
+
+	// 위에서 선언한 값들을 실제 element에 넣는다.
+	element_layer.style.width = width + 'px';
+	element_layer.style.height = height + 'px';
+	element_layer.style.border = borderWidth + 'px solid';
+	
+	// 실행되는 순간의 화면 너비와 높이 값을 가져와서 중앙에 뜰 수 있도록 위치를 계산한다.
+	element_layer.style.left = (((window.innerWidth || document.documentElement.clientWidth) - width) / 2 - borderWidth) + 'px';
+	element_layer.style.top = (((window.innerHeight || document.documentElement.clientHeight) - height) / 2 - borderWidth) + 'px';
+}
+/*]]>*/
+</script>
+</footer>
+
+</body>
+</html>

+ 94 - 0
style24.scm/src/main/webapp/WEB-INF/views/common/fragments/gnb.html

@@ -0,0 +1,94 @@
+<!DOCTYPE html>
+<html lang="ko"
+	xmlns:th="http://www.thymeleaf.org">
+<!--
+ *******************************************************************************
+ * @source  : gnb.html
+ * @desc    : Top Menu
+ *============================================================================
+ * STYLE24
+ * Copyright(C) 2020 TSIT, All rights reserved.
+ *============================================================================
+ * VER  DATE         AUTHOR      DESCRIPTION
+ * ===  ===========  ==========  =============================================
+ * 1.0  2020.10.06   gagamel     최초 작성
+ *******************************************************************************
+ -->
+<div th:fragment="gnb">
+	<!-- HEADER AREA -->
+	<header>
+		<!-- 로고, 전체화면 버튼 -->
+		<div class="header-logo">
+			<a href="/">
+				<img src="/image/gnb_logo.png" alt="로고"/>
+			</a>
+			<button type="button" class="lnbClose">
+				<i class="fa fa-bars"></i>
+			</button>
+		</div>
+		<!-- //로고, 전체화면 버튼 -->
+		
+		<!-- 상단 메뉴 -->
+		<div class="header-menu">
+			<span class="menu" th:each="item, index : ${loginMenuList}" th:if="${item.menuLvl == 1}">
+				<a href="#" th:href="@{javascript:void(0);}" th:attr="data-menu-id=@{${item.menuId}}" th:text="${item.menuNm}">메뉴명</a>
+			</span>
+		</div>
+		<!-- //상단 메뉴 -->
+		
+		<!-- 사용자,권한,로그아웃-->
+		<div class="header-info">
+			<i class="heart">&#10084;</i>
+			<a><strong th:text="${sessionInfo.userNm}">홍길동</strong></a>
+			<i class="dot">&bull;</i>
+			<a th:text="${sessionInfo.roleNm}">Director</a>
+			<i class="dot">&bull;</i>
+			<a th:onclick="|cfnPasswordChange();|">비밀번호 변경</a>
+			<i class="dot">&bull;</i>
+			<a href="#" th:href="@{/logout}">Log out</a>
+		</div>
+		<!-- //사용자,권한,로그아웃-->
+		
+		<!-- 반응형 : 사용자,권한,로그아웃-->
+		<div class="header-info-sm">
+			<a class="tooltip">
+				<i class="fa fa-user"></i>
+				<span class="tooltiptext" th:text="${sessionInfo.userNm + '(' + sessionInfo.roleNm + ')'}">홍길동 (Director)</span>
+			</a>
+			<a href="#" th:href="@{/logout}" class="tooltip">
+				<i class="fa fa-chain-broken"></i>
+				<span class="tooltiptext logout">로그아웃</span>
+			</a>
+		</div>
+		<!-- //반응형 : 사용자,권한,로그아웃-->
+	</header>
+	<!-- //HEADER AREA -->
+	
+<script th:inline="javascript">
+/*<![CDATA[*/
+	// Header 메뉴 클릭
+	$('.header-menu > span > a').on('click', function() {
+		// 햄버거 버튼 보이기
+		$('.header-logo').find('.lnbClose').show();
+		
+		// active/inactive
+		let a = $(this);
+		let parentTag = $(a).parent().parent();
+		$.each($(parentTag).find('a'), function(idx) {
+			$(this).removeClass('on');
+		});
+		$(a).addClass('on');
+		
+		cfnDrawLnbMenu($(a).data('menuId'));
+	});
+	
+	$(document.body).ready(function() {
+		// 로그인메뉴목록 설정
+		cfnSetLoginMenuList([[${loginMenuList}]]);
+	});
+/*]]>*/
+</script>
+
+</div>
+
+</html>

+ 61 - 0
style24.scm/src/main/webapp/WEB-INF/views/common/fragments/header.html

@@ -0,0 +1,61 @@
+<!DOCTYPE html>
+<html lang="ko"
+	xmlns:th="http://www.thymeleaf.org">
+<!--
+ *******************************************************************************
+ * @source  : header.html
+ * @desc    : Header
+ *============================================================================
+ * STYLE24
+ * Copyright(C) 2020 TSIT, All rights reserved.
+ *============================================================================
+ * VER  DATE         AUTHOR      DESCRIPTION
+ * ===  ===========  ==========  =============================================
+ * 1.0  2020.10.06   gagamel     최초 작성
+ *******************************************************************************
+ -->
+<head th:fragment="header">
+	<!-- <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate"/>
+	<meta http-equiv="Pragma" content="no-cache"/>
+	<meta http-equiv="Expires" content="-1"/> -->
+	<meta charset="utf-8"/>
+	<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
+	<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
+	<title>:: STYLE24 Admin ::</title>
+	<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet"/>
+	<link rel="shortcut icon" type="image/x-icon" href="/image/favicon.ico"/>
+
+	<!-- Include Common CSS -->
+	<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"/>
+	<link rel="stylesheet" href="/ux/plugins/agGrid/ag-grid.css"/>
+	<link rel="stylesheet" href="/ux/plugins/agGrid/ag-theme-balham.css"/>
+	<link rel="stylesheet" th:href="@{'/ux/plugins/mcxdialog/mcxdialog_ui.css?v=' + ${#calendars.format(#calendars.createNow(), 'yyyyMMddHHmmss')}}" href="/ux/plugins/mcxdialog/mcxdialog_ui.css"/>
+	<link rel="stylesheet" href="/ux/plugins/dropzone/dropzone.css"/>
+	<link rel="stylesheet" href="/ux/plugins/c3/c3.css"/>
+
+	<!-- Custom Common CSS -->
+	<link rel="stylesheet" th:href="@{'/ux/css/admin.ui.css?v=' + ${#calendars.format(#calendars.createNow(), 'yyyyMMddHHmmss')}}" href="/ux/css/admin.ui.css"/>
+	<link rel="stylesheet" href="/ux/plugins/gaga/gaga.agGrid.css"/>
+
+	<!-- Include JS library -->
+	<script type="text/javascript" src="/ux/plugins/jquery/jquery-1.12.4.min.js"></script>
+	<script type="text/javascript" src="/ux/plugins/jquery/jquery-ui.min.js"></script>
+	<script type="text/javascript" src="/ux/plugins/jquery/jquery.serializeObject.min.js"></script>
+	<script type="text/javascript" src="/ux/plugins/mcxdialog/mcxdialog_ui.js"></script>
+	<script type="text/javascript" src="/ux/plugins/agGrid/ag-grid-enterprise.min.noStyle.js"></script>
+	<script type="text/javascript" src="/ux/plugins/dropzone/dropzone.js"></script>
+	<script type="text/javascript" src="/ux/plugins/c3/d3.v5.js"></script>
+	<script type="text/javascript" src="/ux/plugins/c3/c3.js"></script>
+	<script type="text/javascript" src="https://ssl.daumcdn.net/dmaps/map_js_init/postcode.v2.js"></script>
+	
+	<!-- Custom Common JS library -->
+	<script type="text/javascript" th:src="@{'/ux/js/admin.ui.js?v=' + ${#calendars.format(#calendars.createNow(), 'yyyyMMddHHmmss')}}" src="/ux/js/admin.ui.js"></script>
+	<script type="text/javascript" th:src="@{'/ux/js/admin.common.js?v=' + ${#calendars.format(#calendars.createNow(), 'yyyyMMddHHmmss')}}" src="/ux/js/admin.common.js"></script>
+	<script type="text/javascript" th:src="@{'/ux/js/admin.popup.js?v=' + ${#calendars.format(#calendars.createNow(), 'yyyyMMddHHmmss')}}" src="/ux/js/admin.popup.js"></script>
+	<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>

+ 98 - 0
style24.scm/src/main/webapp/WEB-INF/views/common/fragments/lnb.html

@@ -0,0 +1,98 @@
+<!DOCTYPE html>
+<html lang="ko"
+	xmlns:th="http://www.thymeleaf.org">
+<!--
+ *******************************************************************************
+ * @source  : lnb.html
+ * @desc    : Left Menu
+ *============================================================================
+ * STYLE24
+ * Copyright(C) 2020 TSIT, All rights reserved.
+ *============================================================================
+ * VER  DATE         AUTHOR      DESCRIPTION
+ * ===  ===========  ==========  =============================================
+ * 1.0  2020.10.06   gagamel     최초 작성
+ *******************************************************************************
+ -->
+<body>
+
+<div th:fragment="lnb" id="lnb-wrapper">
+	<ul id="lnb" class="lnb">
+
+	</ul>
+
+<script th:inline="javascript">
+/*<![CDATA[*/
+	// LNB 메뉴 클릭 시
+	let fnClickLnb = function(menuId) {
+		let menu = cfnGetMenuInfo(menuId);
+
+		// Menu 정보가 없으면 skip
+		if (typeof(menu) == 'undefined') {
+			return;
+		}
+		
+		$('#content').load(menu.menuUrl, function() {
+			// Content Main Title
+			let arrNavigation = menu.navigation.split(' > ');
+			let contentTitle = '';
+			contentTitle += '<h1>' + (arrNavigation.length > 2 ? arrNavigation[2] : (arrNavigation.length > 1 ? arrNavigation[1] : arrNavigation[0])) + '</h1>\n';
+			contentTitle += '<ol>\n';
+			contentTitle += '	<li><i class="fa fa-home"></i> <a>' + arrNavigation[0] + '</a></li>\n';
+			if (arrNavigation.length > 1) {
+				contentTitle += '	<li><a>' + arrNavigation[1] + '</a></li>\n';
+			}
+			if (arrNavigation.length > 2) {
+				contentTitle += '	<li><a>' + arrNavigation[2] + '</a></li>\n';
+			}
+			contentTitle += '</ol>\n';
+			$('.main-title').html(contentTitle);
+			
+			if (!gagajf.isNull(menu.menuDesc)) {
+				$('.menu-desc').html(menu.menuDesc);
+				if ($('.menu-desc').length > 0) $('.menu-desc').show();
+			} else {
+				if ($('.menu-desc').length > 0) $('.menu-desc').hide();
+			}
+			
+			$('.schDate').datepicker({
+				changeMonth: true,
+				changeYear: true,
+				defaultDate: $('.schDate').val()
+			});
+
+			let currentYear = (new Date()).getFullYear();
+			let startYear = currentYear - 10;
+			let finalYear = currentYear + 10;
+			let options = {
+				startYear: startYear,
+				finalYear: finalYear,
+				pattern: 'yyyy-mm',
+				monthNames: ['1월', '2월', '3월', '4월', '5월', '6월', '7월', '8월', '9월', '10월', '11월', '12월']
+			};
+			$('.schMonth').monthpicker(options);
+
+			//조회폼에서 엔터키 입력시 자동조회
+			if ($('#btnSearch').length == 1) {
+				$("#main").find("form:first").on('keyup', function(e) {
+					if (e.keyCode == 13) {
+						if ($('#btnSearch').length == 1) {
+							$('#btnSearch').click();
+						}
+					}
+				})
+			}
+		});
+		$(window).scrollTop(0);
+	}
+
+	$(document.body).ready(function() {
+
+	});
+/*]]>*/
+</script>
+
+</div>
+
+</body>
+</html>

+ 34 - 0
style24.scm/src/main/webapp/WEB-INF/views/common/fragments/variables.html

@@ -0,0 +1,34 @@
+<!DOCTYPE html>
+<html lang="ko"
+	xmlns:th="http://www.thymeleaf.org">
+<!--
+ *******************************************************************************
+ * @source  : variables.html
+ * @desc    : Global variables 설정
+ *            prefix를 _(underbar)로 시작한다.
+ *============================================================================
+ * STYLE24
+ * Copyright(C) 2020 TSIT, All rights reserved.
+ *============================================================================
+ * VER  DATE         AUTHOR      DESCRIPTION
+ * ===  ===========  ==========  =============================================
+ * 1.0  2020.10.06   gagamel     최초 작성
+ *******************************************************************************
+ -->
+<th:block th:fragment="variables">
+<script th:inline="javascript">
+/*<![CDATA[*/
+var _adminUrl = [[${@environment.getProperty('domain.admin')}]];
+var _frontUrl = [[${@environment.getProperty('domain.front')}]];
+var _uximgUrl = [[${@environment.getProperty('domain.uximage')}]];
+var _imgUrl = [[${@environment.getProperty('domain.image')}]];
+var _sampleUrl = [[${@environment.getProperty('upload.sample.view')}]];
+var _uploadDefaultUrl = [[${@environment.getProperty('upload.default.view')}]];
+
+var _today = [[${#calendars.format(#calendars.createNow(), 'yyyy-MM-dd')}]];
+var _thisYear = [[${#calendars.format(#calendars.createNow(), 'yyyy')}]];
+/*]]>*/
+</script>
+</th:block>
+
+</html>

+ 46 - 0
style24.scm/src/main/webapp/WEB-INF/views/common/layout/dashboard.html

@@ -0,0 +1,46 @@
+<!DOCTYPE html>
+<html lang="ko"
+	xmlns:th="http://www.thymeleaf.org"
+	xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout">
+
+<head th:replace="~{common/fragments/header :: header}"></head>
+
+<body>
+
+<th:block th:replace="~{common/fragments/variables :: variables}"></th:block>
+
+<div id="wrapper" class="dashboard">
+	<!-- GNB -->
+	<div th:replace="~{common/fragments/gnb :: gnb}"></div>
+	<!--// GNB -->
+	
+	<!-- CONTENT AREA -->
+	<div id="container" class="gray-bg">
+		<!-- LNB -->
+		<div th:replace="~{common/fragments/lnb :: lnb}"></div>
+		<!--// LNB -->
+		
+		<!-- MAIN AREA -->
+		<div id="main-wrapper">
+			<div id="content" layout:fragment="content"></div>
+			
+			<!-- Footer -->
+			<footer th:replace="~{common/fragments/footer :: footer}"></footer>
+			<!--// Footer -->
+		</div>
+		<!-- // MAIN AREA -->
+	</div>
+	<!-- // CONTENT AREA -->
+	
+</div>
+
+<script th:inline="javascript">
+/*<![CDATA[*/
+	$(document).ready(function() {
+		
+	});
+/*]]>*/
+</script>
+
+</body>
+</html>

+ 46 - 0
style24.scm/src/main/webapp/WEB-INF/views/common/layout/default.html

@@ -0,0 +1,46 @@
+<!DOCTYPE html>
+<html lang="ko"
+	xmlns:th="http://www.thymeleaf.org"
+	xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout">
+
+<head th:replace="~{common/fragments/header :: header}"></head>
+
+<body>
+
+<th:block th:replace="~{common/fragments/variables :: variables}"></th:block>
+
+<div id="wrapper" class="color-pastel">
+	<!-- GNB -->
+	<div th:replace="~{common/fragments/gnb :: gnb}"></div>
+	<!--// GNB -->
+	
+	<!-- CONTENT AREA -->
+	<div id="container" class="gray-bg">
+		<!-- LNB -->
+		<div th:replace="~{common/fragments/lnb :: lnb}"></div>
+		<!--// LNB -->
+		
+		<!-- MAIN AREA -->
+		<div id="main-wrapper">
+			<div id="content" layout:fragment="content"></div>
+			
+			<!-- Footer -->
+			<footer th:replace="~{common/fragments/footer :: footer}"></footer>
+			<!--// Footer -->
+		</div>
+		<!-- // MAIN AREA -->
+	</div>
+	<!-- // CONTENT AREA -->
+	
+</div>
+
+<script th:inline="javascript">
+/*<![CDATA[*/
+	$(document).ready(function() {
+		
+	});
+/*]]>*/
+</script>
+
+</body>
+</html>

+ 23 - 0
style24.scm/src/main/webapp/WEB-INF/views/common/layout/error.html

@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html lang="ko"
+	xmlns:th="http://www.thymeleaf.org"
+	xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout">
+
+<head th:replace="~{common/fragments/header :: header}"></head>
+
+<body class="loginBg">
+
+<div id="errPage">
+	<div layout:fragment="content"></div>
+</div>
+
+<script th:inline="javascript">
+/*<![CDATA[*/
+	$(document).ready(function() {
+		
+	});
+/*]]>*/
+</script>
+
+</body>
+</html>

+ 23 - 0
style24.scm/src/main/webapp/WEB-INF/views/common/layout/login.html

@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html lang="ko"
+	xmlns:th="http://www.thymeleaf.org"
+	xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout">
+
+<head th:replace="~{common/fragments/header :: header}"></head>
+
+<body class="loginBg">
+
+<div class="loginWrap login_black">
+	<th:block layout:fragment="content"></th:block>
+</div>
+
+<script th:inline="javascript">
+/*<![CDATA[*/
+	$(document).ready(function() {
+		
+	});
+/*]]>*/
+</script>
+
+</body>
+</html>

ファイルの差分が大きいため隠しています
+ 65 - 0
style24.scm/src/main/webapp/WEB-INF/views/dashboard.html


+ 53 - 0
style24.scm/src/main/webapp/WEB-INF/views/error/500.html

@@ -0,0 +1,53 @@
+<!DOCTYPE html>
+<html lang="ko"
+	xmlns:th="http://www.thymeleaf.org"
+	xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
+	layout:decorator="common/layout/error">
+<!--
+ *******************************************************************************
+ * @source  : 500.html
+ * @desc    : 500 Error Page
+ *============================================================================
+ * STYLE24
+ * Copyright(C) 2020 TSIT, All rights reserved.
+ *============================================================================
+ * VER  DATE         AUTHOR      DESCRIPTION
+ * ===  ===========  ==========  =============================================
+ * 1.0  2020.10.06   gagamel     최초 작성
+ *******************************************************************************
+ -->
+<head>
+	<title>500 Error</title>
+</head>
+
+<body>
+
+<div layout:fragment="content">
+	<div class="errImg">
+		<div>
+			<i class="fa fa-television" aria-hidden="true"></i>
+			<i class="fa fa-info" aria-hidden="true"></i>
+		</div>
+	</div>
+	<ul class="errTxt">
+		<li class="ttl" th:text="${message}">Internal Server Error</li>
+		<li class="cont">
+			서버가 요청을 완료할 수 없는 예기치 않은 오류가 발생했습니다.
+		</li>
+		<li class="tel">
+			문의 : 스타일24(주) 고객센터 (1544-5336)
+		</li>
+	</ul>
+	<div class="errBtn">
+		<a href="#" th:href="@{/}" class="btn">Home</a>
+	</div>
+
+<script type="text/javascript">
+/*<![CDATA[*/
+/*]]>*/
+</script>
+
+</div>
+
+</body>
+</html>

+ 170 - 0
style24.scm/src/main/webapp/WEB-INF/views/goods/ItemkindBaseForm.html

@@ -0,0 +1,170 @@
+<!DOCTYPE html>
+<html lang="ko"
+	xmlns:th="http://www.thymeleaf.org">
+<!--
+ *******************************************************************************
+ * @source  : ItemkindBaseForm.html
+ * @desc    : 품목관리 Page
+ *============================================================================
+ * STYLE24
+ * Copyright(C) 2020 TSIT, All rights reserved.
+ *============================================================================
+ * VER  DATE         AUTHOR      DESCRIPTION
+ * ===  ===========  ==========  =============================================
+ * 1.0  2020.10.16   eskim     최초 작성
+ *******************************************************************************
+ -->
+	<div id="main">
+		<!-- 메인타이틀 영역 -->
+		<div class="main-title">
+		</div>
+		<!-- //메인타이틀 영역 -->
+		
+		<!-- 메뉴 설명 -->
+		<div class="infoBox menu-desc">
+		</div>
+		<!-- //메뉴 설명 -->
+		<form id="searchForm" name="searchForm" action="#" th:action="@{'/goods/itemkind/base/list'}" >
+			<div class="panelStyle">
+				<!-- 버튼 배치 영역 -->
+				<ul class="panelBar">
+					<li>
+						<button type="button" class="btn btn-dark btn-sm" id="btnAddRow">행추가</button>
+						<button type="button" class="btn btn-danger btn-sm" id="btnDeleteRow">행삭제</button>
+					</li>
+					<li  class="right">
+						<button type="button" class="btn btn-success btn-lg" id="btnSave">저장</button>
+					</li>
+				</ul>
+				<!-- //버튼 배치 영역 -->
+				
+				<div id="gridList" style="width: 100%; height: 650px" class="ag-theme-balham"></div>
+			</div>
+		</form>
+	</div>
+
+<script th:inline="javascript">
+/*<![CDATA[*/
+	var useYnList = { "Y":"Yes", "N":"No" };
+	var niClsfCdList = gagajf.convertToArray([[${niClsfCdList}]]);
+
+	// specify the columns
+	var columnDefs = [
+		{width: 40, minWidth: 40, cellClass: 'text-center', headerCheckboxSelection: true, checkboxSelection: true, filter: false},
+		{headerName: 'No', width: 60, cellClass: 'text-center', valueGetter: function(params) { return params.node.rowIndex + 1 }},
+		{headerName: "품목코드", field: "itemkindCd", width: 150, cellClass: 'text-center',
+			editable : function(params){return params.data.crud=='C' ? true : false;},
+			cellEditor: 'textCellEditor',
+			cellEditorParams: { required: true, onblur: '$(this).val($(this).val().toUpperCase())' }
+		},
+		{headerName: "품목명", field: "itemkindNm", width: 350, cellClass: 'text-center',
+			cellEditor: 'textCellEditor',
+			cellEditorParams: { maxlength: 50, required: true }
+		},
+		/* {headerName: "품목영문명", field: "itemkindEnm", width: 350, cellClass: 'text-center',
+			cellEditor: 'textCellEditor',
+			cellEditorParams: { maxlength: 50, required: true }
+		}, */
+		{headerName: "정보고시분류", field: "niClsfCd"	, width: 350, cellClass: 'text-center',
+			cellEditor: 'agRichSelectCellEditor',
+			cellEditorParams: { values: gagaAgGrid.extractValues(niClsfCdList), required: true },
+			valueFormatter: function (params) { return gagaAgGrid.lookupValue(niClsfCdList, params.value); },
+			valueParser: function (params) { return gagaAgGrid.lookupKey(niClsfCdList, params.newValue); }
+		},
+		{
+			headerName: "사용여부", field: "useYn", width: 100, minWidth: 75, cellClass: 'text-center',
+			cellEditor: 'agRichSelectCellEditor',
+			cellEditorParams: { values: gagaAgGrid.extractValues(useYnList) },
+			valueFormatter: function (params) { return gagaAgGrid.lookupValue(useYnList, params.value); },
+			valueParser: function (params) { return gagaAgGrid.lookupKey(useYnList, params.newValue); }
+		}
+	];
+
+	// Get GridOptions
+	var gridOptions = gagaAgGrid.getGridOptions(columnDefs);
+
+	// Grid editable
+	gridOptions.defaultColDef.editable = true;
+
+	// Add on options
+	gridOptions.suppressRowClickSelection = true;
+	gridOptions.rowSelection = 'multiple';
+
+	gridOptions.stopEditingWhenGridLosesFocus = true;
+
+	// 행추가
+	$('#btnAddRow').on('click', function() {
+		var data = { itemkindCd: null, itemkindNm: null, itemkindEnm: null, erpItemkindCd: null, useYn: "Y" };
+		gagaAgGrid.addRowData(gridOptions, data, "itemkindCd");
+	});
+
+	// 행삭제
+	$('#btnDeleteRow').on('click', function() {
+		var selectedData = gridOptions.api.getSelectedRows();
+		var removedData = gagaAgGrid.removeRowData(gridOptions);
+
+		if (selectedData.length == 0) {
+			mcxDialog.alert('선택된 행이 없습니다.');
+			return;
+		}
+
+		if (removedData.length > 0) {
+
+			mcxDialog.confirm('삭제하시겠습니까?', {
+				cancelBtnText: "취소",
+				sureBtnText: "확인",
+				sureBtnClick: function(){
+					var deleteData = [];
+
+					$.each(removedData, function(idx, item) {
+						deleteData.push(item);
+					});
+
+					var jsonData = JSON.stringify(deleteData);
+					gagajf.ajaxJsonSubmit('/goods/itemkind/delete', jsonData, fnSearch);
+				}
+			});
+		}
+	});
+
+	// 저장
+	$('#btnSave').on('click', function() {
+		// 변경된 데이터
+		var changedData = gagaAgGrid.getChangedData(gridOptions);
+
+		if (changedData.length == 0) {
+			mcxDialog.alert('변경된 데이터가 없습니다.');
+			return;
+		}
+
+		// Validation
+		if (!gagaAgGrid.validation(gridOptions, changedData))
+			return;
+	
+		mcxDialog.confirm('저장하시겠습니까?', {
+			cancelBtnText: "취소",
+			sureBtnText: "확인",
+			sureBtnClick: function(){
+				var jsonData = JSON.stringify(changedData);
+				gagajf.ajaxJsonSubmit('/goods/itemkind/save', jsonData, fnSearch);
+			}
+		});
+
+	});
+
+	$(document).ready(function() {
+		// Create a agGrid
+		gagaAgGrid.createGrid('gridList', gridOptions);
+		
+		fnSearch();
+	});
+
+	var fnSearch = function() {
+		var formId = "#searchForm";
+		gagaAgGrid.fetch($(formId).prop('action'), gridOptions, formId);
+	}
+
+/*]]>*/
+</script>
+
+</html>

+ 107 - 0
style24.scm/src/main/webapp/WEB-INF/views/signin.html

@@ -0,0 +1,107 @@
+<!DOCTYPE html>
+<html lang="ko"
+	xmlns:th="http://www.thymeleaf.org"
+	xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
+	layout:decorator="common/layout/login">
+<!--
+ *******************************************************************************
+ * @source  : signin.html
+ * @desc    : Signin Page
+ *============================================================================
+ * STYLE24
+ * Copyright(C) 2020 TSIT, All rights reserved.
+ *============================================================================
+ * VER  DATE         AUTHOR      DESCRIPTION
+ * ===  ===========  ==========  =============================================
+ * 1.0  2020.10.19   gagamel     최초 작성
+ *******************************************************************************
+ -->
+<head>
+	<title>Signin</title>
+</head>
+
+<body>
+
+<th:block layout:fragment="content">
+	<form name="loginForm" id="loginForm" th:action="@{/login}" method="post">
+		<div class="loginCont">
+			<div class="logo"><img src="/image/login_logo.png" alt="logo"/></div>
+			<ul>
+				<li>
+					<ul class="loginBox">
+						<li th:style="${error == null ? 'display: none;' : ''}">
+							<div class="alertBox alert-danger" id="loginFailAlert">
+								<strong th:text="${error}">사용자ID 또는 비밀번호가 일치하지 않습니다.</strong>
+								<button type="button" class="alertClose" onclick="uifnAlertClose('loginFailAlert');">닫기</button>
+							</div>
+						</li>
+						<li>
+							<input type="text" autofocus="autofocus" name="userId" placeholder="아이디" maxlength="20" required="required" data-valid-name="아이디"/>
+						</li>
+						<li>
+							<input type="password" name="passwd" placeholder="비밀번호" maxlength="20" required="required" data-valid-name="비밀번호"/>
+						</li>
+						<li>
+							<label class="chkBox"><input type="checkbox" id="saveId"/>아이디 저장</label>
+							<!-- <input type="submit" class="btn btn-black btn-lg" value="Login"/> -->
+							<button type="submit" class="btn btn-black btn-lg">Login</button>
+						</li>
+						<!--li>
+							<a href="#" th:href="@{javascript:void(0);}" id="findId" class="forget-password">아이디 찾기</a>
+							<i class="dot">&bull;</i>
+							<a href="#" th:href="@{javascript:void(0);}" id="findPassword">비밀번호 찾기</a>
+							<i class="dot">&bull;</i>
+							<a>회원가입</a>
+						</li-->
+					</ul>
+				</li>
+				<li>
+					<div class="loginInfo">
+						<p><em><i class="fa fa-info-circle" aria-hidden="true"></i>안내문</em></p>
+						<p>이 시스템은 <b>STYLE24 SCM</b> 전용 시스템입니다.<br/>
+						인증되지 않은 사용자의 다른 접근은 허용하지 않습니다.<br/>
+						본 시스템으로 접근을 시도한 것은 기록에 남게 되며, 반복되는 접근은 불법적인 침입을 하려는 시도로 간주하겠습니다.<br/><br/>
+						본 시스템의 사용과 관련된 문의는<br/>
+						<strong>스타일24(주) 고객센터 (1544-5336)</strong>으로 연락 주시기 바랍니다.</p>
+					<div>
+				</li>
+			</ul>
+		</div>
+	</form>
+
+<script th:inline="javascript">
+/*<![CDATA[*/
+	//주석 추가
+	var ckAdminId = "CK_SCM_ID";
+	var ckDefaultExpireDays = 90;
+
+	// Save ID
+	$('#saveId').on('click', function() {
+		if ($('#saveId').is(":checked")) {
+			if (!gagajf.isNull($('#loginForm input[name=userId]').val())) {
+				gagajf.setCookie(ckAdminId, $('#loginForm input[name=userId]').val(), ckDefaultExpireDays);
+			}
+		} else {
+			if (!gagajf.isNull(getCookie(ckAdminId)) && (getCookie(ckAdminId) === $('#loginForm input[name=userId]').val())) {
+				gagajf.setCookie(ckAdminId, $('#loginForm input[name=userId]').val(), -1);
+			}
+		}
+	});
+
+	$(document).ready(function() {
+		$('#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);
+		} else {
+			$('#loginForm input[name=passwd]').focus();
+			$('#saveId').prop('checked', true);
+		}
+	});
+/*]]>*/
+</script>
+
+</th:block>
+
+</body>
+</html>

+ 266 - 0
style24.scm/src/main/webapp/WEB-INF/views/system/BasicAnswerForm.html

@@ -0,0 +1,266 @@
+<!DOCTYPE html>
+<html lang="ko"
+	xmlns:th="http://www.thymeleaf.org">
+<!--
+ *******************************************************************************
+ * @source  : BasicAnswerForm.html
+ * @desc    : 기본답변문구관리 Page
+ *============================================================================
+ * Wivismall
+ * Copyright(C) 2019 TSIT, All rights reserved.
+ *============================================================================
+ * VER  DATE         AUTHOR      DESCRIPTION
+ * ===  ===========  ==========  =============================================
+ * 1.0  2019.12.13   jaewonHo    최초 작성
+ *******************************************************************************
+ -->
+	<div id="main">
+		<div class="main-title">
+		</div>
+		<!-- 검색조건 영역 -->
+		<div class="panelStyle2">
+			<form id="searchForm" name="searchForm" action="#" th:action="@{'/system/basic/answer/list'}" onsubmit="$('#btnSearch').trigger('click'); return false;">
+				<table class="frmStyle">
+					<colgroup>
+						<col style="width:10%;"/>
+						<col style="width:20%;"/>
+						<col style="width:10%;"/>
+						<col style="width:20%;"/>
+						<col style="width:10%;"/>
+						<col style="width:20%;"/>
+						<col/>
+					</colgroup>
+					<tr>
+						<th>사이트</th>
+						<td>
+							<select name="siteCd">
+								<option value="">[전체]</option>
+								<option th:if="${siteList}" th:each="oneData, status : ${siteList}"th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
+							</select>
+						</td>
+						<th>답변종류</th>
+						<td>
+							<select name="ansClsf">
+								<option value="">[전체]</option>
+								<option th:if="${ansClsfList}" th:each="oneData, status : ${ansClsfList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
+							</select>
+						</td>
+						<th>답변제목</th>
+						<td>
+							<input type="text" name="ansTitle" class="w200"/>
+						</td>
+						<th>사용여부</th>
+						<td>
+							<select name="useYn">
+								<option value="">[전체]</option>
+								<option value="Y">[Y] Yes</option>
+								<option value="N">[N] No</option>
+							</select>
+						</td>
+					</tr>
+				</table>
+				<div class="panelBtnB">
+					<input type="button" value="조회" class="btn btn-base btn-lg" id="btnSearch" onclick="fnSearch();"/>
+				</div>
+			</form>
+		</div>
+		<!-- 검색조건 영역 -->
+		
+		<!-- 리스트 영역 -->
+		<div class="panelStyle2">
+			<ul class="lrStyle">
+				<li>
+					<button type="button" class="btn btn-default btn-lg" id="btnExcelDown" onclick="fnExcelDown();">엑셀다운로드</button>
+				</li>
+			</ul>
+			
+			<div class="panelContent" style="overflow: hidden;">
+				<div id="gridList" style="width: 100%; height: 450px;" class="ag-theme-balham"></div>
+			</div>
+		</div>
+		<!-- //리스트 영역 -->
+
+		<!-- 등록/수정 -->
+		<div class="panelStyle2">
+			<form id="detailForm" name="detailForm" action="#" th:action="@{'/system/basic/answer/save'}">
+				<input type="hidden" name="ansSq" value=""/>
+				
+				<table class="frmStyle">
+					<colgroup>
+						<col style="width:10%;"/>
+						<col style="width:20%;"/>
+						<col style="width:10%;"/>
+						<col style="width:20%;"/>
+						<col style="width:10%;"/>
+						<col style="width:20%;"/>
+						<col/>
+					</colgroup>
+					<tr>
+						<th>사이트<i class="star"></i></th>
+						<td>
+							<select name="siteCd" required="required" data-valid-name="사이트">
+								<option>[전체]</option>
+								<option th:if="${siteList}" th:each="oneData, status : ${siteList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
+							</select>
+						</td>
+						<th>답변종류<i class="star"></i></th>
+						<td>
+							<select name="ansClsf" required="required" data-valid-name="답변종류">
+								<option value="">[선택]</option>
+								<option th:if="${ansClsfList}" th:each="oneData, status : ${ansClsfList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
+							</select>
+						</td>
+						<th>등록자</th>
+						<td>
+							<label th:text="${sessionInfo.userId}" id="regId"></label>
+						</td>
+					</tr>
+					<tr>
+						<th>답변제목<i class="star"></i></th>
+						<td colspan="3">
+							<input type="text" name="ansTitle" required="required" data-valid-name="답변제목"/>
+						</td>
+						<th>사용여부</th>
+						<td>
+							<input type="hidden" name="useYn" value="Y"/>
+							<label><input type="checkbox" name="chkUseYn" checked="checked"/>사용</label>
+						</td>
+					</tr>
+					<tr>
+						<th>답변내용<i class="star"></i></th>
+						<td colspan="5">
+							<textarea name="ansContent" class="textareaR3" required="required"  data-valid-name="답변내용" ></textarea>
+						</td>
+					</tr>
+				</table>
+
+				<div class="panelBtnB">
+					<button type="button" class="btn btn-success btn-lg" id="btnNew">신규</button>
+					<button type="button" class="btn btn-success btn-lg" id="btnSave">저장</button>
+				</div>
+			</form>
+		</div>
+		<!-- 등록/수정 -->
+	</div>
+
+<script th:inline="javascript">
+/*<![CDATA[*/
+	var siteList = gagajf.convertToArray([[${siteList}]]);
+	var ansClsfList = gagajf.convertToArray([[${ansClsfList}]]);
+
+	var columnDefs = [
+		{headerName: "답변번호", field: "ansSq", width: 150, cellClass: 'text-center'},
+		{
+			headerName: "사이트", field: "siteCd", width: 150, cellClass: 'text-center',
+			valueFormatter: function (params) { return gagaAgGrid.lookupValue(siteList, params.value); }
+		},
+		{
+			headerName: "답변종류", field: "ansClsf", width: 150, cellClass: 'text-center',
+			valueFormatter: function (params) { return gagaAgGrid.lookupValue(ansClsfList, params.value); }
+		},
+		{
+			headerName: "답변제목", field: "ansTitle", width: 350,
+			cellRenderer: function(params) { return '<a href="javascript:void(0);">' + params.value + '</a>'; }
+		},
+		{headerName: "사용여부", field: "useYn", width: 80, cellClass: 'text-center'},
+		{headerName: "등록자ID", field: "regId", width: 150, cellClass: 'text-center'},
+		{
+			headerName: "등록일", field: "regDt", width: 100, cellClass: 'text-center',
+			cellRenderer: function(params) { return !gagajf.isNull(params.value) ? params.value.toDate("YYYYMMDD").format("YYYY-MM-DD") : ''; }
+		}
+	];
+
+	var gridOptions = gagaAgGrid.getGridOptions(columnDefs);
+
+	// 셀 클릭 이벤트
+	gridOptions.onCellClicked = function(event) {
+		if (event.colDef.field != 'ansTitle')
+			return;
+		
+		$('#detailForm input[name=ansSq]').val(event.data.ansSq);								// 답변일련번호
+		$('#detailForm select[name=siteCd]').val(event.data.siteCd);							// 사이트
+		$('#detailForm select[name=ansClsf]').val(event.data.ansClsf);							// 답변종류
+		$('#regId').html(event.data.regId);														// 등록자ID
+		$('#detailForm input[name=ansTitle]').val(event.data.ansTitle.replaceAll('&gt;','>'));	// 답변제목
+		
+		if (event.data.useYn == 'Y') {
+			$("#detailForm input:checkbox[name=chkUseYn]").prop('checked', true);
+			$("#detailForm input:checkbox[name=chkUseYn]").parent().addClass('checked');
+		} else {
+			$("#detailForm input:checkbox[name=chkUseYn]").prop('checked', false);
+			$("#detailForm input:checkbox[name=chkUseYn]").parent().removeClass('checked');
+		}
+		
+		$('#detailForm textarea[name=ansContent]').val(event.data.ansContent);	// 답변내용
+	}
+
+	// 신규
+	$('#btnNew').on('click', function() {
+		$('#detailForm')[0].reset();
+		$('#detailForm input[name=ansSq]').val('');
+		$('#detailForm input[name=ansTitle]').focus();
+	});
+	
+	// 검색
+	var fnSearch = function() {
+		gagaAgGrid.fetch($('#searchForm').prop('action'), gridOptions, '#searchForm');
+	}
+
+	// 저장/수정
+	$("#btnSave").on("click", function(formId){
+		var formId = '#detailForm';
+
+		var selectedData = gridOptions.api.getSelectedRows();
+
+		//필수값 체크
+		if (!gagajf.validation(formId))
+			return false;
+
+		var msg = '저장하시겠습니까?';
+		if (selectedData.length == 0) {
+			msg = '등록하시겠습니까?';
+		}
+		var ansSq = $(formId + " input[name=ansSq]").val();
+		var siteCd = $(formId + " select[name=siteCd").val();									// 사이트
+		var ansClsf = $(formId + " select[name=ansClsf]").val();								// 답변종류
+		var ansTitle = $(formId + " input[name=ansTitle]").val();								// 답변제목
+		var ansContent = $(formId + " textarea[name=ansContent]").val();						// 답변내용
+		var useYn = $(formId + ' input:checkbox[name=chkUseYn]').is(":checked") ? 'Y' : 'N';	// 사용여부
+
+		var data = {
+				ansSq : ansSq,
+				siteCd : siteCd,
+				ansClsf : ansClsf,
+				ansTitle : ansTitle,
+				ansContent : ansContent,
+				useYn : useYn
+		};
+
+		mcxDialog.confirm(msg, {
+			cancelBtnText: "취소",
+			sureBtnText: "확인",
+			sureBtnClick: function() {
+				var jsonData = JSON.stringify(data);
+				gagajf.ajaxJsonSubmit($(formId).prop("action"), jsonData, fnSaveCallback);
+			}
+		});
+	});
+
+	//저장후 콜백
+	var fnSaveCallback = function() {
+		fnSearch();
+		$("#btnNew").click();
+	}
+
+	$(document).ready(function() {
+		gagaAgGrid.createGrid('gridList', gridOptions);
+
+		// Grid 높이 조정
+		uifnFitGrid();
+		
+		fnSearch();
+	});
+/*]]>*/
+</script>
+
+</html>

+ 735 - 0
style24.scm/src/main/webapp/WEB-INF/views/system/BasicEnvsetForm.html

@@ -0,0 +1,735 @@
+<!DOCTYPE html>
+<html lang="ko"
+	xmlns:th="http://www.thymeleaf.org">
+<!--
+ *******************************************************************************
+ * @source  : BasicEnvsetForm.html
+ * @desc    : 기본환경설정 Page
+ *============================================================================
+ * Wivismall
+ * Copyright(C) 2019 TSIT, All rights reserved.
+ *============================================================================
+ * VER  DATE         AUTHOR      DESCRIPTION
+ * ===  ===========  ==========  =============================================
+ * 1.0  2020.03.13   gagamel     최초 작성
+ *******************************************************************************
+ -->
+
+	<div id="main">
+		<!-- 메인타이틀 영역 -->
+		<div class="main-title">
+		</div>
+		<!-- //메인타이틀 영역 -->
+
+		<!-- 검색조건 영역 -->
+		<div class="panelStyle2">
+			<table class="frmStyle" aria-describedby="검색조건">
+				<colgroup>
+					<col style="width:10%;"/>
+				</colgroup>
+				<tbody>
+					<tr>
+						<th>사이트</th>
+						<td>
+							<select name="siteCd" class="w150" onchange="fnSearch();">
+								<option th:if="${siteList}" th:each="oneData, status : ${siteList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
+							</select>
+						</td>
+					</tr>
+				</tbody>
+			</table>
+			<div class="panelBtnB"></div>
+		</div>
+		<!-- //검색조건 영역 -->
+		<!-- 테이블 영역 -->
+		<div class="panelStyle2">
+			<h4>쇼핑몰Meta정보</h4>
+			<button type="button" class="btn btn-success btn-ssm" onclick="fnSave('B10');">저장</button>
+			<button type="button" class="btn btn-info btn-ssm" onclick="fnOpenEnvsetPopup('B10', '쇼핑몰Meta정보');">이력보기</button>
+			<table class="frmStyle" aria-describedby="쇼핑몰Meta정보">
+				<colgroup>
+					<col style="width: 15%;"/>
+					<col style="width: 85%;"/>
+				</colgroup>
+				<tbody>
+					<tr>
+						<th>웹브라우저Title</th>
+						<td>
+							<input name="b10StrSetVal1" type="text" class="w500" maxlength="200"/>
+							<span class="infoTxt cBlue marL20"><i class="fa fa-info-circle" aria-hidden="true"></i>웹 브라우저 상단에 노출되는 사이트 소개 문구입니다.</span>
+						</td>
+					</tr>
+					<tr>
+						<th>쇼핑몰Title(og:title)</th>
+						<td>
+							<input name="b10StrSetVal2" type="text" class="w500" maxlength="200"/>
+							<span class="infoTxt cBlue marL20"><i class="fa fa-info-circle" aria-hidden="true"></i>오픈그래프 Title입니다. 영문/한글/숫자만 입력하세요.</span>
+						</td>
+					</tr>
+					<tr>
+						<th>쇼핑몰설명(og:description)</th>
+						<td>
+							<input name="b10StrSetVal3" type="text" class="w500" maxlength="200"/>
+							<span class="infoTxt cBlue marL20"><i class="fa fa-info-circle" aria-hidden="true"></i>오픈그래프 Description입니다. 200자 이내의 영문/한글/숫자만 입력하세요.</span>
+						</td>
+					</tr>
+					<tr>
+						<th>쇼핑몰이미지(og:image)</th>
+						<td>
+							<div class="uFile w500">
+								<input type="file" id="b10StrSetVal4" name="b10StrSetVal4" class="uFileInput"/>
+								<label for="b10StrSetVal4" class="uFileLabel">쇼핑몰이미지 선택</label>
+								<input type="hidden" name="b10StrSetVal4OrgFileNm"/>
+								<input type="hidden" name="b10StrSetVal4SysFileNm"/>
+							</div>
+							<a id="b10StrSetVal4FileDownload" href="#" style="display: none;" onclick="fnDownloadFile('b10StrSetVal4');"></a>
+							<span class="infoTxt cBlue marL20"><i class="fa fa-info-circle" aria-hidden="true"></i>오픈그래프 Image입니다</span>
+						</td>
+					</tr>
+					<tr>
+						<th>키워드(Keywords)</th>
+						<td>
+							<input name="b10StrSetVal5" type="text" class="w500" maxlength="70"/>
+							<span class="infoTxt cBlue marL20"><i class="fa fa-info-circle" aria-hidden="true"></i>70자 이내로 작성하시고 같은 단어는 3회 이상 반복하시면 안 됩니다.</span>
+						</td>
+					</tr>
+					<tr>
+						<th>파비콘이미지</th>
+						<td>
+							<div class="uFile w500">
+								<input type="file" id="b10StrSetVal6" name="b10StrSetVal6" class="uFileInput"/>
+								<label for="b10StrSetVal6" class="uFileLabel">파비콘이미지 선택</label>
+								<input type="hidden" name="b10StrSetVal6OrgFileNm"/>
+								<input type="hidden" name="b10StrSetVal6SysFileNm"/>
+							</div>
+							<a id="b10StrSetVal6FileDownload" href="#" style="display: none;" onclick="fnDownloadFile('b10StrSetVal6');"></a>
+							<span class="infoTxt cBlue marL20"><i class="fa fa-info-circle" aria-hidden="true"></i>16x16 사이즈의 아이콘 이미지(확장자:ico)</span>
+						</td>
+					</tr>
+				</tbody>
+			</table>
+
+			<h4>기본설정</h4>
+			<button type="button" class="btn btn-success btn-ssm" onclick="fnSave('B11');">저장</button>
+			<button type="button" class="btn btn-info btn-ssm" onclick="fnOpenEnvsetPopup('B11', '기본설정');">이력보기</button>
+			<table class="frmStyle" aria-describedby="기본설정">
+				<colgroup>
+					<col style="width: 15%;"/>
+					<col style="width: 85%;"/>
+				</colgroup>
+				<tbody>
+					<tr>
+						<th>탈퇴후재가입불가기간(월)</th>
+						<td><input name="b11NumSetVal1" type="text" class="w50 aR" maxlength="2" data-valid-type="integer" data-valid-name="탈퇴후재가입불가기간"/><span class="cRed">개월</span> 동안 탈퇴 후 재가입 불가합니다.</td>
+					</tr>
+					<tr>
+						<th>휴면회원선정기간(일)</th>
+						<td><input name="b11NumSetVal2" type="text" class="w50 aR" maxlength="3" data-valid-type="integer" data-valid-name="휴면회원선정기간"/><span class="cRed">일</span> 동안 사이트에 로그인 하지 않은 회원을 휴면회원으로 선정합니다.</td>
+					</tr>
+					<tr>
+						<th>휴면회원전환기간(일)</th>
+						<td><input name="b11NumSetVal3" type="text" class="w50 aR" maxlength="3" data-valid-type="integer" data-valid-name="휴면회원전환기간"/><span class="cRed">일</span> 동안 사이트에 로그인 하지 않은 회원을 휴면회원으로 전환합니다.</td>
+					</tr>
+					<tr>
+						<th>회원등급산정기간</th>
+						<td>직전월 이전 <input name="b11NumSetVal4" type="text" class="w50 aR" maxlength="3" data-valid-type="integer" data-valid-name="회원등급산정기간"/><span class="cRed">개월</span> 기간동안의 매출금액을 기준으로 월초에 산정합니다. <span class="infoTxt cBlue marL20"><i class="fa fa-info-circle" aria-hidden="true"></i>0으로 설정하면 회원별등급산정을 하지 않습니다.</span></td>
+					</tr>
+					<tr>
+						<th>무료배송비최소주문금액</th>
+						<td>최소주문금액이 <input name="b11NumSetVal5" type="text" class="w100 aR" maxlength="6" data-valid-type="integer" data-valid-name="무료배송비최소주문금액"/> 이상이면 배송비가 무료입니다. <span class="infoTxt cBlue marL20"><i class="fa fa-info-circle" aria-hidden="true"></i>이 값은 기본값이며 공급업체별로 다르게 설정할 수도 있습니다.</span></td>
+					</tr>
+				</tbody>
+			</table>
+
+			<h4>회원혜택안내(PC)</h4>
+			<button type="button" class="btn btn-success btn-ssm" onclick="fnSave('B12');">저장</button>
+			<button type="button" class="btn btn-info btn-ssm" onclick="fnOpenEnvsetPopup('B12', '회원혜택안내');">이력보기</button>
+			<table class="frmStyle" aria-describedby="회원혜택안내(PC)">
+				<colgroup>
+					<col style="width: 15%;"/>
+					<col style="width: 85%;"/>
+				</colgroup>
+				<tbody>
+					<tr>
+						<th>가입혜택안내배너(A)</th>
+						<td>
+							<div class="uFile w500">
+								<input type="file" id="b12StrSetVal1" name="b12StrSetVal1" class="uFileInput"/>
+								<label for="b12StrSetVal1" class="uFileLabel">가입혜택안내배너 선택</label>
+								<input type="hidden" name="b12StrSetVal1OrgFileNm"/>
+								<input type="hidden" name="b12StrSetVal1SysFileNm"/>
+							</div>
+							<a id="b12StrSetVal1FileDownload" href="#" style="display: none;" onclick="fnDownloadFile('b12StrSetVal1');"></a>
+						</td>
+					</tr>
+					<tr>
+						<th>가입혜택안내배너(B)</th>
+						<td>
+							<div class="uFile w500">
+								<input type="file" id="b12StrSetVal2" name="b12StrSetVal2" class="uFileInput"/>
+								<label for="b12StrSetVal2" class="uFileLabel">가입혜택안내배너 선택</label>
+								<input type="hidden" name="b12StrSetVal2OrgFileNm"/>
+								<input type="hidden" name="b12StrSetVal2SysFileNm"/>
+							</div>
+							<a id="b12StrSetVal2FileDownload" href="#" style="display: none;" onclick="fnDownloadFile('b12StrSetVal2');"></a>
+						</td>
+					</tr>
+					<tr>
+						<th>회원혜택안내배너</th>
+						<td>
+							<div class="uFile w500">
+								<input type="file" id="b12StrSetVal3" name="b12StrSetVal3" class="uFileInput"/>
+								<label for="b12StrSetVal3" class="uFileLabel">회원혜택안내배너 선택</label>
+								<input type="hidden" name="b12StrSetVal3OrgFileNm"/>
+								<input type="hidden" name="b12StrSetVal3SysFileNm"/>
+							</div>
+							<a id="b12StrSetVal3FileDownload" href="#" style="display: none;" onclick="fnDownloadFile('b12StrSetVal3');"></a>
+						</td>
+					</tr>
+					<tr>
+						<th>상품평혜택안내배너(상품상세)</th>
+						<td>
+							<div class="uFile w500">
+								<input type="file" id="b12StrSetVal4" name="b12StrSetVal4" class="uFileInput"/>
+								<label for="b12StrSetVal4" class="uFileLabel">상품평혜택안내배너 선택(상품상세페이지)</label>
+								<input type="hidden" name="b12StrSetVal4OrgFileNm"/>
+								<input type="hidden" name="b12StrSetVal4SysFileNm"/>
+							</div>
+							<a id="b12StrSetVal4FileDownload" href="#" style="display: none;" onclick="fnDownloadFile('b12StrSetVal4');"></a>
+						</td>
+					</tr>
+					<tr>
+						<th>상품평혜택안내배너(마이페이지)</th>
+						<td>
+							<div class="uFile w500">
+								<input type="file" id="b12StrSetVal5" name="b12StrSetVal5" class="uFileInput"/>
+								<label for="b12StrSetVal5" class="uFileLabel">상품평혜택안내배너 선택(마이페이지)</label>
+								<input type="hidden" name="b12StrSetVal5OrgFileNm"/>
+								<input type="hidden" name="b12StrSetVal5SysFileNm"/>
+							</div>
+							<a id="b12StrSetVal5FileDownload" href="#" style="display: none;" onclick="fnDownloadFile('b12StrSetVal5');"></a>
+						</td>
+					</tr>
+				</tbody>
+			</table>
+			<h4>회원혜택안내(MOBILE)</h4>
+			<button type="button" class="btn btn-success btn-ssm" onclick="fnSave('B16');">저장</button>
+			<button type="button" class="btn btn-info btn-ssm" onclick="fnOpenEnvsetPopup('B16', '회원혜택안내');">이력보기</button>
+			<table class="frmStyle" aria-describedby="회원혜택안내(MOBILE)">
+				<colgroup>
+					<col style="width: 15%;"/>
+					<col style="width: 85%;"/>
+				</colgroup>
+				<tbody>
+					<tr>
+						<th>가입혜택안내배너(A)</th>
+						<td>
+							<div class="uFile w500">
+								<input type="file" id="b16StrSetVal1" name="b16StrSetVal1" class="uFileInput"/>
+								<label for="b16StrSetVal1" class="uFileLabel">가입혜택안내배너 선택</label>
+								<input type="hidden" name="b16StrSetVal1OrgFileNm"/>
+								<input type="hidden" name="b16StrSetVal1SysFileNm"/>
+							</div>
+							<a id="b16StrSetVal1FileDownload" href="#" style="display: none;" onclick="fnDownloadFile('b16StrSetVal1');"></a>
+						</td>
+					</tr>
+					<tr>
+						<th>가입혜택안내배너(B)</th>
+						<td>
+							<div class="uFile w500">
+								<input type="file" id="b16StrSetVal2" name="b16StrSetVal2" class="uFileInput"/>
+								<label for="b16StrSetVal2" class="uFileLabel">가입혜택안내배너 선택</label>
+								<input type="hidden" name="b16StrSetVal2OrgFileNm"/>
+								<input type="hidden" name="b16StrSetVal2SysFileNm"/>
+							</div>
+							<a id="b16StrSetVal2FileDownload" href="#" style="display: none;" onclick="fnDownloadFile('b16StrSetVal2');"></a>
+						</td>
+					</tr>
+					<tr>
+						<th>회원혜택안내배너</th>
+						<td>
+							<div class="uFile w500">
+								<input type="file" id="b16StrSetVal3" name="b16StrSetVal3" class="uFileInput"/>
+								<label for="b16StrSetVal3" class="uFileLabel">회원혜택안내배너 선택</label>
+								<input type="hidden" name="b16StrSetVal3OrgFileNm"/>
+								<input type="hidden" name="b16StrSetVal3SysFileNm"/>
+							</div>
+							<a id="b16StrSetVal3FileDownload" href="#" style="display: none;" onclick="fnDownloadFile('b16StrSetVal3');"></a>
+						</td>
+					</tr>
+					<tr>
+						<th>상품평혜택안내배너</th>
+						<td>
+							<div class="uFile w500">
+								<input type="file" id="b16StrSetVal4" name="b16StrSetVal4" class="uFileInput"/>
+								<label for="b16StrSetVal4" class="uFileLabel">상품평혜택안내배너 선택(상품상세, 마이페이지)</label>
+								<input type="hidden" name="b16StrSetVal4OrgFileNm"/>
+								<input type="hidden" name="b16StrSetVal4SysFileNm"/>
+							</div>
+							<a id="b16StrSetVal4FileDownload" href="#" style="display: none;" onclick="fnDownloadFile('b16StrSetVal4');"></a>
+						</td>
+					</tr>
+				</tbody>
+			</table>
+
+			<h4>상품노출</h4>
+			<button type="button" class="btn btn-success btn-ssm" onclick="fnSave('B13');">저장</button>
+			<button type="button" class="btn btn-info btn-ssm" onclick="fnOpenEnvsetPopup('B13', '상품노출');">이력보기</button>
+			<table class="frmStyle" aria-describedby="상품노출">
+				<colgroup>
+					<col style="width: 15%;"/>
+					<col style="width: 85%;"/>
+				</colgroup>
+				<tbody>
+					<tr>
+						<th>상품평노출여부</th>
+						<td>
+							<label class="rdoBox"><input type="radio" name="b13StrSetVal1" value="Y" checked="checked"/>노출</label>
+							<label class="rdoBox"><input type="radio" name="b13StrSetVal1" value="N">미노출</label>
+							<span class="infoTxt cBlue"><i class="fa fa-info-circle" aria-hidden="true"></i>미노출로 설정 시 상품상세의 상품평 영역이 노출되지 않습니다.</span>
+						</td>
+					</tr>
+					<tr>
+						<th>품절상품노출여부</th>
+						<td>
+							<label class="rdoBox"><input type="radio" name="b13StrSetVal2" value="Y"/>노출</label>
+							<label class="rdoBox"><input type="radio" name="b13StrSetVal2" value="N" checked="checked">미노출</label>
+							<span class="infoTxt cBlue"><i class="fa fa-info-circle" aria-hidden="true"></i>품절된 상품을 사이트에 노출할지 말지를 설정합니다.</span>
+						</td>
+					</tr>
+					<tr>
+						<th>특가세일노출기준</th>
+						<td>
+							상품 썸네일 리스트의 가격은 할인율이 <input name="b13NumSetVal1" type="text" class="w20 aR" maxlength="3" data-valid-type="integer" data-valid-name=""/><span class="cRed">%</span> 이상일 경우 TAG가와 할인율 대신 <span class="infoTxt cBlue">'특가세일'</span>로 표기됩니다.
+						</td>
+					</tr>
+				</tbody>
+			</table>
+
+			<h4>상품보관</h4>
+			<button type="button" class="btn btn-success btn-ssm" onclick="fnSave('B17');">저장</button>
+			<button type="button" class="btn btn-info btn-ssm" onclick="fnOpenEnvsetPopup('B17', '상품보관');">이력보기</button>
+			<table class="frmStyle" aria-describedby="상품보관">
+				<colgroup>
+					<col style="width: 15%;"/>
+					<col style="width: 85%;"/>
+				</colgroup>
+				<tbody>
+					<tr>
+						<th>장바구니보관기간(일)</th>
+						<td>
+							장바구니 보관기간은 <input name="b17NumSetVal1" type="text" class="w20 aR" maxlength="3" data-valid-type="integer" data-valid-name="장바구니보관기간"/><span class="cRed">일</span> 입니다. 보관기간 경과 시 자동 삭제됩니다.
+							<span class="infoTxt cBlue"><i class="fa fa-info-circle marL20" aria-hidden="true"></i>0으로 설정하면 자동으로 삭제 처리를 하지 않습니다.</span>
+						</td>
+					</tr>
+					<tr>
+						<th>위시리스트보관기간(일)</th>
+						<td>
+							위시리스트 보관기간은 <input name="b17NumSetVal2" type="text" class="w20 aR" maxlength="3" data-valid-type="integer" data-valid-name="위시리스트보관기간"/><span class="cRed">일</span> 입니다. 보관기간 경과 시 자동 삭제됩니다.
+							<span class="infoTxt cBlue marL20"><i class="fa fa-info-circle" aria-hidden="true"></i>0으로 설정하면 자동으로 삭제 처리를 하지 않습니다.</span>
+						</td>
+					</tr>
+				</tbody>
+			</table>
+
+			<h4>품절안내</h4>
+			<button type="button" class="btn btn-success btn-ssm" onclick="fnSave('B14');">저장</button>
+			<button type="button" class="btn btn-info btn-ssm" onclick="fnOpenEnvsetPopup('B14', '품절안내');">이력보기</button>
+			<table class="frmStyle" aria-describedby="품절안내">
+				<colgroup>
+					<col style="width: 15%;"/>
+					<col style="width: 85%;"/>
+				</colgroup>
+				<tbody>
+					<tr>
+						<th>품절안내방법</th>
+						<td>
+							<label class="rdoBox"><input type="radio" name="b14StrSetVal1" value="A" checked="checked"/>발송</label>
+							<label class="rdoBox"><input type="radio" name="b14StrSetVal1" value="M">미발송</label>
+							<p>결제완료 후 <input name="b14NumSetVal1" type="text" class="w20 aR" maxlength="3" data-valid-type="integer" data-valid-name="품절안내메시지발송기간"/><span class="cRed">일</span> 동안 출고되지 않으면 품절안내 메시지를 발송합니다.</p>
+						</td>
+					</tr>
+				</tbody>
+			</table>
+
+			<h4>배송/구매확정</h4>
+			<button type="button" class="btn btn-success btn-ssm" onclick="fnSave('B15');">저장</button>
+			<button type="button" class="btn btn-info btn-ssm" onclick="fnOpenEnvsetPopup('B15', '배송/구매확정');">이력보기</button>
+			<table class="frmStyle" aria-describedby="배송/구매확정">
+				<colgroup>
+					<col style="width: 15%;"/>
+					<col style="width: 85%;"/>
+				</colgroup>
+				<tbody>
+					<tr>
+						<th>배송완료처리기간(일)</th>
+						<td>
+							주문상세상태가 배송중 이후 <input name="b15NumSetVal1" type="text" class="w20 aR" maxlength="3" data-valid-type="integer" data-valid-name="배송완료처리기간"/><span class="cRed">일</span> 경과한 기간동안 배송완료로 처리하지 않으면 자동으로 배송완료로 처리합니다.
+							<span class="infoTxt cBlue"><i class="fa fa-info-circle marL20" aria-hidden="true"></i>0으로 설정하면 자동으로 배송완료 처리를 하지 않습니다.</span>
+						</td>
+					</tr>
+					<tr>
+						<th>구매확정처리기간(일)</th>
+						<td>
+							주문상세상태가 배송완료 후 <input name="b15NumSetVal2" type="text" class="w20 aR" maxlength="3" data-valid-type="integer" data-valid-name="구매확정처리기간"/><span class="cRed">일</span> 경과한 기간동안 구매확정으로 처리를 하지 않으면 자동으로 구매확정으로 처리합니다.
+							<span class="infoTxt cBlue marL20"><i class="fa fa-info-circle" aria-hidden="true"></i>0으로 설정하면 자동으로 구매확정 처리를 하지 않습니다.</span>
+						</td>
+					</tr>
+					<tr>
+						<th>반품가능기간(일)</th>
+						<td>
+							주문상세상태가 배송완료 후 <input name="b15NumSetVal3" type="text" class="w20 aR" maxlength="3" data-valid-type="integer" data-valid-name="반품가능기간"/> <span class="cRed">일</span> 동안 반품요청할 수 있습니다.
+							<span class="infoTxt cBlue marL20"><i class="fa fa-info-circle" aria-hidden="true"></i>0으로 설정하면 언제든 반품요청을 할 수 있습니다.</span>
+						</td>
+					</tr>
+				</tbody>
+			</table>
+
+			<h4>모바일앱</h4>
+			<button type="button" class="btn btn-success btn-ssm" onclick="fnSave('M10');">저장</button>
+			<button type="button" class="btn btn-info btn-ssm" onclick="fnOpenEnvsetPopup('M10', '모바일앱');">이력보기</button>
+			<table class="frmStyle" aria-describedby="모바일앱">
+				<colgroup>
+					<col style="width: 15%;"/>
+					<col style="width: 85%;"/>
+				</colgroup>
+				<tbody>
+					<tr>
+						<th>AOS앱버전</th>
+						<td>
+							<input name="m10StrSetVal1" type="text" class="w100" maxlength="20" data-valid-name="AOS앱버전"/>
+						</td>
+					</tr>
+					<tr>
+						<th>IOS앱버전</th>
+						<td>
+							<input name="m10StrSetVal2" type="text" class="w100" maxlength="20" data-valid-name="IOS앱버전"/>
+						</td>
+					</tr>
+					<tr>
+						<th>스플래시이미지</th>
+						<td>
+							<div class="uFile w500">
+								<input type="file" id="m10StrSetVal3" name="m10StrSetVal3" class="uFileInput"/>
+								<label for="m10StrSetVal3" class="uFileLabel">스플래시 이미지 선택</label>
+								<input type="hidden" name="m10StrSetVal3OrgFileNm"/>
+								<input type="hidden" name="m10StrSetVal3SysFileNm"/>
+							</div>
+							<a id="m10StrSetVal3FileDownload" href="#" style="display: none;" onclick="fnDownloadFile('m10StrSetVal3');"></a>
+							<span class="infoTxt cBlue marL20"><i class="fa fa-info-circle" aria-hidden="true"></i>스플래시 이미지입니다</span>
+						</td>
+					</tr>
+				</tbody>
+			</table>
+			<div class="panelBtnB"></div>
+		</div>
+	</div>
+
+<script th:inline="javascript">
+/*<![CDATA[*/
+	// 조회
+	var fnSearch = function() {
+		var siteCd = $('select[name=siteCd]').val();
+		var actionUrl = '/system/envset/' + siteCd;
+
+		// 쇼핑몰Meta정보
+		$.getJSON(actionUrl + '/B10'
+				, function(result, status) {
+					if (status === 'success') {
+						if (!gagajf.isNull(result)) {
+							$('input[name=b10StrSetVal1]').val(result.strSetVal1);
+							$('input[name=b10StrSetVal2]').val(result.strSetVal2);
+							$('input[name=b10StrSetVal3]').val(result.strSetVal3);
+							
+							if (!gagajf.isNull(result.strSetVal4)) {
+								$('input[name=b10StrSetVal4SysFileNm]').val(result.strSetVal4);
+								$('#b10StrSetVal4FileDownload').html(result.strSetVal4);
+								$('#b10StrSetVal4FileDownload').show();
+							}
+							
+							$('input[name=b10StrSetVal5]').val(result.strSetVal5);
+							
+							if (!gagajf.isNull(result.strSetVal6)) {
+								$('input[name=b10StrSetVal6SysFileNm]').val(result.strSetVal6);
+								$('#b10StrSetVal6FileDownload').html(result.strSetVal6);
+								$('#b10StrSetVal6FileDownload').show();
+							}
+						}
+					}
+				});
+
+		// 기본설정
+		$.getJSON(actionUrl + '/B11'
+				, function(result, status) {
+					if (status === 'success') {
+						if (!gagajf.isNull(result)) {
+							$('input[name=b11NumSetVal1]').val(result.numSetVal1);
+							$('input[name=b11NumSetVal2]').val(result.numSetVal2);
+							$('input[name=b11NumSetVal3]').val(result.numSetVal3);
+							$('input[name=b11NumSetVal4]').val(result.numSetVal4);
+							$('input[name=b11NumSetVal5]').val(result.numSetVal5.addComma());
+						}
+					}
+				});
+
+		// 회원혜택안내
+		$.getJSON(actionUrl + '/B12'
+				, function(result, status) {
+					if (status === 'success') {
+						if (!gagajf.isNull(result.strSetVal1)) {
+							$('input[name=b12StrSetVal1SysFileNm]').val(result.strSetVal1);
+							$('#b12StrSetVal1FileDownload').html(result.strSetVal1);
+							$('#b12StrSetVal1FileDownload').show();
+						}
+
+						if (!gagajf.isNull(result.strSetVal2)) {
+							$('input[name=b12StrSetVal2SysFileNm]').val(result.strSetVal2);
+							$('#b12StrSetVal2FileDownload').html(result.strSetVal2);
+							$('#b12StrSetVal2FileDownload').show();
+						}
+
+						if (!gagajf.isNull(result.strSetVal3)) {
+							$('input[name=b12StrSetVal3SysFileNm]').val(result.strSetVal3);
+							$('#b12StrSetVal3FileDownload').html(result.strSetVal3);
+							$('#b12StrSetVal3FileDownload').show();
+						}
+
+						if (!gagajf.isNull(result.strSetVal4)) {
+							$('input[name=b12StrSetVal4SysFileNm]').val(result.strSetVal4);
+							$('#b12StrSetVal4FileDownload').html(result.strSetVal4);
+							$('#b12StrSetVal4FileDownload').show();
+						}
+
+						if (!gagajf.isNull(result.strSetVal5)) {
+							$('input[name=b12StrSetVal5SysFileNm]').val(result.strSetVal5);
+							$('#b12StrSetVal5FileDownload').html(result.strSetVal5);
+							$('#b12StrSetVal5FileDownload').show();
+						}
+					}
+				});
+
+		// 상품노출
+		$.getJSON(actionUrl + '/B13'
+				, function(result, status) {
+					if (status === 'success') {
+						if (!gagajf.isNull(result)) {
+							$("input:radio[name=b13StrSetVal1]").parents('td').find('label').removeClass('checked');
+							if (result.strSetVal1 == 'Y') {
+								$("input:radio[name=b13StrSetVal1]").eq(0).prop('checked', true);
+								$("input:radio[name=b13StrSetVal1]").eq(0).parent().addClass('checked');
+							} else {
+								$("input:radio[name=b13StrSetVal1]").eq(1).prop('checked', true);
+								$("input:radio[name=b13StrSetVal1]").eq(1).parent().addClass('checked');
+							}
+
+							$("input:radio[name=b13StrSetVal2]").parents('td').find('label').removeClass('checked');
+							if (result.strSetVal2 == 'Y') {
+								$("input:radio[name=b13StrSetVal2]").eq(0).prop('checked', true);
+								$("input:radio[name=b13StrSetVal2]").eq(0).parent().addClass('checked');
+							} else {
+								$("input:radio[name=b13StrSetVal2]").eq(1).prop('checked', true);
+								$("input:radio[name=b13StrSetVal2]").eq(1).parent().addClass('checked');
+							}
+							
+							$('input[name=b13NumSetVal1]').val(result.numSetVal1);
+						}
+					}
+				});
+
+		// 상품보관
+		$.getJSON(actionUrl + '/B17'
+				, function(result, status) {
+					if (status === 'success') {
+						if (!gagajf.isNull(result)) {
+							$('input[name=b17NumSetVal1]').val(result.numSetVal1);
+							$('input[name=b17NumSetVal2]').val(result.numSetVal2);
+						}
+					}
+				});
+
+		// 품절안내
+		$.getJSON(actionUrl + '/B14'
+				, function(result, status) {
+					if (status === 'success') {
+						if (!gagajf.isNull(result)) {
+							$("input:radio[name=b14StrSetVal1]").parents('td').find('label').removeClass('checked');
+							if (result.strSetVal1 == 'A') {
+								$("input:radio[name=b14StrSetVal1]").eq(0).prop('checked', true);
+								$("input:radio[name=b14StrSetVal1]").eq(0).parent().addClass('checked');
+							} else if (result.strSetVal1 == 'M') {
+								$("input:radio[name=b14StrSetVal1]").eq(1).prop('checked', true);
+								$("input:radio[name=b14StrSetVal1]").eq(1).parent().addClass('checked');
+							}
+
+							$('input[name=b14NumSetVal1]').val(result.numSetVal1);
+						}
+					}
+				});
+
+		// 배송/구매확정
+		$.getJSON(actionUrl + '/B15'
+				, function(result, status) {
+					if (status === 'success') {
+						if (!gagajf.isNull(result)) {
+							$('input[name=b15NumSetVal1]').val(result.numSetVal1);
+							$('input[name=b15NumSetVal2]').val(result.numSetVal2);
+							$('input[name=b15NumSetVal3]').val(result.numSetVal3);
+						}
+					}
+				});
+
+		// 회원혜택안내(MOBILE)
+		$.getJSON(actionUrl + '/B16'
+				, function(result, status) {
+					if (status === 'success') {
+						if (!gagajf.isNull(result.strSetVal1)) {
+							$('input[name=b16StrSetVal1SysFileNm]').val(result.strSetVal1);
+							$('#b16StrSetVal1FileDownload').html(result.strSetVal1);
+							$('#b16StrSetVal1FileDownload').show();
+						}
+
+						if (!gagajf.isNull(result.strSetVal2)) {
+							$('input[name=b16StrSetVal2SysFileNm]').val(result.strSetVal2);
+							$('#b16StrSetVal2FileDownload').html(result.strSetVal2);
+							$('#b16StrSetVal2FileDownload').show();
+						}
+
+						if (!gagajf.isNull(result.strSetVal3)) {
+							$('input[name=b16StrSetVal3SysFileNm]').val(result.strSetVal3);
+							$('#b16StrSetVal3FileDownload').html(result.strSetVal3);
+							$('#b16StrSetVal3FileDownload').show();
+						}
+
+						if (!gagajf.isNull(result.strSetVal4)) {
+							$('input[name=b16StrSetVal4SysFileNm]').val(result.strSetVal4);
+							$('#b16StrSetVal4FileDownload').html(result.strSetVal4);
+							$('#b16StrSetVal4FileDownload').show();
+						}
+					}
+				});
+
+		// 모바일앱
+		$.getJSON(actionUrl + '/M10'
+				, function(result, status) {
+					if (status === 'success') {
+						if (!gagajf.isNull(result)) {
+							$('input[name=m10StrSetVal1]').val(result.strSetVal1);
+							$('input[name=m10StrSetVal2]').val(result.strSetVal2);
+						}
+						
+						if (!gagajf.isNull(result.strSetVal3)) {
+							$('input[name=m10StrSetVal3SysFileNm]').val(result.strSetVal3);
+							$('#m10StrSetVal3FileDownload').html(result.strSetVal3);
+							$('#m10StrSetVal3FileDownload').show();
+						}
+					}
+				});
+	}
+
+	// 파일첨부 선택 시
+	$('#b10StrSetVal4').on('change', function() { fnChooseFile(this); });
+	$('#b10StrSetVal6').on('change', function() { fnChooseFile(this); });
+	$('#b12StrSetVal1').on('change', function() { fnChooseFile(this); });
+	$('#b12StrSetVal2').on('change', function() { fnChooseFile(this); });
+	$('#b12StrSetVal3').on('change', function() { fnChooseFile(this); });
+	$('#b12StrSetVal4').on('change', function() { fnChooseFile(this); });
+	$('#b12StrSetVal5').on('change', function() { fnChooseFile(this); });
+	$('#b16StrSetVal1').on('change', function() { fnChooseFile(this); });
+	$('#b16StrSetVal2').on('change', function() { fnChooseFile(this); });
+	$('#b16StrSetVal3').on('change', function() { fnChooseFile(this); });
+	$('#b16StrSetVal4').on('change', function() { fnChooseFile(this); });
+	$('#m10StrSetVal3').on('change', function() { fnChooseFile(this); });
+
+	var fnChooseFile = function(obj) {
+		// multiple 속성이 있으면 files에는 다수의 객체가 할당됨
+		var file = obj.files[0];
+
+		// 파일 업로드
+		gagajf.ajaxFileUpload('/common/file/upload?subDir=/envset'
+				, file
+				, function(result) {
+					// 업로드한 파일명 설정
+					$('input[name=' + obj.name + 'OrgFileNm]').val(result.oldFileName);
+					$('input[name=' + obj.name + 'SysFileNm]').val(result.newFileName);
+				}
+		);
+	}
+
+	// 파일다운로드
+	var fnDownloadFile = function(id) {
+		$('#' + id + 'FileDownload').attr({
+			href : _uploadDefaultUrl + '/envset/' + $('input[name=' + id + 'SysFileNm]').val(),
+			target: '_blank'
+		}).get(0).click();
+	}
+
+	// 저장 처리
+	var fnSave = function(envsetType) {
+		var params = new Object();
+		params.siteCd = $('select[name=siteCd]').val();
+		params.envsetType = envsetType;
+
+		if (envsetType == 'B10') { // 쇼핑몰Meta정보
+			params.strSetVal1 = $('input[name=b10StrSetVal1]').val();
+			params.strSetVal2 = $('input[name=b10StrSetVal2]').val();
+			params.strSetVal3 = $('input[name=b10StrSetVal3]').val();
+			params.strSetVal4 = $('input[name=b10StrSetVal4SysFileNm]').val();
+			params.strSetVal5 = $('input[name=b10StrSetVal5]').val();
+			params.strSetVal6 = $('input[name=b10StrSetVal6SysFileNm]').val();
+		} else if (envsetType == 'B11') { // 기본설정
+			params.numSetVal1 = $('input[name=b11NumSetVal1]').val();
+			params.numSetVal2 = $('input[name=b11NumSetVal2]').val();
+			params.numSetVal3 = $('input[name=b11NumSetVal3]').val();
+			params.numSetVal4 = $('input[name=b11NumSetVal4]').val();
+			params.numSetVal5 = $('input[name=b11NumSetVal5]').val().removeComma();
+		} else if (envsetType == 'B12') { // 회원혜택안내
+			params.strSetVal1 = $('input[name=b12StrSetVal1SysFileNm]').val();
+			params.strSetVal2 = $('input[name=b12StrSetVal2SysFileNm]').val();
+			params.strSetVal3 = $('input[name=b12StrSetVal3SysFileNm]').val();
+			params.strSetVal4 = $('input[name=b12StrSetVal4SysFileNm]').val();
+			params.strSetVal5 = $('input[name=b12StrSetVal5SysFileNm]').val();
+		} else if (envsetType == 'B13') { // 상품노출
+			params.strSetVal1 = $('input:radio[name=b13StrSetVal1]:checked').val();
+			params.strSetVal2 = $('input:radio[name=b13StrSetVal2]:checked').val();
+			params.numSetVal1 = $('input[name=b13NumSetVal1]').val();
+		} else if (envsetType == 'B17') { // 상품보관
+			params.numSetVal1 = $('input[name=b17NumSetVal1]').val();
+			params.numSetVal2 = $('input[name=b17NumSetVal2]').val();
+		} else if (envsetType == 'B14') { // 품절안내
+			params.strSetVal1 = $('input:radio[name=b14StrSetVal1]:checked').val();
+			params.numSetVal1 = $('input[name=b14NumSetVal1]').val();
+		} else if (envsetType == 'B15') { // 배송/구매확정
+			params.numSetVal1 = $('input[name=b15NumSetVal1]').val();
+			params.numSetVal2 = $('input[name=b15NumSetVal2]').val();
+			params.numSetVal3 = $('input[name=b15NumSetVal3]').val();
+		} else if (envsetType == 'B16') { // 회원혜택안내(MOBILE)
+			params.strSetVal1 = $('input[name=b16StrSetVal1SysFileNm]').val();
+			params.strSetVal2 = $('input[name=b16StrSetVal2SysFileNm]').val();
+			params.strSetVal3 = $('input[name=b16StrSetVal3SysFileNm]').val();
+			params.strSetVal4 = $('input[name=b16StrSetVal4SysFileNm]').val();
+		} else if (envsetType == 'M10') { // 모바일앱
+			params.strSetVal1 = $('input[name=m10StrSetVal1]').val();
+			params.strSetVal2 = $('input[name=m10StrSetVal2]').val();
+			params.strSetVal3 = $('input[name=m10StrSetVal3SysFileNm]').val();
+		}
+
+		var jsonData = JSON.stringify(params);
+		gagajf.ajaxJsonSubmit('/system/envset/create', jsonData);
+	}
+
+	// 환경설정 이력보기 팝업
+	var fnOpenEnvsetPopup = function(envsetType, envsetTypeNm) {
+		var actionUrl = '/system/envset/history/form'
+				+ '?siteCd=' + $('select[name=siteCd]').val()
+				+ '&envsetType=' + envsetType
+				+ '&envsetTypeNm=' + encodeURIComponent(envsetTypeNm);
+		cfnOpenModalPopup(actionUrl, 'popupEnvset');
+	}
+
+	$(document).ready(function() {
+		fnSearch();
+		uifnFitGrid();
+	});
+/*]]>*/
+</script>
+</html>

+ 141 - 0
style24.scm/src/main/webapp/WEB-INF/views/system/BizdayForm.html

@@ -0,0 +1,141 @@
+<!DOCTYPE html>
+<html lang="ko"
+	xmlns:th="http://www.thymeleaf.org">
+<!--
+ *******************************************************************************
+ * @source  : BizdayForm.html
+ * @desc    : 영업일관리 Page
+ *============================================================================
+ * SISUN
+ * Copyright(C) 2019 TSIT, All rights reserved.
+ *============================================================================
+ * VER  DATE         AUTHOR      DESCRIPTION
+ * ===  ===========  ==========  =============================================
+ * 1.0  2019.12.13   jaewonHo   최초 작성
+ *******************************************************************************
+ -->
+ <form id="calendarForm" name="calendarForm">
+ 	<input type="hidden" name="startDt" id="startDt"/>
+	<input type="hidden" name="endDt" id="endDt"/>
+	<input type="hidden" name="bizday" id="bizDay"/>
+	<div id="main-wrapper">
+		<div id="main">
+			<div class="main-title"></div>
+			<div class="panelStyle2">
+				<ul class="notice">
+					<li><strong class="cBlue">영업일 : </strong>휴일을 Click 하시면 영업일로 변경 가능 합니다.</li>
+					<li><strong class="cRed">휴무일 : </strong>영업일을 Click 하시면 휴무일로 변경 가능 합니다.</li>
+				</ul>
+				<div id="calendar" style="margin: 5px;"></div>
+			</div>
+		</div>
+	</div>
+</form>
+
+<script class="cssdesk" src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.11.0/moment.min.js" type="text/javascript"></script>
+<script src="/ux/js/fullcalendar-4.2.0.js"></script>
+<script th:inline="javascript">
+/*<![CDATA[*/
+
+	$(document).ready(function() {
+		fnstartCalendar();
+		uifnFitGrid();
+	})
+
+	var fnstartCalendar = function() {
+		var calendarEl = document.getElementById('calendar');
+		calendar = new FullCalendar.Calendar(calendarEl, {
+			plugins: [ 'interaction', 'dayGrid' ],
+
+			locale: 'ko', //한글화
+			timeZone: 'local',
+
+			selectable: true,
+			editable: false,
+			eventLimit: true,
+
+			select: function(arg) {
+				if ((new Date(arg.end)).format('YYYYMMDD') - (new Date(arg.start)).format('YYYYMMDD') > 1 ) return;
+				var title ='휴일';
+				
+				mcxDialog.confirm("휴일로 변경하시겠습니까?", {
+					cancelBtnText: "취소",
+					sureBtnText: "확인",
+					sureBtnClick: function() {
+						fnUpdateDay('Holiday' , arg);
+					}
+				});
+				calendar.unselect();
+			},
+
+			//영업일로 변경 -----
+			eventClick: function(arg) {
+				mcxDialog.confirm("영업일로 변경하시겠습니까?", {
+					cancelBtnText: "취소",
+					sureBtnText: "확인",
+					sureBtnClick: function() {
+						fnUpdateDay('Bizday' , arg);
+					}
+				});
+			},
+
+			events: function(info, callback){
+				var dt = setViewDate(info);
+				$('#calendarForm input[name=startDt]').val(dt[0]);
+				$('#calendarForm input[name=endDt]').val(dt[1]);
+				$.get('/system/bizday/list' + '?' + $('#calendarForm').serialize()
+				, function(data) {
+					var events = [];
+					for(var i = 0 ; i < data.length ; i++ ) {
+						events.push( {
+							title : data[i].restdayDesc,
+							start : data[i].bizday } );
+					}
+					callback(events);
+				});
+			}
+		});
+		calendar.render();
+	}
+
+	//해당월 시작일, 마지막일설정
+	var setViewDate = function(date) {
+		var dt = [];
+		dt[0] = (new Date(date.startStr)).format('YYYYMMDD');
+		dt[1] = (new Date(date.endStr)).format('YYYYMMDD');
+		return dt;
+	}
+	
+	// 휴일,영업일 업데이트(저장)
+	var fnUpdateDay = function(day ,arg) {
+		var formId = '#calendarForm';
+		var start="";
+		var end = "";
+		$('#calendarForm input[name=bizDay]').val("");
+		if( day == 'Holiday' ) {
+			bizday = (new Date(arg.start)).format('YYYYMMDD');
+			$('#calendarForm input[name=bizday]').val(bizday);
+			gagajf.ajaxFormSubmit('system/bizday/save', formId, fnSaveCallback);
+				calendar.addEvent({
+					title: '휴일',
+					start: arg.start,
+					end: arg.end,
+					allDay: arg.allDay
+				});
+		}
+		else {
+			bizday = (new Date(arg.event.start)).format('YYYYMMDD');
+			$('#calendarForm input[name=bizday]').val(bizday);
+			gagajf.ajaxFormSubmit('system/bizday/save', formId, fnSaveCallback);
+			arg.event.remove();
+		}
+	}
+
+	// 저장 후 콜백
+	fnSaveCallback = function() {
+	}
+	
+/*]]>*/
+</script>
+
+</html>

+ 206 - 0
style24.scm/src/main/webapp/WEB-INF/views/system/ClauseDetailForm.html

@@ -0,0 +1,206 @@
+<!DOCTYPE html>
+<html lang="ko"
+	xmlns:th="http://www.thymeleaf.org">
+<!--
+ *******************************************************************************
+ * @source  : ClauseDetailForm.html
+ * @desc    :  약관관리상세 Page
+ *=============================================================
+ * SISUN
+ * Copyright(C) 2019 TSIT, All rights reserved.
+ *=============================================================
+ * VER  DATE         AUTHOR      DESCRIPTION
+ * ===  ===========  ==========  ==================================
+ * 1.0  2020.03.09   Daehyoung     최초 작성
+ *******************************************************************************
+ -->
+	<ul class="popup modal" id="popupClauseDetail" data-width="1200" data-height="800">
+		<li class="mdPopTitle">
+			<strong>약관상세</strong>
+ 			<button type="button" id="closeBtn" class="close" onclick="uifnPopClose('popupClauseDetail')"><i class="fa fa-times" aria-hidden="true"></i></button>
+		</li>
+		<li class="mdPopContent">
+			<form id="clauseDetailForm" name="clauseDetailForm" action="#" >
+				<div class="cardArea" style="height: 620px;">
+					<table class="frmStyle" aria-describedby="상세">
+					<colgroup>
+						<col style="width:15%;"/>
+						<col style="width:25%;"/>
+						<col style="width:15%;"/>
+						<col style="width:45%;"/>
+					</colgroup>
+					<tbody>
+						<tr>
+							<th>약관일련번호</th>
+							<td>
+								<input type="text" name="clauseSq" id="clauseSq" maxlength="20" readonly="readonly"/>
+							</td>
+							<th>사이트</th>
+							<td>
+								<select name="siteCd" id="siteCd">
+									<option th:if="${siteList}" th:each="oneData, status : ${siteList}" th:value="${oneData.cd}" th:text="|[${oneData.cd}] ${oneData.cdNm}|"></option>
+								</select>
+							</td>
+						</tr>
+						<tr>
+							<th>약관유형</th>
+							<td>
+								<select name="clauseType" id="clauseType">
+									<option th:if="${clauseTypeList}" th:each="oneData, status : ${clauseTypeList}" th:value="${oneData.cd}" th:text="|[${oneData.cd}] ${oneData.cdNm}|"></option>
+								</select>
+							</td>
+							<th>표시여부</th>
+							<td>
+								<label><input type="checkbox" name="chkYn" value="Y"/>표시</label>
+								<span class="cBlue" style="font-size:11px;"><i class="fa fa-info-circle" aria-hidden="true"></i> 표시여부를 체크 할 경우, 현재  약관으로 노출됩니다.</span>
+								<input type="hidden" name="dispYn" id="dispYn"/>
+							</td>
+						</tr>
+						<tr id="dateTableRow">
+							<th>등록일시</th>
+							<td>
+								<input type="text" class="" name="regDt" id="regDt" placeholder="" maxlength="20" readonly="readonly"/>
+							</td>
+							<th>수정일시</th>
+							<td>
+								<input type="text" class="" name="updDt" id="updDt" placeholder="" maxlength="20" readonly="readonly"/>
+							</td>
+						</tr>
+						<tr>
+							<th>약관 제목<i class="star" aria-hidden="true"></i></th>
+							<td colspan="3">
+								<input type="text" name="clauseTitle" id="clauseTitle" placeholder="" maxlength="20"/>
+							</td>
+						</tr>
+						<tr>
+							<th>약관 내용<i class="star" aria-hidden="true"></i></th>
+							<td colspan="3">
+								<textarea class="textareaR4" name="clauseContent" id="clauseContent" style="height:350px;"></textarea>
+							</td>
+						</tr>
+						</tbody>
+					</table>
+				</div>
+			</form>
+		</li>
+		<li class="mdPopBtnB btnRight">
+			<button type="button" class="btn btn-success btn-lg" id="btnSave">저장</button>
+		</li>
+	</ul>
+	
+<script type="text/javascript" src="/smartEditor/js/HuskyEZCreator.js?v=2019122801" charset="utf-8"></script>
+<script type="text/javascript" src="/ux/plugins/gaga/gaga.smarteditor.js?v=2019122801"></script>
+<script th:inline="javascript">
+/*<![CDATA[*/
+	
+	var mode = [[${mode}]];	
+	var clauseInfo;
+	
+	$('#btnSave').on('click', function() {
+		if(mode == "N"){
+			fnRegist();
+		} else {
+			fnUpdate();
+		}
+	});
+	
+	// 약관 등록
+	var fnRegist = function() {
+		gagaSe.getContents('clauseContent');
+		
+		var clauseTitle = $('#clauseTitle').val();
+		var clauseContent = $('#clauseContent').val();
+		
+		if (gagajf.isNull(clauseTitle)) {
+			mcxDialog.alert("약관 제목을 입력해주세요.");
+			return;
+		}
+		if (gagajf.isNull(clauseContent)) {
+			mcxDialog.alert("약관 내용을 입력해주세요.");
+			return;
+		}
+		$('#clauseDetailForm input[name=dispYn]').val($('#clauseDetailForm input:checkbox[name=chkYn]').is(":checked") ? 'Y' : 'N');
+		
+		mcxDialog.confirm("등록하시겠습니까?", {
+			cancelBtnText: "취소",
+			sureBtnText: "확인",
+			sureBtnClick: function() {
+				var jsonData = JSON.stringify($('#clauseDetailForm').serializeObject());
+				gagajf.ajaxJsonSubmit('/system/clause/detail/create', jsonData, saveCallback);
+			}
+		});
+	}
+	
+	// 약관 수정
+	var fnUpdate = function() {
+		gagaSe.getContents('clauseContent');
+		
+		var clauseTitle = $('#clauseTitle').val();
+		var clauseContent = $('#clauseContent').val();
+		
+		if (gagajf.isNull(clauseTitle)) {
+			mcxDialog.alert("약관 제목을 입력해주세요.");
+			return;
+		}
+		if (gagajf.isNull(clauseContent)) {
+			mcxDialog.alert("약관 내용을 입력해주세요.");
+			return;
+		}
+		$('#clauseDetailForm input[name=dispYn]').val($('#clauseDetailForm input:checkbox[name=chkYn]').is(":checked") ? 'Y' : 'N');
+		
+		mcxDialog.confirm("수정하시겠습니까?", {
+			cancelBtnText: "취소",
+			sureBtnText: "확인",
+			sureBtnClick: function() {
+				var jsonData = JSON.stringify($('#clauseDetailForm').serializeObject());
+				gagajf.ajaxJsonSubmit('/system/clause/detail/update', jsonData, saveCallback);
+			}
+		});
+	}
+	
+	// 저장 콜백
+	var saveCallback = function() {
+		$('#closeBtn').trigger('click');
+		fnSearch();
+	}	
+	
+	var seOptions = gagaSe.getEditorOptions();
+	// 초기세팅
+	var fnInit = function(mode){
+		gagaSe.createSmartEditor(seOptions, 'clauseContent');
+		if(mode == "N"){
+			// 등록
+			$('#clauseSq').val('자동생성');
+			$('#dateTableRow').remove();
+			
+		} else {
+			// 수정
+			clauseInfo = [[${admClause}]];
+			
+			$('#clauseSq').val(clauseInfo.clauseSq);
+			$('#siteCd').val(clauseInfo.siteCd);
+			$('#clauseType').val(clauseInfo.clauseType);
+			
+			$('#regDt').val(clauseInfo.regDt.toDate("YYYYMMDDHHmmss").format("YYYY-MM-DD HH:mm:ss"));
+			$('#updDt').val(clauseInfo.updDt.toDate("YYYYMMDDHHmmss").format("YYYY-MM-DD HH:mm:ss"));
+			
+			$('#clauseTitle').val(clauseInfo.clauseTitle);
+			
+			if(clauseInfo.dispYn == 'Y'){
+				$('input[type=checkbox]').attr('checked', true);
+			} else {
+				
+			}
+			gagaSe.setContents('clauseContent', clauseInfo.clauseContent); //공지내용
+			
+		}
+	}
+	
+	$(document).ready(function() {
+		fnInit(mode);
+	});
+	
+/*]]>*/
+</script>
+
+</html>

+ 147 - 0
style24.scm/src/main/webapp/WEB-INF/views/system/ClauseListForm.html

@@ -0,0 +1,147 @@
+<!DOCTYPE html>
+<html lang="ko"
+	xmlns:th="http://www.thymeleaf.org">
+<!--
+ *******************************************************************************
+ * @source  : ClauseListForm.html
+ * @desc    : 약관관리 화면 Page
+ *=============================================================
+ * Wivismall
+ * Copyright(C) 2019 TSIT, All rights reserved.
+ *=============================================================
+ * VER  DATE         AUTHOR      DESCRIPTION
+ * ===  ===========  ==========  ==================================
+ * 1.0  2020.03.09  Daehyoung   최초 작성
+ *******************************************************************************
+ -->
+	<div id="main">
+		<div class="main-title">
+		</div>
+
+		<div class="panelStyle2">
+			<form id="searchForm" name="searchForm" action="#" th:action="@{'/system/clause/list'}" onsubmit="$('#btnSearch').trigger('click'); return false;">
+				<table class="frmStyle" aria-describedby="검색조건">
+					<colgroup>
+						<col style="width:15%;"/>
+						<col style="width:35%;"/>
+						<col style="width:15%;"/>
+						<col style="width:35%;"/>
+					</colgroup>
+					<tbody>
+						<tr>
+							<th class="dashR">사이트</th>
+							<td class="dashR">
+								<select name="siteCd">
+									<option th:if="${siteList}" th:each="oneData, status : ${siteList}" th:value="${oneData.cd}" th:text="|[${oneData.cd}] ${oneData.cdNm}|"></option>
+								</select>
+							</td>
+							<th class="dashR">약관유형</th>
+							<td class="dashR">
+								<select name="clauseType">
+									<option value="">전체</option>
+									<option th:if="${clauseTypeList}" th:each="oneData, status : ${clauseTypeList}" th:value="${oneData.cd}" th:text="|[${oneData.cd}] ${oneData.cdNm}|"></option>
+								</select>
+							</td>
+						</tr>
+					</tbody>
+				</table>
+				<div class="panelBtnB">
+					<input type="button" value="초기화" class="btn btn-gray btn-lg" id="btnReset" onclick="$('#searchForm')[0].reset();"/>
+					<input type="button" value="조회" class="btn btn-base btn-lg" id="btnSearch" onclick="fnSearch();"/>
+				</div>
+			</form>
+		</div>
+		<!-- 리스트 영역 -->
+		<div class="panelStyle2">
+			<ul class="lrStyle">
+				<li>
+					<span class="btnLeft">
+						<p class="infoTxt cBlue"><i class="fa fa-info-circle" aria-hidden="true"></i>표시여부를 체크하시면 약관유형별 가장 최근 약관으로 프론트에 노출됩니다.</p>
+					</span>
+				</li>
+				<li class="aR">
+					<button type="button" id="btnRegistForm" class="btn btn-success btn-lg btnRight" onclick="btnRegistForm();">등록</button>
+				</li>
+			</ul>
+			<div class="panelContent" style="overflow: hidden;">
+				<div id="gridList" style="width:100%;" class="ag-theme-balham"></div>
+			</div>
+		</div>
+		
+	</div>
+
+<script th:inline="javascript">
+/*<![CDATA[*/
+	// 사이트목록
+	var siteList = gagajf.convertToArray([[${siteList}]]);
+	var clauseTypeList = gagajf.convertToArray([[${clauseTypeList}]]);
+	
+	var columnDefs = [
+		{headerName: "약관번호",		field:'clauseSq',		width:80,	cellClass: 'text-center'},
+		{
+			headerName: "사이트",		field:'siteCd',			width:150,	cellClass: 'text-center', 
+			valueFormatter: function (params) { return gagaAgGrid.lookupValue(siteList, params.value); }
+		},
+		{
+			headerName: "약관유형",	field:'clauseType',	width:200,	cellClass: 'text-center',
+			valueFormatter: function (params) { return gagaAgGrid.lookupValue(clauseTypeList, params.value); }
+		},
+		{
+			headerName: "약관제목",		field:'clauseTitle',	width:300,	cellClass: 'text-center',
+			cellRenderer: function(params) { return '<a href="javascript:cfnClauseDetailPopup('+params.data.clauseSq+')">' + params.value + '</a>'; }
+		},
+		{headerName: "표시여부",		field:'dispYn',			width:80,	cellClass: 'text-center'},
+		{headerName: "등록자",		field:'regId',			width:120,	cellClass: 'text-center'},
+		{headerName: "등록일시",		field:'regDt',			width:150,	cellClass: 'text-center',
+			cellRenderer: function(params) {
+				return !gagajf.isNull(params.value) ? params.value.toDate("YYYYMMDDHHmmss").format("YYYY-MM-DD HH:mm:ss") : '';
+			}	
+		},
+		{headerName: "수정자",		field:'updId',			width:120,	cellClass: 'text-center'},
+		{headerName: "수정일시",		field:'updDt',			width:150,	cellClass: 'text-center',
+			cellRenderer: function(params) {
+				return !gagajf.isNull(params.value) ? params.value.toDate("YYYYMMDDHHmmss").format("YYYY-MM-DD HH:mm:ss") : '';
+			}	
+		}
+	];
+
+	var gridOptions = gagaAgGrid.getGridOptions(columnDefs);
+
+	// 셀 클릭 이벤트
+	gridOptions.onCellClicked = function(event) {
+		if (event.colDef.field != 'custNm')
+			return;
+		fnCustDetailPopup(event.data);
+	}
+
+	// 검색
+	var fnSearch = function() {
+		var formId = '#searchForm';
+		gagaAgGrid.fetch($(formId).prop('action'), gridOptions, formId);
+	}
+	// 약관등록팝업
+	var btnRegistForm = function(){
+		var actionUrl = '/system/clause/detail/form/N/null';
+		cfnOpenModalPopup(actionUrl, 'popupClauseDetail');
+	}
+	// 약관상세팝업
+	var cfnClauseDetailPopup = function(clauseSq){
+		var actionUrl = '/system/clause/detail/form/U/' + clauseSq;
+		cfnOpenModalPopup(actionUrl, 'popupClauseDetail');
+	}
+	
+	$(document).ready(function() {
+		cfnCreateCalendar('#terms', 'regStdt', 'regEddt', false);
+		
+		gagaAgGrid.createGrid('gridList', gridOptions);
+		
+		// Grid 높이 자동 조정
+		uifnFitGrid('auto');
+		
+		fnSearch();
+	});
+
+/*]]>*/
+</script>
+
+</html>

+ 252 - 0
style24.scm/src/main/webapp/WEB-INF/views/system/CommoncodeForm.html

@@ -0,0 +1,252 @@
+<!DOCTYPE html>
+<html lang="ko"
+	xmlns:th="http://www.thymeleaf.org">
+<!--
+ *******************************************************************************
+ * @source  : CommoncodeForm.html
+ * @desc    : 공통코드관리 Page
+ *============================================================================
+ * STYLE24
+ * Copyright(C) 2020 TSIT, All rights reserved.
+ *============================================================================
+ * VER  DATE         AUTHOR      DESCRIPTION
+ * ===  ===========  ==========  =============================================
+ * 1.0  2020.10.08   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="@{'/system/commoncode/list'}" onsubmit="$('#btnSearch').trigger('click'); return false;">
+				<input type="hidden" name="cdGb" value="ROOT"/>
+				<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">
+			<!-- 다중 TABLE 배치 -->
+			<ul class="division">
+				<li style="width: 20%">
+					<div class="panelBar">
+						<h4>코드구분</h4>
+					</div>
+					<div id="gridList1" style="width: 100%; height: 570px" class="ag-theme-balham"></div>
+				</li>
+				<li style="width: 50%">
+					<div class="panelBar">
+						<h4>상세코드</h4>
+					</div>
+					<div id="gridList2" style="width: 100%; height: 570px" class="ag-theme-balham"></div>
+				</li>
+				<li style="width: 30%">
+					<div class="panelBar">
+						<h4>코드정보</h4>
+					</div>
+					<form id="detailForm" name="detailForm" action="#" th:action="@{'/system/commoncode/save'}">
+						<table class="frmStyle" aria-describedby="등록/상세">
+							<colgroup>
+								<col style="width:30%;"/>
+								<col/>
+							</colgroup>
+							<tr>
+								<th>코드구분<i class="required" title="필수" aria-hidden="true"></i></th>
+								<td>
+									<input type="text" name="cdGb" class="w200" placeholder="" maxlength="4" required="required" data-valid-type="alphaNumeric" data-valid-name="코드구분" onkeyup="$(this).val($(this).val().toUpperCase());"/>
+								</td>
+							</tr>
+							<tr>
+								<th>코드<i class="required" title="필수" aria-hidden="true"></i></th>
+								<td>
+									<input type="text" name="cd" class="w200" placeholder="" maxlength="20" required="required" data-valid-name="코드"/>
+								</td>
+							</tr>
+							<tr>
+								<th>코드명<i class="required" title="필수" aria-hidden="true"></i></th>
+								<td>
+									<input type="text" name="cdNm" class="w200" placeholder="" maxlength="50" required="required" data-valid-name="코드명"/>
+								</td>
+							</tr>
+							<tr>
+								<th>코드설명</th>
+								<td>
+									<textarea class="textareaR4" name="cdDesc"></textarea>
+								</td>
+							</tr>
+							<tr>
+								<th>표시순서<i class="required" title="필수" aria-hidden="true"></i></th>
+								<td>
+									<input type="text" class="w100 text-right" name="dispOrd" placeholder="" maxlength="5" required="required" data-valid-type="numeric" data-valid-name="표시순서" />
+								</td>
+							</tr>
+							<tr>
+								<th>사용여부<i class="required" title="필수" aria-hidden="true"></i></th>
+								<td>
+									<input type="hidden" name="useYn"/>
+									<label class="chkBox"><input type="checkbox" name="chkUseYn" value="Y"/>사용</label>
+								</td>
+							</tr>
+						</table>
+					</form>
+					
+					<!-- 버튼 배치 영역 -->
+					<ul class="panelBar">
+						<li class="right">
+							<button type="button" class="btn btn-info btn-lg" id="btnNew">신규</button>
+							<input type="button" value="저장" class="btn btn-base btn-lg" id="btnSave"/>
+						</li>
+					</ul>
+					<!-- //버튼 배치 영역 -->
+				</li>
+			</ul>
+			<!--//다중 TABLE 배치 -->
+		</div>
+	</div>
+
+<script th:inline="javascript">
+/*<![CDATA[*/
+	// specify the columns
+	let columnDefs1 = [
+// 		{width: 40, minWidth: 40, cellClass: 'text-center', headerCheckboxSelection: true, checkboxSelection: true, filter: false},
+// 		{headerName: "CRUD", field: "crud", width: 75, minWidth: 75, hide: true},
+		{
+			headerName: "코드구분", field: "cd", width: 80, cellClass: 'text-center',
+			cellRenderer: function(params) {
+				return '<a href="javascript:void(0);">' + params.value + '</button>';
+			}
+		},
+		{headerName: "코드구분명", field: "cdNm", width: 150},
+// 		{headerName: "코드설명", field: "cdDesc", width: 300},
+// 		{headerName: "표시순서", field: "dispOrd", width: 80, cellClass: 'text-right'},
+// 		{headerName: "사용여부", field: "useYn", width: 80, cellClass: 'text-center'}
+	];
+	
+	let columnDefs2 = [
+// 		{width: 40, minWidth: 40, cellClass: 'text-center', headerCheckboxSelection: true, checkboxSelection: true, filter: false},
+// 		{headerName: "CRUD", field: "crud", width: 75, minWidth: 75, hide: true},
+		{headerName: "코드구분", field: "cdGb", width: 80, cellClass: 'text-center'},
+		{
+			headerName: "코드", field: "cd", width: 80, cellClass: 'text-center',
+			cellRenderer: function(params) {
+				return '<a href="javascript:void(0);">' + params.value + '</button>';
+			}
+		},
+		{headerName: "코드명", field: "cdNm", width: 150},
+		{headerName: "코드설명", field: "cdDesc", width: 250},
+		{headerName: "표시순서", field: "dispOrd", width: 80, cellClass: 'text-right'},
+		{headerName: "사용여부", field: "useYn", width: 80, cellClass: 'text-center'}
+	];
+	
+	// Get GridOptions
+	let gridOptions1 = gagaAgGrid.getGridOptions(columnDefs1);
+	let gridOptions2 = gagaAgGrid.getGridOptions(columnDefs2);
+	
+	// 중복 선택 가능
+// 	gridOptions1.rowSelection = 'multiple';
+// 	gridOptions2.rowSelection = 'multiple';
+
+	// Cell Click
+	gridOptions1.onCellClicked = function(event) {
+		if (event.colDef.field != 'cd')
+			return;
+
+		fnBindDetail(event.data, 1);
+	}
+	
+	gridOptions2.onCellClicked = function(event) {
+		if (event.colDef.field != 'cd')
+			return;
+
+		fnBindDetail(event.data, 2);
+	}
+	
+	// 목록 > row 클릭 시
+	let lvl = 1;
+	let fnBindDetail = function(rowData, flag) {
+		lvl = flag;
+		
+		$('#detailForm input[name=cdGb]').val(rowData.cdGb);
+		$('#detailForm input[name=cd]').val(rowData.cd);
+		$('#detailForm input[name=cdNm]').val(rowData.cdNm);
+		$('#detailForm input[name=cdDesc]').val(rowData.cdDesc);
+		$('#detailForm input[name=dispOrd]').val(rowData.dispOrd);
+		
+		$("#detailForm input[name=useYn]").val(rowData.useYn);
+		if (rowData.useYn == 'Y') {
+			$("#detailForm input:checkbox[name=chkUseYn]").prop('checked', true);
+			$("#detailForm input:checkbox[name=chkUseYn]").parent().addClass('checked');
+		} else {
+			$("#detailForm input:checkbox[name=chkUseYn]").prop('checked', false);
+			$("#detailForm input:checkbox[name=chkUseYn]").parent().removeClass('checked');
+		}
+		
+		if (flag == 1) {
+			fnGetDetailCode(rowData.cd);
+		}
+	}
+	
+	// 코드구분 조회
+	$('#btnSearch').on('click', function() {
+		let actionUrl = $('#searchForm').prop('action') + '?' + $('#searchForm').serialize();
+		
+		// Fetch data
+		gagaAgGrid.fetch(actionUrl, gridOptions1);
+	});
+	
+	// 상세코드 조회
+	let gCd = '';
+	let fnGetDetailCode = function(cd) {
+		gCd = cd;
+		let actionUrl = $('#searchForm').prop('action') + '?cdGb=' + cd;
+		gagaAgGrid.fetch(actionUrl, gridOptions2);
+	}
+	
+	// 신규
+	$('#btnNew').on('click', function() {
+		$('#detailForm')[0].reset();
+		$('#detailForm input:checkbox[name=chkUseYn]').attr('checked', true);
+		$('#detailForm input:checkbox[name=chkUseYn]').attr('disabled', true);
+		$('#detailForm input[name=cdGb]').focus();
+	});
+	
+	// 저장
+	$('#btnSave').on('click', function() {
+		// 입력 값 체크
+		if (!gagajf.validation('#detailForm'))
+			return false;
+		
+		$('#detailForm input[name=useYn]').val($('#detailForm input:checkbox[name=chkUseYn]').is(":checked") ? 'Y' : 'N');
+		
+		gagajf.ajaxFormSubmit('/system/commoncode/save', '#detailForm', function(result) {
+			if (lvl == 1) {
+				$('#btnSearch').trigger('click');
+			} else {
+				fnGetDetailCode(gCd);
+			}
+		});
+	});
+	
+	$(document).ready(function() {
+		// Create a agGrid
+		gagaAgGrid.createGrid('gridList1', gridOptions1);
+		gagaAgGrid.createGrid('gridList2', gridOptions2);
+	});
+/*]]>*/
+</script>
+
+</html>

+ 229 - 0
style24.scm/src/main/webapp/WEB-INF/views/system/EnvsetHistoryForm.html

@@ -0,0 +1,229 @@
+<!DOCTYPE html>
+<html lang="ko"
+	xmlns:th="http://www.thymeleaf.org">
+<!--
+ *******************************************************************************
+ * @source  : EnvsetHistoryForm.html
+ * @desc    : 환경설정이력 팝업 Page
+ *============================================================================
+ * Wivismall
+ * Copyright(C) 2019 TSIT, All rights reserved.
+ *============================================================================
+ * VER  DATE         AUTHOR      DESCRIPTION
+ * ===  ===========  ==========  =============================================
+ * 1.0  2020.03.16   gagamel     최초 작성
+ *******************************************************************************
+ -->
+<ul class="popup modal" data-width="1200">
+	<li class="mdPopTitle">
+		<strong th:text="${envsetTypeNm + ' 이력'}">쇼핑몰Meat정보 이력</strong>
+		<button type="button" class="close" onclick="uifnPopClose('popupEnvset');"><i class="fa fa-times" aria-hidden="true"></i></button>
+	</li>
+
+	<li class="mdPopContent">
+		<div class="panelContent" style="overflow: hidden;">
+			<div id="gridEnvsetHistoryList" style="width: 100%; height: 330px;" class="ag-theme-balham"></div>
+		</div>
+	</li>
+</ul>
+
+<script th:inline="javascript">
+/*<![CDATA[*/
+	var envsetType = [[${envsetType}]];
+	var pointGiveType = { "A":"승인후지급", "D":"즉시지급" };
+	var pointUseType = { "A":"정액", "R":"정율" };
+
+	// 쇼핑몰Meta정보
+	var columnDefsB10 = [
+		{headerName: 'No', width: 60, cellClass: 'text-center', valueGetter: function(params) { return params.node.rowIndex + 1 }},
+		{headerName: "웹브라우저Title", field: "strSetVal1", width: 200},
+		{headerName: "쇼핑몰Title(og:title)", field: "strSetVal2", width: 200},
+		{headerName: "쇼핑몰설명(og:description)", field: "strSetVal3", width: 200},
+		{headerName: "쇼핑몰이미지(og:image)", field: "strSetVal4", width: 200},
+		{headerName: "키워드(Keywords)", field: "strSetVal5", width: 200},
+		{headerName: "파비콘이미지", field: "strSetVal6", width: 200},
+		{headerName: "등록자ID", field: "regId", width: 150, cellClass: 'text-center'},
+		{headerName: "등록일시", field: "regDt", width: 150, cellClass: 'text-center', cellRenderer: function (params) { return gagaAgGrid.toDateTimeFormat(params.value); }}
+	];
+
+	// 기본설정
+	var columnDefsB11 = [
+		{headerName: 'No', width: 60, cellClass: 'text-center', valueGetter: function(params) { return params.node.rowIndex + 1 }},
+		{headerName: "탈퇴후재가입불가기간(월)", field: "numSetVal1", width: 150, cellClass: 'text-center'},
+		{headerName: "휴면회원선정기간(일)", field: "numSetVal2", width: 150, cellClass: 'text-center'},
+		{headerName: "휴면회원전환기간(일)", field: "numSetVal3", width: 150, cellClass: 'text-center'},
+		{headerName: "회원등급산정기간(월)", field: "numSetVal4", width: 150, cellClass: 'text-center'},
+		{headerName: "무료배송비최소주문금액", field: "numSetVal5", width: 150, cellClass: 'text-center', cellRenderer: function (params) { return gagaAgGrid.toAddComma(params.value);}},
+		{headerName: "등록자ID", field: "regId", width: 100, cellClass: 'text-center'},
+		{headerName: "등록일시", field: "regDt", width: 150, cellClass: 'text-center', cellRenderer: function (params) { return gagaAgGrid.toDateTimeFormat(params.value); }}
+	];
+
+	// 회원혜택안내
+	var columnDefsB12 = [
+		{headerName: 'No', width: 60, cellClass: 'text-center', valueGetter: function(params) { return params.node.rowIndex + 1 }},
+		{headerName: "가입혜택안내배너(A)", field: "strSetVal1", width: 180},
+		{headerName: "가입혜택안내배너(B)", field: "strSetVal2", width: 180},
+		{headerName: "회원혜택안내배너", field: "strSetVal3", width: 180},
+		{headerName: "상품평혜택안내배너(상품상세)", field: "strSetVal4", width: 210},
+		{headerName: "상품평혜택안내배너(마이페이지)", field: "strSetVal5", width: 210},
+		{headerName: "등록자ID", field: "regId", width: 100, cellClass: 'text-center'},
+		{headerName: "등록일시", field: "regDt", width: 150, cellClass: 'text-center', cellRenderer: function (params) { return gagaAgGrid.toDateTimeFormat(params.value); }}
+	];
+
+	// 상품노출
+	var columnDefsB13 = [
+		{headerName: 'No', width: 60, cellClass: 'text-center', valueGetter: function(params) { return params.node.rowIndex + 1 }},
+		{headerName: "상품평노출여부", field: "strSetVal1", width: 150, cellClass: 'text-center', cellRenderer: function (params) { return params.value == 'Y' ? '노출' : '미노출'; }},
+		{headerName: "품절상품노출여부", field: "strSetVal2", width: 150, cellClass: 'text-center', cellRenderer: function (params) { return params.value == 'Y' ? '노출' : '미노출'; }},
+		{headerName: "특가세일노출기준", field: "numSetVal1", width: 150, cellClass: 'text-center'},
+		{headerName: "등록자ID", field: "regId", width: 100, cellClass: 'text-center'},
+		{headerName: "등록일시", field: "regDt", width: 150, cellClass: 'text-center', cellRenderer: function (params) { return gagaAgGrid.toDateTimeFormat(params.value); }}
+	];
+
+	// 상품보관
+	var columnDefsB17 = [
+		{headerName: 'No', width: 60, cellClass: 'text-center', valueGetter: function(params) { return params.node.rowIndex + 1 }},
+		{headerName: "장바구니보관기간", field: "numSetVal1", width: 150, cellClass: 'text-center'},
+		{headerName: "위시리스트보관기간", field: "numSetVal2", width: 150, cellClass: 'text-center'},
+		{headerName: "등록자ID", field: "regId", width: 100, cellClass: 'text-center'},
+		{headerName: "등록일시", field: "regDt", width: 150, cellClass: 'text-center', cellRenderer: function (params) { return gagaAgGrid.toDateTimeFormat(params.value); }}
+	];
+
+	// 품절안내
+	var columnDefsB14 = [
+		{headerName: 'No', width: 60, cellClass: 'text-center', valueGetter: function(params) { return params.node.rowIndex + 1 }},
+		{headerName: "품절안내방법", field: "strSetVal1", width: 150, cellClass: 'text-center', cellRenderer: function (params) { return params.value == 'A' ? '발송' : '미발송'; }},
+		{headerName: "품절안내메시지발송기간", field: "numSetVal1", width: 150, cellClass: 'text-center'},
+		{headerName: "등록자ID", field: "regId", width: 100, cellClass: 'text-center'},
+		{headerName: "등록일시", field: "regDt", width: 150, cellClass: 'text-center', cellRenderer: function (params) { return gagaAgGrid.toDateTimeFormat(params.value); }}
+	];
+
+	// 배송/구매확정
+	var columnDefsB15 = [
+		{headerName: 'No', width: 60, cellClass: 'text-center', valueGetter: function(params) { return params.node.rowIndex + 1 }},
+		{headerName: "배송완료처리기간", field: "numSetVal1", width: 150, cellClass: 'text-center'},
+		{headerName: "구매확정처리기간", field: "numSetVal2", width: 150, cellClass: 'text-center'},
+		{headerName: "등록자ID", field: "regId", width: 100, cellClass: 'text-center'},
+		{headerName: "등록일시", field: "regDt", width: 150, cellClass: 'text-center', cellRenderer: function (params) { return gagaAgGrid.toDateTimeFormat(params.value); }}
+	];
+
+	// 회원쿠폰
+	var columnDefsC10 = [
+		{headerName: 'No', width: 60, cellClass: 'text-center', valueGetter: function(params) { return params.node.rowIndex + 1 }},
+		{headerName: "가입축하쿠폰", field: "strSetVal1", width: 150, cellClass: 'text-center'},
+		{headerName: "앱푸쉬수신동의쿠폰", field: "strSetVal2", width: 150, cellClass: 'text-center'},
+		{headerName: "생일축하쿠폰", field: "strSetVal2", width: 150, cellClass: 'text-center'},
+		{headerName: "생일쿠폰발급도래시점", field: "numSetVal1", width: 150, cellClass: 'text-center'},
+		{headerName: "등록자ID", field: "regId", width: 100, cellClass: 'text-center'},
+		{headerName: "등록일시", field: "regDt", width: 150, cellClass: 'text-center', cellRenderer: function (params) { return gagaAgGrid.toDateTimeFormat(params.value); }}
+	];
+
+	// 회원포인트
+	var columnDefsP10 = [
+		{headerName: 'No', width: 60, cellClass: 'text-center', valueGetter: function(params) { return params.node.rowIndex + 1 }},
+		{headerName: "가입축하기본포인트", field: "numSetVal1", width: 150, cellClass: 'text-center', cellRenderer: function (params) { return gagaAgGrid.toAddComma(params.value); }},
+		{headerName: "가입축하추가포인트", field: "numSetVal6", width: 150, cellClass: 'text-center', cellRenderer: function (params) { return gagaAgGrid.toAddComma(params.value); }},
+		{headerName: "생일축하포인트", field: "numSetVal2", width: 150, cellClass: 'text-center', cellRenderer: function (params) { return gagaAgGrid.toAddComma(params.value); }},
+		{headerName: "앱설치후최초로그인포인트", field: "numSetVal3", width: 200, cellClass: 'text-center', cellRenderer: function (params) { return gagaAgGrid.toAddComma(params.value); }},
+		{headerName: "출석체크1일포인트", field: "numSetVal4", width: 150, cellClass: 'text-center', cellRenderer: function (params) { return gagaAgGrid.toAddComma(params.value); }},
+		{headerName: "등록자ID", field: "regId", width: 100, cellClass: 'text-center'},
+		{headerName: "등록일시", field: "regDt", width: 150, cellClass: 'text-center', cellRenderer: function (params) { return gagaAgGrid.toDateTimeFormat(params.value); }}
+	];
+
+	// 구매포인트
+	var columnDefsP11 = [
+		{headerName: 'No', width: 60, cellClass: 'text-center', valueGetter: function(params) { return params.node.rowIndex + 1 }},
+		{headerName: "자사상품정상포인트(PC)", field: "numSetVal1", width: 150, cellClass: 'text-center'},
+		{headerName: "자사상품정상포인트(모바일)", field: "numSetVal2", width: 150, cellClass: 'text-center'},
+		{headerName: "자사상품이월포인트(PC)", field: "numSetVal3", width: 150, cellClass: 'text-center'},
+		{headerName: "자사상품이월포인트(모바일)", field: "numSetVal4", width: 150, cellClass: 'text-center'},
+		{headerName: "입점상품정상포인트(PC)", field: "numSetVal5", width: 150, cellClass: 'text-center'},
+		{headerName: "입점상품정상포인트(모바일)", field: "numSetVal6", width: 150, cellClass: 'text-center'},
+		{headerName: "입점상품이월포인트(PC)", field: "numSetVal7", width: 150, cellClass: 'text-center'},
+		{headerName: "입점상품이월포인트(모바일)", field: "numSetVal8", width: 150, cellClass: 'text-center'},
+		{headerName: "등록자ID", field: "regId", width: 100, cellClass: 'text-center'},
+		{headerName: "등록일시", field: "regDt", width: 150, cellClass: 'text-center', cellRenderer: function (params) { return gagaAgGrid.toDateTimeFormat(params.value); }}
+	];
+
+	// 상품평포인트
+	var columnDefsP12 = [
+		{headerName: 'No', width: 60, cellClass: 'text-center', valueGetter: function(params) { return params.node.rowIndex + 1 }},
+		{headerName: "포인트지급방법", field: "strSetVal1", width: 150, cellClass: 'text-center',
+			valueFormatter: function (params) { return gagaAgGrid.lookupValue(pointGiveType, params.value); }
+		},
+		{headerName: "텍스트상품평포인트", field: "numSetVal1", width: 150, cellClass: 'text-center'},
+		{headerName: "포토상품평포인트", field: "numSetVal2", width: 150, cellClass: 'text-center'},
+		{headerName: "최초텍스트상품평배율", field: "numSetVal3", width: 150, cellClass: 'text-center'},
+		{headerName: "최초포토상품평포인트배율", field: "numSetVal4", width: 150, cellClass: 'text-center'},
+		{headerName: "등록자ID", field: "regId", width: 100, cellClass: 'text-center'},
+		{headerName: "등록일시", field: "regDt", width: 150, cellClass: 'text-center', cellRenderer: function (params) { return gagaAgGrid.toDateTimeFormat(params.value); }}
+	];
+
+	// 클레임포인트
+	var columnDefsP13 = [
+		{headerName: 'No', width: 60, cellClass: 'text-center', valueGetter: function(params) { return params.node.rowIndex + 1 }},
+		{headerName: "배송지연보상기준일수", field: "numSetVal1", width: 150, cellClass: 'text-center'},
+		{headerName: "배송지연보상포인트", field: "numSetVal2", width: 150, cellClass: 'text-center'},
+		{headerName: "품절보상기준일수", field: "numSetVal3", width: 150, cellClass: 'text-center'},
+		{headerName: "품절보상포인트", field: "numSetVal4", width: 150, cellClass: 'text-center'},
+		{headerName: "등록자ID", field: "regId", width: 100, cellClass: 'text-center'},
+		{headerName: "등록일시", field: "regDt", width: 150, cellClass: 'text-center', cellRenderer: function (params) { return gagaAgGrid.toDateTimeFormat(params.value); }}
+	];
+
+	// 가용포인트전환
+	var columnDefsP20 = [
+		{headerName: 'No', width: 60, cellClass: 'text-center', valueGetter: function(params) { return params.node.rowIndex + 1 }},
+		{headerName: "가용포인트전환대기일수", field: "numSetVal1", width: 150, cellClass: 'text-center'},
+		{headerName: "가용포인트추가적립율", field: "numSetVal2", width: 150, cellClass: 'text-center'},
+		{headerName: "등록자ID", field: "regId", width: 100, cellClass: 'text-center'},
+		{headerName: "등록일시", field: "regDt", width: 150, cellClass: 'text-center', cellRenderer: function (params) { return gagaAgGrid.toDateTimeFormat(params.value); }}
+	];
+
+	// 포인트사용
+	var columnDefsP30 = [
+		{headerName: 'No', width: 60, cellClass: 'text-center', valueGetter: function(params) { return params.node.rowIndex + 1 }},
+		{headerName: "사용방법", field: "strSetVal1", width: 80, cellClass: 'text-center', cellRenderer: function (params) { return gagaAgGrid.lookupValue(pointUseType, params.value); }},
+		{
+			headerName: "사용단위", field: "strSetVal2", width: 100, cellClass: 'text-center',
+			cellRenderer: function (params) {
+				var value = '';
+				if (params.value == '10') { value = '일원'; }
+				else if (params.value == '100') { value = '십원'; }
+				else if (params.value == '1000') { value = '백원'; }
+				return value + '단위절사';
+			}
+		},
+		{headerName: "사용가능보유포인트금액", field: "numSetVal1", width: 150, cellClass: 'text-center', cellRenderer: function (params) { return gagaAgGrid.toAddComma(params.value); }},
+		{headerName: "사용가능최소포인트금액", field: "numSetVal2", width: 150, cellClass: 'text-center', cellRenderer: function (params) { return gagaAgGrid.toAddComma(params.value); }},
+		{headerName: "사용가능최대포인트율", field: "numSetVal3", width: 150, cellClass: 'text-center'},
+		{headerName: "즉시사용최대포인트금액", field: "numSetVal5", width: 150, cellClass: 'text-center', cellRenderer: function (params) { return gagaAgGrid.toAddComma(params.value); }},
+		{headerName: "최소주문제한금액", field: "numSetVal4", width: 120, cellClass: 'text-center', cellRenderer: function (params) { return gagaAgGrid.toAddComma(params.value); }},
+		{headerName: "등록자ID", field: "regId", width: 100, cellClass: 'text-center'},
+		{headerName: "등록일시", field: "regDt", width: 150, cellClass: 'text-center', cellRenderer: function (params) { return gagaAgGrid.toDateTimeFormat(params.value); }}
+	];
+
+	// 모바일앱
+	var columnDefsM10 = [
+		{headerName: 'No', width: 60, cellClass: 'text-center', valueGetter: function(params) { return params.node.rowIndex + 1 }},
+		{headerName: "AOS버전", field: "strSetVal1", width: 100, cellClass: 'text-center'},
+		{headerName: "IOS버전", field: "strSetVal2", width: 100, cellClass: 'text-center'},
+		{headerName: "등록자ID", field: "regId", width: 100, cellClass: 'text-center'},
+		{headerName: "등록일시", field: "regDt", width: 150, cellClass: 'text-center', cellRenderer: function (params) { return gagaAgGrid.toDateTimeFormat(params.value); }}
+	];
+
+	// Get GridOptions
+	var gridOptions = gagaAgGrid.getGridOptions(eval('columnDefs' + envsetType));
+
+	$(document).ready(function() {
+		// Create a agGrid
+		gagaAgGrid.createGrid('gridEnvsetHistoryList', gridOptions);
+
+		var actionUrl = '/system/envset/history/' + [[${siteCd}]] + '/' + envsetType;
+
+		// Fetch data
+		gagaAgGrid.fetch(actionUrl, gridOptions);
+	});
+/*]]>*/
+</script>
+
+</html>

+ 164 - 0
style24.scm/src/main/webapp/WEB-INF/views/system/HilandDeliveryFeeDetailForm.html

@@ -0,0 +1,164 @@
+<!DOCTYPE html>
+<html lang="ko"
+	xmlns:th="http://www.thymeleaf.org">
+<!--
+ *****************************************************************************
+ * @source  : HilandDeliveryFeeDetailForm.html
+ * @desc    : 도서산간배송비 상세
+ *============================================================================
+ * WIVIS
+ * Copyright(C) 2019 TSIT, All rights reserved.
+ *============================================================================
+ * VER  DATE         AUTHOR      DESCRIPTION
+ * ===  ===========  ==========  =============================================
+ * 1.0  2020.03.16   Daehyoung   최초 작성
+ *****************************************************************************
+ -->
+	<ul class="popup modal" id="hilandDeliveryFeeDetail" data-width="600" >
+		<li class="mdPopTitle">
+			<strong>도서산간 배송비 설정</strong>
+			<button type="button" id="closeBtn" class="close" onclick="uifnPopClose('hilandDeliveryFeeDetail')"><i class="fa fa-times" aria-hidden="true"></i></button>
+		</li>
+		<li class="mdPopContent">
+			<form name="hilandDeliveryFeeDetailForm" id="hilandDeliveryFeeDetailForm" action="#">
+				<input type="hidden" id="originPostFno" name="originPostFno"/>
+				<input type="hidden" id="originPostTno" name="originPostTno"/>
+				
+				<table class="frmStyle" aria-describedby="상세">
+					<colgroup>
+						<col style="width:20%;"/>
+					</colgroup>
+					<tbody>
+						<tr>
+							<th class="dashR">공급업체</th>
+							<td class="dashR">
+								<select id="supplyCompCd" name="supplyCompCd" required="required" data-valid-name="공급업체">
+									<option value="">[선택]</option>
+									<option th:if="${supplyCompList}" th:each="oneData, status : ${supplyCompList}" th:value="${oneData.cd}" th:text="${oneData.cdNm}"></option>
+								</select>
+							</td>
+						</tr>
+						<tr>
+							<th class="dashR">지역명(도서, 산간 등)</th>
+							<td class="dashR">
+								<input type="text" class="w300" id="hilandNm" name="hilandNm" required="required" data-valid-name="지역명"/>
+							</td>
+						</tr>
+						<tr>
+							<th class="dashR">우편번호 범위</th>
+							<td class="dashR">
+								<input type="text" id="postFno" name="postFno"  class="w50"  required="required" data-valid-name="우편번호" readonly="readonly">
+								<button type="button" class="btn btn-info btn-sm" onclick="cfnOpenPostFindPopup('postFno');">우편번호찾기</button>부터 
+								<input type="text" id="postTno" name="postTno"  class="w50"  required="required" data-valid-name="우편번호" readonly="readonly"/>
+								<button type="button" class="btn btn-info btn-sm" onclick="cfnOpenPostFindPopup('postTno');">우편번호찾기</button>까지
+							</td>
+						</tr>
+						<tr>
+							<th class="dashR">추가배송비</th>
+							<td class="dashR">
+								<input type="text" id="addDelvFee" name="addDelvFee" class="w70 text-right" data-valid-type="integer" data-valid-name="추가배송비" required="required"/>원
+							</td>
+						</tr>
+					</tbody>
+				</table>
+			</form>
+		</li>
+		<li class="boxContentBtnB">
+			<button type="button" class="btn btn-success btn-lg " id="btnSave">저장</button>
+		</li>
+	</ul>
+<script th:inline="javascript">
+/*<![CDATA[*/
+	
+	var mode = [[${mode}]];	
+	var admHilandDeliveryFee;
+	
+	$('#btnSave').on('click', function() {
+		var formId = '#hilandDeliveryFeeDetailForm';
+		if (!gagajf.validation(formId))
+			return false;
+		
+		// 우편번호 범위 유효성
+		if ($('#postTno').val() < $('#postFno').val()) {
+			mcxDialog.alert("우편번호 뒷범위가 앞범위보다 크거나 같게 해주세요.");
+			return;
+		}
+		
+		gagajf.removeCommaAtNumberFormattedInput('#hilandDeliveryFeeDetailForm');
+		if(mode == "N"){
+			fnRegist();
+		} else {
+			fnUpdate();
+		}
+	});
+	
+	// 도서산간배송비 등록
+	var fnRegist = function() {
+		mcxDialog.confirm("등록하시겠습니까?", {
+			cancelBtnText: "취소",
+			sureBtnText: "확인",
+			sureBtnClick: function() {
+				var jsonData = JSON.stringify($('#hilandDeliveryFeeDetailForm').serializeObject());
+				gagajf.ajaxJsonSubmit('/system/hiland/deliveryfee/detail/create', jsonData, saveCallback);
+			}
+		});
+	}
+	
+	// 도서산간배송비 수정
+	var fnUpdate = function() {
+		mcxDialog.confirm("수정하시겠습니까?", {
+			cancelBtnText: "취소",
+			sureBtnText: "확인",
+			sureBtnClick: function() {
+				var jsonData = JSON.stringify($('#hilandDeliveryFeeDetailForm').serializeObject());
+				gagajf.ajaxJsonSubmit('/system/hiland/deliveryfee/detail/update', jsonData, saveCallback);
+			}
+		});
+	}
+	
+	// 저장 콜백
+	var saveCallback = function() {
+		$('#closeBtn').trigger('click');
+		fnSearch();
+	}
+	
+	// 초기세팅
+	var fnInit = function(mode){
+		
+		if(mode == "N"){
+			// 등록
+			
+		} else {
+			// 수정
+			admHilandDeliveryFee = [[${admHilandDeliveryFee}]];
+			
+			$('#originPostFno').val(admHilandDeliveryFee.postFno);
+			$('#originPostTno').val(admHilandDeliveryFee.postTno);
+			
+			$('#supplyCompCd').val(admHilandDeliveryFee.supplyCompCd);
+			$('#hilandNm').val(admHilandDeliveryFee.hilandNm);
+			$('#addDelvFee').val(admHilandDeliveryFee.addDelvFee);
+			
+			$('input[name=postFno]').val(admHilandDeliveryFee.postFno);
+			$('input[name=postTno]').val(admHilandDeliveryFee.postTno);
+		}
+		gagajf.addCommaAtNumberFormattedInput('#hilandDeliveryFeeDetailForm');
+	}
+	
+	// 우편번호 콜백 함수
+	var fnSetPostValue = function(zipNo, baseRoadAddr1, baseRoadAddr2, etcAddr, id) {
+		if(id == 'postFno') {
+			$('input[name=postFno]').val(zipNo);
+		}
+		if(id == 'postTno') {
+			$('input[name=postTno]').val(zipNo);
+		}
+	}
+	
+	$(document).ready(function() {
+		fnInit(mode);
+	});
+
+/*]]>*/
+</script>
+</html>

この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません