commit 482430a46a19af423e7f6fed7e66d16d505d2e56 Author: Seongeun Park Date: Wed Jun 5 20:58:28 2024 +0900 first commit diff --git a/.classpath b/.classpath new file mode 100644 index 0000000..426a9ec --- /dev/null +++ b/.classpath @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100644 index 0000000..c25892d --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/dataSources.xml b/.idea/dataSources.xml new file mode 100644 index 0000000..4fd39c6 --- /dev/null +++ b/.idea/dataSources.xml @@ -0,0 +1,12 @@ + + + + + postgresql + true + org.postgresql.Driver + jdbc:postgresql://211.199.70.9:5433/dpc_db + $ProjectFileDir$ + + + \ No newline at end of file diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml new file mode 100644 index 0000000..9614389 --- /dev/null +++ b/.idea/jarRepositories.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..3bb773e --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,12 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/sonarlint/issuestore/0/6/06644718c9c02b4a8d8916018d3125a9fbcbe85a b/.idea/sonarlint/issuestore/0/6/06644718c9c02b4a8d8916018d3125a9fbcbe85a new file mode 100644 index 0000000..e69de29 diff --git a/.idea/sonarlint/issuestore/0/6/06f64d0e5f9e2549840bf0b28171334fe2ef9dc2 b/.idea/sonarlint/issuestore/0/6/06f64d0e5f9e2549840bf0b28171334fe2ef9dc2 new file mode 100644 index 0000000..e69de29 diff --git a/.idea/sonarlint/issuestore/1/a/1acd4fd27c13cddffadba6d863befe03a02eb4e9 b/.idea/sonarlint/issuestore/1/a/1acd4fd27c13cddffadba6d863befe03a02eb4e9 new file mode 100644 index 0000000..e69de29 diff --git a/.idea/sonarlint/issuestore/2/b/2bf842199a6c6740e2afad792b113cd5576da3ed b/.idea/sonarlint/issuestore/2/b/2bf842199a6c6740e2afad792b113cd5576da3ed new file mode 100644 index 0000000..795001a --- /dev/null +++ b/.idea/sonarlint/issuestore/2/b/2bf842199a6c6740e2afad792b113cd5576da3ed @@ -0,0 +1,64 @@ + +b java:S112>"FDefine and throw a dedicated exception instead of using a generic one.(ᓤ81 +g java:S112G"FDefine and throw a dedicated exception instead of using a generic one.(ʓ81 +g java:S112\"FDefine and throw a dedicated exception instead of using a generic one.(ʓ81 +m +java:S1192["KDefine a constant instead of duplicating this literal "Exception" 24 times.(81 +h +java:S1192,"FDefine a constant instead of duplicating this literal "mysql" 3 times.(81 +u +java:S2139E"XEither log this exception and handle it, or rethrow it with some contextual information.(81 +7 +java:S3457F"Not enough arguments.(؅81 +u +java:S2139Z"XEither log this exception and handle it, or rethrow it with some contextual information.(81 +H +java:S1452c"&Remove usage of generic wildcard type.(81 +C +java:S1452o"&Remove usage of generic wildcard type.(81 +C +java:S1452}"&Remove usage of generic wildcard type.(԰81 +D +java:S1452"&Remove usage of generic wildcard type.(澕81 +D +java:S1452"&Remove usage of generic wildcard type.(81 +I +java:S1452"&Remove usage of generic wildcard type.(ߨ81 +I +java:S1452"&Remove usage of generic wildcard type.(ܝ81 +D +java:S1452"&Remove usage of generic wildcard type.(켩81 +I +java:S1452"&Remove usage of generic wildcard type.(ֽ81 +I +java:S1452"&Remove usage of generic wildcard type.(81 +I +java:S1452"&Remove usage of generic wildcard type.(81 +I +java:S1452"&Remove usage of generic wildcard type.(81 +I +java:S1452"&Remove usage of generic wildcard type.(81 +I +java:S1452"&Remove usage of generic wildcard type.(ж81 +I +java:S1452"&Remove usage of generic wildcard type.(ں81 +I +java:S1452"&Remove usage of generic wildcard type.(81 +I +java:S1452"&Remove usage of generic wildcard type.(81 +D +java:S1452"&Remove usage of generic wildcard type.(ޛ81 +I +java:S1452"&Remove usage of generic wildcard type.(Ǥ81 +I +java:S1452"&Remove usage of generic wildcard type.(ԧ81 +D +java:S1452"&Remove usage of generic wildcard type.(81 +D +java:S1452"&Remove usage of generic wildcard type.(׿81 +D +java:S1452"&Remove usage of generic wildcard type.(8ü1 +P +java:S1128".Remove this unused import 'java.util.HashMap'.(81 +L +java:S1128"*Remove this unused import 'java.util.Map'.(81 \ No newline at end of file diff --git a/.idea/sonarlint/issuestore/2/c/2c97518cf74121541cc8aac3ec07ec5ceb3e07d1 b/.idea/sonarlint/issuestore/2/c/2c97518cf74121541cc8aac3ec07ec5ceb3e07d1 new file mode 100644 index 0000000..e69de29 diff --git a/.idea/sonarlint/issuestore/2/e/2e22b6edd746fa3dc40ad7276c87c8d87d72a392 b/.idea/sonarlint/issuestore/2/e/2e22b6edd746fa3dc40ad7276c87c8d87d72a392 new file mode 100644 index 0000000..56e9cd1 --- /dev/null +++ b/.idea/sonarlint/issuestore/2/e/2e22b6edd746fa3dc40ad7276c87c8d87d72a392 @@ -0,0 +1,2 @@ + +M xml:S2647:"3Use a more secure method than basic authentication.(؊Φ \ No newline at end of file diff --git a/.idea/sonarlint/issuestore/3/5/350c8e41ab090608b3d30e13f7163bdedb025640 b/.idea/sonarlint/issuestore/3/5/350c8e41ab090608b3d30e13f7163bdedb025640 new file mode 100644 index 0000000..54390d6 --- /dev/null +++ b/.idea/sonarlint/issuestore/3/5/350c8e41ab090608b3d30e13f7163bdedb025640 @@ -0,0 +1,6 @@ + +: +java:S26295"$Invoke method(s) only conditionally.( +t java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.( +Q java:S125)"src/main/java/egovframework/com/mtdata/cmmnty/vo/CmmntyVO.java,4\e\4e641a3875daeed2f5e8af46c2c6753349f8fef2 + +Qsrc/main/java/egovframework/com/mtdata/cmmnty/service/impl/CmmntyServiceImpl.java,c\b\cbf42794fad2e9c499b917b7c4ad12b0cd67bb9e +x +Hsrc/main/java/egovframework/com/mtdata/cmmnty/service/CmmntyService.java,e\2\e28c30874f0ac746cee9c0cb473f5f356051747b +t +Dsrc/main/java/egovframework/com/mtdata/main/service/MainService.java,a\9\a9036805f16a258d1e7908e8039aacb2a022ab39 +s +Csrc/main/java/egovframework/com/mtdata/main/web/MainController.java,a\f\afd1c454d22f950a2560e799cb70906e39f5efc9 +: + +.classpath,3\5\354079a72b91a4280407c16a36f47d1986fd85a5 +u +Esrc/main/java/egovframework/com/mtdata/cmmn/EgovSampleExcepHndlr.java,d\8\d82f2e23da3d4d52ad8474ad9481ef2ea594e210 +o +?src/main/java/egovframework/com/mtdata/main/mapper/MainDAO.java,b\9\b9dfce2b98aebd17cc9abad14440f955fec62451 +z +Jsrc/main/java/egovframework/com/mtdata/database/mapper/DatabaseMapper.java,d\e\de164fbe2c3217e229320c2b615aa4353e88ad20 +w +Gsrc/main/java/egovframework/com/mtdata/cmmnty/web/CmmntyController.java,b\f\bfa5577f30709c6ba34b6b21fb4ce7d9103c4e23 +k +;src/main/java/egovframework/com/mtdata/cmmn/vo/BasicVO.java,8\b\8b2fd82dd85e1147921bccff2cca0141982bf623 + +Osrc/main/java/egovframework/com/mtdata/schema/service/DatabaseSchemaViewer.java,b\9\b98d35e1d91b3f719b74c6b04a7c6bbb0b6963f6 +v +Fsrc/main/java/egovframework/com/mtdata/cmmnty/mapper/CmmntyMapper.java,3\5\357ab2a25997ab41c101d4139ee9d851908a8d16 +{ +Ksrc/main/java/egovframework/com/mtdata/cmmn/web/EgovBindingInitializer.java,9\a\9a33e1fea087edf2f58d6c4bc3d71f13e509182b +{ +Ksrc/main/java/egovframework/com/mtdata/cmmn/EgovSampleOthersExcepHndlr.java,d\7\d701580d1706d8e708425456e418328090c2e2d3 +l +src/main/java/egovframework/com/mtdata/cmmnty/vo/CmmntyVO.java,4\e\4e641a3875daeed2f5e8af46c2c6753349f8fef2 + +Qsrc/main/java/egovframework/com/mtdata/cmmnty/service/impl/CmmntyServiceImpl.java,c\b\cbf42794fad2e9c499b917b7c4ad12b0cd67bb9e +x +Hsrc/main/java/egovframework/com/mtdata/cmmnty/service/CmmntyService.java,e\2\e28c30874f0ac746cee9c0cb473f5f356051747b +t +Dsrc/main/java/egovframework/com/mtdata/main/service/MainService.java,a\9\a9036805f16a258d1e7908e8039aacb2a022ab39 +s +Csrc/main/java/egovframework/com/mtdata/main/web/MainController.java,a\f\afd1c454d22f950a2560e799cb70906e39f5efc9 +: + +.classpath,3\5\354079a72b91a4280407c16a36f47d1986fd85a5 +u +Esrc/main/java/egovframework/com/mtdata/cmmn/EgovSampleExcepHndlr.java,d\8\d82f2e23da3d4d52ad8474ad9481ef2ea594e210 +o +?src/main/java/egovframework/com/mtdata/main/mapper/MainDAO.java,b\9\b9dfce2b98aebd17cc9abad14440f955fec62451 +z +Jsrc/main/java/egovframework/com/mtdata/database/mapper/DatabaseMapper.java,d\e\de164fbe2c3217e229320c2b615aa4353e88ad20 +w +Gsrc/main/java/egovframework/com/mtdata/cmmnty/web/CmmntyController.java,b\f\bfa5577f30709c6ba34b6b21fb4ce7d9103c4e23 +k +;src/main/java/egovframework/com/mtdata/cmmn/vo/BasicVO.java,8\b\8b2fd82dd85e1147921bccff2cca0141982bf623 + +Osrc/main/java/egovframework/com/mtdata/schema/service/DatabaseSchemaViewer.java,b\9\b98d35e1d91b3f719b74c6b04a7c6bbb0b6963f6 +v +Fsrc/main/java/egovframework/com/mtdata/cmmnty/mapper/CmmntyMapper.java,3\5\357ab2a25997ab41c101d4139ee9d851908a8d16 +{ +Ksrc/main/java/egovframework/com/mtdata/cmmn/web/EgovBindingInitializer.java,9\a\9a33e1fea087edf2f58d6c4bc3d71f13e509182b +l + + + + + + \ No newline at end of file diff --git a/.project b/.project new file mode 100644 index 0000000..21fb9ed --- /dev/null +++ b/.project @@ -0,0 +1,38 @@ + + + isd_demo + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.wst.common.project.facet.core.builder + + + + + org.eclipse.wst.validation.validationbuilder + + + + + org.eclipse.m2e.core.maven2Builder + + + + + + org.eclipse.jem.workbench.JavaEMFNature + org.eclipse.wst.common.modulecore.ModuleCoreNature + org.eclipse.m2e.core.maven2Nature + org.eclipse.wst.common.project.facet.core.nature + org.eclipse.jdt.core.javanature + egovframework.dev.imp.ide.natures.egovnature + org.eclipse.wst.jsdt.core.jsNature + + diff --git a/.settings/.jsdtscope b/.settings/.jsdtscope new file mode 100644 index 0000000..81672d4 --- /dev/null +++ b/.settings/.jsdtscope @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/.settings/org.eclipse.core.resources.prefs b/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000..5b781ec --- /dev/null +++ b/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,3 @@ +eclipse.preferences.version=1 +encoding//src/main/java=UTF-8 +encoding//src/test/java=UTF-8 diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..2bd4e77 --- /dev/null +++ b/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,16 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate +org.eclipse.jdt.core.compiler.codegen.targetPlatform=11 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=11 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate +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=warning +org.eclipse.jdt.core.compiler.release=disabled +org.eclipse.jdt.core.compiler.source=11 diff --git a/.settings/org.eclipse.wst.common.component b/.settings/org.eclipse.wst.common.component new file mode 100644 index 0000000..1e01909 --- /dev/null +++ b/.settings/org.eclipse.wst.common.component @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/.settings/org.eclipse.wst.common.project.facet.core.prefs.xml b/.settings/org.eclipse.wst.common.project.facet.core.prefs.xml new file mode 100644 index 0000000..6d59853 --- /dev/null +++ b/.settings/org.eclipse.wst.common.project.facet.core.prefs.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/.settings/org.eclipse.wst.common.project.facet.core.xml b/.settings/org.eclipse.wst.common.project.facet.core.xml new file mode 100644 index 0000000..b3b28f7 --- /dev/null +++ b/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/.settings/org.eclipse.wst.jsdt.ui.superType.container b/.settings/org.eclipse.wst.jsdt.ui.superType.container new file mode 100644 index 0000000..3bd5d0a --- /dev/null +++ b/.settings/org.eclipse.wst.jsdt.ui.superType.container @@ -0,0 +1 @@ +org.eclipse.wst.jsdt.launching.baseBrowserLibrary \ No newline at end of file diff --git a/.settings/org.eclipse.wst.jsdt.ui.superType.name b/.settings/org.eclipse.wst.jsdt.ui.superType.name new file mode 100644 index 0000000..05bd71b --- /dev/null +++ b/.settings/org.eclipse.wst.jsdt.ui.superType.name @@ -0,0 +1 @@ +Window \ No newline at end of file diff --git a/.settings/org.eclipse.wst.validation.prefs b/.settings/org.eclipse.wst.validation.prefs new file mode 100644 index 0000000..04cad8c --- /dev/null +++ b/.settings/org.eclipse.wst.validation.prefs @@ -0,0 +1,2 @@ +disabled=06target +eclipse.preferences.version=1 diff --git a/isd_demo.iml b/isd_demo.iml new file mode 100644 index 0000000..775c701 --- /dev/null +++ b/isd_demo.iml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..c573b5d --- /dev/null +++ b/pom.xml @@ -0,0 +1,355 @@ + + + 4.0.0 + egovframework.com.mtdata + isd_demo + war + 1.0.0 + isd_demo + http://www.egovframe.go.kr + + + + The Apache Software License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + + + + + 5.3.20 + 4.1.0 + + + + + mvn2s + https://repo1.maven.org/maven2/ + + true + + + true + + + + egovframe + https://maven.egovframe.go.kr/maven/ + + true + + + false + + + + + + + + org.egovframe.rte + org.egovframe.rte.ptl.mvc + ${org.egovframe.rte.version} + + + commons-logging + commons-logging + + + + + org.egovframe.rte + org.egovframe.rte.psl.dataaccess + ${org.egovframe.rte.version} + + + org.egovframe.rte + org.egovframe.rte.fdl.idgnr + ${org.egovframe.rte.version} + + + org.egovframe.rte + org.egovframe.rte.fdl.property + ${org.egovframe.rte.version} + + + + javax.servlet + javax.servlet-api + provided + 3.1.0 + + + javax.servlet.jsp.jstl + jstl-api + 1.2 + + + taglibs + standard + 1.1.2 + + + org.antlr + antlr + 3.5 + + + org.hsqldb + hsqldb + 2.5.2 + + + + + log4j + log4j + 1.2.17 + + + + + org.projectlombok + lombok + 1.18.30 + provided + + + + + org.yaml + snakeyaml + 2.2 + + + + + com.googlecode.log4jdbc + log4jdbc + 1.2 + + + slf4j-api + org.slf4j + + + + + + org.apache.commons + commons-dbcp2 + 2.9.0 + + + + org.postgresql + postgresql + 42.7.0 + + + + mysql + mysql-connector-java + 8.0.29 + + + + + + com.fasterxml.jackson.core + jackson-databind + 2.16.0 + + + + + + + install + ${basedir}/target + ${artifactId}-${version} + + + + org.codehaus.cargo + cargo-maven3-plugin + 1.9.13 + + + tomcat8x + embedded + + + + 8080 + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.10.1 + + 11 + 11 + UTF-8 + + + + org.apache.maven.plugins + maven-war-plugin + 3.3.2 + + false + + + + org.codehaus.mojo + hibernate3-maven-plugin + 3.0 + + + + hbm2ddl + annotationconfiguration + + + + + + org.hsqldb + hsqldb + 2.5.2 + + + + + + org.codehaus.mojo + emma-maven-plugin + 1.0-alpha-3 + + + + org.apache.maven.plugins + maven-pmd-plugin + 3.17.0 + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.22.2 + + true + once + xml + + **/Abstract*.java + **/*Suite.java + + + **/*Test.java + + + + + org.codehaus.mojo + emma-maven-plugin + true + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.4.0 + + + + + ${basedir}/target/site + + + org.apache.maven.plugins + maven-project-info-reports-plugin + 3.3.0 + + + sunlink + + javadoc + + true + + + https://docs.oracle.com/javase/8/docs/api/ + + + + + + + + org.codehaus.mojo + emma-maven-plugin + true + + + org.codehaus.mojo + surefire-report-maven-plugin + true + + + + report-only + + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + + 128m + 512m + ${encoding} + ${encoding} + ${encoding} + + + + + org.apache.maven.plugins + maven-jxr-plugin + + ${encoding} + ${encoding} + true + apidocs + + + + + diff --git a/src/main/java/egovframework/com/mtdata/cmmn/EgovSampleExcepHndlr.java b/src/main/java/egovframework/com/mtdata/cmmn/EgovSampleExcepHndlr.java new file mode 100644 index 0000000..9931a3d --- /dev/null +++ b/src/main/java/egovframework/com/mtdata/cmmn/EgovSampleExcepHndlr.java @@ -0,0 +1,52 @@ +/* + * Copyright 2008-2009 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package egovframework.com.mtdata.cmmn; + +import org.egovframe.rte.fdl.cmmn.exception.handler.ExceptionHandler; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +/** + * @Class Name : EgovSampleExcepHndlr.java + * @Description : EgovSampleExcepHndlr Class + * @Modification Information + * @ + * @ 수정일 수정자 수정내용 + * @ --------- --------- ------------------------------- + * @ 2009.03.16 최초생성 + * + * @author 개발프레임웍크 실행환경 개발팀 + * @since 2009. 03.16 + * @version 1.0 + * @see + * + * Copyright (C) by MOPAS All right reserved. + */ +public class EgovSampleExcepHndlr implements ExceptionHandler { + + private static final Logger LOGGER = LoggerFactory.getLogger(EgovSampleExcepHndlr.class); + + /** + * @param ex + * @param packageName + * @see 개발프레임웍크 실행환경 개발팀 + */ + @Override + public void occur(Exception ex, String packageName) { + LOGGER.debug(" EgovServiceExceptionHandler run..............."); + } +} diff --git a/src/main/java/egovframework/com/mtdata/cmmn/EgovSampleOthersExcepHndlr.java b/src/main/java/egovframework/com/mtdata/cmmn/EgovSampleOthersExcepHndlr.java new file mode 100644 index 0000000..2df9fc9 --- /dev/null +++ b/src/main/java/egovframework/com/mtdata/cmmn/EgovSampleOthersExcepHndlr.java @@ -0,0 +1,68 @@ +/* + * Copyright 2008-2009 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +/* + * Copyright 2008-2009 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package egovframework.com.mtdata.cmmn; + +import org.egovframe.rte.fdl.cmmn.exception.handler.ExceptionHandler; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +/** + * @Class Name : EgovSampleOthersExcepHndlr.java + * @Description : EgovSampleOthersExcepHndlr Class + * @Modification Information + * @ + * @ 수정일 수정자 수정내용 + * @ --------- --------- ------------------------------- + * @ 2009.03.16 최초생성 + * + * @author 개발프레임웍크 실행환경 개발팀 + * @since 2009. 03.16 + * @version 1.0 + * @see + * + * Copyright (C) by MOPAS All right reserved. + */ +public class EgovSampleOthersExcepHndlr implements ExceptionHandler { + + private static final Logger LOGGER = LoggerFactory.getLogger(EgovSampleOthersExcepHndlr.class); + + /** + * @param exception + * @param packageName + * @see 개발프레임웍크 실행환경 개발팀 + */ + @Override + public void occur(Exception exception, String packageName) { + LOGGER.debug(" EgovServiceExceptionHandler run..............."); + } + +} diff --git a/src/main/java/egovframework/com/mtdata/cmmn/vo/BasicVO.java b/src/main/java/egovframework/com/mtdata/cmmn/vo/BasicVO.java new file mode 100644 index 0000000..2fe4eb6 --- /dev/null +++ b/src/main/java/egovframework/com/mtdata/cmmn/vo/BasicVO.java @@ -0,0 +1,117 @@ +package egovframework.com.mtdata.cmmn.vo; + +import java.io.Serializable; + +import org.apache.commons.lang3.builder.ToStringBuilder; + +public class BasicVO implements Serializable{ + /** + * serialVersion UID + */ + private static final long serialVersionUID = 1L; + /** 검색조건 */ + private String searchCondition = ""; + + /** 검색Keyword */ + private String searchKeyword = ""; + + /** 검색사용여부 */ + private String searchUseYn = ""; + + /** 현재페이지 */ + private int pageIndex = 1; + + /** 페이지갯수 */ + private int pageUnit = 10; + + /** 페이지사이즈 */ + private int pageSize = 10; + + /** firstIndex */ + private int firstIndex = 1; + + /** lastIndex */ + private int lastIndex = 1; + + /** recordCountPerPage */ + private int recordCountPerPage = 10; + + public int getFirstIndex() { + return firstIndex; + } + + public void setFirstIndex(int firstIndex) { + this.firstIndex = firstIndex; + } + + public int getLastIndex() { + return lastIndex; + } + + public void setLastIndex(int lastIndex) { + this.lastIndex = lastIndex; + } + + public int getRecordCountPerPage() { + return recordCountPerPage; + } + + public void setRecordCountPerPage(int recordCountPerPage) { + this.recordCountPerPage = recordCountPerPage; + } + + public String getSearchCondition() { + return searchCondition; + } + + public void setSearchCondition(String searchCondition) { + this.searchCondition = searchCondition; + } + + public String getSearchKeyword() { + return searchKeyword; + } + + public void setSearchKeyword(String searchKeyword) { + this.searchKeyword = searchKeyword; + } + + public String getSearchUseYn() { + return searchUseYn; + } + + public void setSearchUseYn(String searchUseYn) { + this.searchUseYn = searchUseYn; + } + + public int getPageIndex() { + return pageIndex; + } + + public void setPageIndex(int pageIndex) { + this.pageIndex = pageIndex; + } + + public int getPageUnit() { + return pageUnit; + } + + public void setPageUnit(int pageUnit) { + this.pageUnit = pageUnit; + } + + public int getPageSize() { + return pageSize; + } + + public void setPageSize(int pageSize) { + this.pageSize = pageSize; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + +} + diff --git a/src/main/java/egovframework/com/mtdata/cmmn/web/EgovBindingInitializer.java b/src/main/java/egovframework/com/mtdata/cmmn/web/EgovBindingInitializer.java new file mode 100644 index 0000000..ba7d88a --- /dev/null +++ b/src/main/java/egovframework/com/mtdata/cmmn/web/EgovBindingInitializer.java @@ -0,0 +1,60 @@ +/* + * Copyright 2008-2009 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package egovframework.com.mtdata.cmmn.web; + +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.Locale; + +import org.springframework.beans.propertyeditors.CustomDateEditor; +import org.springframework.beans.propertyeditors.StringTrimmerEditor; +import org.springframework.web.bind.WebDataBinder; +import org.springframework.web.bind.support.WebBindingInitializer; +import org.springframework.web.context.request.WebRequest; + +/** + * @Class Name : EgovBindingInitializer.java + * @Description : EgovBindingInitializer Class + * @Modification Information + * @ + * @ 수정일 수정자 수정내용 + * @ --------- --------- ------------------------------- + * @ 2009.03.16 최초생성 + * + * @author 개발프레임웍크 실행환경 개발팀 + * @since 2009. 03.16 + * @version 1.0 + * @see + * + * Copyright (C) by MOPAS All right reserved. + */ +public class EgovBindingInitializer implements WebBindingInitializer { + + /** + * initBinder + * @param binder + * @param request + * @see 개발프레임웍크 실행환경 개발팀 + */ + @Override + public void initBinder(WebDataBinder binder) { + SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd", Locale.getDefault()); + dateFormat.setLenient(false); + binder.registerCustomEditor(Date.class, new CustomDateEditor(dateFormat, false)); + binder.registerCustomEditor(String.class, new StringTrimmerEditor(false)); + } + +} diff --git a/src/main/java/egovframework/com/mtdata/cmmn/web/EgovImgPaginationRenderer.java b/src/main/java/egovframework/com/mtdata/cmmn/web/EgovImgPaginationRenderer.java new file mode 100644 index 0000000..18d6baf --- /dev/null +++ b/src/main/java/egovframework/com/mtdata/cmmn/web/EgovImgPaginationRenderer.java @@ -0,0 +1,68 @@ +/* + * Copyright 2008-2009 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package egovframework.com.mtdata.cmmn.web; + +import org.egovframe.rte.ptl.mvc.tags.ui.pagination.AbstractPaginationRenderer; + +import javax.servlet.ServletContext; + +import org.springframework.web.context.ServletContextAware; + +/** + * @Class Name : ImagePaginationRenderer.java + * @Description : ImagePaginationRenderer Class + * @Modification Information + * @ + * @ 수정일 수정자 수정내용 + * @ --------- --------- ------------------------------- + * @ 2009.03.16 최초생성 + * + * @author 개발프레임웍크 실행환경 개발팀 + * @since 2009. 03.16 + * @version 1.0 + * @see + * + * Copyright (C) by MOPAS All right reserved. + */ +public class EgovImgPaginationRenderer extends AbstractPaginationRenderer implements ServletContextAware{ + + private ServletContext servletContext; + + public EgovImgPaginationRenderer() { + // no-op + } + + /** + * PaginationRenderer + * + * @see 개발프레임웍크 실행환경 개발팀 + */ + public void initVariables() { + + firstPageLabel = "" + " "; + previousPageLabel = "" + " "; + currentPageLabel = "{0} "; + otherPageLabel = "{2} "; + nextPageLabel = "" + " "; + lastPageLabel = "" + " "; + } + + @Override + public void setServletContext(ServletContext servletContext) { + this.servletContext = servletContext; + initVariables(); + } +} diff --git a/src/main/java/egovframework/com/mtdata/cmmnty/mapper/CmmntyMapper.java b/src/main/java/egovframework/com/mtdata/cmmnty/mapper/CmmntyMapper.java new file mode 100644 index 0000000..f05d183 --- /dev/null +++ b/src/main/java/egovframework/com/mtdata/cmmnty/mapper/CmmntyMapper.java @@ -0,0 +1,62 @@ +package egovframework.com.mtdata.cmmnty.mapper; + +import java.util.List; + +import org.egovframe.rte.psl.dataaccess.mapper.Mapper; + +import egovframework.com.mtdata.cmmn.vo.BasicVO; +import egovframework.com.mtdata.cmmnty.vo.CmmntyVO; + +@Mapper("CmmntyMapper") +public interface CmmntyMapper { + + /** + * 글을 등록한다. + * @param vo - 등록할 정보가 담긴 CmmntyVO + * @return 등록 결과 + * @exception Exception + */ + public int insertCmmnty(CmmntyVO vo) throws Exception; +// public String insertCmmnty(CmmntyVO vo) throws Exception; + + /** + * 글을 수정한다. + * @param vo - 수정할 정보가 담긴 CmmntyVO + * @return void형 + * @exception Exception + */ + public void updateCmmnty(CmmntyVO vo) throws Exception; + + /** + * 글을 삭제한다. + * @param vo - 삭제할 정보가 담긴 CmmntyVO + * @return void형 + * @exception Exception + */ + public void deleteCmmnty(CmmntyVO vo) throws Exception; + + /** + * 글을 조회한다. + * @param vo - 조회할 정보가 담긴 CmmntyVO + * @return 조회한 글 + * @exception Exception + */ + public CmmntyVO selectCmmnty(CmmntyVO vo) throws Exception; + + /** + * 글 목록을 조회한다. + * @param searchMap - 조회할 정보가 담긴 Map + * @return 글 목록 + * @exception Exception + */ + public List selectCmmntyList(BasicVO searchVO) throws Exception; + + /** + * 글 총 갯수를 조회한다. + * @param searchMap - 조회할 정보가 담긴 Map + * @return 글 총 갯수 + * @exception + */ + public int selectCmmntyListTotCnt(BasicVO searchVO); + +} diff --git a/src/main/java/egovframework/com/mtdata/cmmnty/service/CmmntyService.java b/src/main/java/egovframework/com/mtdata/cmmnty/service/CmmntyService.java new file mode 100644 index 0000000..c0962a9 --- /dev/null +++ b/src/main/java/egovframework/com/mtdata/cmmnty/service/CmmntyService.java @@ -0,0 +1,59 @@ +package egovframework.com.mtdata.cmmnty.service; + +import java.util.List; + +import egovframework.com.mtdata.cmmn.vo.BasicVO; +import egovframework.com.mtdata.cmmnty.vo.CmmntyVO; + +public interface CmmntyService { + + /** + * 글을 등록한다. + * @param vo - 등록할 정보가 담긴 CmmntyVO + * @return 등록 결과 + * @exception Exception + */ +// String insertCmmnty(CmmntyVO vo) throws Exception; + int insertCmmnty(CmmntyVO vo) throws Exception; + + /** + * 글을 수정한다. + * @param vo - 수정할 정보가 담긴 CmmntyVO + * @return void형 + * @exception Exception + */ + void updateCmmnty(CmmntyVO vo) throws Exception; + + /** + * 글을 삭제한다. + * @param vo - 삭제할 정보가 담긴 CmmntyVO + * @return void형 + * @exception Exception + */ + void deleteCmmnty(CmmntyVO vo) throws Exception; + + /** + * 글을 조회한다. + * @param vo - 조회할 정보가 담긴 CmmntyVO + * @return 조회한 글 + * @exception Exception + */ + CmmntyVO selectCmmnty(CmmntyVO vo) throws Exception; + + /** + * 글 목록을 조회한다. + * @param searchVO - 조회할 정보가 담긴 VO + * @return 글 목록 + * @exception Exception + */ + List selectCmmntyList(BasicVO basicVO) throws Exception; + + /** + * 글 총 갯수를 조회한다. + * @param searchVO - 조회할 정보가 담긴 VO + * @return 글 총 갯수 + * @exception + */ + int selectCmmntyListTotCnt(BasicVO basicVO); + +} diff --git a/src/main/java/egovframework/com/mtdata/cmmnty/service/impl/CmmntyServiceImpl.java b/src/main/java/egovframework/com/mtdata/cmmnty/service/impl/CmmntyServiceImpl.java new file mode 100644 index 0000000..e8529ce --- /dev/null +++ b/src/main/java/egovframework/com/mtdata/cmmnty/service/impl/CmmntyServiceImpl.java @@ -0,0 +1,102 @@ +package egovframework.com.mtdata.cmmnty.service.impl; + +import java.util.List; + +import javax.annotation.Resource; + +import org.egovframe.rte.fdl.cmmn.EgovAbstractServiceImpl; +import org.egovframe.rte.fdl.idgnr.EgovIdGnrService; +import org.springframework.stereotype.Service; + +import egovframework.com.mtdata.cmmn.vo.BasicVO; +import egovframework.com.mtdata.cmmnty.mapper.CmmntyMapper; +import egovframework.com.mtdata.cmmnty.service.CmmntyService; +import egovframework.com.mtdata.cmmnty.vo.CmmntyVO; + +@Service("CmmntyService") +public class CmmntyServiceImpl extends EgovAbstractServiceImpl implements CmmntyService { + + /** CmmntyMapper */ + @Resource(name = "CmmntyMapper") + private CmmntyMapper cmmntyMapper; + + /** ID Generation */ + @Resource(name = "egovIdGnrService") + private EgovIdGnrService egovIdGnrService; + + /** + * 글을 등록한다. + * @param vo - 등록할 정보가 담긴 CmmntyVO + * @return 등록 결과 + * @exception Exception + */ + @Override + public int insertCmmnty(CmmntyVO vo) throws Exception { +// public String insertCmmnty(CmmntyVO vo) throws Exception { + + /** ID Generation Service */ + String id = egovIdGnrService.getNextStringId(); + vo.setCmmntyId(id); + + return cmmntyMapper.insertCmmnty(vo); + } + + /** + * 글을 수정한다. + * @param vo - 수정할 정보가 담긴 CmmntyVO + * @return void형 + * @exception Exception + */ + @Override + public void updateCmmnty(CmmntyVO vo) throws Exception { + cmmntyMapper.updateCmmnty(vo); + } + + /** + * 글을 삭제한다. + * @param vo - 삭제할 정보가 담긴 CmmntyVO + * @return void형 + * @exception Exception + */ + @Override + public void deleteCmmnty(CmmntyVO vo) throws Exception { + cmmntyMapper.deleteCmmnty(vo); + } + + /** + * 글을 조회한다. + * @param vo - 조회할 정보가 담긴 CmmntyVO + * @return 조회한 글 + * @exception Exception + */ + @Override + public CmmntyVO selectCmmnty(CmmntyVO vo) throws Exception { + CmmntyVO resultVO = cmmntyMapper.selectCmmnty(vo); + if (resultVO == null) + throw processException("info.nodata.msg"); + return resultVO; + } + + /** + * 글 목록을 조회한다. + * @param searchVO - 조회할 정보가 담긴 VO + * @return 글 목록 + * @exception Exception + */ + @Override + public List selectCmmntyList(BasicVO searchVO) throws Exception { + return cmmntyMapper.selectCmmntyList(searchVO); + } + + /** + * 글 총 갯수를 조회한다. + * @param searchVO - 조회할 정보가 담긴 VO + * @return 글 총 갯수 + * @exception + */ + @Override + public int selectCmmntyListTotCnt(BasicVO searchVO) { + return cmmntyMapper.selectCmmntyListTotCnt(searchVO); + } + +} diff --git a/src/main/java/egovframework/com/mtdata/cmmnty/vo/CmmntyVO.java b/src/main/java/egovframework/com/mtdata/cmmnty/vo/CmmntyVO.java new file mode 100644 index 0000000..32da9f3 --- /dev/null +++ b/src/main/java/egovframework/com/mtdata/cmmnty/vo/CmmntyVO.java @@ -0,0 +1,44 @@ +package egovframework.com.mtdata.cmmnty.vo; + +import egovframework.com.mtdata.cmmn.vo.BasicVO; +import lombok.Getter; +import lombok.Setter; + +@Getter +@Setter +public class CmmntyVO extends BasicVO{ + + private static final long serialVersionUID = 1L; + + /** 게시글 아이디*/ + private String cmmntyId; + + /** 게시글 이름*/ + private String cmmntyNm; + + /** 사용 여부*/ + private String useYn; + + /** 최초 등록일자*/ + private String frstRegDt; + + /** 최초 등록 아이디*/ + private String frsRegId; + + /** 최종 수정일자*/ + private String lastMdfrDt; + + /** 최종 수정 아이디*/ + private String lastMdfrId; + + /** ?*/ + private String cmmntyIntrcn; + + /** ?*/ + private String regSeCd; + + /** ?*/ + private String tmplatId; + + +} diff --git a/src/main/java/egovframework/com/mtdata/cmmnty/web/CmmntyController.java b/src/main/java/egovframework/com/mtdata/cmmnty/web/CmmntyController.java new file mode 100644 index 0000000..93e9bef --- /dev/null +++ b/src/main/java/egovframework/com/mtdata/cmmnty/web/CmmntyController.java @@ -0,0 +1,82 @@ +package egovframework.com.mtdata.cmmnty.web; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import javax.annotation.Resource; +import javax.servlet.http.HttpServletRequest; + +import org.apache.log4j.Logger; +import org.egovframe.rte.fdl.property.EgovPropertyService; +import org.egovframe.rte.ptl.mvc.tags.ui.pagination.PaginationInfo; +import org.springframework.http.ResponseEntity; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.ModelAttribute; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import org.springframework.web.bind.annotation.RestController; + +import egovframework.com.mtdata.cmmn.vo.BasicVO; +import egovframework.com.mtdata.cmmnty.service.CmmntyService; +import egovframework.com.mtdata.cmmnty.vo.CmmntyVO; + +@RestController +@RequestMapping("/api") +public class CmmntyController { + + /** Service */ + @Resource(name = "CmmntyService") + private CmmntyService cmmntyService; + + /** EgovPropertyService */ + @Resource(name = "propertiesService") + protected EgovPropertyService propertiesService; + + final static Logger log = Logger.getLogger(CmmntyController.class); + + /** + * 글 목록을 조회한다. (pageing) + * @param searchVO - 조회할 정보가 담긴 BasicVO + * @param model + * @return "egovSampleList" + * @exception Exception + */ + @RequestMapping(value="/cmmntyList.do") + public @ResponseBody ModelMap getCmmntyList(@ModelAttribute("searchVO") BasicVO searchVO) throws Exception { + + /** EgovPropertyService */ + searchVO.setPageUnit(propertiesService.getInt("pageUnit")); + searchVO.setPageSize(propertiesService.getInt("pageSize")); + + + /** pageing setting */ + PaginationInfo paginationInfo = new PaginationInfo(); + paginationInfo.setCurrentPageNo(searchVO.getPageIndex()); + paginationInfo.setRecordCountPerPage(searchVO.getPageUnit()); + paginationInfo.setPageSize(searchVO.getPageSize()); + + searchVO.setFirstIndex(paginationInfo.getFirstRecordIndex()); + searchVO.setLastIndex(paginationInfo.getLastRecordIndex()); + searchVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage()); + + ModelMap model = new ModelMap(); + + // db에 있는 게시글 list를 가져와서 cmmntyList에 저장 + List cmmntyList = cmmntyService.selectCmmntyList(searchVO); + // 검색된 건수가 몇건인지 확인 + int totCnt = cmmntyService.selectCmmntyListTotCnt(searchVO); + + model.addAttribute("cmmntyList", cmmntyList); + model.addAttribute("totCnt", totCnt); + + return model; + } + + /** 게시글 작성*/ + @RequestMapping(value="/insertCmmnty.do") + public String insetCmmnty() { + return ""; + } +} + diff --git a/src/main/java/egovframework/com/mtdata/config/dbConn/mySql/CreateYaml.java b/src/main/java/egovframework/com/mtdata/config/dbConn/mySql/CreateYaml.java new file mode 100644 index 0000000..6598898 --- /dev/null +++ b/src/main/java/egovframework/com/mtdata/config/dbConn/mySql/CreateYaml.java @@ -0,0 +1,130 @@ +package egovframework.com.mtdata.config.dbConn.mySql; + +import java.io.FileWriter; +import java.io.IOException; +import java.io.InputStream; +import java.nio.file.Files; +import java.nio.file.Path; +import java.nio.file.Paths; +import java.time.LocalDateTime; +import java.time.format.DateTimeFormatter; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.yaml.snakeyaml.DumperOptions; +import org.yaml.snakeyaml.Yaml; + +import egovframework.com.mtdata.database.vo.DatabaseInfoVO; + +public class CreateYaml { + private static final Logger log = LoggerFactory.getLogger(CreateYaml.class); + private static final Map fixedConfigurations; + static { + Map config = new HashMap<>(); + config.put("lock_timeout", "120s"); + config.put("replica_batch_size", 10000); + config.put("replay_max_rows", 10000); + config.put("batch_retention", "1 day"); + config.put("copy_max_memory", "300M"); + config.put("copy_mode", "file"); + config.put("out_dir", "/tmp"); + config.put("sleep_loop", 1); + config.put("on_error_replay", "continue"); + config.put("type", "mysql"); + config.put("limit_tables", null); +// config.put("limit_tables", Collections.emptyList()); + config.put("skip_tables", null); +// config.put("skip_tables", Collections.emptyList()); + + fixedConfigurations = Collections.unmodifiableMap(config); + } + + public static void addFixedConfigurations(Map source) { + source.putAll(fixedConfigurations); + } + + public void createYaml(List databaseInfoList) throws IOException { + log.info("Current user: {}", System.getProperty("user.name")); + + Path filePath = determineFilePath(); + backupExistingFile(filePath); + + InputStream input = getClass().getClassLoader().getResourceAsStream("config/chameleon-setting.yaml"); + + if (input == null) { + log.error("Resource config/chameleon-setting.yaml not found."); + return; + } + + Yaml yaml = new Yaml(); + Map data = yaml.load(input); + + updateSourceSection(data, databaseInfoList); + + DumperOptions op = new DumperOptions(); + op.setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK); + op.setPrettyFlow(true); + yaml = new Yaml(op); + + try (FileWriter writer = new FileWriter(filePath.toString())) { + yaml.dump(data, writer); + } catch (IOException e) { + log.error("Failed to create new YAML file", e); + } + } + + private Path determineFilePath() { + String osName = System.getProperty("os.name").toLowerCase(); + String saveDir = osName.contains("win") ? System.getProperty("user.home") + "\\Desktop" + : "/home/dpc/.pg_chameleon/configuration"; + log.info("Saving file to: {}", saveDir); + return Paths.get(saveDir, "default.yml"); + } + + private void backupExistingFile(Path filePath) { + if (Files.exists(filePath)) { + String backupFileName = "default_" + + LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyyMMdd_HHmmss")) + ".yml"; + Path backupPath = Paths.get(filePath.getParent().toString(), backupFileName); + try { + Files.move(filePath, backupPath); + log.info("Backup created: {}", backupPath); + } catch (IOException e) { + log.error("Failed to backup existing file", e); + } + } + } + + private void updateSourceSection(Map data, List databaseInfoList) { + Map sources = (Map) data.computeIfAbsent("sources", k -> new LinkedHashMap<>()); + for (DatabaseInfoVO vo : databaseInfoList) { + Map source = new LinkedHashMap<>(); + source.put("db_conn", Map.of("host", vo.getDbConnIp(), "port", vo.getDbConnPort(), "user", + vo.getDbConnUser(), "password", vo.getDbConnPw(), "charset", "utf8", "connect_timeout", 10)); + + Map schemaMappings = new LinkedHashMap<>(); + if (vo.getDbNmList().contains(", ")) { + for (String dbName : vo.getDbNmList().split(", ")) { + schemaMappings.put(dbName, dbName); + } + } else { + schemaMappings.put(vo.getDbNmList(), vo.getDbNmList()); + } + + List grantSelectTo = new ArrayList<>(); + grantSelectTo.add("migration_user"); + source.put("schema_mappings", schemaMappings); + source.put("my_server_id", vo.getDbConnId()); + source.put("grant_select_to", grantSelectTo); + addFixedConfigurations(source); + + sources.put(vo.getPgSourceNm(), source); + } + } +} diff --git a/src/main/java/egovframework/com/mtdata/database/mapper/DatabaseMapper.java b/src/main/java/egovframework/com/mtdata/database/mapper/DatabaseMapper.java new file mode 100644 index 0000000..b7f2238 --- /dev/null +++ b/src/main/java/egovframework/com/mtdata/database/mapper/DatabaseMapper.java @@ -0,0 +1,234 @@ +package egovframework.com.mtdata.database.mapper; + +import java.util.List; + +import egovframework.com.mtdata.database.vo.*; +import org.apache.ibatis.annotations.Delete; +import org.apache.ibatis.annotations.Update; +import org.egovframe.rte.psl.dataaccess.mapper.Mapper; + +@Mapper("DatabaseMapper") +public interface DatabaseMapper { + + /** + * 데이터베이스 스키마 조회 후 [comtsysdbinfo]테이블에 데이터를 저장한다 + * + * @param vo + * @return + * @throws Exception + */ + public int insertDbInfo(DatabaseInfoVO vo) throws Exception; + + /** + * 사용자가 입력한 연결정보를 [comttblinfo]테이블에 저장한다 + * + * @param vo + * @return + * @throws Exception + */ + public int insertDbConnInfo(DatabaseInfoVO vo) throws Exception; + + /** + * [comttblinfo]테이블에 저장된 내용을 조회한다 + * + * @param vo + * @return + */ + public DatabaseInfoVO selectSysDb(DatabaseInfoVO vo); + + /** + * Yaml 파일을 업데이트하기 위해 목록을 조회한다(pg_chameleon yaml용이나, 차후 다른 용도로 쓰임이 있다 판단되면 수정) + * + * @param vo + * @return + */ + public List selectSysDbConnList(DatabaseInfoVO vo); + + /** + * DB 연결 정보 검증(중복확인) + * + * @param vo + * @return + */ + public int checkDbConnInfo(DatabaseInfoVO vo); + + /** + * 등록된 DB 정보 관리 리스트 + * + * @param vo + * @return List + */ + List selectRegisterdDBInfoList(DatabaseInfoVO vo); + + /** + * DB 연결 정보 리스트 조회 + * + * @param vo + * @return + */ + List selectInstDbConnInfoList(DBConnInfoVO vo); + + /** + * DB 연결 정보 조회 + * + * @param vo + * @return + */ + DBConnInfoVO selectInstDbConnInfo(DBConnInfoVO vo); + + /** + * DB 연결 정보 저장 + * + * @param vo + * @return + */ + void insertInstDbConnInfo(DBConnInfoVO vo) throws Exception; + + /** + * DB 연결 정보 수정 + * + * @param vo + * @return + */ + void updateInstDbConnInfo(DBConnInfoVO vo) throws Exception; + + + /** + * DB 연결 정보 삭제 + * + * @param vo + * @return + */ + @Update("UPDATE inst_db_conn_info SET use_yn='N' WHERE db_conn_id = #{dbConnId}") + void deleteInstDbConnInfo(DBConnInfoVO vo) throws Exception; + + + /** + * DB 정보 리스트 조회 + * + * @param vo + * @return List + */ + List selectInstDbInfoList(DBInfoVO vo); + + /** + * DB 정보 조회 + * + * @param vo + * @return DBInfoVO + */ + DBInfoVO selectInstDbInfo(DBInfoVO vo); + + /** + * DB 정보 저장 + * + * @param vo + * @return + */ + void insertInstDbInfo(DBInfoVO vo) throws Exception; + + /** + * DB 정보 수정 + * + * @param vo + * @return + */ + void updateInstDbInfo(DBInfoVO vo) throws Exception; + + + /** + * DB 정보 삭제 + * + * @param vo + * @return + */ + @Update("UPDATE inst_db_info SET use_yn='N' WHERE db_link_id = #{dbLinkId}") + void deleteInstDbInfo(DBInfoVO vo) throws Exception; + + + /** + * DB 테이블 정보 리스트 조회 + * + * @param vo + * @return List + */ + List selectInstDbTblInfoList(DBTblInfoVO vo); + + /** + * DB 테이블 정보 조회 + * + * @param vo + * @return DBTblInfoVO + */ + DBTblInfoVO selectInstDbTblInfo(DBTblInfoVO vo); + + /** + * DB 테이블 정보 저장 + * + * @param vo + * @return + */ + void insertInstDbTblInfo(DBTblInfoVO vo) throws Exception; + + /** + * DB 테이블 정보 수정 + * + * @param vo + * @return + */ + void updateInstDbTblInfo(DBTblInfoVO vo) throws Exception; + + + /** + * DB 테이블 정보 삭제 + * + * @param vo + * @return + */ + @Delete("DELETE FROM inst_db_tbl_info WHERE table_id = #{tableId}") + void deleteInstDbTblInfo(DBTblInfoVO vo) throws Exception; + + /** + * DB 테이블 컬럼 정보 리스트 조회 + * + * @param vo + * @return List + */ + List selectInstDbTblColInfoList(DBTblColInfoVO vo); + + /** + * DB 테이블 컬럼 정보 조회 + * + * @param vo + * @return DBTblColInfoVO + */ + DBTblColInfoVO selectInstDbTblColInfo(DBTblColInfoVO vo); + + /** + * DB 테이블 컬럼 정보 저장 + * + * @param vo + * @return + */ + void insertInstDbTblColInfo(DBTblColInfoVO vo) throws Exception; + + /** + * DB 테이블 컬럼 정보 수정 + * + * @param vo + * @return + */ + void updateInstDbTblColInfo(DBTblColInfoVO vo) throws Exception; + + + /** + * DB 테이블 컬럼 정보 삭제 + * + * @param vo + * @return + */ + @Delete("DELETE FROM inst_tbl_col_info WHERE table_id = #{tableId} AND column_id = #{columnId}") + void deleteInstDbTblColInfo(DBTblColInfoVO vo) throws Exception; + + +} diff --git a/src/main/java/egovframework/com/mtdata/database/service/DatabaseService.java b/src/main/java/egovframework/com/mtdata/database/service/DatabaseService.java new file mode 100644 index 0000000..2f535a2 --- /dev/null +++ b/src/main/java/egovframework/com/mtdata/database/service/DatabaseService.java @@ -0,0 +1,246 @@ +package egovframework.com.mtdata.database.service; + +import java.util.List; + +import egovframework.com.mtdata.database.vo.*; +import org.apache.ibatis.annotations.Delete; +import org.apache.ibatis.annotations.Update; + +public interface DatabaseService { + + /** + * 데이터베이스 스키마 조회 후 [comtsysdbinfo]테이블에 데이터를 저장한다 + * + * @param vo + * @return + * @throws Exception + */ + int insertDbInfo(DatabaseInfoVO vo) throws Exception; + + /** + * 사용자가 입력한 연결정보를 [comttblinfo]테이블에 저장한다 + * + * @param vo + * @return + * @throws Exception + */ + int insertDbConnInfo(DatabaseInfoVO vo) throws Exception; + + /** + * [comttblinfo]테이블에 저장된 내용을 조회한다(단일) + * + * @param vo + * @return + */ + DatabaseInfoVO selectSysDb(DatabaseInfoVO vo); + + /** + * Yaml 파일을 업데이트하기 위해 목록을 조회한다(pg_chameleon yaml용이나 차후 다른 용도로 쓰임이 있다 판단되면 수정) + * + * @param vo + * @return + */ + List selectSysDbConnList(DatabaseInfoVO vo); + + /** + * DB 연결 정보 검증(중복확인) + * + * @param vo + * @return + */ + int checkDbConnInfo(DatabaseInfoVO vo); + + + /** + * 등록된 DB 정보 관리 리스트 + * + * @param vo + * @return List + */ + List selectRegisterdDBInfoList(DatabaseInfoVO vo); + + /** + * 등록된 DB 정보 관리 수정 + * + * @param vo + * @return List + */ + void updateRegisterdDBInfoList(DatabaseInfoVO vo) throws Exception; + + /** + * 등록된 DB 정보 관리 삭제 + * + * @param vo + * @return List + */ + void deleteRegisterdDBInfoList(DatabaseInfoVO vo) throws Exception; + + + /** + * DB 연결 정보 리스트 조회 + * + * @param vo + * @return List + */ + List selectInstDbConnInfoList(DBConnInfoVO vo); + + /** + * DB 연결 정보 조회 + * + * @param vo + * @return DBConnInfoVO + */ + DBConnInfoVO selectInstDbConnInfo(DBConnInfoVO vo); + + /** + * DB 연결 정보 저장 + * + * @param vo + * @return + */ + void insertInstDbConnInfo(DBConnInfoVO vo) throws Exception; + + /** + * DB 연결 정보 수정 + * + * @param vo + * @return + */ + void updateInstDbConnInfo(DBConnInfoVO vo) throws Exception; + + + /** + * DB 연결 정보 삭제 + * + * @param vo + * @return + */ + void deleteInstDbConnInfo(DBConnInfoVO vo) throws Exception; + + /** + * DB 정보 리스트 조회 + * + * @param vo + * @return List + */ + List selectInstDbInfoList(DBInfoVO vo); + + /** + * DB 정보 조회 + * + * @param vo + * @return DBInfoVO + */ + DBInfoVO selectInstDbInfo(DBInfoVO vo); + + /** + * DB 정보 저장 + * + * @param vo + * @return + */ + void insertInstDbInfo(DBInfoVO vo) throws Exception; + + /** + * DB 정보 수정 + * + * @param vo + * @return + */ + void updateInstDbInfo(DBInfoVO vo) throws Exception; + + /** + * DB 정보 삭제 + * + * @param vo + * @return + */ + void deleteInstDbInfo(DBInfoVO vo) throws Exception; + + + + /** + * DB 테이블 정보 리스트 조회 + * + * @param vo + * @return List + */ + List selectInstDbTblInfoList(DBTblInfoVO vo); + + /** + * DB 테이블 정보 조회 + * + * @param vo + * @return DBTblInfoVO + */ + DBTblInfoVO selectInstDbTblInfo(DBTblInfoVO vo); + + /** + * DB 테이블 정보 저장 + * + * @param vo + * @return + */ + void insertInstDbTblInfo(DBTblInfoVO vo) throws Exception; + + /** + * DB 테이블 정보 수정 + * + * @param vo + * @return + */ + void updateInstDbTblInfo(DBTblInfoVO vo) throws Exception; + + + /** + * DB 테이블 정보 삭제 + * + * @param vo + * @return + */ + void deleteInstDbTblInfo(DBTblInfoVO vo) throws Exception; + + + + /** + * DB 테이블 컬럼 정보 리스트 조회 + * + * @param vo + * @return List + */ + List selectInstDbTblColInfoList(DBTblColInfoVO vo); + + /** + * DB 테이블 컬럼 정보 조회 + * + * @param vo + * @return DBTblColInfoVO + */ + DBTblColInfoVO selectInstDbTblColInfo(DBTblColInfoVO vo); + + /** + * DB 테이블 컬럼 정보 저장 + * + * @param vo + * @return + */ + void insertInstDbTblColInfo(DBTblColInfoVO vo) throws Exception; + + /** + * DB 테이블 컬럼 정보 수정 + * + * @param vo + * @return + */ + void updateInstDbTblColInfo(DBTblColInfoVO vo) throws Exception; + + + /** + * DB 테이블 컬럼 정보 삭제 + * + * @param vo + * @return + */ + void deleteInstDbTblColInfo(DBTblColInfoVO vo) throws Exception; + +} diff --git a/src/main/java/egovframework/com/mtdata/database/service/impl/DatabaseServiceImpl.java b/src/main/java/egovframework/com/mtdata/database/service/impl/DatabaseServiceImpl.java new file mode 100644 index 0000000..1a019d3 --- /dev/null +++ b/src/main/java/egovframework/com/mtdata/database/service/impl/DatabaseServiceImpl.java @@ -0,0 +1,201 @@ +package egovframework.com.mtdata.database.service.impl; + +import java.util.List; + +import javax.annotation.Resource; + +import egovframework.com.mtdata.database.vo.*; +import org.egovframe.rte.fdl.cmmn.EgovAbstractServiceImpl; +import org.springframework.stereotype.Service; + +import egovframework.com.mtdata.database.mapper.DatabaseMapper; +import egovframework.com.mtdata.database.service.DatabaseService; +import org.springframework.transaction.annotation.Transactional; + +@Service("DatabaseService") +public class DatabaseServiceImpl extends EgovAbstractServiceImpl implements DatabaseService { + + @Resource(name = "DatabaseMapper") + private DatabaseMapper databaseMapper; + + @Override + public int insertDbInfo(DatabaseInfoVO vo) throws Exception { + return databaseMapper.insertDbInfo(vo); + } + + @Override + public int insertDbConnInfo(DatabaseInfoVO vo) throws Exception { + return databaseMapper.insertDbConnInfo(vo); + } + + @Override + public DatabaseInfoVO selectSysDb(DatabaseInfoVO vo) { + return databaseMapper.selectSysDb(vo); + } + + @Override + public List selectSysDbConnList(DatabaseInfoVO vo) { + return databaseMapper.selectSysDbConnList(vo); + } + + @Override + public int checkDbConnInfo(DatabaseInfoVO vo) { + return databaseMapper.checkDbConnInfo(vo); + } + + @Override + public List selectRegisterdDBInfoList(DatabaseInfoVO vo) { + return databaseMapper.selectRegisterdDBInfoList(vo); + } + + @Override + @Transactional + public void updateRegisterdDBInfoList(DatabaseInfoVO vo) throws Exception{ + + //TODO: 연결체크 로직 추가 + if (true) { + DBConnInfoVO dbConnInfoVO = new DBConnInfoVO(); + dbConnInfoVO.setSysId(vo.getSysId()); + dbConnInfoVO.setDbConnUser(vo.getDbConnUser()); + dbConnInfoVO.setDbConnPw(vo.getDbConnPw()); + dbConnInfoVO.setDbType(vo.getDbType()); + dbConnInfoVO.setDbConnIp(vo.getDbConnIp()); + dbConnInfoVO.setRegisterId(vo.getRegisterId()); + + DBInfoVO dbInfoVO = new DBInfoVO(); + dbInfoVO.setDbLinkId(vo.getDbLinkId()); + dbInfoVO.setDbNm(vo.getDbNm()); + + int checkDbConnCnt = databaseMapper.checkDbConnInfo(vo); + + // DB 연결정보 미존재 시 DB 연결 정보 insert + if (checkDbConnCnt < 1) { + databaseMapper.insertInstDbConnInfo(dbConnInfoVO); + + dbInfoVO.setDbConnId(dbConnInfoVO.getDbConnId()); + databaseMapper.updateInstDbInfo(dbInfoVO); + } else { // 존재 시 update + dbConnInfoVO.setDbConnId(vo.getDbConnId()); + databaseMapper.updateInstDbConnInfo(dbConnInfoVO); + + dbInfoVO.setDbConnId(vo.getDbConnId()); + databaseMapper.updateInstDbInfo(dbInfoVO); + } + + } else { + throw new Exception(); + } + } + @Override + @Transactional + public void deleteRegisterdDBInfoList(DatabaseInfoVO vo) throws Exception{ + + DBInfoVO dbInfoVO = new DBInfoVO(); + dbInfoVO.setDbLinkId(vo.getDbLinkId()); + + databaseMapper.deleteInstDbInfo(dbInfoVO); + } + + @Override + public List selectInstDbConnInfoList(DBConnInfoVO vo) { + return databaseMapper.selectInstDbConnInfoList(vo); + } + + @Override + public DBConnInfoVO selectInstDbConnInfo(DBConnInfoVO vo) { + return databaseMapper.selectInstDbConnInfo(vo); + } + + @Override + public void insertInstDbConnInfo(DBConnInfoVO vo) throws Exception { + databaseMapper.insertInstDbConnInfo(vo); + } + + @Override + public void updateInstDbConnInfo(DBConnInfoVO vo) throws Exception { + databaseMapper.updateInstDbConnInfo(vo); + } + + @Override + public void deleteInstDbConnInfo(DBConnInfoVO vo) throws Exception { + databaseMapper.deleteInstDbConnInfo(vo); + } + + + @Override + public List selectInstDbInfoList(DBInfoVO vo) { + return databaseMapper.selectInstDbInfoList(vo); + } + + @Override + public DBInfoVO selectInstDbInfo(DBInfoVO vo) { + return databaseMapper.selectInstDbInfo(vo); + } + + @Override + public void insertInstDbInfo(DBInfoVO vo) throws Exception { + databaseMapper.insertInstDbInfo(vo); + } + + @Override + public void updateInstDbInfo(DBInfoVO vo) throws Exception { + databaseMapper.updateInstDbInfo(vo); + } + + @Override + public void deleteInstDbInfo(DBInfoVO vo) throws Exception { + databaseMapper.deleteInstDbInfo(vo); + } + + @Override + public List selectInstDbTblInfoList(DBTblInfoVO vo) { + return databaseMapper.selectInstDbTblInfoList(vo); + } + + @Override + public DBTblInfoVO selectInstDbTblInfo(DBTblInfoVO vo) { + return databaseMapper.selectInstDbTblInfo(vo); + } + + @Override + public void insertInstDbTblInfo(DBTblInfoVO vo) throws Exception { + databaseMapper.insertInstDbTblInfo(vo); + } + + @Override + public void updateInstDbTblInfo(DBTblInfoVO vo) throws Exception { + databaseMapper.updateInstDbTblInfo(vo); + } + + @Override + public void deleteInstDbTblInfo(DBTblInfoVO vo) throws Exception { + databaseMapper.deleteInstDbTblInfo(vo); + } + + + @Override + public List selectInstDbTblColInfoList(DBTblColInfoVO vo) { + return databaseMapper.selectInstDbTblColInfoList(vo); + } + + @Override + public DBTblColInfoVO selectInstDbTblColInfo(DBTblColInfoVO vo) { + return databaseMapper.selectInstDbTblColInfo(vo); + } + + @Override + public void insertInstDbTblColInfo(DBTblColInfoVO vo) throws Exception { + databaseMapper.insertInstDbTblColInfo(vo); + } + + @Override + public void updateInstDbTblColInfo(DBTblColInfoVO vo) throws Exception { + databaseMapper.updateInstDbTblColInfo(vo); + } + + @Override + public void deleteInstDbTblColInfo(DBTblColInfoVO vo) throws Exception { + databaseMapper.deleteInstDbTblColInfo(vo); + } + +} diff --git a/src/main/java/egovframework/com/mtdata/database/vo/DBConnInfoVO.java b/src/main/java/egovframework/com/mtdata/database/vo/DBConnInfoVO.java new file mode 100644 index 0000000..920ccd1 --- /dev/null +++ b/src/main/java/egovframework/com/mtdata/database/vo/DBConnInfoVO.java @@ -0,0 +1,22 @@ +package egovframework.com.mtdata.database.vo; + +import com.fasterxml.jackson.annotation.JsonInclude; +import lombok.Data; + +@Data +@JsonInclude(JsonInclude.Include.NON_NULL) +public class DBConnInfoVO { + + private Integer sysId; + private Integer sysNm; + private Integer dbConnId; + private String useYn; + private String dbType; + private String dbConnUser; + private String dbConnPw; + private Integer dbConnPort; + private String dbConnIp; + private String registerId; + private String registDate; + +} diff --git a/src/main/java/egovframework/com/mtdata/database/vo/DBInfoVO.java b/src/main/java/egovframework/com/mtdata/database/vo/DBInfoVO.java new file mode 100644 index 0000000..0876bbe --- /dev/null +++ b/src/main/java/egovframework/com/mtdata/database/vo/DBInfoVO.java @@ -0,0 +1,17 @@ +package egovframework.com.mtdata.database.vo; + +import com.fasterxml.jackson.annotation.JsonInclude; +import lombok.Data; + +@Data +@JsonInclude(JsonInclude.Include.NON_NULL) +public class DBInfoVO { + + private Integer dbConnId; + private Integer dbLinkId; + private String dbNm; + private String dbCmment; + private String registDate; + private String useYn; + +} diff --git a/src/main/java/egovframework/com/mtdata/database/vo/DBTblColInfoVO.java b/src/main/java/egovframework/com/mtdata/database/vo/DBTblColInfoVO.java new file mode 100644 index 0000000..ef650e9 --- /dev/null +++ b/src/main/java/egovframework/com/mtdata/database/vo/DBTblColInfoVO.java @@ -0,0 +1,19 @@ +package egovframework.com.mtdata.database.vo; + +import com.fasterxml.jackson.annotation.JsonInclude; +import lombok.Data; + +@Data +@JsonInclude(JsonInclude.Include.NON_NULL) +public class DBTblColInfoVO { + + private Integer columnId; + private Integer tableId; + private String columnNm; + private String columnType; + private Boolean isNullable; + private Boolean isPkey; + private Boolean isFkey; + private String columnDc; + private String defaultValue; +} diff --git a/src/main/java/egovframework/com/mtdata/database/vo/DBTblInfoVO.java b/src/main/java/egovframework/com/mtdata/database/vo/DBTblInfoVO.java new file mode 100644 index 0000000..456e9f1 --- /dev/null +++ b/src/main/java/egovframework/com/mtdata/database/vo/DBTblInfoVO.java @@ -0,0 +1,16 @@ +package egovframework.com.mtdata.database.vo; + +import com.fasterxml.jackson.annotation.JsonInclude; +import lombok.Data; + +@Data +@JsonInclude(JsonInclude.Include.NON_NULL) +public class DBTblInfoVO { + private Integer dbConnId; + private Integer dbLinkId; + private String dbNm; + private String dbCmment; + private String registDate; + private String useYn; + +} diff --git a/src/main/java/egovframework/com/mtdata/database/vo/DatabaseInfoVO.java b/src/main/java/egovframework/com/mtdata/database/vo/DatabaseInfoVO.java new file mode 100644 index 0000000..570e08a --- /dev/null +++ b/src/main/java/egovframework/com/mtdata/database/vo/DatabaseInfoVO.java @@ -0,0 +1,59 @@ +package egovframework.com.mtdata.database.vo; + +import com.fasterxml.jackson.annotation.JsonInclude; +import lombok.*; + +@Data +@JsonInclude(JsonInclude.Include.NON_NULL) +public class DatabaseInfoVO { + /** rowNum */ + private Integer row; + + /** 정보시스템 아이디 */ + private Integer sysId; + + /** 정보시스템 이름 */ + private String sysNm; + + /** 데이터베이스 연결 아이디 */ + private Integer dbConnId; + + /** 데이터베이스 아이디[comttblinfo] */ + private Integer dbLinkId; + + /** 데이터베이스명 */ + private String dbNm; + + /** 사용 여부 */ + private String useYn; + + /** pg_chameleon 연결 데이터베이스 소스명 */ + private String pgDbSource; + + /** 데이터베이스 접속IP */ + private String dbConnIp; + + /** 데이터베이스 접속PORT */ + private Integer dbConnPort; + + /** 데이터베이스 접속 계정 */ + private String dbConnUser; + + /** 데이터베이스 접속 비밀번호 */ + private String dbConnPw; + + /** 데이터베이스 종류 */ + private String dbType; + + /** pg_chameleon 연결 DB 목록 */ + private String dbNmList; // 특정 정보시스템의 DB명을 묶음 + + /** pg_chameleon database source명 */ + private String pgSourceNm; + + /** 등록자 아이디 */ + private String registerId; + + /** 데이터베이서 연결 정보 등록일자 */ + private String dbConnRegistDate; +} diff --git a/src/main/java/egovframework/com/mtdata/database/web/DatabaseConnController.java b/src/main/java/egovframework/com/mtdata/database/web/DatabaseConnController.java new file mode 100644 index 0000000..58689b6 --- /dev/null +++ b/src/main/java/egovframework/com/mtdata/database/web/DatabaseConnController.java @@ -0,0 +1,383 @@ +package egovframework.com.mtdata.database.web; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import javax.annotation.Resource; + +import egovframework.com.mtdata.database.vo.*; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.http.HttpStatus; +import org.springframework.http.ResponseEntity; +import org.springframework.transaction.annotation.Transactional; +import org.springframework.web.bind.annotation.*; + +import egovframework.com.mtdata.config.dbConn.mySql.CreateYaml; +import egovframework.com.mtdata.database.service.DatabaseService; +import egovframework.com.mtdata.schema.service.impl.DatabaseSchemaViewerService; + +@RestController +@RequestMapping("/api") +public class DatabaseConnController { + + /** Service */ + @Resource(name = "DatabaseService") + private DatabaseService dbService; + + @Resource(name = "viService") + private DatabaseSchemaViewerService viService; + + private static final Logger log = LoggerFactory.getLogger(DatabaseConnController.class); + + @RequestMapping("/insertDbConn.do") + @Transactional(rollbackFor = Exception.class) + public String insertDbConn(@ModelAttribute DatabaseInfoVO vo) throws Exception { + + /** 하단의 vo.setting은 임시설정으로, 사용자가 입력한 데이터를 vo객체에 받아올 것임 */ + vo.setSysId(1); // [inst_sys_info]테이블의 sysId를 참조하고 있음.sysId : 정보시스템 고유 아이디값 + vo.setDbConnUser("replica_user"); + vo.setDbConnPw("dpcPW12!@"); + vo.setDbConnPort(3306); + vo.setDbConnIp("223.130.160.210"); + vo.setDbType("mysql"); + vo.setRegisterId("qkrrkdus@korea.kr"); // 이 값은 세션에서 가지고 올 것임 + + try { + // 기존 정보 여부 검증 + int check = dbService.checkDbConnInfo(vo); + + if (check < 1) { + // 성공적으로 검증된 경우에 트랜잭션 시작 + int succ = dbService.insertDbConnInfo(vo); + + if (succ > 0) { + DatabaseInfoVO infoVo = dbService.selectSysDb(vo); + viService.selectSchema(infoVo); + + return "연결정보 저장 및 스키마 조회 성공"; + } else { + // 오류 발생시 롤백 + throw new RuntimeException("연결정보 저장 실패"); + } + } else { + log.debug("===================================="); + log.debug("dbConnIp : '{}'에 대한 정보가 {}건 저장되어있습니다.", vo.getDbConnIp(), check); + return "기존 입력된 정보가 존재함"; + } + } catch (Exception e) { + log.error("Exception {}", e); + throw new RuntimeException(e.getMessage()); + } + } + + @RequestMapping("/updateYaml.do") + public void updateYaml(@ModelAttribute DatabaseInfoVO vo) { + // 임시로 넣음 [해당 데이터는 databaseInfovo 에 담겨있을 것임] + + vo.setDbType("mysql"); + try { + if ("mysql".equals(vo.getDbType())) { + List mysqlInfoList = dbService.selectSysDbConnList(vo); + + CreateYaml yaml = new CreateYaml(); + yaml.createYaml(mysqlInfoList); + + log.info("========================================"); + log.info("yaml 파일 생성 성공"); + } + } catch (Exception e) { + log.error("Exception", e); + throw new RuntimeException(e.getMessage()); + } + } + + // DB관리 > 등록된 DB정보관리 리스트 + @GetMapping(value="/get/registerdDBInfoList.do") + @ResponseBody + public ResponseEntity getRegisterdDBInfoList(DatabaseInfoVO databaseInfoVO) { + try{ + return ResponseEntity.ok().body(dbService.selectRegisterdDBInfoList(databaseInfoVO)); + } catch(Exception e){ + log.error("Exception", e); + return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(e.getMessage()); + } + } + + // DB관리 > 등록된 DB정보관리 수정 + @PostMapping(value="/update/registerdDBInfoList.do") + @ResponseBody + public ResponseEntity updateRegisterdDBInfoList(@RequestBody DatabaseInfoVO databaseInfoVO) { + try{ + dbService.updateRegisterdDBInfoList(databaseInfoVO); + return ResponseEntity.ok().build(); + } catch(Exception e){ + log.error("Exception", e); + return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(e.getMessage()); + } + } + + + // DB관리 > 등록된 DB정보관리 삭제 + @PostMapping(value="/delete/registerdDBInfoList.do") + @ResponseBody + public ResponseEntity deleteRegisterdDBInfoList(@RequestBody DatabaseInfoVO databaseInfoVO) { + try{ + dbService.deleteRegisterdDBInfoList(databaseInfoVO); + return ResponseEntity.ok().build(); + } catch(Exception e){ + log.error("Exception", e); + return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(e.getMessage()); + } + } + + // inst_db_conn_info 테이블 기본 CRUD + @GetMapping(value="/get/instDbConnInfoList.do") + @ResponseBody + public ResponseEntity getDbConnInfoList(DBConnInfoVO dbConnInfoVO) { + try{ + return ResponseEntity.ok().body(dbService.selectInstDbConnInfoList(dbConnInfoVO)); + } catch(Exception e){ + log.error("Exception", e); + return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(e.getMessage()); + } + } + + @GetMapping(value="/get/instDbConnInfo.do") + @ResponseBody + public ResponseEntity getDbConnInfo(DBConnInfoVO dbConnInfoVO) { + try{ + return ResponseEntity.ok().body(dbService.selectInstDbConnInfo(dbConnInfoVO)); + } catch(Exception e){ + log.error("Exception", e); + return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(e.getMessage()); + } + } + + @PostMapping(value="/insert/instDbConnInfo.do") + @ResponseBody + public ResponseEntity insertDbConnInfo(@RequestBody DBConnInfoVO dbConnInfoVO) { + try{ + + dbService.insertInstDbConnInfo(dbConnInfoVO); + return ResponseEntity.ok().build(); + } catch(Exception e){ + log.error("Exception", e); + return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(e.getMessage()); + } + } + + @PostMapping(value="/update/instDbConnInfo.do") + @ResponseBody + public ResponseEntity updateDbConnInfo(@RequestBody DBConnInfoVO dbConnInfoVO) { + try{ + + dbService.updateInstDbConnInfo(dbConnInfoVO); + return ResponseEntity.ok().build(); + } catch(Exception e){ + log.error("Exception", e); + return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(e.getMessage()); + } + } + + @PostMapping(value="/delete/instDbConnInfo.do") + @ResponseBody + public ResponseEntity deleteDbConnInfo(@RequestBody DBConnInfoVO dbConnInfoVO) { + try{ + + dbService.deleteInstDbConnInfo(dbConnInfoVO); + return ResponseEntity.ok().build(); + } catch(Exception e){ + log.error("Exception", e); + return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(e.getMessage()); + } + } + + // inst_db_info 테이블 기본 CRUD + @GetMapping(value="/get/instDbInfoList.do") + @ResponseBody + public ResponseEntity getDbInfoList(DBInfoVO dbInfoVO) { + try{ + return ResponseEntity.ok().body(dbService.selectInstDbInfoList(dbInfoVO)); + } catch(Exception e){ + log.error("Exception", e); + return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(e.getMessage()); + } + } + + @GetMapping(value="/get/instDbInfo.do") + @ResponseBody + public ResponseEntity getDbInfo(DBInfoVO dbInfoVO) { + try{ + return ResponseEntity.ok().body(dbService.selectInstDbInfo(dbInfoVO)); + } catch(Exception e){ + log.error("Exception", e); + return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(e.getMessage()); + } + } + + @PostMapping(value="/insert/instDbInfo.do") + @ResponseBody + public ResponseEntity insertDbInfo(@RequestBody DBInfoVO dbInfoVO) { + try{ + + dbService.insertInstDbInfo(dbInfoVO); + return ResponseEntity.ok().build(); + } catch(Exception e){ + log.error("Exception", e); + return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(e.getMessage()); + } + } + + @PostMapping(value="/update/instDbInfo.do") + @ResponseBody + public ResponseEntity updateDbInfo(@RequestBody DBInfoVO dbInfoVO) { + try{ + + dbService.updateInstDbInfo(dbInfoVO); + return ResponseEntity.ok().build(); + } catch(Exception e){ + log.error("Exception", e); + return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(e.getMessage()); + } + } + + @PostMapping(value="/delete/instDbInfo.do") + @ResponseBody + public ResponseEntity deleteDbInfo(@RequestBody DBInfoVO dbInfoVO) { + try{ + + dbService.deleteInstDbInfo(dbInfoVO); + return ResponseEntity.ok().build(); + } catch(Exception e){ + log.error("Exception", e); + return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(e.getMessage()); + } + } + + // inst_db_tbl_info 테이블 기본 CRUD + @GetMapping(value="/get/instDbTblInfoList.do") + @ResponseBody + public ResponseEntity getDbTblInfoList(DBTblInfoVO dbTblInfoVO) { + try{ + return ResponseEntity.ok().body(dbService.selectInstDbTblInfoList(dbTblInfoVO)); + } catch(Exception e){ + log.error("Exception", e); + return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(e.getMessage()); + } + } + + @GetMapping(value="/get/instDbTblInfo.do") + @ResponseBody + public ResponseEntity getDbTblInfo(DBTblInfoVO dbTblInfoVO) { + try{ + return ResponseEntity.ok().body(dbService.selectInstDbTblInfo(dbTblInfoVO)); + } catch(Exception e){ + log.error("Exception", e); + return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(e.getMessage()); + } + } + + @PostMapping(value="/insert/instDbTblInfo.do") + @ResponseBody + public ResponseEntity insertDbTblInfo(@RequestBody DBTblInfoVO dbTblInfoVO) { + try{ + + dbService.insertInstDbTblInfo(dbTblInfoVO); + return ResponseEntity.ok().build(); + } catch(Exception e){ + log.error("Exception", e); + return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(e.getMessage()); + } + } + + @PostMapping(value="/update/instDbTblInfo.do") + @ResponseBody + public ResponseEntity updateDbTblInfo(@RequestBody DBTblInfoVO dbTblInfoVO) { + try{ + + dbService.updateInstDbTblInfo(dbTblInfoVO); + return ResponseEntity.ok().build(); + } catch(Exception e){ + log.error("Exception", e); + return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(e.getMessage()); + } + } + + @PostMapping(value="/delete/instDbTblInfo.do") + @ResponseBody + public ResponseEntity deleteDbTblInfo(@RequestBody DBTblInfoVO dbTblInfoVO) { + try{ + + dbService.deleteInstDbTblInfo(dbTblInfoVO); + return ResponseEntity.ok().build(); + } catch(Exception e){ + log.error("Exception", e); + return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(e.getMessage()); + } + } + + // inst_tbl_col_info 테이블 기본 CRUD + @GetMapping(value="/get/instDbTblColInfoList.do") + @ResponseBody + public ResponseEntity getDbTblColInfoList(DBTblColInfoVO dbTblColInfoVO) { + try{ + return ResponseEntity.ok().body(dbService.selectInstDbTblColInfoList(dbTblColInfoVO)); + } catch(Exception e){ + log.error("Exception", e); + return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(e.getMessage()); + } + } + + + @GetMapping(value="/get/instDbTblColInfo.do") + @ResponseBody + public ResponseEntity getDbTblColInfo(DBTblColInfoVO dbTblColInfoVO) { + try{ + return ResponseEntity.ok().body(dbService.selectInstDbTblColInfo(dbTblColInfoVO)); + } catch(Exception e){ + log.error("Exception", e); + return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(e.getMessage()); + } + } + + @PostMapping(value="/insert/instDbTblColInfo.do") + @ResponseBody + public ResponseEntity insertDbTblColInfo(@RequestBody DBTblColInfoVO dbTblColInfoVO) { + try{ + + dbService.insertInstDbTblColInfo(dbTblColInfoVO); + return ResponseEntity.ok().build(); + } catch(Exception e){ + log.error("Exception", e); + return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(e.getMessage()); + } + } + + @PostMapping(value="/update/instDbTblColInfo.do") + @ResponseBody + public ResponseEntity updateDbTblColInfo(@RequestBody DBTblColInfoVO dbTblColInfoVO) { + try{ + + dbService.updateInstDbTblColInfo(dbTblColInfoVO); + return ResponseEntity.ok().build(); + } catch(Exception e){ + log.error("Exception", e); + return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(e.getMessage()); + } + } + + @PostMapping(value="/delete/instDbTblColInfo.do") + @ResponseBody + public ResponseEntity deleteDbTblColInfo(@RequestBody DBTblColInfoVO dbTblColInfoVO) { + try{ + + dbService.deleteInstDbTblColInfo(dbTblColInfoVO); + return ResponseEntity.ok().build(); + } catch(Exception e){ + log.error("Exception", e); + return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(e.getMessage()); + } + } +} diff --git a/src/main/java/egovframework/com/mtdata/institution/mapper/InstitutionMapper.java b/src/main/java/egovframework/com/mtdata/institution/mapper/InstitutionMapper.java new file mode 100644 index 0000000..c0bf09f --- /dev/null +++ b/src/main/java/egovframework/com/mtdata/institution/mapper/InstitutionMapper.java @@ -0,0 +1,4 @@ +package egovframework.com.mtdata.institution.mapper; + +public interface InstitutionMapper { +} diff --git a/src/main/java/egovframework/com/mtdata/institution/service/InstitutionService.java b/src/main/java/egovframework/com/mtdata/institution/service/InstitutionService.java new file mode 100644 index 0000000..5fe8a55 --- /dev/null +++ b/src/main/java/egovframework/com/mtdata/institution/service/InstitutionService.java @@ -0,0 +1,4 @@ +package egovframework.com.mtdata.institution.service; + +public interface InstitutionService { +} diff --git a/src/main/java/egovframework/com/mtdata/institution/service/impl/InstitutionServiceImpl.java b/src/main/java/egovframework/com/mtdata/institution/service/impl/InstitutionServiceImpl.java new file mode 100644 index 0000000..9d1672c --- /dev/null +++ b/src/main/java/egovframework/com/mtdata/institution/service/impl/InstitutionServiceImpl.java @@ -0,0 +1,4 @@ +package egovframework.com.mtdata.institution.service.impl; + +public class InstitutionServiceImpl { +} diff --git a/src/main/java/egovframework/com/mtdata/institution/vo/InstitutionVO.java b/src/main/java/egovframework/com/mtdata/institution/vo/InstitutionVO.java new file mode 100644 index 0000000..9ccf2ce --- /dev/null +++ b/src/main/java/egovframework/com/mtdata/institution/vo/InstitutionVO.java @@ -0,0 +1,13 @@ +package egovframework.com.mtdata.institution.vo; + +import lombok.Data; + +@Data +public class InstitutionVO { + + private String ogdpInstCd; // 기관코드 + private String instNm; // 기관명 + private String prsInstCd; // 대표기관코드 + private String zip; // 기관명 + +} diff --git a/src/main/java/egovframework/com/mtdata/institution/web/InstitutionController.java b/src/main/java/egovframework/com/mtdata/institution/web/InstitutionController.java new file mode 100644 index 0000000..9d54ad6 --- /dev/null +++ b/src/main/java/egovframework/com/mtdata/institution/web/InstitutionController.java @@ -0,0 +1,4 @@ +package egovframework.com.mtdata.institution.web; + +public class InstitutionController { +} diff --git a/src/main/java/egovframework/com/mtdata/main/mapper/MainDAO.java b/src/main/java/egovframework/com/mtdata/main/mapper/MainDAO.java new file mode 100644 index 0000000..836b107 --- /dev/null +++ b/src/main/java/egovframework/com/mtdata/main/mapper/MainDAO.java @@ -0,0 +1,6 @@ +package egovframework.com.mtdata.main.mapper; + +public class MainDAO { + // spring 에서 제공하고 있는 SqlMapClientDaoSupport 는 현재 지원 x + +} diff --git a/src/main/java/egovframework/com/mtdata/main/service/MainService.java b/src/main/java/egovframework/com/mtdata/main/service/MainService.java new file mode 100644 index 0000000..a96943a --- /dev/null +++ b/src/main/java/egovframework/com/mtdata/main/service/MainService.java @@ -0,0 +1,37 @@ +/* + * Copyright 2008-2009 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package egovframework.com.mtdata.main.service; + +/** + * @Class Name : EgovSampleService.java + * @Description : EgovSampleService Class + * @Modification Information + * @ + * @ 수정일 수정자 수정내용 + * @ --------- --------- ------------------------------- + * @ 2009.03.16 최초생성 + * + * @author 개발프레임웍크 실행환경 개발팀 + * @since 2009. 03.16 + * @version 1.0 + * @see + * + * Copyright (C) by MOPAS All right reserved. + */ +public interface MainService { + + +} diff --git a/src/main/java/egovframework/com/mtdata/main/service/impl/MainServiceImpl.java b/src/main/java/egovframework/com/mtdata/main/service/impl/MainServiceImpl.java new file mode 100644 index 0000000..9ae7ee7 --- /dev/null +++ b/src/main/java/egovframework/com/mtdata/main/service/impl/MainServiceImpl.java @@ -0,0 +1,34 @@ +/* + * Copyright 2008-2009 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package egovframework.com.mtdata.main.service.impl; + +/** + * @Class Name : EgovSampleServiceImpl.java + * @Description : Sample Business Implement Class + * @Modification Information + * @ + * @ 수정일 수정자 수정내용 + * @ --------- --------- ------------------------------- + * @ 2009.03.16 최초생성 + * + * @author 개발프레임웍크 실행환경 개발팀 + * @since 2009. 03.16 + * @version 1.0 + * @see + * + * Copyright (C) by MOPAS All right reserved. + */ + diff --git a/src/main/java/egovframework/com/mtdata/main/vo/SampleDefaultVO.java b/src/main/java/egovframework/com/mtdata/main/vo/SampleDefaultVO.java new file mode 100644 index 0000000..34bc1a4 --- /dev/null +++ b/src/main/java/egovframework/com/mtdata/main/vo/SampleDefaultVO.java @@ -0,0 +1,149 @@ +/* + * Copyright 2008-2009 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package egovframework.com.mtdata.main.vo; + +import java.io.Serializable; + +import org.apache.commons.lang3.builder.ToStringBuilder; + +/** + * @Class Name : SampleDefaultVO.java + * @Description : SampleDefaultVO Class + * @Modification Information + * @ + * @ 수정일 수정자 수정내용 + * @ --------- --------- ------------------------------- + * @ 2009.03.16 최초생성 + * + * @author 개발프레임웍크 실행환경 개발팀 + * @since 2009. 03.16 + * @version 1.0 + * @see + * + * Copyright (C) by MOPAS All right reserved. + */ +public class SampleDefaultVO implements Serializable { + + /** + * serialVersion UID + */ + private static final long serialVersionUID = -858838578081269359L; + + /** 검색조건 */ + private String searchCondition = ""; + + /** 검색Keyword */ + private String searchKeyword = ""; + + /** 검색사용여부 */ + private String searchUseYn = ""; + + /** 현재페이지 */ + private int pageIndex = 1; + + /** 페이지갯수 */ + private int pageUnit = 10; + + /** 페이지사이즈 */ + private int pageSize = 10; + + /** firstIndex */ + private int firstIndex = 1; + + /** lastIndex */ + private int lastIndex = 1; + + /** recordCountPerPage */ + private int recordCountPerPage = 10; + + public int getFirstIndex() { + return firstIndex; + } + + public void setFirstIndex(int firstIndex) { + this.firstIndex = firstIndex; + } + + public int getLastIndex() { + return lastIndex; + } + + public void setLastIndex(int lastIndex) { + this.lastIndex = lastIndex; + } + + public int getRecordCountPerPage() { + return recordCountPerPage; + } + + public void setRecordCountPerPage(int recordCountPerPage) { + this.recordCountPerPage = recordCountPerPage; + } + + public String getSearchCondition() { + return searchCondition; + } + + public void setSearchCondition(String searchCondition) { + this.searchCondition = searchCondition; + } + + public String getSearchKeyword() { + return searchKeyword; + } + + public void setSearchKeyword(String searchKeyword) { + this.searchKeyword = searchKeyword; + } + + public String getSearchUseYn() { + return searchUseYn; + } + + public void setSearchUseYn(String searchUseYn) { + this.searchUseYn = searchUseYn; + } + + public int getPageIndex() { + return pageIndex; + } + + public void setPageIndex(int pageIndex) { + this.pageIndex = pageIndex; + } + + public int getPageUnit() { + return pageUnit; + } + + public void setPageUnit(int pageUnit) { + this.pageUnit = pageUnit; + } + + public int getPageSize() { + return pageSize; + } + + public void setPageSize(int pageSize) { + this.pageSize = pageSize; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + +} diff --git a/src/main/java/egovframework/com/mtdata/main/vo/SampleVO.java b/src/main/java/egovframework/com/mtdata/main/vo/SampleVO.java new file mode 100644 index 0000000..8177077 --- /dev/null +++ b/src/main/java/egovframework/com/mtdata/main/vo/SampleVO.java @@ -0,0 +1,93 @@ +/* + * Copyright 2008-2009 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package egovframework.com.mtdata.main.vo; + +/** + * @Class Name : SampleVO.java + * @Description : SampleVO Class + * @Modification Information + * @ + * @ 수정일 수정자 수정내용 + * @ --------- --------- ------------------------------- + * @ 2009.03.16 최초생성 + * + * @author 개발프레임웍크 실행환경 개발팀 + * @since 2009. 03.16 + * @version 1.0 + * @see + * + * Copyright (C) by MOPAS All right reserved. + */ +public class SampleVO extends SampleDefaultVO { + + private static final long serialVersionUID = 1L; + + /** 아이디 */ + private String id; + + /** 이름 */ + private String name; + + /** 내용 */ + private String description; + + /** 사용여부 */ + private String useYn; + + /** 등록자 */ + private String regUser; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getUseYn() { + return useYn; + } + + public void setUseYn(String useYn) { + this.useYn = useYn; + } + + public String getRegUser() { + return regUser; + } + + public void setRegUser(String regUser) { + this.regUser = regUser; + } + +} diff --git a/src/main/java/egovframework/com/mtdata/main/web/MainController.java b/src/main/java/egovframework/com/mtdata/main/web/MainController.java new file mode 100644 index 0000000..b677dd7 --- /dev/null +++ b/src/main/java/egovframework/com/mtdata/main/web/MainController.java @@ -0,0 +1,39 @@ +package egovframework.com.mtdata.main.web; + +import javax.annotation.Resource; + +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +import egovframework.com.mtdata.database.service.DatabaseService; + +@RestController +@RequestMapping("/api") +public class MainController { +// private final DatabaseSchemaViewer viewer; +// private final DatabaseConnectionVO dbConnVO; 이건 차후에 db연결정보를 담은 vo객체를 만든 이후 사용할 것 + + @Resource(name = "DatabaseService") + private DatabaseService dbService; + +// @Autowired +// public MainController(DatabaseSchemaViewer viewer) { +// this.viewer = viewer; +// } + +// @Autowired +// public MainController(DatabaseSchemaViewer viewer, DatabaseConnectionVO dbConnVO) { +// this.viewer = viewer; +// this.dbConn = dbConn; +// } + +// +// @GetMapping(value = "/yaml.do") +// public String yaml(List databaseInfoList) { +// CreateYaml yaml = new CreateYaml(); +// yaml.createYaml(databaseInfoList); +// +// return "test"; +// } + +} diff --git a/src/main/java/egovframework/com/mtdata/schema/service/DatabaseSchemaViewer.java b/src/main/java/egovframework/com/mtdata/schema/service/DatabaseSchemaViewer.java new file mode 100644 index 0000000..188a076 --- /dev/null +++ b/src/main/java/egovframework/com/mtdata/schema/service/DatabaseSchemaViewer.java @@ -0,0 +1,7 @@ +package egovframework.com.mtdata.schema.service; + +import egovframework.com.mtdata.database.vo.DatabaseInfoVO; + +public interface DatabaseSchemaViewer { + void viewSchema(DatabaseInfoVO dbInfoVO); +} diff --git a/src/main/java/egovframework/com/mtdata/schema/service/impl/DatabaseSchemaViewerService.java b/src/main/java/egovframework/com/mtdata/schema/service/impl/DatabaseSchemaViewerService.java new file mode 100644 index 0000000..0aaacae --- /dev/null +++ b/src/main/java/egovframework/com/mtdata/schema/service/impl/DatabaseSchemaViewerService.java @@ -0,0 +1,32 @@ +package egovframework.com.mtdata.schema.service.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import egovframework.com.mtdata.database.vo.DatabaseInfoVO; +import egovframework.com.mtdata.schema.service.DatabaseSchemaViewer; + +@Service("viService") +public class DatabaseSchemaViewerService { + private DatabaseSchemaViewer mysqlSchemaViewer; + private DatabaseSchemaViewer postgreSchemViewer; + + @Resource(name = "mysqlSchemaViewer") + public void setMysqlSchemaViewer(DatabaseSchemaViewer mysqlSchemaViewer) { + this.mysqlSchemaViewer = mysqlSchemaViewer; + } + + @Resource(name = "postgreSchemViewer") + public void setPostgreSchemViewer(DatabaseSchemaViewer postgreSchemViewer) { + this.postgreSchemViewer = postgreSchemViewer; + } + + public void selectSchema(DatabaseInfoVO vo) { + if ("mysql".equals(vo.getDbType())) { + mysqlSchemaViewer.viewSchema(vo); + } else if ("postgresql".equals(vo.getDbType())) { + postgreSchemViewer.viewSchema(vo); + } + } +} diff --git a/src/main/java/egovframework/com/mtdata/schema/service/impl/MySQLSchemaViewerImpl.java b/src/main/java/egovframework/com/mtdata/schema/service/impl/MySQLSchemaViewerImpl.java new file mode 100644 index 0000000..3f9d30a --- /dev/null +++ b/src/main/java/egovframework/com/mtdata/schema/service/impl/MySQLSchemaViewerImpl.java @@ -0,0 +1,115 @@ +package egovframework.com.mtdata.schema.service.impl; + +import java.sql.Connection; +import java.sql.DriverManager; +import java.sql.ResultSet; +import java.sql.SQLException; +import java.sql.Statement; + +import javax.annotation.Resource; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.stereotype.Service; + +import egovframework.com.mtdata.database.service.DatabaseService; +import egovframework.com.mtdata.database.vo.DatabaseInfoVO; +import egovframework.com.mtdata.schema.service.DatabaseSchemaViewer; + +@Service("mysqlSchemaViewer") +public class MySQLSchemaViewerImpl implements DatabaseSchemaViewer { + + private static final Logger log = LoggerFactory.getLogger(MySQLSchemaViewerImpl.class); + private static final String JDBC_DRIVER = "com.mysql.cj.jdbc.Driver"; + + @Resource(name = "DatabaseService") + private DatabaseService dbService; + + private String url; + private String user; + private String password; + private int dbConnId; + + static { + try { + Class.forName(JDBC_DRIVER); + } catch (ClassNotFoundException e) { + log.error("JDBC Driver loading error", e); + } + } + + @Override + public void viewSchema(DatabaseInfoVO dbInfoVO) { + url = "jdbc:mysql://" + dbInfoVO.getDbConnIp() + ":" + dbInfoVO.getDbConnPort() + "/"; + user = dbInfoVO.getDbConnUser(); + password = dbInfoVO.getDbConnPw(); + dbConnId = dbInfoVO.getDbConnId(); + + try (Connection conn = DriverManager.getConnection(url, user, password)) { + processDatabases(conn); + } catch (SQLException e) { + log.error("Error while connecting to the database: ", e); + } + +// [테이블 및 컬럼명 가지고 오는 소스] +// try (Connection conn = DriverManager.getConnection(url, user, password)){ +// // MySQL database의 이름 추출 - 스키마 조회시 databases catalog에 해당하는 데이터만 출력하기 위함 +// Statement stmt = conn.createStatement(); +// // MySQL 시스템 데이터베이스는 제외함 +// ResultSet databases = stmt.executeQuery("SELECT SCHEMA_NAME AS `Database` FROM information_schema.SCHEMATA WHERE SCHEMA_NAME NOT IN ('information_schema', 'mysql', 'performance_schema', 'sys')"); +// String dbNm = null; +// while (databases.next()) { +// dbNm = databases.getString(1); +// System.out.println("dbName : " + dbNm); +// vo.setDbNmEn(dbNm); +// int insertDbList = dbService.insertDbinfo(vo); +// +// DatabaseMetaData metaData = conn.getMetaData(); +// ResultSet tables = metaData.getTables(dbNm, null, "%", null); //catalog, schemaPattern, tableNamePattern, types +// // 여기서 부터 필요한 테이블의 정보를 출력함 +// while(tables.next()) { +// String tableName = tables.getString(3); +// System.out.println("Table : " + tableName); +// +// ResultSet columns = metaData.getColumns(dbNm, null, tableName, "%"); +// while (columns.next()) { +// String columnName = columns.getString(4); +// String columnType = columns.getString(6); +// System.out.println("\tColumn: " + columnName+ " (" + columnType + ")"); +// } +// +// } +// } +// } catch (SQLException e) { +// e.printStackTrace(); +// } + } + + private void processDatabases(Connection conn) throws SQLException { + String selectDbSql = "SELECT SCHEMA_NAME AS `Database` FROM information_schema.SCHEMATA WHERE SCHEMA_NAME NOT IN ('information_schema', 'mysql', 'performance_schema', 'sys')"; + try (Statement stmt = conn.createStatement(); ResultSet databases = stmt.executeQuery(selectDbSql)) { + + while (databases.next()) { + String dbNm = databases.getString("Database"); + log.info("dbName : {}", dbNm); + + DatabaseInfoVO vo = new DatabaseInfoVO(); + vo.setDbConnId(dbConnId); + vo.setDbNm(dbNm); + + if (dbService == null) { + log.error("dbService is null"); + } + int insertDbList = dbService.insertDbInfo(vo); + + if (insertDbList > 0) { + log.info("Database info successfully inserted for: {}", dbNm); + } else { + log.warn("No database info was inserted for: {}", dbNm); + } + } + } catch (Exception e) { + log.error("Error processing databases", e); + } + } +} diff --git a/src/main/java/egovframework/com/mtdata/schema/service/impl/PostgreSQLSchemaViewerImpl.java b/src/main/java/egovframework/com/mtdata/schema/service/impl/PostgreSQLSchemaViewerImpl.java new file mode 100644 index 0000000..974e4d1 --- /dev/null +++ b/src/main/java/egovframework/com/mtdata/schema/service/impl/PostgreSQLSchemaViewerImpl.java @@ -0,0 +1,32 @@ +package egovframework.com.mtdata.schema.service.impl; + +import javax.annotation.Resource; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.stereotype.Service; + +import egovframework.com.mtdata.database.service.DatabaseService; +import egovframework.com.mtdata.database.vo.DatabaseInfoVO; +import egovframework.com.mtdata.schema.service.DatabaseSchemaViewer; + +@Service("postgreSchemViewer") +public class PostgreSQLSchemaViewerImpl implements DatabaseSchemaViewer { + + private static final Logger log = LoggerFactory.getLogger(PostgreSQLSchemaViewerImpl.class); + // private static final String JDBC_DRIVER = "com.mysql.cj.jdbc.Driver"; + + @Resource(name = "DatabaseService") + private DatabaseService dbService; + + private String url; + private String user; + private String password; + private int sysDataId; + private int sysId; + + @Override + public void viewSchema(DatabaseInfoVO dbInfoVO) { + + } +} diff --git a/src/main/resources/config/chameleon-setting.yaml b/src/main/resources/config/chameleon-setting.yaml new file mode 100644 index 0000000..979ac1e --- /dev/null +++ b/src/main/resources/config/chameleon-setting.yaml @@ -0,0 +1,20 @@ +--- + +pid_dir: '~/.pg_chameleon/pid/' +log_dir: '~/.pg_chameleon/logs/' +log_dest: file +log_level: info +log_days_keep: 10 +rollbar_key: '' +rollbar_env: '' + +pg_conn: + host: "211.199.70.9" + port: "5433" + user: "migration_user" + password: "dpc12!@" + database: "db_replica" + charset: "utf8" + +sources: + \ No newline at end of file diff --git a/src/main/resources/db/sampledb.sql b/src/main/resources/db/sampledb.sql new file mode 100644 index 0000000..9fb20b6 --- /dev/null +++ b/src/main/resources/db/sampledb.sql @@ -0,0 +1,118 @@ +CREATE MEMORY TABLE SAMPLE(ID VARCHAR(16) NOT NULL PRIMARY KEY,NAME VARCHAR(50),DESCRIPTION VARCHAR(100),USE_YN CHAR(1),REG_USER VARCHAR(10)) +CREATE MEMORY TABLE IDS(TABLE_NAME VARCHAR(16) NOT NULL PRIMARY KEY,NEXT_ID DECIMAL(30) NOT NULL) +SET SCHEMA PUBLIC +INSERT INTO SAMPLE VALUES('SAMPLE-00001','Runtime Environment','Foundation Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00002','Runtime Environment','Persistence Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00003','Runtime Environment','Presentation Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00004','Runtime Environment','Business Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00005','Runtime Environment','Batch Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00006','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00007','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00008','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00009','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00010','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00011','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00012','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00013','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00014','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00015','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00016','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00017','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00018','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00019','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00020','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00021','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00022','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00023','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00024','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00025','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00026','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00027','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00028','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00029','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00030','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00031','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00032','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00033','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00034','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00035','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00036','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00037','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00038','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00039','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00040','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00041','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00042','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00043','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00044','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00045','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00046','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00047','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00048','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00049','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00050','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00051','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00052','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00053','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00054','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00055','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00056','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00057','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00058','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00059','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00060','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00061','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00062','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00063','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00064','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00065','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00066','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00067','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00068','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00069','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00070','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00071','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00072','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00073','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00074','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00075','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00076','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00077','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00078','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00079','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00080','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00081','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00082','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00083','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00084','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00085','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00086','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00087','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00088','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00089','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00090','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00091','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00092','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00093','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00094','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00095','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00096','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00097','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00098','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00099','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00100','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00101','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00102','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00103','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00104','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00105','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00106','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00107','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00108','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00109','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00110','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00111','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00112','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00113','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00114','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO IDS VALUES('SAMPLE',115) diff --git a/src/main/resources/egovframework/message/message-common.properties b/src/main/resources/egovframework/message/message-common.properties new file mode 100644 index 0000000..518ba4b --- /dev/null +++ b/src/main/resources/egovframework/message/message-common.properties @@ -0,0 +1,45 @@ +#UI resource# +list.sample=List Sample +button.search=\uac80\uc0c9 +button.list=\ubaa9\ub85d +button.modify=\uc218\uc815 +button.create=\ub4f1\ub85d +button.reset=\uc7ac\uc124\uc815 +button.delete=\uc0ad\uc81c +search.choose=\uac80\uc0c9\uc5b4 \uc120\ud0dd +search.keyword=\uac80\uc0c9\uc5b4 \uc785\ub825 +search.name=\uc774\ub984 +search.id=ID +title.sample.id=\uce74\ud14c\uace0\ub9acID +title.sample.name=\uce74\ud14c\uace0\ub9ac\uba85 +title.sample.useYn=\uc0ac\uc6a9\uc5ec\ubd80 +title.sample.description=\uc124\uba85 +title.sample.regUser=\ub4f1\ub85d\uc790 +title.sample=\uae30\ubcf8 \uac8c\uc2dc\ud310 \ubaa9\ub85d + +# image name # +image.search=btn_form_search.gif +image.errorBg=error + +# -- validator errors -- # +fail.common.msg=\uc5d0\ub7ec\uac00 \ubc1c\uc0dd\ud588\uc2b5\ub2c8\ub2e4! +fail.common.sql=sql \uc5d0\ub7ec\uac00 \ubc1c\uc0dd\ud588\uc2b5\ub2c8\ub2e4! error code: {0}, error msg: {1} +info.nodata.msg=\ud574\ub2f9 \ub370\uc774\ud130\uac00 \uc5c6\uc2b5\ub2c8\ub2e4. +errors.prefix=
+errors.suffix=

+errors.required={0} \uc740 \ud544\uc218 \uc785\ub825\uac12\uc785\ub2c8\ub2e4. +errors.minlength={0} \uc740 {1}\uc790 \uc774\uc0c1 \uc785\ub825\ud574\uc57c \ud569\ub2c8\ub2e4. +errors.maxlength={0} \uc740 {1}\uc790 \uc774\uc0c1 \uc785\ub825\ud560\uc218 \uc5c6\uc2b5\ub2c8\ub2e4. +errors.invalid={0} \uc740 \uc720\ud6a8\ud558\uc9c0 \uc54a\uc740 \uac12\uc785\ub2c8\ub2e4. +errors.byte={0} \uc740 byte \ud0c0\uc785\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4. +errors.short={0} \uc740 short \ud0c0\uc785\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4. +errors.integer={0} \uc740 integer \ud0c0\uc785\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4. +errors.long={0} \uc740 long \ud0c0\uc785\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4. +errors.float={0} \uc740 float \ud0c0\uc785\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4. +errors.double={0} \uc740 double \ud0c0\uc785\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4. +errors.date={0} \uc740 \ub0a0\uc9dc \uc720\ud615\uc774 \uc544\ub2d9\ub2c8\ub2e4. +errors.range={0} \uc740 {1} \uacfc {2} \uc0ac\uc774\uc758 \uac12\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4. +errors.creditcard={0} \uc740 \uc720\ud6a8\ud558\uc9c0 \uc54a\uc740 \uc2e0\uc6a9\uce74\ub4dc \ubc88\ud638\uc785\ub2c8\ub2e4. +errors.email={0} \uc740 \uc720\ud6a8\ud558\uc9c0 \uc54a\uc740 \uc774\uba54\uc77c \uc8fc\uc18c\uc785\ub2c8\ub2e4. +errors.ihidnum=\uc720\ud6a8\ud558\uc9c0 \uc54a\uc740 \uc8fc\ubbfc\ub4f1\ub85d\ubc88\ud638\uc785\ub2c8\ub2e4. +errors.korean={0}\uc740 \ud55c\uae00\uc744 \uc785\ub825\ud558\uc154\uc57c \ud569\ub2c8\ub2e4. \ No newline at end of file diff --git a/src/main/resources/egovframework/message/message-common_en.properties b/src/main/resources/egovframework/message/message-common_en.properties new file mode 100644 index 0000000..1d45910 --- /dev/null +++ b/src/main/resources/egovframework/message/message-common_en.properties @@ -0,0 +1,46 @@ +#UI resource# +list.sample=List Sample +button.search=Search +button.list=List +button.modify=Modify +button.create=Create +button.reset=Reset +button.delete=Delete +button.create=create +search.choose=Select Choose +search.keyword=Search +search.name=name +search.id=ID +title.sample.id=Category ID +title.sample.name=Category Name +title.sample.useYn=useYn +title.sample.description=Description +title.sample.regUser=User Name +title.sample=Default BBS List + +# image name # +image.search=btn_form_search_en.gif +image.errorBg=error_en + +# -- validator errors -- # +fail.common.msg=error ocurred! +fail.common.sql=sql error ocurred! error code: {0}, error msg: {1} +info.nodata.msg=no data found. +errors.prefix=
+errors.suffix=

+errors.required={0} is required. +errors.minlength={0} can not be less than {1} characters. +errors.maxlength={0} can not be greater than {1} characters. +errors.invalid={0} is invalid. +errors.byte={0} must be a byte. +errors.short={0} must be a short. +errors.integer={0} must be an integer. +errors.long={0} must be a long. +errors.float={0} must be a float. +errors.double={0} must be a double. +errors.date={0} is not a date. +errors.range={0} is not in the range {1} through {2}. +errors.creditcard={0} is an invalid credit card number. +errors.email={0} is an invalid e-mail address. +errors.ihidnum=An invalid Social Security Number. +errors.korean={0} must be a Korean. \ No newline at end of file diff --git a/src/main/resources/egovframework/message/message-common_ko.properties b/src/main/resources/egovframework/message/message-common_ko.properties new file mode 100644 index 0000000..518ba4b --- /dev/null +++ b/src/main/resources/egovframework/message/message-common_ko.properties @@ -0,0 +1,45 @@ +#UI resource# +list.sample=List Sample +button.search=\uac80\uc0c9 +button.list=\ubaa9\ub85d +button.modify=\uc218\uc815 +button.create=\ub4f1\ub85d +button.reset=\uc7ac\uc124\uc815 +button.delete=\uc0ad\uc81c +search.choose=\uac80\uc0c9\uc5b4 \uc120\ud0dd +search.keyword=\uac80\uc0c9\uc5b4 \uc785\ub825 +search.name=\uc774\ub984 +search.id=ID +title.sample.id=\uce74\ud14c\uace0\ub9acID +title.sample.name=\uce74\ud14c\uace0\ub9ac\uba85 +title.sample.useYn=\uc0ac\uc6a9\uc5ec\ubd80 +title.sample.description=\uc124\uba85 +title.sample.regUser=\ub4f1\ub85d\uc790 +title.sample=\uae30\ubcf8 \uac8c\uc2dc\ud310 \ubaa9\ub85d + +# image name # +image.search=btn_form_search.gif +image.errorBg=error + +# -- validator errors -- # +fail.common.msg=\uc5d0\ub7ec\uac00 \ubc1c\uc0dd\ud588\uc2b5\ub2c8\ub2e4! +fail.common.sql=sql \uc5d0\ub7ec\uac00 \ubc1c\uc0dd\ud588\uc2b5\ub2c8\ub2e4! error code: {0}, error msg: {1} +info.nodata.msg=\ud574\ub2f9 \ub370\uc774\ud130\uac00 \uc5c6\uc2b5\ub2c8\ub2e4. +errors.prefix=
+errors.suffix=

+errors.required={0} \uc740 \ud544\uc218 \uc785\ub825\uac12\uc785\ub2c8\ub2e4. +errors.minlength={0} \uc740 {1}\uc790 \uc774\uc0c1 \uc785\ub825\ud574\uc57c \ud569\ub2c8\ub2e4. +errors.maxlength={0} \uc740 {1}\uc790 \uc774\uc0c1 \uc785\ub825\ud560\uc218 \uc5c6\uc2b5\ub2c8\ub2e4. +errors.invalid={0} \uc740 \uc720\ud6a8\ud558\uc9c0 \uc54a\uc740 \uac12\uc785\ub2c8\ub2e4. +errors.byte={0} \uc740 byte \ud0c0\uc785\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4. +errors.short={0} \uc740 short \ud0c0\uc785\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4. +errors.integer={0} \uc740 integer \ud0c0\uc785\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4. +errors.long={0} \uc740 long \ud0c0\uc785\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4. +errors.float={0} \uc740 float \ud0c0\uc785\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4. +errors.double={0} \uc740 double \ud0c0\uc785\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4. +errors.date={0} \uc740 \ub0a0\uc9dc \uc720\ud615\uc774 \uc544\ub2d9\ub2c8\ub2e4. +errors.range={0} \uc740 {1} \uacfc {2} \uc0ac\uc774\uc758 \uac12\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4. +errors.creditcard={0} \uc740 \uc720\ud6a8\ud558\uc9c0 \uc54a\uc740 \uc2e0\uc6a9\uce74\ub4dc \ubc88\ud638\uc785\ub2c8\ub2e4. +errors.email={0} \uc740 \uc720\ud6a8\ud558\uc9c0 \uc54a\uc740 \uc774\uba54\uc77c \uc8fc\uc18c\uc785\ub2c8\ub2e4. +errors.ihidnum=\uc720\ud6a8\ud558\uc9c0 \uc54a\uc740 \uc8fc\ubbfc\ub4f1\ub85d\ubc88\ud638\uc785\ub2c8\ub2e4. +errors.korean={0}\uc740 \ud55c\uae00\uc744 \uc785\ub825\ud558\uc154\uc57c \ud569\ub2c8\ub2e4. \ No newline at end of file diff --git a/src/main/resources/egovframework/spring/context-aspect.xml b/src/main/resources/egovframework/spring/context-aspect.xml new file mode 100644 index 0000000..1c2eac1 --- /dev/null +++ b/src/main/resources/egovframework/spring/context-aspect.xml @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + **service.impl.* + + + + + + + + + + + + + + + + **service.impl.* + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/egovframework/spring/context-common.xml b/src/main/resources/egovframework/spring/context-common.xml new file mode 100644 index 0000000..dcadd9c --- /dev/null +++ b/src/main/resources/egovframework/spring/context-common.xml @@ -0,0 +1,54 @@ + + + + + + + + + + + + + + classpath:/egovframework/message/message-common + classpath:/org/egovframe/rte/fdl/idgnr/messages/idgnr + classpath:/org/egovframe/rte/fdl/property/messages/properties + + + + 60 + + + + + + + + + + + + + + + + + + * + + + + + + + + + + + + + diff --git a/src/main/resources/egovframework/spring/context-datasource.xml b/src/main/resources/egovframework/spring/context-datasource.xml new file mode 100644 index 0000000..c7efdb9 --- /dev/null +++ b/src/main/resources/egovframework/spring/context-datasource.xml @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/resources/egovframework/spring/context-idgen.xml b/src/main/resources/egovframework/spring/context-idgen.xml new file mode 100644 index 0000000..0ae1975 --- /dev/null +++ b/src/main/resources/egovframework/spring/context-idgen.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + diff --git a/src/main/resources/egovframework/spring/context-mapper.xml b/src/main/resources/egovframework/spring/context-mapper.xml new file mode 100644 index 0000000..fafc47d --- /dev/null +++ b/src/main/resources/egovframework/spring/context-mapper.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/egovframework/spring/context-properties.xml b/src/main/resources/egovframework/spring/context-properties.xml new file mode 100644 index 0000000..dc75900 --- /dev/null +++ b/src/main/resources/egovframework/spring/context-properties.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + diff --git a/src/main/resources/egovframework/spring/context-transaction.xml b/src/main/resources/egovframework/spring/context-transaction.xml new file mode 100644 index 0000000..40698bb --- /dev/null +++ b/src/main/resources/egovframework/spring/context-transaction.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + diff --git a/src/main/resources/egovframework/spring/context-validator.xml b/src/main/resources/egovframework/spring/context-validator.xml new file mode 100644 index 0000000..03ebe32 --- /dev/null +++ b/src/main/resources/egovframework/spring/context-validator.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + /WEB-INF/config/egovframework/validator/validator-rules.xml + /WEB-INF/config/egovframework/validator/validator.xml + + + + + diff --git a/src/main/resources/egovframework/sqlmap/mtdata/mappers/cmmnty/Cmmnty_SQL.xml b/src/main/resources/egovframework/sqlmap/mtdata/mappers/cmmnty/Cmmnty_SQL.xml new file mode 100644 index 0000000..8d00b84 --- /dev/null +++ b/src/main/resources/egovframework/sqlmap/mtdata/mappers/cmmnty/Cmmnty_SQL.xml @@ -0,0 +1,102 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + UPDATE COMTNCMMNTY + SET NAME=#{name} + , DESCRIPTION=#{description} + , USE_YN=#{useYn} + WHERE ID=#{id} + + + + + + DELETE FROM SAMPLE + WHERE ID=#{id} + + + + + \ No newline at end of file diff --git a/src/main/resources/egovframework/sqlmap/mtdata/mappers/database/DatabaseConnect_SQL.xml b/src/main/resources/egovframework/sqlmap/mtdata/mappers/database/DatabaseConnect_SQL.xml new file mode 100644 index 0000000..4e343e9 --- /dev/null +++ b/src/main/resources/egovframework/sqlmap/mtdata/mappers/database/DatabaseConnect_SQL.xml @@ -0,0 +1,374 @@ + + + + + + + + + + + + + + + + + + + INSERT INTO INST_DB_INFO + (DB_CONN_ID, + DB_NM) + VALUES + (#{dbConnId}, + #{dbNm}) + + + + INSERT INTO INST_DB_CONN_INFO + (SYS_ID, + DB_TYPE, + DB_CONN_USER, + DB_CONN_PW, + DB_CONN_PORT, + DB_CONN_IP, + REGISTER_ID) + VALUES + (#{sysId}, + #{dbType}, + #{dbConnUser}, + #{dbConnPw}, + #{dbConnPort}, + #{dbConnIp}, + #{registerId}) + + SELECT LAST_INSERT_ID() + + + + + + + + + + + + + SELECT + sys_id, + use_yn, + db_type, + db_conn_user, + db_conn_pw, + db_conn_port, + db_conn_ip, + register_id, + regist_date + FROM inst_db_conn_info + WHERE 1=1 + + + + + + + + INSERT INTO inst_db_conn_info ( + sys_id, + db_type, + db_conn_user, + db_conn_pw, + db_conn_port, + db_conn_ip, + register_id + ) VALUES ( + #{sysId}, + #{dbType}, + #{dbConnUser}, + #{dbConnPw}, + #{dbConnPort}, + #{dbConnIp}, + #{registerId} + ) + + + + UPDATE INST_DB_CONN_INFO + SET register_id = #{registerId} + + , USE_YN = #{useYn} + + + , DB_TYPE = #{dbType} + + + , DB_CONN_USER = #{dbConnUser} + + + , DB_CONN_PW = #{dbConnPw} + + + , DB_CONN_IP = #{dbConnIp} + + WHERE DB_CONN_ID = #{dbConnId} + + + + SELECT + db_conn_id, + db_link_id, + db_nm, + db_cmment, + regist_date, + use_yn + FROM inst_db_info + WHERE 1=1 + + + + + + + + INSERT INTO inst_db_info ( + db_conn_id, + db_nm, + db_cmment, + ) VALUES ( + #{dbConnId}, + #{dbNm}, + #{dbCmment} + ) + + + + UPDATE INST_DB_CONN_INFO + + + db_nm = #{dbNm}, + + + db_cmment = #{dbComment}, + + + use_yn = #{useYn}, + + + WHERE db_link_id = #{dbLinkId} + + + + + SELECT + table_id + db_link_id, + table_nm, + table_dc, + regist_date, + engine + FROM inst_db_tbl_info + WHERE 1=1 + + + + + + + + INSERT INTO inst_db_tbl_info ( + db_link_id, + table_nm, + table_dc, + engine + ) VALUES ( + #{dbLinkId}, + #{tableNm}, + #{tableDc}, + #{engine} + ) + + + + UPDATE inst_db_tbl_info + + + table_nm = #{tableNm}, + + + table_dc = #{tableDc}, + + + use_yn = #{useYn}, + + + WHERE table_id = #{tableId} + + + + SELECT + column_id, + table_id, + column_nm, + column_type, + is_nullable, + is_pkey, + is_fkey, + column_dc, + default_value + FROM inst_tbl_col_info + WHERE 1=1 + + + + + + + + INSERT INTO inst_tbl_col_info ( + table_id, + column_nm, + column_type, + is_nullable, + is_pkey, + is_fkey, + column_dc, + default_value + ) VALUES ( + #{tableId}, + #{columnNm}, + #{columnType}, + #{isNullable}, + #{isPkey}, + #{isFkey}, + #{columnDc}, + #{defaultValue} + ) + + + + UPDATE inst_tbl_col_info + + + column_nm = #{columnNm}, + + + column_type = #{columnType}, + + + is_nullable = #{isNullable}, + + + is_pkey = #{isPkey}, + + + is_fkey = #{isFkey}, + + + column_dc = #{columnDc}, + + + default_value = #{defaultValue}, + + + WHERE table_id = #{tableId} + AND column_id = #{columnId} + + + \ No newline at end of file diff --git a/src/main/resources/egovframework/sqlmap/mtdata/sql-mapper-config.xml b/src/main/resources/egovframework/sqlmap/mtdata/sql-mapper-config.xml new file mode 100644 index 0000000..18a992d --- /dev/null +++ b/src/main/resources/egovframework/sqlmap/mtdata/sql-mapper-config.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/log4j2.xml b/src/main/resources/log4j2.xml new file mode 100644 index 0000000..fb66b10 --- /dev/null +++ b/src/main/resources/log4j2.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/webapp/META-INF/MANIFEST.MF b/src/main/webapp/META-INF/MANIFEST.MF new file mode 100644 index 0000000..254272e --- /dev/null +++ b/src/main/webapp/META-INF/MANIFEST.MF @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +Class-Path: + diff --git a/src/main/webapp/WEB-INF/config/egovframework/springmvc/dispatcher-servlet.xml b/src/main/webapp/WEB-INF/config/egovframework/springmvc/dispatcher-servlet.xml new file mode 100644 index 0000000..bd5a136 --- /dev/null +++ b/src/main/webapp/WEB-INF/config/egovframework/springmvc/dispatcher-servlet.xml @@ -0,0 +1,70 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/config/egovframework/validator/validator-rules.xml b/src/main/webapp/WEB-INF/config/egovframework/validator/validator-rules.xml new file mode 100644 index 0000000..746d79e --- /dev/null +++ b/src/main/webapp/WEB-INF/config/egovframework/validator/validator-rules.xml @@ -0,0 +1,1222 @@ + + + + + + + + + + = 0) { + value = field.options[si].value; + } + } else if (field.type == 'radio' || field.type == 'checkbox') { + if (field.checked) { + value = field.value; + } + } else { + value = field.value; + } + if (trim(value).length == 0) { + if ((i == 0) && (field.type != 'hidden')) { + focusField = field; + } + fields[i++] = oRequired[x][1]; + isValid = false; + } + } else if (field.type == "select-multiple") { + var numOptions = field.options.length; + lastSelected=-1; + for(loop=numOptions-1;loop>=0;loop--) { + if(field.options[loop].selected) { + lastSelected = loop; + value = field.options[loop].value; + break; + } + } + if(lastSelected < 0 || trim(value).length == 0) { + if(i == 0) { + focusField = field; + } + fields[i++] = oRequired[x][1]; + isValid=false; + } + } else if ((field.length > 0) && (field[0].type == 'radio' || field[0].type == 'checkbox')) { + isChecked=-1; + for (loop=0;loop < field.length;loop++) { + if (field[loop].checked) { + isChecked=loop; + break; // only one needs to be checked + } + } + if (isChecked < 0) { + if (i == 0) { + focusField = field[0]; + } + fields[i++] = oRequired[x][1]; + isValid=false; + } + } + } + if (fields.length > 0) { + focusField.focus(); + alert(fields.join('\n')); + } + return isValid; + } + + // Trim whitespace from left and right sides of s. + function trim(s) { + return s.replace( /^\s*/, "" ).replace( /\s*$/, "" ); + } + + ]]> + + + + + + + + + + + + 0) && (field.value.length < iMin)) { + if (i == 0) { + focusField = field; + } + fields[i++] = oMinLength[x][1]; + isValid = false; + } + } + } + if (fields.length > 0) { + focusField.focus(); + alert(fields.join('\n')); + } + return isValid; + }]]> + + + + + + + + iMax) { + if (i == 0) { + focusField = field; + } + fields[i++] = oMaxLength[x][1]; + isValid = false; + } + } + } + if (fields.length > 0) { + focusField.focus(); + alert(fields.join('\n')); + } + return isValid; + }]]> + + + + + + + + 0)) { + + if (!matchPattern(field.value, oMasked[x][2]("mask"))) { + if (i == 0) { + focusField = field; + } + fields[i++] = oMasked[x][1]; + isValid = false; + } + } + } + + if (fields.length > 0) { + focusField.focus(); + alert(fields.join('\n')); + } + return isValid; + } + + function matchPattern(value, mask) { + return mask.exec(value); + }]]> + + + + + + + + = 0) { + value = field.options[si].value; + } + } else { + value = field.value; + } + + if (value.length > 0) { + if (!isAllDigits(value)) { + bValid = false; + if (i == 0) { + focusField = field; + } + fields[i++] = oByte[x][1]; + + } else { + + var iValue = parseInt(value); + if (isNaN(iValue) || !(iValue >= -128 && iValue <= 127)) { + if (i == 0) { + focusField = field; + } + fields[i++] = oByte[x][1]; + bValid = false; + } + } + } + + } + } + if (fields.length > 0) { + focusField.focus(); + alert(fields.join('\n')); + } + return bValid; + }]]> + + + + + + + + = 0) { + value = field.options[si].value; + } + } else { + value = field.value; + } + + if (value.length > 0) { + if (!isAllDigits(value)) { + bValid = false; + if (i == 0) { + focusField = field; + } + fields[i++] = oShort[x][1]; + + } else { + + var iValue = parseInt(value); + if (isNaN(iValue) || !(iValue >= -32768 && iValue <= 32767)) { + if (i == 0) { + focusField = field; + } + fields[i++] = oShort[x][1]; + bValid = false; + } + } + } + } + } + if (fields.length > 0) { + focusField.focus(); + alert(fields.join('\n')); + } + return bValid; + }]]> + + + + + + + + = 0) { + value = field.options[si].value; + } + } else { + value = field.value; + } + + if (value.length > 0) { + + if (!isAllDigits(value)) { + bValid = false; + if (i == 0) { + focusField = field; + } + fields[i++] = oInteger[x][1]; + + } else { + var iValue = parseInt(value); + if (isNaN(iValue) || !(iValue >= -2147483648 && iValue <= 2147483647)) { + if (i == 0) { + focusField = field; + } + fields[i++] = oInteger[x][1]; + bValid = false; + } + } + } + } + } + if (fields.length > 0) { + focusField.focus(); + alert(fields.join('\n')); + } + return bValid; + } + + function isAllDigits(argvalue) { + argvalue = argvalue.toString(); + var validChars = "0123456789"; + var startFrom = 0; + if (argvalue.substring(0, 2) == "0x") { + validChars = "0123456789abcdefABCDEF"; + startFrom = 2; + } else if (argvalue.charAt(0) == "0") { + validChars = "01234567"; + startFrom = 1; + } else if (argvalue.charAt(0) == "-") { + startFrom = 1; + } + + for (var n = startFrom; n < argvalue.length; n++) { + if (validChars.indexOf(argvalue.substring(n, n+1)) == -1) return false; + } + return true; + }]]> + + + + + + + + + + + = 0) { + value = field.options[si].value; + } + } else { + value = field.value; + } + + if (value.length > 0) { + // remove '.' before checking digits + var tempArray = value.split('.'); + var joinedString= tempArray.join(''); + + if (!isAllDigits(joinedString)) { + bValid = false; + if (i == 0) { + focusField = field; + } + fields[i++] = oFloat[x][1]; + + } else { + var iValue = parseFloat(value); + if (isNaN(iValue)) { + if (i == 0) { + focusField = field; + } + fields[i++] = oFloat[x][1]; + bValid = false; + } + } + } + } + } + if (fields.length > 0) { + focusField.focus(); + alert(fields.join('\n')); + } + return bValid; + }]]> + + + + + + + + + + + 0) && + (datePattern.length > 0)) { + var MONTH = "MM"; + var DAY = "dd"; + var YEAR = "yyyy"; + var orderMonth = datePattern.indexOf(MONTH); + var orderDay = datePattern.indexOf(DAY); + var orderYear = datePattern.indexOf(YEAR); + if ((orderDay < orderYear && orderDay > orderMonth)) { + var iDelim1 = orderMonth + MONTH.length; + var iDelim2 = orderDay + DAY.length; + var delim1 = datePattern.substring(iDelim1, iDelim1 + 1); + var delim2 = datePattern.substring(iDelim2, iDelim2 + 1); + if (iDelim1 == orderDay && iDelim2 == orderYear) { + dateRegexp = new RegExp("^(\\d{2})(\\d{2})(\\d{4})$"); + } else if (iDelim1 == orderDay) { + dateRegexp = new RegExp("^(\\d{2})(\\d{2})[" + delim2 + "](\\d{4})$"); + } else if (iDelim2 == orderYear) { + dateRegexp = new RegExp("^(\\d{2})[" + delim1 + "](\\d{2})(\\d{4})$"); + } else { + dateRegexp = new RegExp("^(\\d{2})[" + delim1 + "](\\d{2})[" + delim2 + "](\\d{4})$"); + } + var matched = dateRegexp.exec(value); + if(matched != null) { + if (!isValidDate(matched[2], matched[1], matched[3])) { + if (i == 0) { + focusField = form[oDate[x][0]]; + } + fields[i++] = oDate[x][1]; + bValid = false; + } + } else { + if (i == 0) { + focusField = form[oDate[x][0]]; + } + fields[i++] = oDate[x][1]; + bValid = false; + } + } else if ((orderMonth < orderYear && orderMonth > orderDay)) { + var iDelim1 = orderDay + DAY.length; + var iDelim2 = orderMonth + MONTH.length; + var delim1 = datePattern.substring(iDelim1, iDelim1 + 1); + var delim2 = datePattern.substring(iDelim2, iDelim2 + 1); + if (iDelim1 == orderMonth && iDelim2 == orderYear) { + dateRegexp = new RegExp("^(\\d{2})(\\d{2})(\\d{4})$"); + } else if (iDelim1 == orderMonth) { + dateRegexp = new RegExp("^(\\d{2})(\\d{2})[" + delim2 + "](\\d{4})$"); + } else if (iDelim2 == orderYear) { + dateRegexp = new RegExp("^(\\d{2})[" + delim1 + "](\\d{2})(\\d{4})$"); + } else { + dateRegexp = new RegExp("^(\\d{2})[" + delim1 + "](\\d{2})[" + delim2 + "](\\d{4})$"); + } + var matched = dateRegexp.exec(value); + if(matched != null) { + if (!isValidDate(matched[1], matched[2], matched[3])) { + if (i == 0) { + focusField = form[oDate[x][0]]; + } + fields[i++] = oDate[x][1]; + bValid = false; + } + } else { + if (i == 0) { + focusField = form[oDate[x][0]]; + } + fields[i++] = oDate[x][1]; + bValid = false; + } + } else if ((orderMonth > orderYear && orderMonth < orderDay)) { + var iDelim1 = orderYear + YEAR.length; + var iDelim2 = orderMonth + MONTH.length; + var delim1 = datePattern.substring(iDelim1, iDelim1 + 1); + var delim2 = datePattern.substring(iDelim2, iDelim2 + 1); + if (iDelim1 == orderMonth && iDelim2 == orderDay) { + dateRegexp = new RegExp("^(\\d{4})(\\d{2})(\\d{2})$"); + } else if (iDelim1 == orderMonth) { + dateRegexp = new RegExp("^(\\d{4})(\\d{2})[" + delim2 + "](\\d{2})$"); + } else if (iDelim2 == orderDay) { + dateRegexp = new RegExp("^(\\d{4})[" + delim1 + "](\\d{2})(\\d{2})$"); + } else { + dateRegexp = new RegExp("^(\\d{4})[" + delim1 + "](\\d{2})[" + delim2 + "](\\d{2})$"); + } + var matched = dateRegexp.exec(value); + if(matched != null) { + if (!isValidDate(matched[3], matched[2], matched[1])) { + if (i == 0) { + focusField = form[oDate[x][0]]; + } + fields[i++] = oDate[x][1]; + bValid = false; + } + } else { + if (i == 0) { + focusField = form[oDate[x][0]]; + } + fields[i++] = oDate[x][1]; + bValid = false; + } + } else { + if (i == 0) { + focusField = form[oDate[x][0]]; + } + fields[i++] = oDate[x][1]; + bValid = false; + } + } + } + if (fields.length > 0) { + focusField.focus(); + alert(fields.join('\n')); + } + return bValid; + } + + function isValidDate(day, month, year) { + if (month < 1 || month > 12) { + return false; + } + if (day < 1 || day > 31) { + return false; + } + if ((month == 4 || month == 6 || month == 9 || month == 11) && + (day == 31)) { + return false; + } + if (month == 2) { + var leap = (year % 4 == 0 && + (year % 100 != 0 || year % 400 == 0)); + if (day>29 || (day == 29 && !leap)) { + return false; + } + } + return true; + }]]> + + + + + + + + + + + + + + + 0)) { + + var iMin = parseInt(oRange[x][2]("min")); + var iMax = parseInt(oRange[x][2]("max")); + var iValue = parseInt(field.value); + if (!(iValue >= iMin && iValue <= iMax)) { + if (i == 0) { + focusField = field; + } + fields[i++] = oRange[x][1]; + isValid = false; + } + } + } + if (fields.length > 0) { + focusField.focus(); + alert(fields.join('\n')); + } + return isValid; + }]]> + + + + + + + 0)) { + + var fMin = parseFloat(oRange[x][2]("min")); + var fMax = parseFloat(oRange[x][2]("max")); + var fValue = parseFloat(field.value); + if (!(fValue >= fMin && fValue <= fMax)) { + if (i == 0) { + focusField = field; + } + fields[i++] = oRange[x][1]; + isValid = false; + } + } + } + if (fields.length > 0) { + focusField.focus(); + alert(fields.join('\n')); + } + return isValid; + }]]> + + + + + + + 0)) { + if (!luhnCheck(form[oCreditCard[x][0]].value)) { + if (i == 0) { + focusField = form[oCreditCard[x][0]]; + } + fields[i++] = oCreditCard[x][1]; + bValid = false; + } + } + } + if (fields.length > 0) { + focusField.focus(); + alert(fields.join('\n')); + } + return bValid; + } + + /** + * Reference: http://www.ling.nwu.edu/~sburke/pub/luhn_lib.pl + */ + function luhnCheck(cardNumber) { + if (isLuhnNum(cardNumber)) { + var no_digit = cardNumber.length; + var oddoeven = no_digit & 1; + var sum = 0; + for (var count = 0; count < no_digit; count++) { + var digit = parseInt(cardNumber.charAt(count)); + if (!((count & 1) ^ oddoeven)) { + digit *= 2; + if (digit > 9) digit -= 9; + }; + sum += digit; + }; + if (sum == 0) return false; + if (sum % 10 == 0) return true; + }; + return false; + } + + function isLuhnNum(argvalue) { + argvalue = argvalue.toString(); + if (argvalue.length == 0) { + return false; + } + for (var n = 0; n < argvalue.length; n++) { + if ((argvalue.substring(n, n+1) < "0") || + (argvalue.substring(n,n+1) > "9")) { + return false; + } + } + return true; + }]]> + + + + + + + + 0)) { + if (!checkEmail(form[oEmail[x][0]].value)) { + if (i == 0) { + focusField = form[oEmail[x][0]]; + } + fields[i++] = oEmail[x][1]; + bValid = false; + } + } + } + if (fields.length > 0) { + focusField.focus(); + alert(fields.join('\n')); + } + return bValid; + } + + /** + * Reference: Sandeep V. Tamhankar (stamhankar@hotmail.com), + * http://javascript.internet.com + */ + function checkEmail(emailStr) { + if (emailStr.length == 0) { + return true; + } + var emailPat=/^(.+)@(.+)$/; + var specialChars="\\(\\)<>@,;:\\\\\\\"\\.\\[\\]"; + var validChars="\[^\\s" + specialChars + "\]"; + var quotedUser="(\"[^\"]*\")"; + var ipDomainPat=/^(\d{1,3})[.](\d{1,3})[.](\d{1,3})[.](\d{1,3})$/; + var atom=validChars + '+'; + var word="(" + atom + "|" + quotedUser + ")"; + var userPat=new RegExp("^" + word + "(\\." + word + ")*$"); + var domainPat=new RegExp("^" + atom + "(\\." + atom + ")*$"); + var matchArray=emailStr.match(emailPat); + if (matchArray == null) { + return false; + } + var user=matchArray[1]; + var domain=matchArray[2]; + if (user.match(userPat) == null) { + return false; + } + var IPArray = domain.match(ipDomainPat); + if (IPArray != null) { + for (var i = 1; i <= 4; i++) { + if (IPArray[i] > 255) { + return false; + } + } + return true; + } + var domainArray=domain.match(domainPat); + if (domainArray == null) { + return false; + } + var atomPat=new RegExp(atom,"g"); + var domArr=domain.match(atomPat); + var len=domArr.length; + if ((domArr[domArr.length-1].length < 2) || + (domArr[domArr.length-1].length > 3)) { + return false; + } + if (len < 2) { + return false; + } + return true; + }]]> + + + + + + + 0) { + alert(fields.join('\n')); + } + return bValid; + } + + /** + * Reference: JS Guide + * http://jsguide.net/ver2/articles/frame.php?artnum=002 + */ + function checkIhIdNum(ihidnum){ + + fmt = /^\d{6}[1234]\d{6}$/; + if(!fmt.test(ihidnum)){ + return false; + } + + birthYear = (ihidnum.charAt(7) <= "2") ? "19" : "20"; + birthYear += ihidnum.substr(0, 2); + birthMonth = ihidnum.substr(2, 2) - 1; + birthDate = ihidnum.substr(4, 2); + birth = new Date(birthYear, birthMonth, birthDate); + + if( birth.getYear() % 100 != ihidnum.substr(0, 2) || + birth.getMonth() != birthMonth || + birth.getDate() != birthDate) { + return false; + } + + var arrDivide = [2, 3, 4, 5, 6, 7, 8, 9, 2, 3, 4, 5]; + var checkdigit = 0; + for(var i=0;i + + + + 0) { + focusField.focus(); + alert(fields.join('\n')); + } + return bValid; + } + + function checkKorean(koreanStr){ + for(var i=0;i + + + + + + diff --git a/src/main/webapp/WEB-INF/config/egovframework/validator/validator.xml b/src/main/webapp/WEB-INF/config/egovframework/validator/validator.xml new file mode 100644 index 0000000..453fa36 --- /dev/null +++ b/src/main/webapp/WEB-INF/config/egovframework/validator/validator.xml @@ -0,0 +1,22 @@ + + + + + + +
+ + + + + + + + + +
+
+ +
\ No newline at end of file diff --git a/src/main/webapp/WEB-INF/jsp/egovframework/com/mtdata/cmmn/dataAccessFailure.jsp b/src/main/webapp/WEB-INF/jsp/egovframework/com/mtdata/cmmn/dataAccessFailure.jsp new file mode 100644 index 0000000..bf361e5 --- /dev/null +++ b/src/main/webapp/WEB-INF/jsp/egovframework/com/mtdata/cmmn/dataAccessFailure.jsp @@ -0,0 +1,13 @@ +<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> +<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> + + + + +Error + + + + + + \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/jsp/egovframework/com/mtdata/cmmn/egovBizException.jsp b/src/main/webapp/WEB-INF/jsp/egovframework/com/mtdata/cmmn/egovBizException.jsp new file mode 100644 index 0000000..50e5187 --- /dev/null +++ b/src/main/webapp/WEB-INF/jsp/egovframework/com/mtdata/cmmn/egovBizException.jsp @@ -0,0 +1,13 @@ +<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> +<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> + + + + +Error + + + + + + \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/jsp/egovframework/com/mtdata/cmmn/egovError.jsp b/src/main/webapp/WEB-INF/jsp/egovframework/com/mtdata/cmmn/egovError.jsp new file mode 100644 index 0000000..50e5187 --- /dev/null +++ b/src/main/webapp/WEB-INF/jsp/egovframework/com/mtdata/cmmn/egovError.jsp @@ -0,0 +1,13 @@ +<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> +<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> + + + + +Error + + + + + + \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/jsp/egovframework/com/mtdata/cmmn/transactionFailure.jsp b/src/main/webapp/WEB-INF/jsp/egovframework/com/mtdata/cmmn/transactionFailure.jsp new file mode 100644 index 0000000..50e5187 --- /dev/null +++ b/src/main/webapp/WEB-INF/jsp/egovframework/com/mtdata/cmmn/transactionFailure.jsp @@ -0,0 +1,13 @@ +<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> +<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> + + + + +Error + + + + + + \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/jsp/egovframework/com/mtdata/cmmn/validator.jsp b/src/main/webapp/WEB-INF/jsp/egovframework/com/mtdata/cmmn/validator.jsp new file mode 100644 index 0000000..2925385 --- /dev/null +++ b/src/main/webapp/WEB-INF/jsp/egovframework/com/mtdata/cmmn/validator.jsp @@ -0,0 +1,3 @@ +<%@ page language="java" contentType="javascript/x-javascript" %> +<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %> + \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/jsp/egovframework/com/mtdata/sample/egovSampleList.jsp b/src/main/webapp/WEB-INF/jsp/egovframework/com/mtdata/sample/egovSampleList.jsp new file mode 100644 index 0000000..eefa7c4 --- /dev/null +++ b/src/main/webapp/WEB-INF/jsp/egovframework/com/mtdata/sample/egovSampleList.jsp @@ -0,0 +1,141 @@ +<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> +<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%> +<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> +<% + /** + * @Class Name : egovSampleList.jsp + * @Description : Sample List 화면 + * @Modification Information + * + * 수정일 수정자 수정내용 + * ------- -------- --------------------------- + * 2009.02.01 최초 생성 + * + * author 실행환경 개발팀 + * since 2009.02.01 + * + * Copyright (C) 2009 by MOPAS All right reserved. + */ +%> + + + + + <spring:message code="title.sample" /> + + + + + + + +
+ +
+
    +
  • +
+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
카테고리ID, 케테고리명, 사용여부, Description, 등록자 표시하는 테이블
No
')">    
+
+ +
+ + +
+
+
    +
  • + + + + +
  • +
+
+
+
+ + diff --git a/src/main/webapp/WEB-INF/jsp/egovframework/com/mtdata/sample/egovSampleRegister.jsp b/src/main/webapp/WEB-INF/jsp/egovframework/com/mtdata/sample/egovSampleRegister.jsp new file mode 100644 index 0000000..b4f4c94 --- /dev/null +++ b/src/main/webapp/WEB-INF/jsp/egovframework/com/mtdata/sample/egovSampleRegister.jsp @@ -0,0 +1,168 @@ +<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> +<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %> +<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> +<% + /** + * @Class Name : egovSampleRegister.jsp + * @Description : Sample Register 화면 + * @Modification Information + * + * 수정일 수정자 수정내용 + * ------- -------- --------------------------- + * 2009.02.01 최초 생성 + * + * author 실행환경 개발팀 + * since 2009.02.01 + * + * Copyright (C) 2009 by MOPAS All right reserved. + */ +%> + + + + + + Sample <c:if test="${registerFlag == 'create'}"><spring:message code="button.create" /></c:if> + <c:if test="${registerFlag == 'modify'}"><spring:message code="button.modify" /></c:if> + + + + + + + + + + + + +
+ +
+
    +
  • + + +
  • +
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +   + + +
+ +
+ +   +
+ + + + +
+   +
+ + +  
+
+
+
    +
  • + + + + +
  • +
  • + + + + + + + +
  • + +
  • + + + + +
  • +
    +
  • + + + + +
  • +
+
+
+ + + + +
+ + \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 0000000..acf20f4 --- /dev/null +++ b/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,74 @@ + + + egov.sample + + + encodingFilter + org.springframework.web.filter.CharacterEncodingFilter + + encoding + utf-8 + + + + encodingFilter + *.do + + + + HTMLTagFilter + org.egovframe.rte.ptl.mvc.filter.HTMLTagFilter + + + HTMLTagFilter + *.do + + + + contextConfigLocation + classpath*:egovframework/spring/context-*.xml + + + + org.springframework.web.context.ContextLoaderListener + + + + action + org.springframework.web.servlet.DispatcherServlet + + contextConfigLocation + /WEB-INF/config/egovframework/springmvc/dispatcher-servlet.xml + + 1 + + + + action + *.do + + + + index.jsp + + + + BASIC + + + + java.lang.Throwable + /common/error.jsp + + + 404 + /common/error.jsp + + + 500 + /common/error.jsp + + + diff --git a/src/main/webapp/common/error.jsp b/src/main/webapp/common/error.jsp new file mode 100644 index 0000000..c9f3c2e --- /dev/null +++ b/src/main/webapp/common/error.jsp @@ -0,0 +1,26 @@ +<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> +<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> + + + + + +Basic Sample + + + + + + + +
+ + + +
+ +
+
+ + \ No newline at end of file diff --git a/src/main/webapp/css/egovframework/sample.css b/src/main/webapp/css/egovframework/sample.css new file mode 100644 index 0000000..e6685ee --- /dev/null +++ b/src/main/webapp/css/egovframework/sample.css @@ -0,0 +1,99 @@ +/********************************************************************************/ +/* */ +/* Design RIAN */ +/* Date : 2007-03-21 */ +/* */ +/* */ +/********************************************************************************/ +* {margin:0;padding:0;} +* html {height:1px;} +body {margin:0; padding:0; font-family:"굴림"; font-size:12px; color:#666; scroll:auto;} +table, tr, td, th {font-family:"돋움"; font-size:11px; color:#333333;} +.listtd {padding:10px 5px 8px 5px; border-bottom:1px solid #e5e5e5;} +th {background-color:#F3F5E0; background:url(../../images/egovframework/example/th_bg.gif) 0 0 repeat; height:26px; text-align:center; vertical-align:middle; color:#003366;} +img {border:0; vertical-align:middle;} +p { height:20px; margin:0; padding:5 0 0 0;} +.check ul {margin:0; padding:0; float:left;} +.check li {list-style-type:none; float:left; margin:0 0 0 0; padding:0 0 0 3px;} +.top {vertical-align:top;} + +a:link { font-size:11px; font-family:"돋움"; color:#3A5870; text-decoration:none; line-height:100%;} +a:visited { font-size:11px; font-family:"돋움"; color:#3A5870; text-decoration:none} +a:active { font-size:11px; font-family:"돋움"; color:#339999; text-decoration:none;} +a:hover { font-size:11px; font-family:"돋움"; color:#339999; text-decoration:none;} + +.login {position:relative; margin:0; padding:0 0 0 0px; text-align:left; vertical-align:top; padding:52px 0px 0px 270px; /*overflow:hidden;*/ width:330px; height:260px;background:url(../../images/egovframework/example/login_bg.jpg) 0 0 no-repeat; } +.login_en {position:relative; margin:0; padding:0 0 0 0px; text-align:left; vertical-align:top; padding:52px 0px 0px 270px; /*overflow:hidden;*/ width:330px; height:260px;background:url(../../images/egovframework/example/login_bg_en.jpg) 0 0 no-repeat; } +.error {position:relative; margin:0; padding:0 0 0 0px; text-align:left; vertical-align:top; padding:120px 0px 0px 80px; /*overflow:hidden;*/ width:520px; height:260px;background:url(../../images/egovframework/example/error_bg.jpg) 0 0 no-repeat; } +.error_en {position:relative; margin:0; padding:0 0 0 0px; text-align:left; vertical-align:top; padding:120px 0px 0px 80px; /*overflow:hidden;*/ width:520px; height:260px;background:url(../../images/egovframework/example/error_bg_en.jpg) 0 0 no-repeat; } +#logo {margin:0; padding:0; text-align:left; /*overflow:hidden;*/ width:910px;} +#header {height:74px; background:url(../../images/egovframework/example/civilappeal_topmn_bg.jpg) repeat-x;} +#top {width:910px;} +.menu { text-align:center; height:38px; margin:0; padding:13px 0 0 0;} +.menu ul {display:inline; width:910px;} +.menu li {display:inline; list-style-type:none; margin:0; padding:14px 28px 0 28px; background:url(../../images/egovframework/example/civilappeal_topmn_bar.jpg) 0 15px no-repeat;} +.menu li.last {width:1px; padding:15px 0 0 0; background:url(../../images/egovframework/example/civilappeal_topmn_bar.jpg) 0 0 no-repeat;} +.menu a.top:link {font-family:"굴림"; font-weight:bold; color:#FFFFFF; text-decoration:none; font-size:12px;} +.menu a.top:visited {font-family:"굴림"; font-weight:bold; color:#FFFFFF; text-decoration:none; font-size:12px;} +.menu a.top:hover {font-family:"굴림"; font-weight:bold; color: #00CCFF; text-decoration:none; font-size:12px;} +.menu a.top:active {font-family:"굴림"; font-weight:bold; color:#FFFFFF; text-decoration:none; font-size:12px;} + +.menu .on a.top:link {font-family:"굴림"; font-weight:bold; color:#00CCFF; text-decoration:none; font-size:12px;} +.menu .on a.top:visited {font-family:"굴림"; font-weight:bold; color:#00CCFF; text-decoration:none; font-size:12px;} +.menu .on a.top:hover {font-family:"굴림"; font-weight:bold; color: #00CCFF; text-decoration:none; font-size:12px;} +.menu .on a.top:active {font-family:"굴림"; font-weight:bold; color:#00CCFF; text-decoration:none; font-size:12px;} + +.right_area {float:right; height:38px; margin:0; padding:0 8px 0 0; background:url(../../images/egovframework/example/civilappeal_topmn_bg11.jpg) right no-repeat;} +#sub {float:left; padding:10px 10px 10px 10px; /*overflow:hidden;*/width:180px; margin-right:30px;} +#sub .login {width:180px; height:70px; text-align:left; vertical-align:top; padding:5px 0 0 0; background:url(../../images/egovframework/example/civilappeal_login_bg.jpg) right no-repeat; margin-bottom:10px;} +#sub .login_en {width:180px; height:70px; text-align:left; vertical-align:top; padding:5px 0 0 0; background:url(../../images/egovframework/example/civilappeal_login_bg_en.jpg) right no-repeat; margin-bottom:10px;} +#sub .sub_menu {width:150px; height:300px; text-align:left; vertical-align:top; background:url(../../images/egovframework/example/civilappeal_leftmenu_bg.jpg) 0 0 no-repeat; padding-top:40px; padding-left:15px; padding-right:15px; padding-bottom:0px;} +#sub .sub_menu dl {width:150px;} +#sub .sub_menu dd {font-weight:bold; padding-left:0px; padding-right:0px; padding-bottom:0px; padding-top:10px; margin:0;} +#sub .sub_menu dt {list-style:none; padding-left:0px; padding-right:0px; padding-bottom:0px; padding-top:8px; margin:0px;} +#sub .sub_menu_en {width:150px; height:300px; text-align:left; vertical-align:top; background:url(../../images/egovframework/example/civilappeal_leftmenu_bg_en.jpg) 0 0 no-repeat; padding-top:40px; padding-left:15px; padding-right:15px; padding-bottom:0px;} +#sub .sub_menu_en dl {width:150px;} +#sub .sub_menu_en dd {font-weight:bold; padding-left:0px; padding-right:0px; padding-bottom:0px; padding-top:10px; margin:0;} +#sub .sub_menu_en dt {list-style:none; padding-left:0px; padding-right:0px; padding-bottom:0px; padding-top:8px; margin:0px;} +#content {float:left; text-align:left; /*overflow:hidden;*/width:680px; background-color:#FFFFFF; padding:10px 0px 10px 0px;} +#content_pop {float:left; text-align:left; /*overflow:hidden;*/width:680px; background-color:#FFFFFF; padding:10px 10px 10px 10px;} +#title {float:left; text-align:left; margin:0 0 10 0; padding:0; height:30px; border-bottom:1px solid #e5e5e5; width:680px;} +#title ul {float:left; margin:0; padding:0;} +#title li {list-style-type:none; width:200px; padding:3px 0px 2px 0px; float:left; font-family:"돋움"; font-size:16px; font-weight:bold; color:#000000;} +#title .location {float:right; height:20px; margin:0; padding:5 0 0 0; font-family:"돋움"; font-size:11px;} +#foot {margin:0; padding:0 0 0 0; text-align:left; /*overflow:hidden;*/ height:40px; clear:both; background-color:#F7F7F7; border-top:1px solid #e5e5e5; font-family:Tahoma; font-size:11px; color:#999999;} +#search {float:right; margin:0; padding:10px 0 10px 0; width:680px;} +#search ul {margin:0; float:right;} +#search li {list-style-type:none; float:left; margin:0 0 0 0; padding:0 0 0 3px;} +#table {float:left; margin:0 0 10px 0; padding:0 0 0 0; width:680px;} +#paging {padding:0 0 0 0; text-align:center; width:680px;} +#paging ul {display:inline;} +#paging li {display:inline; list-style-type:none; padding:0 10px 0 10px; font-family: Tahoma; font-size:11px; color: #333333;} +#paging li.pre10 {padding:0 2px 0 2px;} +#paging li.pre1 {padding:0 2px 0 2px;} +#paging li.next10 {padding:0 2px 0 2px;} +#paging li.next1 {padding:0 2px 0 2px;} +#paging li.line {background:url(../../images/egovframework/example/paging_line.gif) 0 2px no-repeat;} +#paging li.first {padding:0 5px 0 0;} +#paging li.last {background:url(../../images/egovframework/example/paging_line.gif) 0 2px no-repeat; padding:0 5px 0 0;} +#sysbtn {float:right; text-align:right; padding:0; margin:0; display:inline;} +#sysbtn ul {margin:0; padding:0; float:left; display:inline;} +#sysbtn li {list-style-type:none; margin:0 auto; padding:0 0 0 3px; float:left; display:inline;} + +#sysbtn1 {text-align:left; padding-top:10px; padding-bottom:0px; margin-bottom:0px; width:680px;} +#sysbtn1 ul {margin:0; padding:0; float:left; display:inline;} +#sysbtn1 li {list-style-type:none; margin:0 0 0 0; padding:0 0 0 3px; float:left; display:inline;} +#idwrap {float:left; padding-top:0px; padding-bottom:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; margin-top:0px; padding-left:0px; padding-right:0px; } +#idwrap ul {float:left; padding:0; margin:0;} +#idwrap li {list-style-type:none; float:left; margin:0; padding-right:3px;} +button {cursor:hand; border:0px solid #FFFFFF; padding:0px 0px 0px 0px; background-color:#FFFFFF; white-space:nowrap;} +.btn_blue_l {float:left; background:url(../../images/egovframework/example/btn_bg_l.gif) 0 0 no-repeat; height:20px; padding:0px 0px 0px 10px; margin:0px 0px 0px 0px;} +.btn_blue_r {float:left; background:url(../../images/egovframework/example/btn_bg_r.gif) 0 0 no-repeat; background-position:right; height:20px; font-family:"돋움"; font-size:11px; color:#000000; margin:0px 0px 0px 0px; padding-top:0px; _padding-top:0px; padding-left:10px; padding-right:10px; padding-bottom:0px; text-align:center;} +input { height:20px; font-family:"돋움"; font-size:12px; color:#000000; padding:2px 2px 0px 2px; margin-top:0px; _margin-top:-1px;} +select {font-family:'돋움'; font-size:12px; margin-top:0px; height:20px; padding-top:0px;} +.tbtd_caption {font-weight:bold; color:#003366; background-color:#E5EDF3; text-align:right; padding:10px 10px 9px 5px; margin:0;} +.tbtd_content {background-color:#F5F8FA; padding:7px 10px 5px 10px; margin:0;} +.tbtd_caption_re {font-weight:bold; color:#666633; background-color:#F6F5E5; text-align:right; padding:10px 10px 9px 5px; margin:0;} +.tbtd_content_re {background-color:#F9F9F2; padding:7px 10px 5px 10px; margin:0;} +input.txt {height:18px; background-color:#FFF; border:1px solid #BCC8D8; padding-top:2px; color:#5e5e5e; cursor:text;} +input.essentiality {height:18px; background-color:#ebebeb; border:1px solid #BCC8D8; padding-top:2px; color:#000; cursor:text;} \ No newline at end of file diff --git a/src/main/webapp/images/egovframework/cmmn/btn_page_next1.gif b/src/main/webapp/images/egovframework/cmmn/btn_page_next1.gif new file mode 100644 index 0000000..bb3c1eb Binary files /dev/null and b/src/main/webapp/images/egovframework/cmmn/btn_page_next1.gif differ diff --git a/src/main/webapp/images/egovframework/cmmn/btn_page_next10.gif b/src/main/webapp/images/egovframework/cmmn/btn_page_next10.gif new file mode 100644 index 0000000..d7ecd00 Binary files /dev/null and b/src/main/webapp/images/egovframework/cmmn/btn_page_next10.gif differ diff --git a/src/main/webapp/images/egovframework/cmmn/btn_page_pre1.gif b/src/main/webapp/images/egovframework/cmmn/btn_page_pre1.gif new file mode 100644 index 0000000..a16f585 Binary files /dev/null and b/src/main/webapp/images/egovframework/cmmn/btn_page_pre1.gif differ diff --git a/src/main/webapp/images/egovframework/cmmn/btn_page_pre10.gif b/src/main/webapp/images/egovframework/cmmn/btn_page_pre10.gif new file mode 100644 index 0000000..4dbb26e Binary files /dev/null and b/src/main/webapp/images/egovframework/cmmn/btn_page_pre10.gif differ diff --git a/src/main/webapp/images/egovframework/example/btn_bg_l.gif b/src/main/webapp/images/egovframework/example/btn_bg_l.gif new file mode 100644 index 0000000..11341a6 Binary files /dev/null and b/src/main/webapp/images/egovframework/example/btn_bg_l.gif differ diff --git a/src/main/webapp/images/egovframework/example/btn_bg_r.gif b/src/main/webapp/images/egovframework/example/btn_bg_r.gif new file mode 100644 index 0000000..be5b8c5 Binary files /dev/null and b/src/main/webapp/images/egovframework/example/btn_bg_r.gif differ diff --git a/src/main/webapp/images/egovframework/example/civilappeal_topmn_bg.jpg b/src/main/webapp/images/egovframework/example/civilappeal_topmn_bg.jpg new file mode 100644 index 0000000..50a3a4d Binary files /dev/null and b/src/main/webapp/images/egovframework/example/civilappeal_topmn_bg.jpg differ diff --git a/src/main/webapp/images/egovframework/example/paging_line.gif b/src/main/webapp/images/egovframework/example/paging_line.gif new file mode 100644 index 0000000..0fa7654 Binary files /dev/null and b/src/main/webapp/images/egovframework/example/paging_line.gif differ diff --git a/src/main/webapp/images/egovframework/example/th_bg.gif b/src/main/webapp/images/egovframework/example/th_bg.gif new file mode 100644 index 0000000..e3f80fc Binary files /dev/null and b/src/main/webapp/images/egovframework/example/th_bg.gif differ diff --git a/src/main/webapp/images/egovframework/example/title_dot.gif b/src/main/webapp/images/egovframework/example/title_dot.gif new file mode 100644 index 0000000..f2658f9 Binary files /dev/null and b/src/main/webapp/images/egovframework/example/title_dot.gif differ diff --git a/src/main/webapp/index.jsp b/src/main/webapp/index.jsp new file mode 100644 index 0000000..bdcfec4 --- /dev/null +++ b/src/main/webapp/index.jsp @@ -0,0 +1,2 @@ +<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> + \ No newline at end of file diff --git a/target/classes/config/chameleon-setting.yaml b/target/classes/config/chameleon-setting.yaml new file mode 100644 index 0000000..979ac1e --- /dev/null +++ b/target/classes/config/chameleon-setting.yaml @@ -0,0 +1,20 @@ +--- + +pid_dir: '~/.pg_chameleon/pid/' +log_dir: '~/.pg_chameleon/logs/' +log_dest: file +log_level: info +log_days_keep: 10 +rollbar_key: '' +rollbar_env: '' + +pg_conn: + host: "211.199.70.9" + port: "5433" + user: "migration_user" + password: "dpc12!@" + database: "db_replica" + charset: "utf8" + +sources: + \ No newline at end of file diff --git a/target/classes/db/sampledb.sql b/target/classes/db/sampledb.sql new file mode 100644 index 0000000..9fb20b6 --- /dev/null +++ b/target/classes/db/sampledb.sql @@ -0,0 +1,118 @@ +CREATE MEMORY TABLE SAMPLE(ID VARCHAR(16) NOT NULL PRIMARY KEY,NAME VARCHAR(50),DESCRIPTION VARCHAR(100),USE_YN CHAR(1),REG_USER VARCHAR(10)) +CREATE MEMORY TABLE IDS(TABLE_NAME VARCHAR(16) NOT NULL PRIMARY KEY,NEXT_ID DECIMAL(30) NOT NULL) +SET SCHEMA PUBLIC +INSERT INTO SAMPLE VALUES('SAMPLE-00001','Runtime Environment','Foundation Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00002','Runtime Environment','Persistence Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00003','Runtime Environment','Presentation Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00004','Runtime Environment','Business Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00005','Runtime Environment','Batch Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00006','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00007','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00008','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00009','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00010','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00011','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00012','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00013','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00014','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00015','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00016','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00017','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00018','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00019','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00020','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00021','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00022','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00023','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00024','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00025','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00026','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00027','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00028','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00029','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00030','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00031','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00032','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00033','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00034','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00035','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00036','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00037','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00038','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00039','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00040','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00041','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00042','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00043','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00044','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00045','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00046','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00047','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00048','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00049','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00050','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00051','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00052','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00053','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00054','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00055','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00056','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00057','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00058','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00059','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00060','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00061','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00062','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00063','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00064','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00065','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00066','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00067','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00068','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00069','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00070','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00071','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00072','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00073','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00074','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00075','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00076','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00077','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00078','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00079','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00080','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00081','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00082','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00083','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00084','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00085','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00086','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00087','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00088','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00089','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00090','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00091','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00092','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00093','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00094','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00095','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00096','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00097','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00098','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00099','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00100','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00101','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00102','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00103','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00104','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00105','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00106','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00107','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00108','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00109','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00110','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00111','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00112','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00113','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00114','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO IDS VALUES('SAMPLE',115) diff --git a/target/classes/egovframework/com/mtdata/cmmn/EgovSampleExcepHndlr.class b/target/classes/egovframework/com/mtdata/cmmn/EgovSampleExcepHndlr.class new file mode 100644 index 0000000..2225274 Binary files /dev/null and b/target/classes/egovframework/com/mtdata/cmmn/EgovSampleExcepHndlr.class differ diff --git a/target/classes/egovframework/com/mtdata/cmmn/EgovSampleOthersExcepHndlr.class b/target/classes/egovframework/com/mtdata/cmmn/EgovSampleOthersExcepHndlr.class new file mode 100644 index 0000000..7aa41b2 Binary files /dev/null and b/target/classes/egovframework/com/mtdata/cmmn/EgovSampleOthersExcepHndlr.class differ diff --git a/target/classes/egovframework/com/mtdata/cmmn/vo/BasicVO.class b/target/classes/egovframework/com/mtdata/cmmn/vo/BasicVO.class new file mode 100644 index 0000000..0436882 Binary files /dev/null and b/target/classes/egovframework/com/mtdata/cmmn/vo/BasicVO.class differ diff --git a/target/classes/egovframework/com/mtdata/cmmn/web/EgovBindingInitializer.class b/target/classes/egovframework/com/mtdata/cmmn/web/EgovBindingInitializer.class new file mode 100644 index 0000000..f4b340c Binary files /dev/null and b/target/classes/egovframework/com/mtdata/cmmn/web/EgovBindingInitializer.class differ diff --git a/target/classes/egovframework/com/mtdata/cmmn/web/EgovImgPaginationRenderer.class b/target/classes/egovframework/com/mtdata/cmmn/web/EgovImgPaginationRenderer.class new file mode 100644 index 0000000..384069f Binary files /dev/null and b/target/classes/egovframework/com/mtdata/cmmn/web/EgovImgPaginationRenderer.class differ diff --git a/target/classes/egovframework/com/mtdata/cmmnty/mapper/CmmntyMapper.class b/target/classes/egovframework/com/mtdata/cmmnty/mapper/CmmntyMapper.class new file mode 100644 index 0000000..b3b3834 Binary files /dev/null and b/target/classes/egovframework/com/mtdata/cmmnty/mapper/CmmntyMapper.class differ diff --git a/target/classes/egovframework/com/mtdata/cmmnty/service/CmmntyService.class b/target/classes/egovframework/com/mtdata/cmmnty/service/CmmntyService.class new file mode 100644 index 0000000..2d63556 Binary files /dev/null and b/target/classes/egovframework/com/mtdata/cmmnty/service/CmmntyService.class differ diff --git a/target/classes/egovframework/com/mtdata/cmmnty/service/impl/CmmntyServiceImpl.class b/target/classes/egovframework/com/mtdata/cmmnty/service/impl/CmmntyServiceImpl.class new file mode 100644 index 0000000..1923762 Binary files /dev/null and b/target/classes/egovframework/com/mtdata/cmmnty/service/impl/CmmntyServiceImpl.class differ diff --git a/target/classes/egovframework/com/mtdata/cmmnty/vo/CmmntyVO.class b/target/classes/egovframework/com/mtdata/cmmnty/vo/CmmntyVO.class new file mode 100644 index 0000000..230f477 Binary files /dev/null and b/target/classes/egovframework/com/mtdata/cmmnty/vo/CmmntyVO.class differ diff --git a/target/classes/egovframework/com/mtdata/cmmnty/web/CmmntyController.class b/target/classes/egovframework/com/mtdata/cmmnty/web/CmmntyController.class new file mode 100644 index 0000000..020070a Binary files /dev/null and b/target/classes/egovframework/com/mtdata/cmmnty/web/CmmntyController.class differ diff --git a/target/classes/egovframework/com/mtdata/config/dbConn/mySql/CreateYaml.class b/target/classes/egovframework/com/mtdata/config/dbConn/mySql/CreateYaml.class new file mode 100644 index 0000000..2478040 Binary files /dev/null and b/target/classes/egovframework/com/mtdata/config/dbConn/mySql/CreateYaml.class differ diff --git a/target/classes/egovframework/com/mtdata/database/mapper/DatabaseMapper.class b/target/classes/egovframework/com/mtdata/database/mapper/DatabaseMapper.class new file mode 100644 index 0000000..7f442dd Binary files /dev/null and b/target/classes/egovframework/com/mtdata/database/mapper/DatabaseMapper.class differ diff --git a/target/classes/egovframework/com/mtdata/database/service/DatabaseService.class b/target/classes/egovframework/com/mtdata/database/service/DatabaseService.class new file mode 100644 index 0000000..35dd0c8 Binary files /dev/null and b/target/classes/egovframework/com/mtdata/database/service/DatabaseService.class differ diff --git a/target/classes/egovframework/com/mtdata/database/service/impl/DatabaseServiceImpl.class b/target/classes/egovframework/com/mtdata/database/service/impl/DatabaseServiceImpl.class new file mode 100644 index 0000000..0e386ce Binary files /dev/null and b/target/classes/egovframework/com/mtdata/database/service/impl/DatabaseServiceImpl.class differ diff --git a/target/classes/egovframework/com/mtdata/database/vo/DBConnInfoVO.class b/target/classes/egovframework/com/mtdata/database/vo/DBConnInfoVO.class new file mode 100644 index 0000000..9ac144c Binary files /dev/null and b/target/classes/egovframework/com/mtdata/database/vo/DBConnInfoVO.class differ diff --git a/target/classes/egovframework/com/mtdata/database/vo/DBInfoVO.class b/target/classes/egovframework/com/mtdata/database/vo/DBInfoVO.class new file mode 100644 index 0000000..bdee7e3 Binary files /dev/null and b/target/classes/egovframework/com/mtdata/database/vo/DBInfoVO.class differ diff --git a/target/classes/egovframework/com/mtdata/database/vo/DBTblColInfoVO.class b/target/classes/egovframework/com/mtdata/database/vo/DBTblColInfoVO.class new file mode 100644 index 0000000..9c02931 Binary files /dev/null and b/target/classes/egovframework/com/mtdata/database/vo/DBTblColInfoVO.class differ diff --git a/target/classes/egovframework/com/mtdata/database/vo/DBTblInfoVO.class b/target/classes/egovframework/com/mtdata/database/vo/DBTblInfoVO.class new file mode 100644 index 0000000..6f71941 Binary files /dev/null and b/target/classes/egovframework/com/mtdata/database/vo/DBTblInfoVO.class differ diff --git a/target/classes/egovframework/com/mtdata/database/vo/DatabaseInfoVO.class b/target/classes/egovframework/com/mtdata/database/vo/DatabaseInfoVO.class new file mode 100644 index 0000000..4fad1fe Binary files /dev/null and b/target/classes/egovframework/com/mtdata/database/vo/DatabaseInfoVO.class differ diff --git a/target/classes/egovframework/com/mtdata/database/web/DatabaseConnController.class b/target/classes/egovframework/com/mtdata/database/web/DatabaseConnController.class new file mode 100644 index 0000000..9a9471d Binary files /dev/null and b/target/classes/egovframework/com/mtdata/database/web/DatabaseConnController.class differ diff --git a/target/classes/egovframework/com/mtdata/institution/mapper/InstitutionMapper.class b/target/classes/egovframework/com/mtdata/institution/mapper/InstitutionMapper.class new file mode 100644 index 0000000..9cd7b62 Binary files /dev/null and b/target/classes/egovframework/com/mtdata/institution/mapper/InstitutionMapper.class differ diff --git a/target/classes/egovframework/com/mtdata/institution/service/InstitutionService.class b/target/classes/egovframework/com/mtdata/institution/service/InstitutionService.class new file mode 100644 index 0000000..adf654b Binary files /dev/null and b/target/classes/egovframework/com/mtdata/institution/service/InstitutionService.class differ diff --git a/target/classes/egovframework/com/mtdata/institution/service/impl/InstitutionServiceImpl.class b/target/classes/egovframework/com/mtdata/institution/service/impl/InstitutionServiceImpl.class new file mode 100644 index 0000000..63eb2c5 Binary files /dev/null and b/target/classes/egovframework/com/mtdata/institution/service/impl/InstitutionServiceImpl.class differ diff --git a/target/classes/egovframework/com/mtdata/institution/vo/InstitutionVO.class b/target/classes/egovframework/com/mtdata/institution/vo/InstitutionVO.class new file mode 100644 index 0000000..c8f2254 Binary files /dev/null and b/target/classes/egovframework/com/mtdata/institution/vo/InstitutionVO.class differ diff --git a/target/classes/egovframework/com/mtdata/institution/web/InstitutionController.class b/target/classes/egovframework/com/mtdata/institution/web/InstitutionController.class new file mode 100644 index 0000000..31f9e5a Binary files /dev/null and b/target/classes/egovframework/com/mtdata/institution/web/InstitutionController.class differ diff --git a/target/classes/egovframework/com/mtdata/main/mapper/MainDAO.class b/target/classes/egovframework/com/mtdata/main/mapper/MainDAO.class new file mode 100644 index 0000000..cdd6368 Binary files /dev/null and b/target/classes/egovframework/com/mtdata/main/mapper/MainDAO.class differ diff --git a/target/classes/egovframework/com/mtdata/main/service/MainService.class b/target/classes/egovframework/com/mtdata/main/service/MainService.class new file mode 100644 index 0000000..66320fc Binary files /dev/null and b/target/classes/egovframework/com/mtdata/main/service/MainService.class differ diff --git a/target/classes/egovframework/com/mtdata/main/vo/SampleDefaultVO.class b/target/classes/egovframework/com/mtdata/main/vo/SampleDefaultVO.class new file mode 100644 index 0000000..6bb94f2 Binary files /dev/null and b/target/classes/egovframework/com/mtdata/main/vo/SampleDefaultVO.class differ diff --git a/target/classes/egovframework/com/mtdata/main/vo/SampleVO.class b/target/classes/egovframework/com/mtdata/main/vo/SampleVO.class new file mode 100644 index 0000000..ad080d4 Binary files /dev/null and b/target/classes/egovframework/com/mtdata/main/vo/SampleVO.class differ diff --git a/target/classes/egovframework/com/mtdata/main/web/MainController.class b/target/classes/egovframework/com/mtdata/main/web/MainController.class new file mode 100644 index 0000000..ecdbf2c Binary files /dev/null and b/target/classes/egovframework/com/mtdata/main/web/MainController.class differ diff --git a/target/classes/egovframework/com/mtdata/schema/service/DatabaseSchemaViewer.class b/target/classes/egovframework/com/mtdata/schema/service/DatabaseSchemaViewer.class new file mode 100644 index 0000000..395809d Binary files /dev/null and b/target/classes/egovframework/com/mtdata/schema/service/DatabaseSchemaViewer.class differ diff --git a/target/classes/egovframework/com/mtdata/schema/service/impl/DatabaseSchemaViewerService.class b/target/classes/egovframework/com/mtdata/schema/service/impl/DatabaseSchemaViewerService.class new file mode 100644 index 0000000..c6dc1e4 Binary files /dev/null and b/target/classes/egovframework/com/mtdata/schema/service/impl/DatabaseSchemaViewerService.class differ diff --git a/target/classes/egovframework/com/mtdata/schema/service/impl/MySQLSchemaViewerImpl.class b/target/classes/egovframework/com/mtdata/schema/service/impl/MySQLSchemaViewerImpl.class new file mode 100644 index 0000000..b484ffa Binary files /dev/null and b/target/classes/egovframework/com/mtdata/schema/service/impl/MySQLSchemaViewerImpl.class differ diff --git a/target/classes/egovframework/com/mtdata/schema/service/impl/PostgreSQLSchemaViewerImpl.class b/target/classes/egovframework/com/mtdata/schema/service/impl/PostgreSQLSchemaViewerImpl.class new file mode 100644 index 0000000..297d0db Binary files /dev/null and b/target/classes/egovframework/com/mtdata/schema/service/impl/PostgreSQLSchemaViewerImpl.class differ diff --git a/target/classes/egovframework/message/message-common.properties b/target/classes/egovframework/message/message-common.properties new file mode 100644 index 0000000..518ba4b --- /dev/null +++ b/target/classes/egovframework/message/message-common.properties @@ -0,0 +1,45 @@ +#UI resource# +list.sample=List Sample +button.search=\uac80\uc0c9 +button.list=\ubaa9\ub85d +button.modify=\uc218\uc815 +button.create=\ub4f1\ub85d +button.reset=\uc7ac\uc124\uc815 +button.delete=\uc0ad\uc81c +search.choose=\uac80\uc0c9\uc5b4 \uc120\ud0dd +search.keyword=\uac80\uc0c9\uc5b4 \uc785\ub825 +search.name=\uc774\ub984 +search.id=ID +title.sample.id=\uce74\ud14c\uace0\ub9acID +title.sample.name=\uce74\ud14c\uace0\ub9ac\uba85 +title.sample.useYn=\uc0ac\uc6a9\uc5ec\ubd80 +title.sample.description=\uc124\uba85 +title.sample.regUser=\ub4f1\ub85d\uc790 +title.sample=\uae30\ubcf8 \uac8c\uc2dc\ud310 \ubaa9\ub85d + +# image name # +image.search=btn_form_search.gif +image.errorBg=error + +# -- validator errors -- # +fail.common.msg=\uc5d0\ub7ec\uac00 \ubc1c\uc0dd\ud588\uc2b5\ub2c8\ub2e4! +fail.common.sql=sql \uc5d0\ub7ec\uac00 \ubc1c\uc0dd\ud588\uc2b5\ub2c8\ub2e4! error code: {0}, error msg: {1} +info.nodata.msg=\ud574\ub2f9 \ub370\uc774\ud130\uac00 \uc5c6\uc2b5\ub2c8\ub2e4. +errors.prefix=
+errors.suffix=

+errors.required={0} \uc740 \ud544\uc218 \uc785\ub825\uac12\uc785\ub2c8\ub2e4. +errors.minlength={0} \uc740 {1}\uc790 \uc774\uc0c1 \uc785\ub825\ud574\uc57c \ud569\ub2c8\ub2e4. +errors.maxlength={0} \uc740 {1}\uc790 \uc774\uc0c1 \uc785\ub825\ud560\uc218 \uc5c6\uc2b5\ub2c8\ub2e4. +errors.invalid={0} \uc740 \uc720\ud6a8\ud558\uc9c0 \uc54a\uc740 \uac12\uc785\ub2c8\ub2e4. +errors.byte={0} \uc740 byte \ud0c0\uc785\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4. +errors.short={0} \uc740 short \ud0c0\uc785\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4. +errors.integer={0} \uc740 integer \ud0c0\uc785\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4. +errors.long={0} \uc740 long \ud0c0\uc785\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4. +errors.float={0} \uc740 float \ud0c0\uc785\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4. +errors.double={0} \uc740 double \ud0c0\uc785\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4. +errors.date={0} \uc740 \ub0a0\uc9dc \uc720\ud615\uc774 \uc544\ub2d9\ub2c8\ub2e4. +errors.range={0} \uc740 {1} \uacfc {2} \uc0ac\uc774\uc758 \uac12\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4. +errors.creditcard={0} \uc740 \uc720\ud6a8\ud558\uc9c0 \uc54a\uc740 \uc2e0\uc6a9\uce74\ub4dc \ubc88\ud638\uc785\ub2c8\ub2e4. +errors.email={0} \uc740 \uc720\ud6a8\ud558\uc9c0 \uc54a\uc740 \uc774\uba54\uc77c \uc8fc\uc18c\uc785\ub2c8\ub2e4. +errors.ihidnum=\uc720\ud6a8\ud558\uc9c0 \uc54a\uc740 \uc8fc\ubbfc\ub4f1\ub85d\ubc88\ud638\uc785\ub2c8\ub2e4. +errors.korean={0}\uc740 \ud55c\uae00\uc744 \uc785\ub825\ud558\uc154\uc57c \ud569\ub2c8\ub2e4. \ No newline at end of file diff --git a/target/classes/egovframework/message/message-common_en.properties b/target/classes/egovframework/message/message-common_en.properties new file mode 100644 index 0000000..1d45910 --- /dev/null +++ b/target/classes/egovframework/message/message-common_en.properties @@ -0,0 +1,46 @@ +#UI resource# +list.sample=List Sample +button.search=Search +button.list=List +button.modify=Modify +button.create=Create +button.reset=Reset +button.delete=Delete +button.create=create +search.choose=Select Choose +search.keyword=Search +search.name=name +search.id=ID +title.sample.id=Category ID +title.sample.name=Category Name +title.sample.useYn=useYn +title.sample.description=Description +title.sample.regUser=User Name +title.sample=Default BBS List + +# image name # +image.search=btn_form_search_en.gif +image.errorBg=error_en + +# -- validator errors -- # +fail.common.msg=error ocurred! +fail.common.sql=sql error ocurred! error code: {0}, error msg: {1} +info.nodata.msg=no data found. +errors.prefix=
+errors.suffix=

+errors.required={0} is required. +errors.minlength={0} can not be less than {1} characters. +errors.maxlength={0} can not be greater than {1} characters. +errors.invalid={0} is invalid. +errors.byte={0} must be a byte. +errors.short={0} must be a short. +errors.integer={0} must be an integer. +errors.long={0} must be a long. +errors.float={0} must be a float. +errors.double={0} must be a double. +errors.date={0} is not a date. +errors.range={0} is not in the range {1} through {2}. +errors.creditcard={0} is an invalid credit card number. +errors.email={0} is an invalid e-mail address. +errors.ihidnum=An invalid Social Security Number. +errors.korean={0} must be a Korean. \ No newline at end of file diff --git a/target/classes/egovframework/message/message-common_ko.properties b/target/classes/egovframework/message/message-common_ko.properties new file mode 100644 index 0000000..518ba4b --- /dev/null +++ b/target/classes/egovframework/message/message-common_ko.properties @@ -0,0 +1,45 @@ +#UI resource# +list.sample=List Sample +button.search=\uac80\uc0c9 +button.list=\ubaa9\ub85d +button.modify=\uc218\uc815 +button.create=\ub4f1\ub85d +button.reset=\uc7ac\uc124\uc815 +button.delete=\uc0ad\uc81c +search.choose=\uac80\uc0c9\uc5b4 \uc120\ud0dd +search.keyword=\uac80\uc0c9\uc5b4 \uc785\ub825 +search.name=\uc774\ub984 +search.id=ID +title.sample.id=\uce74\ud14c\uace0\ub9acID +title.sample.name=\uce74\ud14c\uace0\ub9ac\uba85 +title.sample.useYn=\uc0ac\uc6a9\uc5ec\ubd80 +title.sample.description=\uc124\uba85 +title.sample.regUser=\ub4f1\ub85d\uc790 +title.sample=\uae30\ubcf8 \uac8c\uc2dc\ud310 \ubaa9\ub85d + +# image name # +image.search=btn_form_search.gif +image.errorBg=error + +# -- validator errors -- # +fail.common.msg=\uc5d0\ub7ec\uac00 \ubc1c\uc0dd\ud588\uc2b5\ub2c8\ub2e4! +fail.common.sql=sql \uc5d0\ub7ec\uac00 \ubc1c\uc0dd\ud588\uc2b5\ub2c8\ub2e4! error code: {0}, error msg: {1} +info.nodata.msg=\ud574\ub2f9 \ub370\uc774\ud130\uac00 \uc5c6\uc2b5\ub2c8\ub2e4. +errors.prefix=
+errors.suffix=

+errors.required={0} \uc740 \ud544\uc218 \uc785\ub825\uac12\uc785\ub2c8\ub2e4. +errors.minlength={0} \uc740 {1}\uc790 \uc774\uc0c1 \uc785\ub825\ud574\uc57c \ud569\ub2c8\ub2e4. +errors.maxlength={0} \uc740 {1}\uc790 \uc774\uc0c1 \uc785\ub825\ud560\uc218 \uc5c6\uc2b5\ub2c8\ub2e4. +errors.invalid={0} \uc740 \uc720\ud6a8\ud558\uc9c0 \uc54a\uc740 \uac12\uc785\ub2c8\ub2e4. +errors.byte={0} \uc740 byte \ud0c0\uc785\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4. +errors.short={0} \uc740 short \ud0c0\uc785\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4. +errors.integer={0} \uc740 integer \ud0c0\uc785\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4. +errors.long={0} \uc740 long \ud0c0\uc785\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4. +errors.float={0} \uc740 float \ud0c0\uc785\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4. +errors.double={0} \uc740 double \ud0c0\uc785\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4. +errors.date={0} \uc740 \ub0a0\uc9dc \uc720\ud615\uc774 \uc544\ub2d9\ub2c8\ub2e4. +errors.range={0} \uc740 {1} \uacfc {2} \uc0ac\uc774\uc758 \uac12\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4. +errors.creditcard={0} \uc740 \uc720\ud6a8\ud558\uc9c0 \uc54a\uc740 \uc2e0\uc6a9\uce74\ub4dc \ubc88\ud638\uc785\ub2c8\ub2e4. +errors.email={0} \uc740 \uc720\ud6a8\ud558\uc9c0 \uc54a\uc740 \uc774\uba54\uc77c \uc8fc\uc18c\uc785\ub2c8\ub2e4. +errors.ihidnum=\uc720\ud6a8\ud558\uc9c0 \uc54a\uc740 \uc8fc\ubbfc\ub4f1\ub85d\ubc88\ud638\uc785\ub2c8\ub2e4. +errors.korean={0}\uc740 \ud55c\uae00\uc744 \uc785\ub825\ud558\uc154\uc57c \ud569\ub2c8\ub2e4. \ No newline at end of file diff --git a/target/classes/egovframework/spring/context-aspect.xml b/target/classes/egovframework/spring/context-aspect.xml new file mode 100644 index 0000000..1c2eac1 --- /dev/null +++ b/target/classes/egovframework/spring/context-aspect.xml @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + **service.impl.* + + + + + + + + + + + + + + + + **service.impl.* + + + + + + + + + + + + + \ No newline at end of file diff --git a/target/classes/egovframework/spring/context-common.xml b/target/classes/egovframework/spring/context-common.xml new file mode 100644 index 0000000..dcadd9c --- /dev/null +++ b/target/classes/egovframework/spring/context-common.xml @@ -0,0 +1,54 @@ + + + + + + + + + + + + + + classpath:/egovframework/message/message-common + classpath:/org/egovframe/rte/fdl/idgnr/messages/idgnr + classpath:/org/egovframe/rte/fdl/property/messages/properties + + + + 60 + + + + + + + + + + + + + + + + + + * + + + + + + + + + + + + + diff --git a/target/classes/egovframework/spring/context-datasource.xml b/target/classes/egovframework/spring/context-datasource.xml new file mode 100644 index 0000000..c7efdb9 --- /dev/null +++ b/target/classes/egovframework/spring/context-datasource.xml @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/target/classes/egovframework/spring/context-idgen.xml b/target/classes/egovframework/spring/context-idgen.xml new file mode 100644 index 0000000..0ae1975 --- /dev/null +++ b/target/classes/egovframework/spring/context-idgen.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + diff --git a/target/classes/egovframework/spring/context-mapper.xml b/target/classes/egovframework/spring/context-mapper.xml new file mode 100644 index 0000000..fafc47d --- /dev/null +++ b/target/classes/egovframework/spring/context-mapper.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/target/classes/egovframework/spring/context-properties.xml b/target/classes/egovframework/spring/context-properties.xml new file mode 100644 index 0000000..dc75900 --- /dev/null +++ b/target/classes/egovframework/spring/context-properties.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + diff --git a/target/classes/egovframework/spring/context-transaction.xml b/target/classes/egovframework/spring/context-transaction.xml new file mode 100644 index 0000000..40698bb --- /dev/null +++ b/target/classes/egovframework/spring/context-transaction.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + diff --git a/target/classes/egovframework/spring/context-validator.xml b/target/classes/egovframework/spring/context-validator.xml new file mode 100644 index 0000000..03ebe32 --- /dev/null +++ b/target/classes/egovframework/spring/context-validator.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + /WEB-INF/config/egovframework/validator/validator-rules.xml + /WEB-INF/config/egovframework/validator/validator.xml + + + + + diff --git a/target/classes/egovframework/sqlmap/mtdata/mappers/cmmnty/Cmmnty_SQL.xml b/target/classes/egovframework/sqlmap/mtdata/mappers/cmmnty/Cmmnty_SQL.xml new file mode 100644 index 0000000..8d00b84 --- /dev/null +++ b/target/classes/egovframework/sqlmap/mtdata/mappers/cmmnty/Cmmnty_SQL.xml @@ -0,0 +1,102 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + UPDATE COMTNCMMNTY + SET NAME=#{name} + , DESCRIPTION=#{description} + , USE_YN=#{useYn} + WHERE ID=#{id} + + + + + + DELETE FROM SAMPLE + WHERE ID=#{id} + + + + + \ No newline at end of file diff --git a/target/classes/egovframework/sqlmap/mtdata/mappers/database/DatabaseConnect_SQL.xml b/target/classes/egovframework/sqlmap/mtdata/mappers/database/DatabaseConnect_SQL.xml new file mode 100644 index 0000000..4e343e9 --- /dev/null +++ b/target/classes/egovframework/sqlmap/mtdata/mappers/database/DatabaseConnect_SQL.xml @@ -0,0 +1,374 @@ + + + + + + + + + + + + + + + + + + + INSERT INTO INST_DB_INFO + (DB_CONN_ID, + DB_NM) + VALUES + (#{dbConnId}, + #{dbNm}) + + + + INSERT INTO INST_DB_CONN_INFO + (SYS_ID, + DB_TYPE, + DB_CONN_USER, + DB_CONN_PW, + DB_CONN_PORT, + DB_CONN_IP, + REGISTER_ID) + VALUES + (#{sysId}, + #{dbType}, + #{dbConnUser}, + #{dbConnPw}, + #{dbConnPort}, + #{dbConnIp}, + #{registerId}) + + SELECT LAST_INSERT_ID() + + + + + + + + + + + + + SELECT + sys_id, + use_yn, + db_type, + db_conn_user, + db_conn_pw, + db_conn_port, + db_conn_ip, + register_id, + regist_date + FROM inst_db_conn_info + WHERE 1=1 + + + + + + + + INSERT INTO inst_db_conn_info ( + sys_id, + db_type, + db_conn_user, + db_conn_pw, + db_conn_port, + db_conn_ip, + register_id + ) VALUES ( + #{sysId}, + #{dbType}, + #{dbConnUser}, + #{dbConnPw}, + #{dbConnPort}, + #{dbConnIp}, + #{registerId} + ) + + + + UPDATE INST_DB_CONN_INFO + SET register_id = #{registerId} + + , USE_YN = #{useYn} + + + , DB_TYPE = #{dbType} + + + , DB_CONN_USER = #{dbConnUser} + + + , DB_CONN_PW = #{dbConnPw} + + + , DB_CONN_IP = #{dbConnIp} + + WHERE DB_CONN_ID = #{dbConnId} + + + + SELECT + db_conn_id, + db_link_id, + db_nm, + db_cmment, + regist_date, + use_yn + FROM inst_db_info + WHERE 1=1 + + + + + + + + INSERT INTO inst_db_info ( + db_conn_id, + db_nm, + db_cmment, + ) VALUES ( + #{dbConnId}, + #{dbNm}, + #{dbCmment} + ) + + + + UPDATE INST_DB_CONN_INFO + + + db_nm = #{dbNm}, + + + db_cmment = #{dbComment}, + + + use_yn = #{useYn}, + + + WHERE db_link_id = #{dbLinkId} + + + + + SELECT + table_id + db_link_id, + table_nm, + table_dc, + regist_date, + engine + FROM inst_db_tbl_info + WHERE 1=1 + + + + + + + + INSERT INTO inst_db_tbl_info ( + db_link_id, + table_nm, + table_dc, + engine + ) VALUES ( + #{dbLinkId}, + #{tableNm}, + #{tableDc}, + #{engine} + ) + + + + UPDATE inst_db_tbl_info + + + table_nm = #{tableNm}, + + + table_dc = #{tableDc}, + + + use_yn = #{useYn}, + + + WHERE table_id = #{tableId} + + + + SELECT + column_id, + table_id, + column_nm, + column_type, + is_nullable, + is_pkey, + is_fkey, + column_dc, + default_value + FROM inst_tbl_col_info + WHERE 1=1 + + + + + + + + INSERT INTO inst_tbl_col_info ( + table_id, + column_nm, + column_type, + is_nullable, + is_pkey, + is_fkey, + column_dc, + default_value + ) VALUES ( + #{tableId}, + #{columnNm}, + #{columnType}, + #{isNullable}, + #{isPkey}, + #{isFkey}, + #{columnDc}, + #{defaultValue} + ) + + + + UPDATE inst_tbl_col_info + + + column_nm = #{columnNm}, + + + column_type = #{columnType}, + + + is_nullable = #{isNullable}, + + + is_pkey = #{isPkey}, + + + is_fkey = #{isFkey}, + + + column_dc = #{columnDc}, + + + default_value = #{defaultValue}, + + + WHERE table_id = #{tableId} + AND column_id = #{columnId} + + + \ No newline at end of file diff --git a/target/classes/egovframework/sqlmap/mtdata/sql-mapper-config.xml b/target/classes/egovframework/sqlmap/mtdata/sql-mapper-config.xml new file mode 100644 index 0000000..18a992d --- /dev/null +++ b/target/classes/egovframework/sqlmap/mtdata/sql-mapper-config.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/target/classes/log4j2.xml b/target/classes/log4j2.xml new file mode 100644 index 0000000..fb66b10 --- /dev/null +++ b/target/classes/log4j2.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/target/isd_demo-1.0.0.war b/target/isd_demo-1.0.0.war new file mode 100644 index 0000000..a99ca60 Binary files /dev/null and b/target/isd_demo-1.0.0.war differ diff --git a/target/isd_demo-1.0.0/META-INF/MANIFEST.MF b/target/isd_demo-1.0.0/META-INF/MANIFEST.MF new file mode 100644 index 0000000..2abe44f --- /dev/null +++ b/target/isd_demo-1.0.0/META-INF/MANIFEST.MF @@ -0,0 +1,5 @@ +Manifest-Version: 1.0 +Created-By: IntelliJ IDEA +Built-By: USER +Build-Jdk: Oracle OpenJDK version 21.0.1 + diff --git a/target/isd_demo-1.0.0/WEB-INF/classes/config/chameleon-setting.yaml b/target/isd_demo-1.0.0/WEB-INF/classes/config/chameleon-setting.yaml new file mode 100644 index 0000000..979ac1e --- /dev/null +++ b/target/isd_demo-1.0.0/WEB-INF/classes/config/chameleon-setting.yaml @@ -0,0 +1,20 @@ +--- + +pid_dir: '~/.pg_chameleon/pid/' +log_dir: '~/.pg_chameleon/logs/' +log_dest: file +log_level: info +log_days_keep: 10 +rollbar_key: '' +rollbar_env: '' + +pg_conn: + host: "211.199.70.9" + port: "5433" + user: "migration_user" + password: "dpc12!@" + database: "db_replica" + charset: "utf8" + +sources: + \ No newline at end of file diff --git a/target/isd_demo-1.0.0/WEB-INF/classes/db/sampledb.sql b/target/isd_demo-1.0.0/WEB-INF/classes/db/sampledb.sql new file mode 100644 index 0000000..9fb20b6 --- /dev/null +++ b/target/isd_demo-1.0.0/WEB-INF/classes/db/sampledb.sql @@ -0,0 +1,118 @@ +CREATE MEMORY TABLE SAMPLE(ID VARCHAR(16) NOT NULL PRIMARY KEY,NAME VARCHAR(50),DESCRIPTION VARCHAR(100),USE_YN CHAR(1),REG_USER VARCHAR(10)) +CREATE MEMORY TABLE IDS(TABLE_NAME VARCHAR(16) NOT NULL PRIMARY KEY,NEXT_ID DECIMAL(30) NOT NULL) +SET SCHEMA PUBLIC +INSERT INTO SAMPLE VALUES('SAMPLE-00001','Runtime Environment','Foundation Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00002','Runtime Environment','Persistence Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00003','Runtime Environment','Presentation Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00004','Runtime Environment','Business Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00005','Runtime Environment','Batch Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00006','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00007','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00008','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00009','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00010','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00011','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00012','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00013','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00014','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00015','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00016','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00017','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00018','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00019','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00020','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00021','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00022','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00023','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00024','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00025','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00026','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00027','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00028','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00029','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00030','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00031','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00032','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00033','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00034','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00035','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00036','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00037','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00038','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00039','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00040','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00041','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00042','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00043','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00044','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00045','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00046','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00047','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00048','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00049','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00050','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00051','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00052','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00053','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00054','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00055','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00056','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00057','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00058','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00059','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00060','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00061','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00062','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00063','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00064','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00065','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00066','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00067','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00068','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00069','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00070','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00071','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00072','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00073','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00074','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00075','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00076','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00077','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00078','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00079','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00080','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00081','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00082','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00083','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00084','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00085','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00086','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00087','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00088','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00089','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00090','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00091','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00092','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00093','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00094','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00095','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00096','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00097','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00098','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00099','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00100','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00101','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00102','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00103','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00104','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00105','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00106','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00107','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00108','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00109','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00110','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00111','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00112','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00113','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO SAMPLE VALUES('SAMPLE-00114','Runtime Environment','Integration Layer','Y','eGov') +INSERT INTO IDS VALUES('SAMPLE',115) diff --git a/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/cmmn/EgovSampleExcepHndlr.class b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/cmmn/EgovSampleExcepHndlr.class new file mode 100644 index 0000000..2225274 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/cmmn/EgovSampleExcepHndlr.class differ diff --git a/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/cmmn/EgovSampleOthersExcepHndlr.class b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/cmmn/EgovSampleOthersExcepHndlr.class new file mode 100644 index 0000000..7aa41b2 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/cmmn/EgovSampleOthersExcepHndlr.class differ diff --git a/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/cmmn/vo/BasicVO.class b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/cmmn/vo/BasicVO.class new file mode 100644 index 0000000..0436882 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/cmmn/vo/BasicVO.class differ diff --git a/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/cmmn/web/EgovBindingInitializer.class b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/cmmn/web/EgovBindingInitializer.class new file mode 100644 index 0000000..f4b340c Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/cmmn/web/EgovBindingInitializer.class differ diff --git a/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/cmmn/web/EgovImgPaginationRenderer.class b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/cmmn/web/EgovImgPaginationRenderer.class new file mode 100644 index 0000000..384069f Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/cmmn/web/EgovImgPaginationRenderer.class differ diff --git a/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/cmmnty/mapper/CmmntyMapper.class b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/cmmnty/mapper/CmmntyMapper.class new file mode 100644 index 0000000..b3b3834 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/cmmnty/mapper/CmmntyMapper.class differ diff --git a/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/cmmnty/service/CmmntyService.class b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/cmmnty/service/CmmntyService.class new file mode 100644 index 0000000..2d63556 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/cmmnty/service/CmmntyService.class differ diff --git a/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/cmmnty/service/impl/CmmntyServiceImpl.class b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/cmmnty/service/impl/CmmntyServiceImpl.class new file mode 100644 index 0000000..1923762 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/cmmnty/service/impl/CmmntyServiceImpl.class differ diff --git a/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/cmmnty/vo/CmmntyVO.class b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/cmmnty/vo/CmmntyVO.class new file mode 100644 index 0000000..230f477 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/cmmnty/vo/CmmntyVO.class differ diff --git a/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/cmmnty/web/CmmntyController.class b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/cmmnty/web/CmmntyController.class new file mode 100644 index 0000000..020070a Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/cmmnty/web/CmmntyController.class differ diff --git a/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/config/dbConn/mySql/CreateYaml.class b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/config/dbConn/mySql/CreateYaml.class new file mode 100644 index 0000000..2478040 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/config/dbConn/mySql/CreateYaml.class differ diff --git a/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/database/mapper/DatabaseMapper.class b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/database/mapper/DatabaseMapper.class new file mode 100644 index 0000000..7f442dd Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/database/mapper/DatabaseMapper.class differ diff --git a/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/database/service/DatabaseService.class b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/database/service/DatabaseService.class new file mode 100644 index 0000000..35dd0c8 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/database/service/DatabaseService.class differ diff --git a/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/database/service/impl/DatabaseServiceImpl.class b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/database/service/impl/DatabaseServiceImpl.class new file mode 100644 index 0000000..0e386ce Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/database/service/impl/DatabaseServiceImpl.class differ diff --git a/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/database/vo/DBConnInfoVO.class b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/database/vo/DBConnInfoVO.class new file mode 100644 index 0000000..9ac144c Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/database/vo/DBConnInfoVO.class differ diff --git a/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/database/vo/DBInfoVO.class b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/database/vo/DBInfoVO.class new file mode 100644 index 0000000..bdee7e3 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/database/vo/DBInfoVO.class differ diff --git a/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/database/vo/DBTblColInfoVO.class b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/database/vo/DBTblColInfoVO.class new file mode 100644 index 0000000..9c02931 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/database/vo/DBTblColInfoVO.class differ diff --git a/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/database/vo/DBTblInfoVO.class b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/database/vo/DBTblInfoVO.class new file mode 100644 index 0000000..6f71941 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/database/vo/DBTblInfoVO.class differ diff --git a/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/database/vo/DatabaseInfoVO.class b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/database/vo/DatabaseInfoVO.class new file mode 100644 index 0000000..4fad1fe Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/database/vo/DatabaseInfoVO.class differ diff --git a/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/database/web/DatabaseConnController.class b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/database/web/DatabaseConnController.class new file mode 100644 index 0000000..9a9471d Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/database/web/DatabaseConnController.class differ diff --git a/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/institution/mapper/InstitutionMapper.class b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/institution/mapper/InstitutionMapper.class new file mode 100644 index 0000000..9cd7b62 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/institution/mapper/InstitutionMapper.class differ diff --git a/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/institution/service/InstitutionService.class b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/institution/service/InstitutionService.class new file mode 100644 index 0000000..adf654b Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/institution/service/InstitutionService.class differ diff --git a/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/institution/service/impl/InstitutionServiceImpl.class b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/institution/service/impl/InstitutionServiceImpl.class new file mode 100644 index 0000000..63eb2c5 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/institution/service/impl/InstitutionServiceImpl.class differ diff --git a/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/institution/vo/InstitutionVO.class b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/institution/vo/InstitutionVO.class new file mode 100644 index 0000000..c8f2254 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/institution/vo/InstitutionVO.class differ diff --git a/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/institution/web/InstitutionController.class b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/institution/web/InstitutionController.class new file mode 100644 index 0000000..31f9e5a Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/institution/web/InstitutionController.class differ diff --git a/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/main/mapper/MainDAO.class b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/main/mapper/MainDAO.class new file mode 100644 index 0000000..cdd6368 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/main/mapper/MainDAO.class differ diff --git a/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/main/service/MainService.class b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/main/service/MainService.class new file mode 100644 index 0000000..66320fc Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/main/service/MainService.class differ diff --git a/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/main/vo/SampleDefaultVO.class b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/main/vo/SampleDefaultVO.class new file mode 100644 index 0000000..6bb94f2 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/main/vo/SampleDefaultVO.class differ diff --git a/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/main/vo/SampleVO.class b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/main/vo/SampleVO.class new file mode 100644 index 0000000..ad080d4 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/main/vo/SampleVO.class differ diff --git a/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/main/web/MainController.class b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/main/web/MainController.class new file mode 100644 index 0000000..ecdbf2c Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/main/web/MainController.class differ diff --git a/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/schema/service/DatabaseSchemaViewer.class b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/schema/service/DatabaseSchemaViewer.class new file mode 100644 index 0000000..395809d Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/schema/service/DatabaseSchemaViewer.class differ diff --git a/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/schema/service/impl/DatabaseSchemaViewerService.class b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/schema/service/impl/DatabaseSchemaViewerService.class new file mode 100644 index 0000000..c6dc1e4 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/schema/service/impl/DatabaseSchemaViewerService.class differ diff --git a/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/schema/service/impl/MySQLSchemaViewerImpl.class b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/schema/service/impl/MySQLSchemaViewerImpl.class new file mode 100644 index 0000000..b484ffa Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/schema/service/impl/MySQLSchemaViewerImpl.class differ diff --git a/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/schema/service/impl/PostgreSQLSchemaViewerImpl.class b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/schema/service/impl/PostgreSQLSchemaViewerImpl.class new file mode 100644 index 0000000..297d0db Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/com/mtdata/schema/service/impl/PostgreSQLSchemaViewerImpl.class differ diff --git a/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/message/message-common.properties b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/message/message-common.properties new file mode 100644 index 0000000..518ba4b --- /dev/null +++ b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/message/message-common.properties @@ -0,0 +1,45 @@ +#UI resource# +list.sample=List Sample +button.search=\uac80\uc0c9 +button.list=\ubaa9\ub85d +button.modify=\uc218\uc815 +button.create=\ub4f1\ub85d +button.reset=\uc7ac\uc124\uc815 +button.delete=\uc0ad\uc81c +search.choose=\uac80\uc0c9\uc5b4 \uc120\ud0dd +search.keyword=\uac80\uc0c9\uc5b4 \uc785\ub825 +search.name=\uc774\ub984 +search.id=ID +title.sample.id=\uce74\ud14c\uace0\ub9acID +title.sample.name=\uce74\ud14c\uace0\ub9ac\uba85 +title.sample.useYn=\uc0ac\uc6a9\uc5ec\ubd80 +title.sample.description=\uc124\uba85 +title.sample.regUser=\ub4f1\ub85d\uc790 +title.sample=\uae30\ubcf8 \uac8c\uc2dc\ud310 \ubaa9\ub85d + +# image name # +image.search=btn_form_search.gif +image.errorBg=error + +# -- validator errors -- # +fail.common.msg=\uc5d0\ub7ec\uac00 \ubc1c\uc0dd\ud588\uc2b5\ub2c8\ub2e4! +fail.common.sql=sql \uc5d0\ub7ec\uac00 \ubc1c\uc0dd\ud588\uc2b5\ub2c8\ub2e4! error code: {0}, error msg: {1} +info.nodata.msg=\ud574\ub2f9 \ub370\uc774\ud130\uac00 \uc5c6\uc2b5\ub2c8\ub2e4. +errors.prefix=
+errors.suffix=

+errors.required={0} \uc740 \ud544\uc218 \uc785\ub825\uac12\uc785\ub2c8\ub2e4. +errors.minlength={0} \uc740 {1}\uc790 \uc774\uc0c1 \uc785\ub825\ud574\uc57c \ud569\ub2c8\ub2e4. +errors.maxlength={0} \uc740 {1}\uc790 \uc774\uc0c1 \uc785\ub825\ud560\uc218 \uc5c6\uc2b5\ub2c8\ub2e4. +errors.invalid={0} \uc740 \uc720\ud6a8\ud558\uc9c0 \uc54a\uc740 \uac12\uc785\ub2c8\ub2e4. +errors.byte={0} \uc740 byte \ud0c0\uc785\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4. +errors.short={0} \uc740 short \ud0c0\uc785\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4. +errors.integer={0} \uc740 integer \ud0c0\uc785\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4. +errors.long={0} \uc740 long \ud0c0\uc785\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4. +errors.float={0} \uc740 float \ud0c0\uc785\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4. +errors.double={0} \uc740 double \ud0c0\uc785\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4. +errors.date={0} \uc740 \ub0a0\uc9dc \uc720\ud615\uc774 \uc544\ub2d9\ub2c8\ub2e4. +errors.range={0} \uc740 {1} \uacfc {2} \uc0ac\uc774\uc758 \uac12\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4. +errors.creditcard={0} \uc740 \uc720\ud6a8\ud558\uc9c0 \uc54a\uc740 \uc2e0\uc6a9\uce74\ub4dc \ubc88\ud638\uc785\ub2c8\ub2e4. +errors.email={0} \uc740 \uc720\ud6a8\ud558\uc9c0 \uc54a\uc740 \uc774\uba54\uc77c \uc8fc\uc18c\uc785\ub2c8\ub2e4. +errors.ihidnum=\uc720\ud6a8\ud558\uc9c0 \uc54a\uc740 \uc8fc\ubbfc\ub4f1\ub85d\ubc88\ud638\uc785\ub2c8\ub2e4. +errors.korean={0}\uc740 \ud55c\uae00\uc744 \uc785\ub825\ud558\uc154\uc57c \ud569\ub2c8\ub2e4. \ No newline at end of file diff --git a/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/message/message-common_en.properties b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/message/message-common_en.properties new file mode 100644 index 0000000..1d45910 --- /dev/null +++ b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/message/message-common_en.properties @@ -0,0 +1,46 @@ +#UI resource# +list.sample=List Sample +button.search=Search +button.list=List +button.modify=Modify +button.create=Create +button.reset=Reset +button.delete=Delete +button.create=create +search.choose=Select Choose +search.keyword=Search +search.name=name +search.id=ID +title.sample.id=Category ID +title.sample.name=Category Name +title.sample.useYn=useYn +title.sample.description=Description +title.sample.regUser=User Name +title.sample=Default BBS List + +# image name # +image.search=btn_form_search_en.gif +image.errorBg=error_en + +# -- validator errors -- # +fail.common.msg=error ocurred! +fail.common.sql=sql error ocurred! error code: {0}, error msg: {1} +info.nodata.msg=no data found. +errors.prefix=
+errors.suffix=

+errors.required={0} is required. +errors.minlength={0} can not be less than {1} characters. +errors.maxlength={0} can not be greater than {1} characters. +errors.invalid={0} is invalid. +errors.byte={0} must be a byte. +errors.short={0} must be a short. +errors.integer={0} must be an integer. +errors.long={0} must be a long. +errors.float={0} must be a float. +errors.double={0} must be a double. +errors.date={0} is not a date. +errors.range={0} is not in the range {1} through {2}. +errors.creditcard={0} is an invalid credit card number. +errors.email={0} is an invalid e-mail address. +errors.ihidnum=An invalid Social Security Number. +errors.korean={0} must be a Korean. \ No newline at end of file diff --git a/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/message/message-common_ko.properties b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/message/message-common_ko.properties new file mode 100644 index 0000000..518ba4b --- /dev/null +++ b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/message/message-common_ko.properties @@ -0,0 +1,45 @@ +#UI resource# +list.sample=List Sample +button.search=\uac80\uc0c9 +button.list=\ubaa9\ub85d +button.modify=\uc218\uc815 +button.create=\ub4f1\ub85d +button.reset=\uc7ac\uc124\uc815 +button.delete=\uc0ad\uc81c +search.choose=\uac80\uc0c9\uc5b4 \uc120\ud0dd +search.keyword=\uac80\uc0c9\uc5b4 \uc785\ub825 +search.name=\uc774\ub984 +search.id=ID +title.sample.id=\uce74\ud14c\uace0\ub9acID +title.sample.name=\uce74\ud14c\uace0\ub9ac\uba85 +title.sample.useYn=\uc0ac\uc6a9\uc5ec\ubd80 +title.sample.description=\uc124\uba85 +title.sample.regUser=\ub4f1\ub85d\uc790 +title.sample=\uae30\ubcf8 \uac8c\uc2dc\ud310 \ubaa9\ub85d + +# image name # +image.search=btn_form_search.gif +image.errorBg=error + +# -- validator errors -- # +fail.common.msg=\uc5d0\ub7ec\uac00 \ubc1c\uc0dd\ud588\uc2b5\ub2c8\ub2e4! +fail.common.sql=sql \uc5d0\ub7ec\uac00 \ubc1c\uc0dd\ud588\uc2b5\ub2c8\ub2e4! error code: {0}, error msg: {1} +info.nodata.msg=\ud574\ub2f9 \ub370\uc774\ud130\uac00 \uc5c6\uc2b5\ub2c8\ub2e4. +errors.prefix=
+errors.suffix=

+errors.required={0} \uc740 \ud544\uc218 \uc785\ub825\uac12\uc785\ub2c8\ub2e4. +errors.minlength={0} \uc740 {1}\uc790 \uc774\uc0c1 \uc785\ub825\ud574\uc57c \ud569\ub2c8\ub2e4. +errors.maxlength={0} \uc740 {1}\uc790 \uc774\uc0c1 \uc785\ub825\ud560\uc218 \uc5c6\uc2b5\ub2c8\ub2e4. +errors.invalid={0} \uc740 \uc720\ud6a8\ud558\uc9c0 \uc54a\uc740 \uac12\uc785\ub2c8\ub2e4. +errors.byte={0} \uc740 byte \ud0c0\uc785\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4. +errors.short={0} \uc740 short \ud0c0\uc785\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4. +errors.integer={0} \uc740 integer \ud0c0\uc785\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4. +errors.long={0} \uc740 long \ud0c0\uc785\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4. +errors.float={0} \uc740 float \ud0c0\uc785\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4. +errors.double={0} \uc740 double \ud0c0\uc785\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4. +errors.date={0} \uc740 \ub0a0\uc9dc \uc720\ud615\uc774 \uc544\ub2d9\ub2c8\ub2e4. +errors.range={0} \uc740 {1} \uacfc {2} \uc0ac\uc774\uc758 \uac12\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4. +errors.creditcard={0} \uc740 \uc720\ud6a8\ud558\uc9c0 \uc54a\uc740 \uc2e0\uc6a9\uce74\ub4dc \ubc88\ud638\uc785\ub2c8\ub2e4. +errors.email={0} \uc740 \uc720\ud6a8\ud558\uc9c0 \uc54a\uc740 \uc774\uba54\uc77c \uc8fc\uc18c\uc785\ub2c8\ub2e4. +errors.ihidnum=\uc720\ud6a8\ud558\uc9c0 \uc54a\uc740 \uc8fc\ubbfc\ub4f1\ub85d\ubc88\ud638\uc785\ub2c8\ub2e4. +errors.korean={0}\uc740 \ud55c\uae00\uc744 \uc785\ub825\ud558\uc154\uc57c \ud569\ub2c8\ub2e4. \ No newline at end of file diff --git a/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/spring/context-aspect.xml b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/spring/context-aspect.xml new file mode 100644 index 0000000..1c2eac1 --- /dev/null +++ b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/spring/context-aspect.xml @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + **service.impl.* + + + + + + + + + + + + + + + + **service.impl.* + + + + + + + + + + + + + \ No newline at end of file diff --git a/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/spring/context-common.xml b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/spring/context-common.xml new file mode 100644 index 0000000..dcadd9c --- /dev/null +++ b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/spring/context-common.xml @@ -0,0 +1,54 @@ + + + + + + + + + + + + + + classpath:/egovframework/message/message-common + classpath:/org/egovframe/rte/fdl/idgnr/messages/idgnr + classpath:/org/egovframe/rte/fdl/property/messages/properties + + + + 60 + + + + + + + + + + + + + + + + + + * + + + + + + + + + + + + + diff --git a/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/spring/context-datasource.xml b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/spring/context-datasource.xml new file mode 100644 index 0000000..c7efdb9 --- /dev/null +++ b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/spring/context-datasource.xml @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/spring/context-idgen.xml b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/spring/context-idgen.xml new file mode 100644 index 0000000..0ae1975 --- /dev/null +++ b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/spring/context-idgen.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + diff --git a/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/spring/context-mapper.xml b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/spring/context-mapper.xml new file mode 100644 index 0000000..fafc47d --- /dev/null +++ b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/spring/context-mapper.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/spring/context-properties.xml b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/spring/context-properties.xml new file mode 100644 index 0000000..dc75900 --- /dev/null +++ b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/spring/context-properties.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + diff --git a/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/spring/context-transaction.xml b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/spring/context-transaction.xml new file mode 100644 index 0000000..40698bb --- /dev/null +++ b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/spring/context-transaction.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + diff --git a/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/spring/context-validator.xml b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/spring/context-validator.xml new file mode 100644 index 0000000..03ebe32 --- /dev/null +++ b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/spring/context-validator.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + /WEB-INF/config/egovframework/validator/validator-rules.xml + /WEB-INF/config/egovframework/validator/validator.xml + + + + + diff --git a/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/sqlmap/mtdata/mappers/cmmnty/Cmmnty_SQL.xml b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/sqlmap/mtdata/mappers/cmmnty/Cmmnty_SQL.xml new file mode 100644 index 0000000..8d00b84 --- /dev/null +++ b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/sqlmap/mtdata/mappers/cmmnty/Cmmnty_SQL.xml @@ -0,0 +1,102 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + UPDATE COMTNCMMNTY + SET NAME=#{name} + , DESCRIPTION=#{description} + , USE_YN=#{useYn} + WHERE ID=#{id} + + + + + + DELETE FROM SAMPLE + WHERE ID=#{id} + + + + + \ No newline at end of file diff --git a/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/sqlmap/mtdata/mappers/database/DatabaseConnect_SQL.xml b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/sqlmap/mtdata/mappers/database/DatabaseConnect_SQL.xml new file mode 100644 index 0000000..4e343e9 --- /dev/null +++ b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/sqlmap/mtdata/mappers/database/DatabaseConnect_SQL.xml @@ -0,0 +1,374 @@ + + + + + + + + + + + + + + + + + + + INSERT INTO INST_DB_INFO + (DB_CONN_ID, + DB_NM) + VALUES + (#{dbConnId}, + #{dbNm}) + + + + INSERT INTO INST_DB_CONN_INFO + (SYS_ID, + DB_TYPE, + DB_CONN_USER, + DB_CONN_PW, + DB_CONN_PORT, + DB_CONN_IP, + REGISTER_ID) + VALUES + (#{sysId}, + #{dbType}, + #{dbConnUser}, + #{dbConnPw}, + #{dbConnPort}, + #{dbConnIp}, + #{registerId}) + + SELECT LAST_INSERT_ID() + + + + + + + + + + + + + SELECT + sys_id, + use_yn, + db_type, + db_conn_user, + db_conn_pw, + db_conn_port, + db_conn_ip, + register_id, + regist_date + FROM inst_db_conn_info + WHERE 1=1 + + + + + + + + INSERT INTO inst_db_conn_info ( + sys_id, + db_type, + db_conn_user, + db_conn_pw, + db_conn_port, + db_conn_ip, + register_id + ) VALUES ( + #{sysId}, + #{dbType}, + #{dbConnUser}, + #{dbConnPw}, + #{dbConnPort}, + #{dbConnIp}, + #{registerId} + ) + + + + UPDATE INST_DB_CONN_INFO + SET register_id = #{registerId} + + , USE_YN = #{useYn} + + + , DB_TYPE = #{dbType} + + + , DB_CONN_USER = #{dbConnUser} + + + , DB_CONN_PW = #{dbConnPw} + + + , DB_CONN_IP = #{dbConnIp} + + WHERE DB_CONN_ID = #{dbConnId} + + + + SELECT + db_conn_id, + db_link_id, + db_nm, + db_cmment, + regist_date, + use_yn + FROM inst_db_info + WHERE 1=1 + + + + + + + + INSERT INTO inst_db_info ( + db_conn_id, + db_nm, + db_cmment, + ) VALUES ( + #{dbConnId}, + #{dbNm}, + #{dbCmment} + ) + + + + UPDATE INST_DB_CONN_INFO + + + db_nm = #{dbNm}, + + + db_cmment = #{dbComment}, + + + use_yn = #{useYn}, + + + WHERE db_link_id = #{dbLinkId} + + + + + SELECT + table_id + db_link_id, + table_nm, + table_dc, + regist_date, + engine + FROM inst_db_tbl_info + WHERE 1=1 + + + + + + + + INSERT INTO inst_db_tbl_info ( + db_link_id, + table_nm, + table_dc, + engine + ) VALUES ( + #{dbLinkId}, + #{tableNm}, + #{tableDc}, + #{engine} + ) + + + + UPDATE inst_db_tbl_info + + + table_nm = #{tableNm}, + + + table_dc = #{tableDc}, + + + use_yn = #{useYn}, + + + WHERE table_id = #{tableId} + + + + SELECT + column_id, + table_id, + column_nm, + column_type, + is_nullable, + is_pkey, + is_fkey, + column_dc, + default_value + FROM inst_tbl_col_info + WHERE 1=1 + + + + + + + + INSERT INTO inst_tbl_col_info ( + table_id, + column_nm, + column_type, + is_nullable, + is_pkey, + is_fkey, + column_dc, + default_value + ) VALUES ( + #{tableId}, + #{columnNm}, + #{columnType}, + #{isNullable}, + #{isPkey}, + #{isFkey}, + #{columnDc}, + #{defaultValue} + ) + + + + UPDATE inst_tbl_col_info + + + column_nm = #{columnNm}, + + + column_type = #{columnType}, + + + is_nullable = #{isNullable}, + + + is_pkey = #{isPkey}, + + + is_fkey = #{isFkey}, + + + column_dc = #{columnDc}, + + + default_value = #{defaultValue}, + + + WHERE table_id = #{tableId} + AND column_id = #{columnId} + + + \ No newline at end of file diff --git a/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/sqlmap/mtdata/sql-mapper-config.xml b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/sqlmap/mtdata/sql-mapper-config.xml new file mode 100644 index 0000000..18a992d --- /dev/null +++ b/target/isd_demo-1.0.0/WEB-INF/classes/egovframework/sqlmap/mtdata/sql-mapper-config.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/target/isd_demo-1.0.0/WEB-INF/classes/log4j2.xml b/target/isd_demo-1.0.0/WEB-INF/classes/log4j2.xml new file mode 100644 index 0000000..fb66b10 --- /dev/null +++ b/target/isd_demo-1.0.0/WEB-INF/classes/log4j2.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/target/isd_demo-1.0.0/WEB-INF/config/egovframework/springmvc/dispatcher-servlet.xml b/target/isd_demo-1.0.0/WEB-INF/config/egovframework/springmvc/dispatcher-servlet.xml new file mode 100644 index 0000000..bd5a136 --- /dev/null +++ b/target/isd_demo-1.0.0/WEB-INF/config/egovframework/springmvc/dispatcher-servlet.xml @@ -0,0 +1,70 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/target/isd_demo-1.0.0/WEB-INF/config/egovframework/validator/validator-rules.xml b/target/isd_demo-1.0.0/WEB-INF/config/egovframework/validator/validator-rules.xml new file mode 100644 index 0000000..746d79e --- /dev/null +++ b/target/isd_demo-1.0.0/WEB-INF/config/egovframework/validator/validator-rules.xml @@ -0,0 +1,1222 @@ + + + + + + + + + + = 0) { + value = field.options[si].value; + } + } else if (field.type == 'radio' || field.type == 'checkbox') { + if (field.checked) { + value = field.value; + } + } else { + value = field.value; + } + if (trim(value).length == 0) { + if ((i == 0) && (field.type != 'hidden')) { + focusField = field; + } + fields[i++] = oRequired[x][1]; + isValid = false; + } + } else if (field.type == "select-multiple") { + var numOptions = field.options.length; + lastSelected=-1; + for(loop=numOptions-1;loop>=0;loop--) { + if(field.options[loop].selected) { + lastSelected = loop; + value = field.options[loop].value; + break; + } + } + if(lastSelected < 0 || trim(value).length == 0) { + if(i == 0) { + focusField = field; + } + fields[i++] = oRequired[x][1]; + isValid=false; + } + } else if ((field.length > 0) && (field[0].type == 'radio' || field[0].type == 'checkbox')) { + isChecked=-1; + for (loop=0;loop < field.length;loop++) { + if (field[loop].checked) { + isChecked=loop; + break; // only one needs to be checked + } + } + if (isChecked < 0) { + if (i == 0) { + focusField = field[0]; + } + fields[i++] = oRequired[x][1]; + isValid=false; + } + } + } + if (fields.length > 0) { + focusField.focus(); + alert(fields.join('\n')); + } + return isValid; + } + + // Trim whitespace from left and right sides of s. + function trim(s) { + return s.replace( /^\s*/, "" ).replace( /\s*$/, "" ); + } + + ]]> + + + + + + + + + + + + 0) && (field.value.length < iMin)) { + if (i == 0) { + focusField = field; + } + fields[i++] = oMinLength[x][1]; + isValid = false; + } + } + } + if (fields.length > 0) { + focusField.focus(); + alert(fields.join('\n')); + } + return isValid; + }]]> + + + + + + + + iMax) { + if (i == 0) { + focusField = field; + } + fields[i++] = oMaxLength[x][1]; + isValid = false; + } + } + } + if (fields.length > 0) { + focusField.focus(); + alert(fields.join('\n')); + } + return isValid; + }]]> + + + + + + + + 0)) { + + if (!matchPattern(field.value, oMasked[x][2]("mask"))) { + if (i == 0) { + focusField = field; + } + fields[i++] = oMasked[x][1]; + isValid = false; + } + } + } + + if (fields.length > 0) { + focusField.focus(); + alert(fields.join('\n')); + } + return isValid; + } + + function matchPattern(value, mask) { + return mask.exec(value); + }]]> + + + + + + + + = 0) { + value = field.options[si].value; + } + } else { + value = field.value; + } + + if (value.length > 0) { + if (!isAllDigits(value)) { + bValid = false; + if (i == 0) { + focusField = field; + } + fields[i++] = oByte[x][1]; + + } else { + + var iValue = parseInt(value); + if (isNaN(iValue) || !(iValue >= -128 && iValue <= 127)) { + if (i == 0) { + focusField = field; + } + fields[i++] = oByte[x][1]; + bValid = false; + } + } + } + + } + } + if (fields.length > 0) { + focusField.focus(); + alert(fields.join('\n')); + } + return bValid; + }]]> + + + + + + + + = 0) { + value = field.options[si].value; + } + } else { + value = field.value; + } + + if (value.length > 0) { + if (!isAllDigits(value)) { + bValid = false; + if (i == 0) { + focusField = field; + } + fields[i++] = oShort[x][1]; + + } else { + + var iValue = parseInt(value); + if (isNaN(iValue) || !(iValue >= -32768 && iValue <= 32767)) { + if (i == 0) { + focusField = field; + } + fields[i++] = oShort[x][1]; + bValid = false; + } + } + } + } + } + if (fields.length > 0) { + focusField.focus(); + alert(fields.join('\n')); + } + return bValid; + }]]> + + + + + + + + = 0) { + value = field.options[si].value; + } + } else { + value = field.value; + } + + if (value.length > 0) { + + if (!isAllDigits(value)) { + bValid = false; + if (i == 0) { + focusField = field; + } + fields[i++] = oInteger[x][1]; + + } else { + var iValue = parseInt(value); + if (isNaN(iValue) || !(iValue >= -2147483648 && iValue <= 2147483647)) { + if (i == 0) { + focusField = field; + } + fields[i++] = oInteger[x][1]; + bValid = false; + } + } + } + } + } + if (fields.length > 0) { + focusField.focus(); + alert(fields.join('\n')); + } + return bValid; + } + + function isAllDigits(argvalue) { + argvalue = argvalue.toString(); + var validChars = "0123456789"; + var startFrom = 0; + if (argvalue.substring(0, 2) == "0x") { + validChars = "0123456789abcdefABCDEF"; + startFrom = 2; + } else if (argvalue.charAt(0) == "0") { + validChars = "01234567"; + startFrom = 1; + } else if (argvalue.charAt(0) == "-") { + startFrom = 1; + } + + for (var n = startFrom; n < argvalue.length; n++) { + if (validChars.indexOf(argvalue.substring(n, n+1)) == -1) return false; + } + return true; + }]]> + + + + + + + + + + + = 0) { + value = field.options[si].value; + } + } else { + value = field.value; + } + + if (value.length > 0) { + // remove '.' before checking digits + var tempArray = value.split('.'); + var joinedString= tempArray.join(''); + + if (!isAllDigits(joinedString)) { + bValid = false; + if (i == 0) { + focusField = field; + } + fields[i++] = oFloat[x][1]; + + } else { + var iValue = parseFloat(value); + if (isNaN(iValue)) { + if (i == 0) { + focusField = field; + } + fields[i++] = oFloat[x][1]; + bValid = false; + } + } + } + } + } + if (fields.length > 0) { + focusField.focus(); + alert(fields.join('\n')); + } + return bValid; + }]]> + + + + + + + + + + + 0) && + (datePattern.length > 0)) { + var MONTH = "MM"; + var DAY = "dd"; + var YEAR = "yyyy"; + var orderMonth = datePattern.indexOf(MONTH); + var orderDay = datePattern.indexOf(DAY); + var orderYear = datePattern.indexOf(YEAR); + if ((orderDay < orderYear && orderDay > orderMonth)) { + var iDelim1 = orderMonth + MONTH.length; + var iDelim2 = orderDay + DAY.length; + var delim1 = datePattern.substring(iDelim1, iDelim1 + 1); + var delim2 = datePattern.substring(iDelim2, iDelim2 + 1); + if (iDelim1 == orderDay && iDelim2 == orderYear) { + dateRegexp = new RegExp("^(\\d{2})(\\d{2})(\\d{4})$"); + } else if (iDelim1 == orderDay) { + dateRegexp = new RegExp("^(\\d{2})(\\d{2})[" + delim2 + "](\\d{4})$"); + } else if (iDelim2 == orderYear) { + dateRegexp = new RegExp("^(\\d{2})[" + delim1 + "](\\d{2})(\\d{4})$"); + } else { + dateRegexp = new RegExp("^(\\d{2})[" + delim1 + "](\\d{2})[" + delim2 + "](\\d{4})$"); + } + var matched = dateRegexp.exec(value); + if(matched != null) { + if (!isValidDate(matched[2], matched[1], matched[3])) { + if (i == 0) { + focusField = form[oDate[x][0]]; + } + fields[i++] = oDate[x][1]; + bValid = false; + } + } else { + if (i == 0) { + focusField = form[oDate[x][0]]; + } + fields[i++] = oDate[x][1]; + bValid = false; + } + } else if ((orderMonth < orderYear && orderMonth > orderDay)) { + var iDelim1 = orderDay + DAY.length; + var iDelim2 = orderMonth + MONTH.length; + var delim1 = datePattern.substring(iDelim1, iDelim1 + 1); + var delim2 = datePattern.substring(iDelim2, iDelim2 + 1); + if (iDelim1 == orderMonth && iDelim2 == orderYear) { + dateRegexp = new RegExp("^(\\d{2})(\\d{2})(\\d{4})$"); + } else if (iDelim1 == orderMonth) { + dateRegexp = new RegExp("^(\\d{2})(\\d{2})[" + delim2 + "](\\d{4})$"); + } else if (iDelim2 == orderYear) { + dateRegexp = new RegExp("^(\\d{2})[" + delim1 + "](\\d{2})(\\d{4})$"); + } else { + dateRegexp = new RegExp("^(\\d{2})[" + delim1 + "](\\d{2})[" + delim2 + "](\\d{4})$"); + } + var matched = dateRegexp.exec(value); + if(matched != null) { + if (!isValidDate(matched[1], matched[2], matched[3])) { + if (i == 0) { + focusField = form[oDate[x][0]]; + } + fields[i++] = oDate[x][1]; + bValid = false; + } + } else { + if (i == 0) { + focusField = form[oDate[x][0]]; + } + fields[i++] = oDate[x][1]; + bValid = false; + } + } else if ((orderMonth > orderYear && orderMonth < orderDay)) { + var iDelim1 = orderYear + YEAR.length; + var iDelim2 = orderMonth + MONTH.length; + var delim1 = datePattern.substring(iDelim1, iDelim1 + 1); + var delim2 = datePattern.substring(iDelim2, iDelim2 + 1); + if (iDelim1 == orderMonth && iDelim2 == orderDay) { + dateRegexp = new RegExp("^(\\d{4})(\\d{2})(\\d{2})$"); + } else if (iDelim1 == orderMonth) { + dateRegexp = new RegExp("^(\\d{4})(\\d{2})[" + delim2 + "](\\d{2})$"); + } else if (iDelim2 == orderDay) { + dateRegexp = new RegExp("^(\\d{4})[" + delim1 + "](\\d{2})(\\d{2})$"); + } else { + dateRegexp = new RegExp("^(\\d{4})[" + delim1 + "](\\d{2})[" + delim2 + "](\\d{2})$"); + } + var matched = dateRegexp.exec(value); + if(matched != null) { + if (!isValidDate(matched[3], matched[2], matched[1])) { + if (i == 0) { + focusField = form[oDate[x][0]]; + } + fields[i++] = oDate[x][1]; + bValid = false; + } + } else { + if (i == 0) { + focusField = form[oDate[x][0]]; + } + fields[i++] = oDate[x][1]; + bValid = false; + } + } else { + if (i == 0) { + focusField = form[oDate[x][0]]; + } + fields[i++] = oDate[x][1]; + bValid = false; + } + } + } + if (fields.length > 0) { + focusField.focus(); + alert(fields.join('\n')); + } + return bValid; + } + + function isValidDate(day, month, year) { + if (month < 1 || month > 12) { + return false; + } + if (day < 1 || day > 31) { + return false; + } + if ((month == 4 || month == 6 || month == 9 || month == 11) && + (day == 31)) { + return false; + } + if (month == 2) { + var leap = (year % 4 == 0 && + (year % 100 != 0 || year % 400 == 0)); + if (day>29 || (day == 29 && !leap)) { + return false; + } + } + return true; + }]]> + + + + + + + + + + + + + + + 0)) { + + var iMin = parseInt(oRange[x][2]("min")); + var iMax = parseInt(oRange[x][2]("max")); + var iValue = parseInt(field.value); + if (!(iValue >= iMin && iValue <= iMax)) { + if (i == 0) { + focusField = field; + } + fields[i++] = oRange[x][1]; + isValid = false; + } + } + } + if (fields.length > 0) { + focusField.focus(); + alert(fields.join('\n')); + } + return isValid; + }]]> + + + + + + + 0)) { + + var fMin = parseFloat(oRange[x][2]("min")); + var fMax = parseFloat(oRange[x][2]("max")); + var fValue = parseFloat(field.value); + if (!(fValue >= fMin && fValue <= fMax)) { + if (i == 0) { + focusField = field; + } + fields[i++] = oRange[x][1]; + isValid = false; + } + } + } + if (fields.length > 0) { + focusField.focus(); + alert(fields.join('\n')); + } + return isValid; + }]]> + + + + + + + 0)) { + if (!luhnCheck(form[oCreditCard[x][0]].value)) { + if (i == 0) { + focusField = form[oCreditCard[x][0]]; + } + fields[i++] = oCreditCard[x][1]; + bValid = false; + } + } + } + if (fields.length > 0) { + focusField.focus(); + alert(fields.join('\n')); + } + return bValid; + } + + /** + * Reference: http://www.ling.nwu.edu/~sburke/pub/luhn_lib.pl + */ + function luhnCheck(cardNumber) { + if (isLuhnNum(cardNumber)) { + var no_digit = cardNumber.length; + var oddoeven = no_digit & 1; + var sum = 0; + for (var count = 0; count < no_digit; count++) { + var digit = parseInt(cardNumber.charAt(count)); + if (!((count & 1) ^ oddoeven)) { + digit *= 2; + if (digit > 9) digit -= 9; + }; + sum += digit; + }; + if (sum == 0) return false; + if (sum % 10 == 0) return true; + }; + return false; + } + + function isLuhnNum(argvalue) { + argvalue = argvalue.toString(); + if (argvalue.length == 0) { + return false; + } + for (var n = 0; n < argvalue.length; n++) { + if ((argvalue.substring(n, n+1) < "0") || + (argvalue.substring(n,n+1) > "9")) { + return false; + } + } + return true; + }]]> + + + + + + + + 0)) { + if (!checkEmail(form[oEmail[x][0]].value)) { + if (i == 0) { + focusField = form[oEmail[x][0]]; + } + fields[i++] = oEmail[x][1]; + bValid = false; + } + } + } + if (fields.length > 0) { + focusField.focus(); + alert(fields.join('\n')); + } + return bValid; + } + + /** + * Reference: Sandeep V. Tamhankar (stamhankar@hotmail.com), + * http://javascript.internet.com + */ + function checkEmail(emailStr) { + if (emailStr.length == 0) { + return true; + } + var emailPat=/^(.+)@(.+)$/; + var specialChars="\\(\\)<>@,;:\\\\\\\"\\.\\[\\]"; + var validChars="\[^\\s" + specialChars + "\]"; + var quotedUser="(\"[^\"]*\")"; + var ipDomainPat=/^(\d{1,3})[.](\d{1,3})[.](\d{1,3})[.](\d{1,3})$/; + var atom=validChars + '+'; + var word="(" + atom + "|" + quotedUser + ")"; + var userPat=new RegExp("^" + word + "(\\." + word + ")*$"); + var domainPat=new RegExp("^" + atom + "(\\." + atom + ")*$"); + var matchArray=emailStr.match(emailPat); + if (matchArray == null) { + return false; + } + var user=matchArray[1]; + var domain=matchArray[2]; + if (user.match(userPat) == null) { + return false; + } + var IPArray = domain.match(ipDomainPat); + if (IPArray != null) { + for (var i = 1; i <= 4; i++) { + if (IPArray[i] > 255) { + return false; + } + } + return true; + } + var domainArray=domain.match(domainPat); + if (domainArray == null) { + return false; + } + var atomPat=new RegExp(atom,"g"); + var domArr=domain.match(atomPat); + var len=domArr.length; + if ((domArr[domArr.length-1].length < 2) || + (domArr[domArr.length-1].length > 3)) { + return false; + } + if (len < 2) { + return false; + } + return true; + }]]> + + + + + + + 0) { + alert(fields.join('\n')); + } + return bValid; + } + + /** + * Reference: JS Guide + * http://jsguide.net/ver2/articles/frame.php?artnum=002 + */ + function checkIhIdNum(ihidnum){ + + fmt = /^\d{6}[1234]\d{6}$/; + if(!fmt.test(ihidnum)){ + return false; + } + + birthYear = (ihidnum.charAt(7) <= "2") ? "19" : "20"; + birthYear += ihidnum.substr(0, 2); + birthMonth = ihidnum.substr(2, 2) - 1; + birthDate = ihidnum.substr(4, 2); + birth = new Date(birthYear, birthMonth, birthDate); + + if( birth.getYear() % 100 != ihidnum.substr(0, 2) || + birth.getMonth() != birthMonth || + birth.getDate() != birthDate) { + return false; + } + + var arrDivide = [2, 3, 4, 5, 6, 7, 8, 9, 2, 3, 4, 5]; + var checkdigit = 0; + for(var i=0;i + + + + 0) { + focusField.focus(); + alert(fields.join('\n')); + } + return bValid; + } + + function checkKorean(koreanStr){ + for(var i=0;i + + + + + + diff --git a/target/isd_demo-1.0.0/WEB-INF/config/egovframework/validator/validator.xml b/target/isd_demo-1.0.0/WEB-INF/config/egovframework/validator/validator.xml new file mode 100644 index 0000000..453fa36 --- /dev/null +++ b/target/isd_demo-1.0.0/WEB-INF/config/egovframework/validator/validator.xml @@ -0,0 +1,22 @@ + + + + + + +
+ + + + + + + + + +
+
+ +
\ No newline at end of file diff --git a/target/isd_demo-1.0.0/WEB-INF/jsp/egovframework/com/mtdata/cmmn/dataAccessFailure.jsp b/target/isd_demo-1.0.0/WEB-INF/jsp/egovframework/com/mtdata/cmmn/dataAccessFailure.jsp new file mode 100644 index 0000000..bf361e5 --- /dev/null +++ b/target/isd_demo-1.0.0/WEB-INF/jsp/egovframework/com/mtdata/cmmn/dataAccessFailure.jsp @@ -0,0 +1,13 @@ +<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> +<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> + + + + +Error + + + + + + \ No newline at end of file diff --git a/target/isd_demo-1.0.0/WEB-INF/jsp/egovframework/com/mtdata/cmmn/egovBizException.jsp b/target/isd_demo-1.0.0/WEB-INF/jsp/egovframework/com/mtdata/cmmn/egovBizException.jsp new file mode 100644 index 0000000..50e5187 --- /dev/null +++ b/target/isd_demo-1.0.0/WEB-INF/jsp/egovframework/com/mtdata/cmmn/egovBizException.jsp @@ -0,0 +1,13 @@ +<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> +<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> + + + + +Error + + + + + + \ No newline at end of file diff --git a/target/isd_demo-1.0.0/WEB-INF/jsp/egovframework/com/mtdata/cmmn/egovError.jsp b/target/isd_demo-1.0.0/WEB-INF/jsp/egovframework/com/mtdata/cmmn/egovError.jsp new file mode 100644 index 0000000..50e5187 --- /dev/null +++ b/target/isd_demo-1.0.0/WEB-INF/jsp/egovframework/com/mtdata/cmmn/egovError.jsp @@ -0,0 +1,13 @@ +<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> +<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> + + + + +Error + + + + + + \ No newline at end of file diff --git a/target/isd_demo-1.0.0/WEB-INF/jsp/egovframework/com/mtdata/cmmn/transactionFailure.jsp b/target/isd_demo-1.0.0/WEB-INF/jsp/egovframework/com/mtdata/cmmn/transactionFailure.jsp new file mode 100644 index 0000000..50e5187 --- /dev/null +++ b/target/isd_demo-1.0.0/WEB-INF/jsp/egovframework/com/mtdata/cmmn/transactionFailure.jsp @@ -0,0 +1,13 @@ +<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> +<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> + + + + +Error + + + + + + \ No newline at end of file diff --git a/target/isd_demo-1.0.0/WEB-INF/jsp/egovframework/com/mtdata/cmmn/validator.jsp b/target/isd_demo-1.0.0/WEB-INF/jsp/egovframework/com/mtdata/cmmn/validator.jsp new file mode 100644 index 0000000..2925385 --- /dev/null +++ b/target/isd_demo-1.0.0/WEB-INF/jsp/egovframework/com/mtdata/cmmn/validator.jsp @@ -0,0 +1,3 @@ +<%@ page language="java" contentType="javascript/x-javascript" %> +<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %> + \ No newline at end of file diff --git a/target/isd_demo-1.0.0/WEB-INF/jsp/egovframework/com/mtdata/sample/egovSampleList.jsp b/target/isd_demo-1.0.0/WEB-INF/jsp/egovframework/com/mtdata/sample/egovSampleList.jsp new file mode 100644 index 0000000..eefa7c4 --- /dev/null +++ b/target/isd_demo-1.0.0/WEB-INF/jsp/egovframework/com/mtdata/sample/egovSampleList.jsp @@ -0,0 +1,141 @@ +<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> +<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%> +<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> +<% + /** + * @Class Name : egovSampleList.jsp + * @Description : Sample List 화면 + * @Modification Information + * + * 수정일 수정자 수정내용 + * ------- -------- --------------------------- + * 2009.02.01 최초 생성 + * + * author 실행환경 개발팀 + * since 2009.02.01 + * + * Copyright (C) 2009 by MOPAS All right reserved. + */ +%> + + + + + <spring:message code="title.sample" /> + + + + + + + +
+ +
+
    +
  • +
+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
카테고리ID, 케테고리명, 사용여부, Description, 등록자 표시하는 테이블
No
')">    
+
+ +
+ + +
+
+
    +
  • + + + + +
  • +
+
+
+
+ + diff --git a/target/isd_demo-1.0.0/WEB-INF/jsp/egovframework/com/mtdata/sample/egovSampleRegister.jsp b/target/isd_demo-1.0.0/WEB-INF/jsp/egovframework/com/mtdata/sample/egovSampleRegister.jsp new file mode 100644 index 0000000..b4f4c94 --- /dev/null +++ b/target/isd_demo-1.0.0/WEB-INF/jsp/egovframework/com/mtdata/sample/egovSampleRegister.jsp @@ -0,0 +1,168 @@ +<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> +<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %> +<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> +<% + /** + * @Class Name : egovSampleRegister.jsp + * @Description : Sample Register 화면 + * @Modification Information + * + * 수정일 수정자 수정내용 + * ------- -------- --------------------------- + * 2009.02.01 최초 생성 + * + * author 실행환경 개발팀 + * since 2009.02.01 + * + * Copyright (C) 2009 by MOPAS All right reserved. + */ +%> + + + + + + Sample <c:if test="${registerFlag == 'create'}"><spring:message code="button.create" /></c:if> + <c:if test="${registerFlag == 'modify'}"><spring:message code="button.modify" /></c:if> + + + + + + + + + + + + +
+ +
+
    +
  • + + +
  • +
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +   + + +
+ +
+ +   +
+ + + + +
+   +
+ + +  
+
+
+
    +
  • + + + + +
  • +
  • + + + + + + + +
  • + +
  • + + + + +
  • +
    +
  • + + + + +
  • +
+
+
+ + + + +
+ + \ No newline at end of file diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/ST4-4.0.7.jar b/target/isd_demo-1.0.0/WEB-INF/lib/ST4-4.0.7.jar new file mode 100644 index 0000000..4ffdddf Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/ST4-4.0.7.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/activation-1.1.jar b/target/isd_demo-1.0.0/WEB-INF/lib/activation-1.1.jar new file mode 100644 index 0000000..53f82a1 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/activation-1.1.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/antlr-2.7.7.jar b/target/isd_demo-1.0.0/WEB-INF/lib/antlr-2.7.7.jar new file mode 100644 index 0000000..5e5f14b Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/antlr-2.7.7.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/antlr-3.5.jar b/target/isd_demo-1.0.0/WEB-INF/lib/antlr-3.5.jar new file mode 100644 index 0000000..dd2fb3d Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/antlr-3.5.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/antlr-runtime-3.5.jar b/target/isd_demo-1.0.0/WEB-INF/lib/antlr-runtime-3.5.jar new file mode 100644 index 0000000..a8b5969 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/antlr-runtime-3.5.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/aspectjrt-1.9.9.1.jar b/target/isd_demo-1.0.0/WEB-INF/lib/aspectjrt-1.9.9.1.jar new file mode 100644 index 0000000..224ec93 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/aspectjrt-1.9.9.1.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/aspectjweaver-1.9.9.1.jar b/target/isd_demo-1.0.0/WEB-INF/lib/aspectjweaver-1.9.9.1.jar new file mode 100644 index 0000000..4a1b98c Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/aspectjweaver-1.9.9.1.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/checker-qual-3.31.0.jar b/target/isd_demo-1.0.0/WEB-INF/lib/checker-qual-3.31.0.jar new file mode 100644 index 0000000..585c295 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/checker-qual-3.31.0.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/commons-beanutils-1.9.4.jar b/target/isd_demo-1.0.0/WEB-INF/lib/commons-beanutils-1.9.4.jar new file mode 100644 index 0000000..b73543c Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/commons-beanutils-1.9.4.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/commons-collections-3.2.2.jar b/target/isd_demo-1.0.0/WEB-INF/lib/commons-collections-3.2.2.jar new file mode 100644 index 0000000..fa5df82 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/commons-collections-3.2.2.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/commons-dbcp2-2.9.0.jar b/target/isd_demo-1.0.0/WEB-INF/lib/commons-dbcp2-2.9.0.jar new file mode 100644 index 0000000..ddfd42c Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/commons-dbcp2-2.9.0.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/commons-digester-2.1.jar b/target/isd_demo-1.0.0/WEB-INF/lib/commons-digester-2.1.jar new file mode 100644 index 0000000..a07cfa8 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/commons-digester-2.1.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/commons-lang3-3.12.0.jar b/target/isd_demo-1.0.0/WEB-INF/lib/commons-lang3-3.12.0.jar new file mode 100644 index 0000000..4d434a2 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/commons-lang3-3.12.0.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/commons-logging-1.2.jar b/target/isd_demo-1.0.0/WEB-INF/lib/commons-logging-1.2.jar new file mode 100644 index 0000000..93a3b9f Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/commons-logging-1.2.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/commons-pool2-2.10.0.jar b/target/isd_demo-1.0.0/WEB-INF/lib/commons-pool2-2.10.0.jar new file mode 100644 index 0000000..4f8e0df Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/commons-pool2-2.10.0.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/commons-validator-1.7.jar b/target/isd_demo-1.0.0/WEB-INF/lib/commons-validator-1.7.jar new file mode 100644 index 0000000..f98c145 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/commons-validator-1.7.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/hsqldb-2.5.2.jar b/target/isd_demo-1.0.0/WEB-INF/lib/hsqldb-2.5.2.jar new file mode 100644 index 0000000..49124e0 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/hsqldb-2.5.2.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/ibatis-sqlmap-2.3.4.726.jar b/target/isd_demo-1.0.0/WEB-INF/lib/ibatis-sqlmap-2.3.4.726.jar new file mode 100644 index 0000000..cb39200 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/ibatis-sqlmap-2.3.4.726.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/jackson-annotations-2.16.0.jar b/target/isd_demo-1.0.0/WEB-INF/lib/jackson-annotations-2.16.0.jar new file mode 100644 index 0000000..6f7366a Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/jackson-annotations-2.16.0.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/jackson-core-2.16.0.jar b/target/isd_demo-1.0.0/WEB-INF/lib/jackson-core-2.16.0.jar new file mode 100644 index 0000000..772dde1 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/jackson-core-2.16.0.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/jackson-databind-2.16.0.jar b/target/isd_demo-1.0.0/WEB-INF/lib/jackson-databind-2.16.0.jar new file mode 100644 index 0000000..0df3e4f Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/jackson-databind-2.16.0.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/javaee-api-7.0.jar b/target/isd_demo-1.0.0/WEB-INF/lib/javaee-api-7.0.jar new file mode 100644 index 0000000..dbdd028 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/javaee-api-7.0.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/javax.annotation-api-1.3.2.jar b/target/isd_demo-1.0.0/WEB-INF/lib/javax.annotation-api-1.3.2.jar new file mode 100644 index 0000000..a8a470a Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/javax.annotation-api-1.3.2.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/javax.mail-1.5.0.jar b/target/isd_demo-1.0.0/WEB-INF/lib/javax.mail-1.5.0.jar new file mode 100644 index 0000000..f726e13 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/javax.mail-1.5.0.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/jcl-over-slf4j-1.7.36.jar b/target/isd_demo-1.0.0/WEB-INF/lib/jcl-over-slf4j-1.7.36.jar new file mode 100644 index 0000000..3ecd7d5 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/jcl-over-slf4j-1.7.36.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/jsp-api-2.1.jar b/target/isd_demo-1.0.0/WEB-INF/lib/jsp-api-2.1.jar new file mode 100644 index 0000000..c0195af Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/jsp-api-2.1.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/jstl-api-1.2.jar b/target/isd_demo-1.0.0/WEB-INF/lib/jstl-api-1.2.jar new file mode 100644 index 0000000..30d4d92 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/jstl-api-1.2.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/log4j-1.2.17.jar b/target/isd_demo-1.0.0/WEB-INF/lib/log4j-1.2.17.jar new file mode 100644 index 0000000..1d425cf Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/log4j-1.2.17.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/log4j-api-2.17.2.jar b/target/isd_demo-1.0.0/WEB-INF/lib/log4j-api-2.17.2.jar new file mode 100644 index 0000000..16d9061 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/log4j-api-2.17.2.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/log4j-core-2.17.2.jar b/target/isd_demo-1.0.0/WEB-INF/lib/log4j-core-2.17.2.jar new file mode 100644 index 0000000..0fd0051 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/log4j-core-2.17.2.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/log4j-over-slf4j-1.7.36.jar b/target/isd_demo-1.0.0/WEB-INF/lib/log4j-over-slf4j-1.7.36.jar new file mode 100644 index 0000000..13fbc0a Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/log4j-over-slf4j-1.7.36.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/log4j-slf4j-impl-2.17.2.jar b/target/isd_demo-1.0.0/WEB-INF/lib/log4j-slf4j-impl-2.17.2.jar new file mode 100644 index 0000000..a5cc396 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/log4j-slf4j-impl-2.17.2.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/log4jdbc-1.2.jar b/target/isd_demo-1.0.0/WEB-INF/lib/log4jdbc-1.2.jar new file mode 100644 index 0000000..8208a44 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/log4jdbc-1.2.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/mybatis-3.5.10.jar b/target/isd_demo-1.0.0/WEB-INF/lib/mybatis-3.5.10.jar new file mode 100644 index 0000000..0f941e0 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/mybatis-3.5.10.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/mybatis-spring-2.0.7.jar b/target/isd_demo-1.0.0/WEB-INF/lib/mybatis-spring-2.0.7.jar new file mode 100644 index 0000000..a930b60 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/mybatis-spring-2.0.7.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/mysql-connector-java-8.0.29.jar b/target/isd_demo-1.0.0/WEB-INF/lib/mysql-connector-java-8.0.29.jar new file mode 100644 index 0000000..5f9f134 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/mysql-connector-java-8.0.29.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/org.egovframe.rte.fdl.cmmn-4.1.0.jar b/target/isd_demo-1.0.0/WEB-INF/lib/org.egovframe.rte.fdl.cmmn-4.1.0.jar new file mode 100644 index 0000000..830b090 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/org.egovframe.rte.fdl.cmmn-4.1.0.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/org.egovframe.rte.fdl.idgnr-4.1.0.jar b/target/isd_demo-1.0.0/WEB-INF/lib/org.egovframe.rte.fdl.idgnr-4.1.0.jar new file mode 100644 index 0000000..86feff6 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/org.egovframe.rte.fdl.idgnr-4.1.0.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/org.egovframe.rte.fdl.logging-4.1.0.jar b/target/isd_demo-1.0.0/WEB-INF/lib/org.egovframe.rte.fdl.logging-4.1.0.jar new file mode 100644 index 0000000..ee83520 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/org.egovframe.rte.fdl.logging-4.1.0.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/org.egovframe.rte.fdl.property-4.1.0.jar b/target/isd_demo-1.0.0/WEB-INF/lib/org.egovframe.rte.fdl.property-4.1.0.jar new file mode 100644 index 0000000..cd43b93 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/org.egovframe.rte.fdl.property-4.1.0.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/org.egovframe.rte.psl.dataaccess-4.1.0.jar b/target/isd_demo-1.0.0/WEB-INF/lib/org.egovframe.rte.psl.dataaccess-4.1.0.jar new file mode 100644 index 0000000..f9706b0 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/org.egovframe.rte.psl.dataaccess-4.1.0.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/org.egovframe.rte.ptl.mvc-4.1.0.jar b/target/isd_demo-1.0.0/WEB-INF/lib/org.egovframe.rte.ptl.mvc-4.1.0.jar new file mode 100644 index 0000000..ee049d8 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/org.egovframe.rte.ptl.mvc-4.1.0.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/postgresql-42.7.0.jar b/target/isd_demo-1.0.0/WEB-INF/lib/postgresql-42.7.0.jar new file mode 100644 index 0000000..87af579 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/postgresql-42.7.0.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/protobuf-java-3.19.4.jar b/target/isd_demo-1.0.0/WEB-INF/lib/protobuf-java-3.19.4.jar new file mode 100644 index 0000000..a545ea0 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/protobuf-java-3.19.4.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/servlet-api-2.5.jar b/target/isd_demo-1.0.0/WEB-INF/lib/servlet-api-2.5.jar new file mode 100644 index 0000000..fb52493 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/servlet-api-2.5.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/slf4j-api-1.7.25.jar b/target/isd_demo-1.0.0/WEB-INF/lib/slf4j-api-1.7.25.jar new file mode 100644 index 0000000..0143c09 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/slf4j-api-1.7.25.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/snakeyaml-2.2.jar b/target/isd_demo-1.0.0/WEB-INF/lib/snakeyaml-2.2.jar new file mode 100644 index 0000000..275dd57 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/snakeyaml-2.2.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/spring-aop-5.3.20.jar b/target/isd_demo-1.0.0/WEB-INF/lib/spring-aop-5.3.20.jar new file mode 100644 index 0000000..5b42548 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/spring-aop-5.3.20.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/spring-beans-5.3.20.jar b/target/isd_demo-1.0.0/WEB-INF/lib/spring-beans-5.3.20.jar new file mode 100644 index 0000000..86fb9d2 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/spring-beans-5.3.20.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/spring-context-5.3.20.jar b/target/isd_demo-1.0.0/WEB-INF/lib/spring-context-5.3.20.jar new file mode 100644 index 0000000..0cfb0e0 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/spring-context-5.3.20.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/spring-context-support-5.3.20.jar b/target/isd_demo-1.0.0/WEB-INF/lib/spring-context-support-5.3.20.jar new file mode 100644 index 0000000..1ab6871 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/spring-context-support-5.3.20.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/spring-core-5.3.20.jar b/target/isd_demo-1.0.0/WEB-INF/lib/spring-core-5.3.20.jar new file mode 100644 index 0000000..8946de5 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/spring-core-5.3.20.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/spring-expression-5.3.20.jar b/target/isd_demo-1.0.0/WEB-INF/lib/spring-expression-5.3.20.jar new file mode 100644 index 0000000..ebe2741 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/spring-expression-5.3.20.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/spring-jcl-5.3.20.jar b/target/isd_demo-1.0.0/WEB-INF/lib/spring-jcl-5.3.20.jar new file mode 100644 index 0000000..61c9bd5 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/spring-jcl-5.3.20.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/spring-jdbc-5.3.20.jar b/target/isd_demo-1.0.0/WEB-INF/lib/spring-jdbc-5.3.20.jar new file mode 100644 index 0000000..d03c6b8 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/spring-jdbc-5.3.20.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/spring-modules-validation-0.9.jar b/target/isd_demo-1.0.0/WEB-INF/lib/spring-modules-validation-0.9.jar new file mode 100644 index 0000000..cb73be8 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/spring-modules-validation-0.9.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/spring-orm-5.3.20.jar b/target/isd_demo-1.0.0/WEB-INF/lib/spring-orm-5.3.20.jar new file mode 100644 index 0000000..64a8314 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/spring-orm-5.3.20.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/spring-tx-5.3.20.jar b/target/isd_demo-1.0.0/WEB-INF/lib/spring-tx-5.3.20.jar new file mode 100644 index 0000000..4984c21 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/spring-tx-5.3.20.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/spring-web-5.3.20.jar b/target/isd_demo-1.0.0/WEB-INF/lib/spring-web-5.3.20.jar new file mode 100644 index 0000000..7f2cab8 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/spring-web-5.3.20.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/spring-webmvc-5.3.20.jar b/target/isd_demo-1.0.0/WEB-INF/lib/spring-webmvc-5.3.20.jar new file mode 100644 index 0000000..7bf1671 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/spring-webmvc-5.3.20.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/standard-1.1.2.jar b/target/isd_demo-1.0.0/WEB-INF/lib/standard-1.1.2.jar new file mode 100644 index 0000000..bc528ac Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/standard-1.1.2.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/lib/stringtemplate-3.2.1.jar b/target/isd_demo-1.0.0/WEB-INF/lib/stringtemplate-3.2.1.jar new file mode 100644 index 0000000..d0e11b7 Binary files /dev/null and b/target/isd_demo-1.0.0/WEB-INF/lib/stringtemplate-3.2.1.jar differ diff --git a/target/isd_demo-1.0.0/WEB-INF/web.xml b/target/isd_demo-1.0.0/WEB-INF/web.xml new file mode 100644 index 0000000..acf20f4 --- /dev/null +++ b/target/isd_demo-1.0.0/WEB-INF/web.xml @@ -0,0 +1,74 @@ + + + egov.sample + + + encodingFilter + org.springframework.web.filter.CharacterEncodingFilter + + encoding + utf-8 + + + + encodingFilter + *.do + + + + HTMLTagFilter + org.egovframe.rte.ptl.mvc.filter.HTMLTagFilter + + + HTMLTagFilter + *.do + + + + contextConfigLocation + classpath*:egovframework/spring/context-*.xml + + + + org.springframework.web.context.ContextLoaderListener + + + + action + org.springframework.web.servlet.DispatcherServlet + + contextConfigLocation + /WEB-INF/config/egovframework/springmvc/dispatcher-servlet.xml + + 1 + + + + action + *.do + + + + index.jsp + + + + BASIC + + + + java.lang.Throwable + /common/error.jsp + + + 404 + /common/error.jsp + + + 500 + /common/error.jsp + + + diff --git a/target/isd_demo-1.0.0/common/error.jsp b/target/isd_demo-1.0.0/common/error.jsp new file mode 100644 index 0000000..c9f3c2e --- /dev/null +++ b/target/isd_demo-1.0.0/common/error.jsp @@ -0,0 +1,26 @@ +<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> +<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> + + + + + +Basic Sample + + + + + + + +
+ + + +
+ +
+
+ + \ No newline at end of file diff --git a/target/isd_demo-1.0.0/css/egovframework/sample.css b/target/isd_demo-1.0.0/css/egovframework/sample.css new file mode 100644 index 0000000..e6685ee --- /dev/null +++ b/target/isd_demo-1.0.0/css/egovframework/sample.css @@ -0,0 +1,99 @@ +/********************************************************************************/ +/* */ +/* Design RIAN */ +/* Date : 2007-03-21 */ +/* */ +/* */ +/********************************************************************************/ +* {margin:0;padding:0;} +* html {height:1px;} +body {margin:0; padding:0; font-family:"굴림"; font-size:12px; color:#666; scroll:auto;} +table, tr, td, th {font-family:"돋움"; font-size:11px; color:#333333;} +.listtd {padding:10px 5px 8px 5px; border-bottom:1px solid #e5e5e5;} +th {background-color:#F3F5E0; background:url(../../images/egovframework/example/th_bg.gif) 0 0 repeat; height:26px; text-align:center; vertical-align:middle; color:#003366;} +img {border:0; vertical-align:middle;} +p { height:20px; margin:0; padding:5 0 0 0;} +.check ul {margin:0; padding:0; float:left;} +.check li {list-style-type:none; float:left; margin:0 0 0 0; padding:0 0 0 3px;} +.top {vertical-align:top;} + +a:link { font-size:11px; font-family:"돋움"; color:#3A5870; text-decoration:none; line-height:100%;} +a:visited { font-size:11px; font-family:"돋움"; color:#3A5870; text-decoration:none} +a:active { font-size:11px; font-family:"돋움"; color:#339999; text-decoration:none;} +a:hover { font-size:11px; font-family:"돋움"; color:#339999; text-decoration:none;} + +.login {position:relative; margin:0; padding:0 0 0 0px; text-align:left; vertical-align:top; padding:52px 0px 0px 270px; /*overflow:hidden;*/ width:330px; height:260px;background:url(../../images/egovframework/example/login_bg.jpg) 0 0 no-repeat; } +.login_en {position:relative; margin:0; padding:0 0 0 0px; text-align:left; vertical-align:top; padding:52px 0px 0px 270px; /*overflow:hidden;*/ width:330px; height:260px;background:url(../../images/egovframework/example/login_bg_en.jpg) 0 0 no-repeat; } +.error {position:relative; margin:0; padding:0 0 0 0px; text-align:left; vertical-align:top; padding:120px 0px 0px 80px; /*overflow:hidden;*/ width:520px; height:260px;background:url(../../images/egovframework/example/error_bg.jpg) 0 0 no-repeat; } +.error_en {position:relative; margin:0; padding:0 0 0 0px; text-align:left; vertical-align:top; padding:120px 0px 0px 80px; /*overflow:hidden;*/ width:520px; height:260px;background:url(../../images/egovframework/example/error_bg_en.jpg) 0 0 no-repeat; } +#logo {margin:0; padding:0; text-align:left; /*overflow:hidden;*/ width:910px;} +#header {height:74px; background:url(../../images/egovframework/example/civilappeal_topmn_bg.jpg) repeat-x;} +#top {width:910px;} +.menu { text-align:center; height:38px; margin:0; padding:13px 0 0 0;} +.menu ul {display:inline; width:910px;} +.menu li {display:inline; list-style-type:none; margin:0; padding:14px 28px 0 28px; background:url(../../images/egovframework/example/civilappeal_topmn_bar.jpg) 0 15px no-repeat;} +.menu li.last {width:1px; padding:15px 0 0 0; background:url(../../images/egovframework/example/civilappeal_topmn_bar.jpg) 0 0 no-repeat;} +.menu a.top:link {font-family:"굴림"; font-weight:bold; color:#FFFFFF; text-decoration:none; font-size:12px;} +.menu a.top:visited {font-family:"굴림"; font-weight:bold; color:#FFFFFF; text-decoration:none; font-size:12px;} +.menu a.top:hover {font-family:"굴림"; font-weight:bold; color: #00CCFF; text-decoration:none; font-size:12px;} +.menu a.top:active {font-family:"굴림"; font-weight:bold; color:#FFFFFF; text-decoration:none; font-size:12px;} + +.menu .on a.top:link {font-family:"굴림"; font-weight:bold; color:#00CCFF; text-decoration:none; font-size:12px;} +.menu .on a.top:visited {font-family:"굴림"; font-weight:bold; color:#00CCFF; text-decoration:none; font-size:12px;} +.menu .on a.top:hover {font-family:"굴림"; font-weight:bold; color: #00CCFF; text-decoration:none; font-size:12px;} +.menu .on a.top:active {font-family:"굴림"; font-weight:bold; color:#00CCFF; text-decoration:none; font-size:12px;} + +.right_area {float:right; height:38px; margin:0; padding:0 8px 0 0; background:url(../../images/egovframework/example/civilappeal_topmn_bg11.jpg) right no-repeat;} +#sub {float:left; padding:10px 10px 10px 10px; /*overflow:hidden;*/width:180px; margin-right:30px;} +#sub .login {width:180px; height:70px; text-align:left; vertical-align:top; padding:5px 0 0 0; background:url(../../images/egovframework/example/civilappeal_login_bg.jpg) right no-repeat; margin-bottom:10px;} +#sub .login_en {width:180px; height:70px; text-align:left; vertical-align:top; padding:5px 0 0 0; background:url(../../images/egovframework/example/civilappeal_login_bg_en.jpg) right no-repeat; margin-bottom:10px;} +#sub .sub_menu {width:150px; height:300px; text-align:left; vertical-align:top; background:url(../../images/egovframework/example/civilappeal_leftmenu_bg.jpg) 0 0 no-repeat; padding-top:40px; padding-left:15px; padding-right:15px; padding-bottom:0px;} +#sub .sub_menu dl {width:150px;} +#sub .sub_menu dd {font-weight:bold; padding-left:0px; padding-right:0px; padding-bottom:0px; padding-top:10px; margin:0;} +#sub .sub_menu dt {list-style:none; padding-left:0px; padding-right:0px; padding-bottom:0px; padding-top:8px; margin:0px;} +#sub .sub_menu_en {width:150px; height:300px; text-align:left; vertical-align:top; background:url(../../images/egovframework/example/civilappeal_leftmenu_bg_en.jpg) 0 0 no-repeat; padding-top:40px; padding-left:15px; padding-right:15px; padding-bottom:0px;} +#sub .sub_menu_en dl {width:150px;} +#sub .sub_menu_en dd {font-weight:bold; padding-left:0px; padding-right:0px; padding-bottom:0px; padding-top:10px; margin:0;} +#sub .sub_menu_en dt {list-style:none; padding-left:0px; padding-right:0px; padding-bottom:0px; padding-top:8px; margin:0px;} +#content {float:left; text-align:left; /*overflow:hidden;*/width:680px; background-color:#FFFFFF; padding:10px 0px 10px 0px;} +#content_pop {float:left; text-align:left; /*overflow:hidden;*/width:680px; background-color:#FFFFFF; padding:10px 10px 10px 10px;} +#title {float:left; text-align:left; margin:0 0 10 0; padding:0; height:30px; border-bottom:1px solid #e5e5e5; width:680px;} +#title ul {float:left; margin:0; padding:0;} +#title li {list-style-type:none; width:200px; padding:3px 0px 2px 0px; float:left; font-family:"돋움"; font-size:16px; font-weight:bold; color:#000000;} +#title .location {float:right; height:20px; margin:0; padding:5 0 0 0; font-family:"돋움"; font-size:11px;} +#foot {margin:0; padding:0 0 0 0; text-align:left; /*overflow:hidden;*/ height:40px; clear:both; background-color:#F7F7F7; border-top:1px solid #e5e5e5; font-family:Tahoma; font-size:11px; color:#999999;} +#search {float:right; margin:0; padding:10px 0 10px 0; width:680px;} +#search ul {margin:0; float:right;} +#search li {list-style-type:none; float:left; margin:0 0 0 0; padding:0 0 0 3px;} +#table {float:left; margin:0 0 10px 0; padding:0 0 0 0; width:680px;} +#paging {padding:0 0 0 0; text-align:center; width:680px;} +#paging ul {display:inline;} +#paging li {display:inline; list-style-type:none; padding:0 10px 0 10px; font-family: Tahoma; font-size:11px; color: #333333;} +#paging li.pre10 {padding:0 2px 0 2px;} +#paging li.pre1 {padding:0 2px 0 2px;} +#paging li.next10 {padding:0 2px 0 2px;} +#paging li.next1 {padding:0 2px 0 2px;} +#paging li.line {background:url(../../images/egovframework/example/paging_line.gif) 0 2px no-repeat;} +#paging li.first {padding:0 5px 0 0;} +#paging li.last {background:url(../../images/egovframework/example/paging_line.gif) 0 2px no-repeat; padding:0 5px 0 0;} +#sysbtn {float:right; text-align:right; padding:0; margin:0; display:inline;} +#sysbtn ul {margin:0; padding:0; float:left; display:inline;} +#sysbtn li {list-style-type:none; margin:0 auto; padding:0 0 0 3px; float:left; display:inline;} + +#sysbtn1 {text-align:left; padding-top:10px; padding-bottom:0px; margin-bottom:0px; width:680px;} +#sysbtn1 ul {margin:0; padding:0; float:left; display:inline;} +#sysbtn1 li {list-style-type:none; margin:0 0 0 0; padding:0 0 0 3px; float:left; display:inline;} +#idwrap {float:left; padding-top:0px; padding-bottom:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; margin-top:0px; padding-left:0px; padding-right:0px; } +#idwrap ul {float:left; padding:0; margin:0;} +#idwrap li {list-style-type:none; float:left; margin:0; padding-right:3px;} +button {cursor:hand; border:0px solid #FFFFFF; padding:0px 0px 0px 0px; background-color:#FFFFFF; white-space:nowrap;} +.btn_blue_l {float:left; background:url(../../images/egovframework/example/btn_bg_l.gif) 0 0 no-repeat; height:20px; padding:0px 0px 0px 10px; margin:0px 0px 0px 0px;} +.btn_blue_r {float:left; background:url(../../images/egovframework/example/btn_bg_r.gif) 0 0 no-repeat; background-position:right; height:20px; font-family:"돋움"; font-size:11px; color:#000000; margin:0px 0px 0px 0px; padding-top:0px; _padding-top:0px; padding-left:10px; padding-right:10px; padding-bottom:0px; text-align:center;} +input { height:20px; font-family:"돋움"; font-size:12px; color:#000000; padding:2px 2px 0px 2px; margin-top:0px; _margin-top:-1px;} +select {font-family:'돋움'; font-size:12px; margin-top:0px; height:20px; padding-top:0px;} +.tbtd_caption {font-weight:bold; color:#003366; background-color:#E5EDF3; text-align:right; padding:10px 10px 9px 5px; margin:0;} +.tbtd_content {background-color:#F5F8FA; padding:7px 10px 5px 10px; margin:0;} +.tbtd_caption_re {font-weight:bold; color:#666633; background-color:#F6F5E5; text-align:right; padding:10px 10px 9px 5px; margin:0;} +.tbtd_content_re {background-color:#F9F9F2; padding:7px 10px 5px 10px; margin:0;} +input.txt {height:18px; background-color:#FFF; border:1px solid #BCC8D8; padding-top:2px; color:#5e5e5e; cursor:text;} +input.essentiality {height:18px; background-color:#ebebeb; border:1px solid #BCC8D8; padding-top:2px; color:#000; cursor:text;} \ No newline at end of file diff --git a/target/isd_demo-1.0.0/images/egovframework/cmmn/btn_page_next1.gif b/target/isd_demo-1.0.0/images/egovframework/cmmn/btn_page_next1.gif new file mode 100644 index 0000000..bb3c1eb Binary files /dev/null and b/target/isd_demo-1.0.0/images/egovframework/cmmn/btn_page_next1.gif differ diff --git a/target/isd_demo-1.0.0/images/egovframework/cmmn/btn_page_next10.gif b/target/isd_demo-1.0.0/images/egovframework/cmmn/btn_page_next10.gif new file mode 100644 index 0000000..d7ecd00 Binary files /dev/null and b/target/isd_demo-1.0.0/images/egovframework/cmmn/btn_page_next10.gif differ diff --git a/target/isd_demo-1.0.0/images/egovframework/cmmn/btn_page_pre1.gif b/target/isd_demo-1.0.0/images/egovframework/cmmn/btn_page_pre1.gif new file mode 100644 index 0000000..a16f585 Binary files /dev/null and b/target/isd_demo-1.0.0/images/egovframework/cmmn/btn_page_pre1.gif differ diff --git a/target/isd_demo-1.0.0/images/egovframework/cmmn/btn_page_pre10.gif b/target/isd_demo-1.0.0/images/egovframework/cmmn/btn_page_pre10.gif new file mode 100644 index 0000000..4dbb26e Binary files /dev/null and b/target/isd_demo-1.0.0/images/egovframework/cmmn/btn_page_pre10.gif differ diff --git a/target/isd_demo-1.0.0/images/egovframework/example/btn_bg_l.gif b/target/isd_demo-1.0.0/images/egovframework/example/btn_bg_l.gif new file mode 100644 index 0000000..11341a6 Binary files /dev/null and b/target/isd_demo-1.0.0/images/egovframework/example/btn_bg_l.gif differ diff --git a/target/isd_demo-1.0.0/images/egovframework/example/btn_bg_r.gif b/target/isd_demo-1.0.0/images/egovframework/example/btn_bg_r.gif new file mode 100644 index 0000000..be5b8c5 Binary files /dev/null and b/target/isd_demo-1.0.0/images/egovframework/example/btn_bg_r.gif differ diff --git a/target/isd_demo-1.0.0/images/egovframework/example/civilappeal_topmn_bg.jpg b/target/isd_demo-1.0.0/images/egovframework/example/civilappeal_topmn_bg.jpg new file mode 100644 index 0000000..50a3a4d Binary files /dev/null and b/target/isd_demo-1.0.0/images/egovframework/example/civilappeal_topmn_bg.jpg differ diff --git a/target/isd_demo-1.0.0/images/egovframework/example/paging_line.gif b/target/isd_demo-1.0.0/images/egovframework/example/paging_line.gif new file mode 100644 index 0000000..0fa7654 Binary files /dev/null and b/target/isd_demo-1.0.0/images/egovframework/example/paging_line.gif differ diff --git a/target/isd_demo-1.0.0/images/egovframework/example/th_bg.gif b/target/isd_demo-1.0.0/images/egovframework/example/th_bg.gif new file mode 100644 index 0000000..e3f80fc Binary files /dev/null and b/target/isd_demo-1.0.0/images/egovframework/example/th_bg.gif differ diff --git a/target/isd_demo-1.0.0/images/egovframework/example/title_dot.gif b/target/isd_demo-1.0.0/images/egovframework/example/title_dot.gif new file mode 100644 index 0000000..f2658f9 Binary files /dev/null and b/target/isd_demo-1.0.0/images/egovframework/example/title_dot.gif differ diff --git a/target/isd_demo-1.0.0/index.jsp b/target/isd_demo-1.0.0/index.jsp new file mode 100644 index 0000000..bdcfec4 --- /dev/null +++ b/target/isd_demo-1.0.0/index.jsp @@ -0,0 +1,2 @@ +<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> + \ No newline at end of file diff --git a/target/m2e-wtp/web-resources/META-INF/MANIFEST.MF b/target/m2e-wtp/web-resources/META-INF/MANIFEST.MF new file mode 100644 index 0000000..9ee0fea --- /dev/null +++ b/target/m2e-wtp/web-resources/META-INF/MANIFEST.MF @@ -0,0 +1,4 @@ +Manifest-Version: 1.0 +Build-Jdk-Spec: 11 +Created-By: Maven Integration for Eclipse + diff --git a/target/m2e-wtp/web-resources/META-INF/maven/egovframework.com.mtdata/isd_demo/pom.properties b/target/m2e-wtp/web-resources/META-INF/maven/egovframework.com.mtdata/isd_demo/pom.properties new file mode 100644 index 0000000..5b7fa92 --- /dev/null +++ b/target/m2e-wtp/web-resources/META-INF/maven/egovframework.com.mtdata/isd_demo/pom.properties @@ -0,0 +1,7 @@ +#Generated by Maven Integration for Eclipse +#Wed Mar 06 17:18:53 KST 2024 +m2e.projectLocation=C\:\\eGovFrame-4.1.0\\bin\\eclipse\\workspace\\isd_demo +m2e.projectName=isd_demo +groupId=egovframework.com.mtdata +artifactId=isd_demo +version=1.0.0 diff --git a/target/m2e-wtp/web-resources/META-INF/maven/egovframework.com.mtdata/isd_demo/pom.xml b/target/m2e-wtp/web-resources/META-INF/maven/egovframework.com.mtdata/isd_demo/pom.xml new file mode 100644 index 0000000..c573b5d --- /dev/null +++ b/target/m2e-wtp/web-resources/META-INF/maven/egovframework.com.mtdata/isd_demo/pom.xml @@ -0,0 +1,355 @@ + + + 4.0.0 + egovframework.com.mtdata + isd_demo + war + 1.0.0 + isd_demo + http://www.egovframe.go.kr + + + + The Apache Software License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + + + + + 5.3.20 + 4.1.0 + + + + + mvn2s + https://repo1.maven.org/maven2/ + + true + + + true + + + + egovframe + https://maven.egovframe.go.kr/maven/ + + true + + + false + + + + + + + + org.egovframe.rte + org.egovframe.rte.ptl.mvc + ${org.egovframe.rte.version} + + + commons-logging + commons-logging + + + + + org.egovframe.rte + org.egovframe.rte.psl.dataaccess + ${org.egovframe.rte.version} + + + org.egovframe.rte + org.egovframe.rte.fdl.idgnr + ${org.egovframe.rte.version} + + + org.egovframe.rte + org.egovframe.rte.fdl.property + ${org.egovframe.rte.version} + + + + javax.servlet + javax.servlet-api + provided + 3.1.0 + + + javax.servlet.jsp.jstl + jstl-api + 1.2 + + + taglibs + standard + 1.1.2 + + + org.antlr + antlr + 3.5 + + + org.hsqldb + hsqldb + 2.5.2 + + + + + log4j + log4j + 1.2.17 + + + + + org.projectlombok + lombok + 1.18.30 + provided + + + + + org.yaml + snakeyaml + 2.2 + + + + + com.googlecode.log4jdbc + log4jdbc + 1.2 + + + slf4j-api + org.slf4j + + + + + + org.apache.commons + commons-dbcp2 + 2.9.0 + + + + org.postgresql + postgresql + 42.7.0 + + + + mysql + mysql-connector-java + 8.0.29 + + + + + + com.fasterxml.jackson.core + jackson-databind + 2.16.0 + + + + + + + install + ${basedir}/target + ${artifactId}-${version} + + + + org.codehaus.cargo + cargo-maven3-plugin + 1.9.13 + + + tomcat8x + embedded + + + + 8080 + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.10.1 + + 11 + 11 + UTF-8 + + + + org.apache.maven.plugins + maven-war-plugin + 3.3.2 + + false + + + + org.codehaus.mojo + hibernate3-maven-plugin + 3.0 + + + + hbm2ddl + annotationconfiguration + + + + + + org.hsqldb + hsqldb + 2.5.2 + + + + + + org.codehaus.mojo + emma-maven-plugin + 1.0-alpha-3 + + + + org.apache.maven.plugins + maven-pmd-plugin + 3.17.0 + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.22.2 + + true + once + xml + + **/Abstract*.java + **/*Suite.java + + + **/*Test.java + + + + + org.codehaus.mojo + emma-maven-plugin + true + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.4.0 + + + + + ${basedir}/target/site + + + org.apache.maven.plugins + maven-project-info-reports-plugin + 3.3.0 + + + sunlink + + javadoc + + true + + + https://docs.oracle.com/javase/8/docs/api/ + + + + + + + + org.codehaus.mojo + emma-maven-plugin + true + + + org.codehaus.mojo + surefire-report-maven-plugin + true + + + + report-only + + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + + 128m + 512m + ${encoding} + ${encoding} + ${encoding} + + + + + org.apache.maven.plugins + maven-jxr-plugin + + ${encoding} + ${encoding} + true + apidocs + + + + + diff --git a/target/maven-archiver/pom.properties b/target/maven-archiver/pom.properties new file mode 100644 index 0000000..6cdd74a --- /dev/null +++ b/target/maven-archiver/pom.properties @@ -0,0 +1,3 @@ +artifactId=isd_demo +groupId=egovframework.com.mtdata +version=1.0.0 diff --git a/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst new file mode 100644 index 0000000..2780dc1 --- /dev/null +++ b/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst @@ -0,0 +1,12 @@ +egovframework\com\mtdata\main\vo\SampleVO.class +egovframework\com\mtdata\database\mapper\DatabaseMapper.class +egovframework\com\mtdata\main\vo\SampleDefaultVO.class +egovframework\com\mtdata\cmmn\vo\BasicVO.class +egovframework\com\mtdata\database\service\impl\DatabaseServiceImpl.class +egovframework\com\mtdata\database\vo\DatabaseInfoVO.class +egovframework\com\mtdata\schema\service\DatabaseSchemaViewer.class +egovframework\com\mtdata\main\service\MainService.class +egovframework\com\mtdata\database\web\DatabaseConnController.class +egovframework\com\mtdata\database\service\DatabaseService.class +egovframework\com\mtdata\cmmn\web\EgovImgPaginationRenderer.class +egovframework\com\mtdata\cmmnty\vo\CmmntyVO.class diff --git a/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst new file mode 100644 index 0000000..972a1c0 --- /dev/null +++ b/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -0,0 +1,24 @@ +C:\eGovFrame-4.1.0\bin\eclipse\workspace\isd_demo\src\main\java\egovframework\com\mtdata\cmmn\web\EgovBindingInitializer.java +C:\eGovFrame-4.1.0\bin\eclipse\workspace\isd_demo\src\main\java\egovframework\com\mtdata\main\vo\SampleDefaultVO.java +C:\eGovFrame-4.1.0\bin\eclipse\workspace\isd_demo\src\main\java\egovframework\com\mtdata\schema\service\impl\MySQLSchemaViewerImpl.java +C:\eGovFrame-4.1.0\bin\eclipse\workspace\isd_demo\src\main\java\egovframework\com\mtdata\database\mapper\DatabaseMapper.java +C:\eGovFrame-4.1.0\bin\eclipse\workspace\isd_demo\src\main\java\egovframework\com\mtdata\cmmnty\service\impl\CmmntyServiceImpl.java +C:\eGovFrame-4.1.0\bin\eclipse\workspace\isd_demo\src\main\java\egovframework\com\mtdata\main\service\MainService.java +C:\eGovFrame-4.1.0\bin\eclipse\workspace\isd_demo\src\main\java\egovframework\com\mtdata\main\service\impl\MainServiceImpl.java +C:\eGovFrame-4.1.0\bin\eclipse\workspace\isd_demo\src\main\java\egovframework\com\mtdata\cmmn\web\EgovImgPaginationRenderer.java +C:\eGovFrame-4.1.0\bin\eclipse\workspace\isd_demo\src\main\java\egovframework\com\mtdata\config\dbConn\mySql\CreateYaml.java +C:\eGovFrame-4.1.0\bin\eclipse\workspace\isd_demo\src\main\java\egovframework\com\mtdata\cmmn\EgovSampleOthersExcepHndlr.java +C:\eGovFrame-4.1.0\bin\eclipse\workspace\isd_demo\src\main\java\egovframework\com\mtdata\cmmnty\service\CmmntyService.java +C:\eGovFrame-4.1.0\bin\eclipse\workspace\isd_demo\src\main\java\egovframework\com\mtdata\cmmnty\vo\CmmntyVO.java +C:\eGovFrame-4.1.0\bin\eclipse\workspace\isd_demo\src\main\java\egovframework\com\mtdata\cmmn\EgovSampleExcepHndlr.java +C:\eGovFrame-4.1.0\bin\eclipse\workspace\isd_demo\src\main\java\egovframework\com\mtdata\main\web\MainController.java +C:\eGovFrame-4.1.0\bin\eclipse\workspace\isd_demo\src\main\java\egovframework\com\mtdata\cmmnty\web\CmmntyController.java +C:\eGovFrame-4.1.0\bin\eclipse\workspace\isd_demo\src\main\java\egovframework\com\mtdata\database\web\DatabaseConnController.java +C:\eGovFrame-4.1.0\bin\eclipse\workspace\isd_demo\src\main\java\egovframework\com\mtdata\database\service\DatabaseService.java +C:\eGovFrame-4.1.0\bin\eclipse\workspace\isd_demo\src\main\java\egovframework\com\mtdata\cmmn\vo\BasicVO.java +C:\eGovFrame-4.1.0\bin\eclipse\workspace\isd_demo\src\main\java\egovframework\com\mtdata\database\service\impl\DatabaseServiceImpl.java +C:\eGovFrame-4.1.0\bin\eclipse\workspace\isd_demo\src\main\java\egovframework\com\mtdata\schema\service\DatabaseSchemaViewer.java +C:\eGovFrame-4.1.0\bin\eclipse\workspace\isd_demo\src\main\java\egovframework\com\mtdata\main\vo\SampleVO.java +C:\eGovFrame-4.1.0\bin\eclipse\workspace\isd_demo\src\main\java\egovframework\com\mtdata\cmmnty\mapper\CmmntyMapper.java +C:\eGovFrame-4.1.0\bin\eclipse\workspace\isd_demo\src\main\java\egovframework\com\mtdata\main\mapper\MainDAO.java +C:\eGovFrame-4.1.0\bin\eclipse\workspace\isd_demo\src\main\java\egovframework\com\mtdata\database\vo\DatabaseInfoVO.java diff --git a/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst new file mode 100644 index 0000000..e69de29 diff --git a/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst new file mode 100644 index 0000000..e69de29