refactor: 불필요한 import 제거
parent
9165ea6c56
commit
bf0cc86d1c
95
.classpath
95
.classpath
|
|
@ -29,10 +29,99 @@
|
||||||
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
|
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
|
||||||
</attributes>
|
</attributes>
|
||||||
</classpathentry>
|
</classpathentry>
|
||||||
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/ClipReport4.0-1.0.0.301.jar"/>
|
|
||||||
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/ClipReport4.0-Common.jar"/>
|
|
||||||
<classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v8.5"/>
|
<classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v8.5"/>
|
||||||
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/classes"/>
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/classes"/>
|
||||||
<classpathentry kind="lib" path="D:/app_geoinfo/app/eclipse/workspace/geoinfo_eGov_work/src/main/webapp/WEB-INF/lib/json-simple-1.1.1.jar"/>
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/json-simple-1.1.1.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/activation.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/APStatusInquiryService.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/APSubmitService.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/APWithdrawService.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/arcims_jconnect.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/ariuploader-server-2.0.7_jdk14.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/ariuploader-server-2.0.7_jdk15.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/axis.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/axis-ant.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/batik-1.8.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/bcprov-jdk14-138.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/bcprov-jdk15-140.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/castor-0.9.6.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/ClipReport4.0-1.0.0.89.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/com.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/commons-beanutils-1.9.2.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/commons-codec-1.9.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/commons-collections-3.2.1.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/commons-collections-3.2.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/commons-dbcp-1.4.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/commons-dbutils-1.1.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/commons-discovery-0.2.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/commons-fileupload-1.2.1.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/commons-io-1.4.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/commons-lang.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/commons-lang-2.3.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/commons-logging-1.1.1.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/commons-logging-1.03.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/commons-net-1.4.1.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/commons-pool-1.5.4.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/cos.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/EmpService.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/ezmorph-1.0.6.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/fckeditor-java-core-2.6.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/filters.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/gnu-regexp-1.1.4.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/gpin-sp-1.4.0.2.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/gpin-sp-ext-1.4.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/h2-1.3.176.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/httpclient-4.1.1.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/httpclient-cache-4.1.1.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/httpcore-4.1.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/httpmime-4.1.1.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/ictway.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/iText-4.2.0.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/jakarta-oro-2.0.8.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/Jama-1.0.3.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/javaproj-1.0.6.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/jaxrpc.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/jazzlib.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/jce-jdk13-125.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/jcommon-1.0.18.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/jcommon-1.0.18-junit.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/jcommon-xml-1.0.18.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/jdom-2.0.5.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/jfreechart-1.0.14.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/joda-time-2.1.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/json-20080701.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/json-lib-2.4-jdk15.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/jts-1.8.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/jtsio-1.8.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/jxl.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/log4j-1.2.5.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/log4j-1.2.15.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/miplatform-bsb-3.2.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/MLSendService.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/mysql.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/ojdbc6-11.2.0.4.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/ojdbc14-10.2.0.4.0.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/OrgService.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/owsprojection.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/parser.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/proj4j.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/Rexpert30-JDK14-2014-05-15-LOCK.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/RexToolkit-2.0.0.40-RexSOPToolkit.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/saaj.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/saml-1.4.0.2.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/sapjco.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/serializer.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/servlet.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/servlet-api.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/ShapeAndImageMaker.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/ShapeMakerOnly.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/sp-proxy-1.4.0.2.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/wsdl4j-1.5.1.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/xalan.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/xercesImpl.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/xml-apis.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/xmldsig.jar"/>
|
||||||
|
<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/xml-security-1.4.0.2.jar"/>
|
||||||
|
<classpathentry kind="lib" path="C:/Users/dbnt/Desktop/git/geoinfo.or.kr/old-geoinfo-or-kr-admin/src/main/webapp/WEB-INF/lib/ICERTSecu_JDK17.jar"/>
|
||||||
<classpathentry kind="output" path="target/classes"/>
|
<classpathentry kind="output" path="target/classes"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
|
|
|
||||||
|
|
@ -1,26 +1,11 @@
|
||||||
src\main\webapp\css\admins\style.css
|
#게시판 - 자료실에 파일 업로드 안 되는 문제 수정 건
|
||||||
src\main\webapp\css\admins\style.css.map
|
#src\main\resources\egovframework\egovProps\globals.properties
|
||||||
src\main\webapp\images\admins\frame\top_menu.gif
|
src\main\java\geoinfo\admins\board\CommunityController.java
|
||||||
src\main\webapp\WEB-INF\views\admins\frame\top.jsp
|
src\main\java\geoinfo\admins\board\GroundReportController.java
|
||||||
src\main\webapp\WEB-INF\views\admins\main\index.jsp
|
src\main\java\geoinfo\admins\board\RefrncRoomController.java
|
||||||
src\main\webapp\WEB-INF\views\admins\main\main.jsp
|
src\main\java\geoinfo\admins\chLog\service\impl\DownloadAppServiceImpl.java
|
||||||
src\main\webapp\WEB-INF\views\admins\constructionProjectManagement\00.jsp
|
src\main\java\geoinfo\admins\chLog\ChInfoController.java
|
||||||
src\main\webapp\WEB-INF\views\admins\constructionProjectManagement\left.jsp
|
src\main\java\geoinfo\admins\chLog\DownloadAppController.java
|
||||||
src\main\webapp\WEB-INF\views\admins\constructionProjectManagement\construction-project-statistics-index.jsp
|
src\main\java\geoinfo\admins\notice\NoticeMngController.java
|
||||||
src\main\webapp\images\admins\constructionProjectManagement\1_tit_01.gif
|
|
||||||
src\main\java\geoinfo\admins\constructionProjectManagement\ConstructionProjectManagementController.java
|
|
||||||
src\main\webapp\js\admins\chart.js
|
|
||||||
#일반사용자관리 첫 화면 사용자 목록 안 보이도록 하기
|
|
||||||
src\main\webapp\WEB-INF\views\admins\frame\top.jsp
|
|
||||||
src\main\webapp\WEB-INF\views\admins\main\index.jsp
|
|
||||||
src\main\webapp\WEB-INF\views\admins\main\main.jsp
|
|
||||||
src\main\java\geoinfo\admins\user\GeneralUserMngController.java
|
src\main\java\geoinfo\admins\user\GeneralUserMngController.java
|
||||||
src\main\webapp\WEB-INF\views\admins\user\00.jsp
|
src\main\java\geoinfo\com\file\FileController.java
|
||||||
src\main\webapp\js\admins\adlogin.js
|
|
||||||
src\main\webapp\WEB-INF\views\admins\main\index.jsp
|
|
||||||
src\main\webapp\WEB-INF\views\admins\frame\mainframe.jsp
|
|
||||||
src\main\resources\geoinfo\sqlmap\mappers\admins\main\Login_SQL.xml
|
|
||||||
src\main\java\geoinfo\admins\main\service\MainMapper.java
|
|
||||||
src\main\java\geoinfo\admins\main\service\impl\MainServiceImpl.java
|
|
||||||
src\main\java\geoinfo\admins\main\service\MainService.java
|
|
||||||
src\main\java\geoinfo\admins\main\MainController.java
|
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,8 @@ import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||||
public class CommunityController {
|
public class CommunityController {
|
||||||
@Resource(name = "communityService")
|
@Resource(name = "communityService")
|
||||||
private CommunityService masterService;
|
private CommunityService masterService;
|
||||||
private final String savePath = EgovProperties.getProperty("Geoinfo.FilePath");
|
private final String savePath = EgovProperties.getProperty("Geoinfo.FilePath.User");
|
||||||
|
|
||||||
|
|
||||||
@RequestMapping(value = "admins/board/12.do")
|
@RequestMapping(value = "admins/board/12.do")
|
||||||
public String board00( @RequestParam HashMap<String, Object> params, ModelMap model, HttpServletResponse response, HttpServletRequest request) throws Exception {
|
public String board00( @RequestParam HashMap<String, Object> params, ModelMap model, HttpServletResponse response, HttpServletRequest request) throws Exception {
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ public class GroundReportController {
|
||||||
private static final Logger LOGGER = Logger.getLogger(RefrncRoomController.class.getName());
|
private static final Logger LOGGER = Logger.getLogger(RefrncRoomController.class.getName());
|
||||||
|
|
||||||
// 운영서버 실제 경로
|
// 운영서버 실제 경로
|
||||||
private final String savePath = EgovProperties.getProperty("Geoinfo.FilePath");
|
private final String savePath = EgovProperties.getProperty("Geoinfo.FilePath.User");
|
||||||
//private final String savePath = "C:\\app\\files\\ground_report";
|
//private final String savePath = "C:\\app\\files\\ground_report";
|
||||||
|
|
||||||
@RequestMapping(value = "admins/greport/13.do")
|
@RequestMapping(value = "admins/greport/13.do")
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ public class RefrncRoomController {
|
||||||
@Resource(name = "refrncRoomService")
|
@Resource(name = "refrncRoomService")
|
||||||
private RefrncRoomService masterService;
|
private RefrncRoomService masterService;
|
||||||
|
|
||||||
private final String savePath = EgovProperties.getProperty("Geoinfo.FilePath");
|
private final String savePath = EgovProperties.getProperty("Geoinfo.FilePath.User");
|
||||||
|
|
||||||
@RequestMapping(value = "admins/board/01.do")
|
@RequestMapping(value = "admins/board/01.do")
|
||||||
public String board01( @RequestParam HashMap<String, Object> params, ModelMap model, HttpServletResponse response, HttpServletRequest request) throws Exception {
|
public String board01( @RequestParam HashMap<String, Object> params, ModelMap model, HttpServletResponse response, HttpServletRequest request) throws Exception {
|
||||||
|
|
@ -123,8 +123,34 @@ public class RefrncRoomController {
|
||||||
params.put("saveName1", saveName1);
|
params.put("saveName1", saveName1);
|
||||||
params.put("fileName1", fileName1.getOriginalFilename());
|
params.put("fileName1", fileName1.getOriginalFilename());
|
||||||
|
|
||||||
|
File directory = new File(savePath);
|
||||||
|
|
||||||
|
if (directory.exists() && directory.isDirectory()) {
|
||||||
|
} else {
|
||||||
|
System.out.println("\n--------------------------------------------------------------\n" +
|
||||||
|
request.getRequestURI() + " OUT: 디렉토리가 존재하지 않습니다." +
|
||||||
|
"\n--------------------------------------------------------------\n" +
|
||||||
|
"EgovProperties.getProperty(\"Geoinfo.FilePath.User\"):[" + savePath + "]\n" +
|
||||||
|
"\n--------------------------------------------------------------\n");
|
||||||
|
jsonMap.put("FilePath", savePath);
|
||||||
|
if (directory.mkdirs()) {
|
||||||
|
System.out.println("디렉토리가 성공적으로 생성되었습니다.");
|
||||||
|
} else {
|
||||||
|
// 디렉토리 생성 실패
|
||||||
|
if (savePath.startsWith("D:\\")) {
|
||||||
|
File eDrive = new File("D:\\");
|
||||||
|
if (!eDrive.exists()) {
|
||||||
|
throw new IOException("D: 드라이브가 존재하지 않습니다.");
|
||||||
|
} else {
|
||||||
|
throw new IOException("디렉토리 생성에 실패했습니다.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
throw new IOException("디렉토리 생성에 실패했습니다.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
File saveFile = new File(savePath, FilenameUtils.getName(saveName1));
|
File saveFile = new File(savePath, FilenameUtils.getName(saveName1));
|
||||||
fileName1.transferTo(saveFile);
|
fileName1.transferTo(saveFile);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(fileName2.getOriginalFilename().equals("")) {
|
if(fileName2.getOriginalFilename().equals("")) {
|
||||||
|
|
|
||||||
|
|
@ -24,15 +24,11 @@ import javax.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
import org.apache.commons.io.FilenameUtils;
|
import org.apache.commons.io.FilenameUtils;
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.log4j.Logger;
|
||||||
import org.apache.poi.hssf.usermodel.HSSFRow;
|
|
||||||
import org.apache.poi.hssf.usermodel.HSSFSheet;
|
|
||||||
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
||||||
import org.apache.poi.ss.usermodel.CellStyle;
|
|
||||||
import org.apache.poi.ss.usermodel.Sheet;
|
import org.apache.poi.ss.usermodel.Sheet;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.ui.ModelMap;
|
import org.springframework.ui.ModelMap;
|
||||||
import org.springframework.util.FileCopyUtils;
|
import org.springframework.util.FileCopyUtils;
|
||||||
import org.springframework.web.bind.annotation.RequestBody;
|
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestMethod;
|
import org.springframework.web.bind.annotation.RequestMethod;
|
||||||
import org.springframework.web.bind.annotation.RequestParam;
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
|
@ -43,7 +39,6 @@ import com.fasterxml.jackson.databind.ObjectMapper;
|
||||||
import egovframework.com.cmm.service.EgovProperties;
|
import egovframework.com.cmm.service.EgovProperties;
|
||||||
import egovframework.rte.psl.dataaccess.util.EgovMap;
|
import egovframework.rte.psl.dataaccess.util.EgovMap;
|
||||||
import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo;
|
import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo;
|
||||||
import geoinfo.admins.board.RefrncRoomController;
|
|
||||||
import geoinfo.admins.chLog.service.ChInfoService;
|
import geoinfo.admins.chLog.service.ChInfoService;
|
||||||
import geoinfo.com.EgovExcel;
|
import geoinfo.com.EgovExcel;
|
||||||
import geoinfo.com.GeoinfoCommon;
|
import geoinfo.com.GeoinfoCommon;
|
||||||
|
|
@ -72,12 +67,12 @@ public class ChInfoController {
|
||||||
@Resource(name = "chInfoService")
|
@Resource(name = "chInfoService")
|
||||||
private ChInfoService masterService;
|
private ChInfoService masterService;
|
||||||
|
|
||||||
private static final Logger LOGGER = Logger.getLogger(RefrncRoomController.class.getName());
|
private static final Logger LOGGER = Logger.getLogger(ChInfoController.class.getName());
|
||||||
|
|
||||||
// 운영서버 경로
|
// 운영서버 경로
|
||||||
// private final String savePath = "D:\\Tomcat6\\geoinfoEgov\\webapps\\geoinfo\\files";
|
// private final String savePath = "D:\\Tomcat6\\geoinfoEgov\\webapps\\geoinfo\\files";
|
||||||
// 개발서버 경로
|
// 개발서버 경로
|
||||||
private final String savePath = EgovProperties.getProperty("Geoinfo.FilePath");
|
private final String savePath = EgovProperties.getProperty("Geoinfo.FilePath.User");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 관리자시스템 > 유통/공급 통계분석 > 유통정보 > 날짜별 리스트
|
* 관리자시스템 > 유통/공급 통계분석 > 유통정보 > 날짜별 리스트
|
||||||
|
|
@ -865,113 +860,4 @@ public class ChInfoController {
|
||||||
return transposedList;
|
return transposedList;
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequestMapping(value = "admins/downloadExcel.do", method = RequestMethod.POST)
|
|
||||||
public void downloadExcel(@RequestParam HashMap<String, Object> params, HSSFWorkbook workbook, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
|
||||||
|
|
||||||
String pId = (String) params.get("pId");
|
|
||||||
String resultListJson = (String) params.get("resultList");
|
|
||||||
|
|
||||||
ObjectMapper mapper = new ObjectMapper();
|
|
||||||
List<List<Object>> result = mapper.readValue(resultListJson, new TypeReference<List<List<Object>>>(){});
|
|
||||||
|
|
||||||
String fileName = "";
|
|
||||||
String sheetName = "";
|
|
||||||
|
|
||||||
switch (pId) {
|
|
||||||
case "11":
|
|
||||||
fileName = "공종별등록정보_";
|
|
||||||
sheetName = "공종별등록정보";
|
|
||||||
break;
|
|
||||||
case "12":
|
|
||||||
fileName = "공정별등록정보_";
|
|
||||||
sheetName = "공정별등록정보";
|
|
||||||
break;
|
|
||||||
case "13":
|
|
||||||
fileName = "시도별등록정보_";
|
|
||||||
sheetName = "시도별등록정보";
|
|
||||||
break;
|
|
||||||
case "14":
|
|
||||||
String sidoCode = (String) params.get("sidoCode");
|
|
||||||
switch (sidoCode) {
|
|
||||||
case "04:":
|
|
||||||
fileName = "시군구별_서울특별시_";
|
|
||||||
sheetName = "시군구별_서울특별시";
|
|
||||||
break;
|
|
||||||
case "05:":
|
|
||||||
fileName = "시군구별_부산광역시_";
|
|
||||||
sheetName = "시군구별_부산광역시";
|
|
||||||
break;
|
|
||||||
case "06:":
|
|
||||||
fileName = "시군구별_광주광역시_";
|
|
||||||
sheetName = "시군구별_광주광역시";
|
|
||||||
break;
|
|
||||||
case "07:":
|
|
||||||
fileName = "시군구별_대전광역시_";
|
|
||||||
sheetName = "시군구별_대전광역시";
|
|
||||||
break;
|
|
||||||
case "08:":
|
|
||||||
fileName = "시군구별_대구광역시_";
|
|
||||||
sheetName = "시군구별_대구광역시";
|
|
||||||
break;
|
|
||||||
case "09:":
|
|
||||||
fileName = "시군구별_인천광역시_";
|
|
||||||
sheetName = "시군구별_인천광역시";
|
|
||||||
break;
|
|
||||||
case "10:":
|
|
||||||
fileName = "시군구별_울산광역시_";
|
|
||||||
sheetName = "시군구별_울산광역시";
|
|
||||||
break;
|
|
||||||
case "11:":
|
|
||||||
fileName = "시군구별_경기도_";
|
|
||||||
sheetName = "시군구별_경기도";
|
|
||||||
break;
|
|
||||||
case "12:":
|
|
||||||
fileName = "시군구별_강원도_";
|
|
||||||
sheetName = "시군구별_강원도";
|
|
||||||
break;
|
|
||||||
case "13:":
|
|
||||||
fileName = "시군구별_충청북도_";
|
|
||||||
sheetName = "시군구별_충청북도";
|
|
||||||
break;
|
|
||||||
case "14:":
|
|
||||||
fileName = "시군구별_충청남도_";
|
|
||||||
sheetName = "시군구별_충청남도";
|
|
||||||
break;
|
|
||||||
case "15:":
|
|
||||||
fileName = "시군구별_경상북도_";
|
|
||||||
sheetName = "시군구별_경상북도";
|
|
||||||
break;
|
|
||||||
case "16:":
|
|
||||||
fileName = "시군구별_경상남도_";
|
|
||||||
sheetName = "시군구별_경상남도";
|
|
||||||
break;
|
|
||||||
case "17:":
|
|
||||||
fileName = "시군구별_전라북도_";
|
|
||||||
sheetName = "시군구별_전라북도";
|
|
||||||
break;
|
|
||||||
case "18:":
|
|
||||||
fileName = "시군구별_전라남도_";
|
|
||||||
sheetName = "시군구별_전라남도";
|
|
||||||
break;
|
|
||||||
case "19:":
|
|
||||||
fileName = "시군구별_제주특별자치도_";
|
|
||||||
sheetName = "시군구별_제주특별자치도";
|
|
||||||
break;
|
|
||||||
case "20:":
|
|
||||||
fileName = "시군구별_세종특별자치시_";
|
|
||||||
sheetName = "시군구별_세종특별자치시";
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
HashMap<String, Object> map = new HashMap<String, Object>();
|
|
||||||
|
|
||||||
map.put("selectInfoListExcel", result);
|
|
||||||
map.put("fileName", fileName);
|
|
||||||
map.put("sheetName", sheetName);
|
|
||||||
|
|
||||||
buildExcelDocument(map, workbook, request, response);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -283,7 +283,7 @@ public class DownloadAppController {
|
||||||
// 한글 파일이름 깨질 경우
|
// 한글 파일이름 깨질 경우
|
||||||
// String docName = new String(GeoinfoCommon.parseData(fileName).getBytes("8859_1"), "utf-8");
|
// String docName = new String(GeoinfoCommon.parseData(fileName).getBytes("8859_1"), "utf-8");
|
||||||
//String filePath = "D:\\Tomcat6\\geoinfoEgov\\webapps\\geoinfo\\files";
|
//String filePath = "D:\\Tomcat6\\geoinfoEgov\\webapps\\geoinfo\\files";
|
||||||
String filePath = EgovProperties.getProperty("Geoinfo.FilePath");
|
String filePath = EgovProperties.getProperty("Geoinfo.FilePath.User");
|
||||||
|
|
||||||
OutputStream os = response.getOutputStream();
|
OutputStream os = response.getOutputStream();
|
||||||
FileInputStream fis = null;
|
FileInputStream fis = null;
|
||||||
|
|
|
||||||
|
|
@ -208,7 +208,7 @@ public class DownloadAppServiceImpl implements DownloadAppService {
|
||||||
HashMap<String, Object> params, MultipartHttpServletRequest multiRequest) throws Exception{
|
HashMap<String, Object> params, MultipartHttpServletRequest multiRequest) throws Exception{
|
||||||
|
|
||||||
//String savePath = "D:\\Tomcat6\\geoinfoEgov\\webapps\\geoinfo\\files"
|
//String savePath = "D:\\Tomcat6\\geoinfoEgov\\webapps\\geoinfo\\files"
|
||||||
String savePath = EgovProperties.getProperty("Geoinfo.FilePath");
|
String savePath = EgovProperties.getProperty("Geoinfo.FilePath.User");
|
||||||
Calendar calendar = Calendar.getInstance();
|
Calendar calendar = Calendar.getInstance();
|
||||||
java.util.Date date = calendar.getTime();
|
java.util.Date date = calendar.getTime();
|
||||||
String today = (new SimpleDateFormat("yyyyMMddHHmmss").format(date));
|
String today = (new SimpleDateFormat("yyyyMMddHHmmss").format(date));
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@ public class NoticeMngController {
|
||||||
@Resource(name = "noticeMngService")
|
@Resource(name = "noticeMngService")
|
||||||
private NoticeMngService masterService;
|
private NoticeMngService masterService;
|
||||||
|
|
||||||
private final String noticeFilePath = EgovProperties.getProperty("Geoinfo.FilePath");
|
private final String noticeFilePath = EgovProperties.getProperty("Geoinfo.FilePath.User");
|
||||||
|
|
||||||
@RequestMapping(value = "admins/notice/00.do")
|
@RequestMapping(value = "admins/notice/00.do")
|
||||||
public String selectInfoList(@RequestParam HashMap<String, Object> params, ModelMap model, HttpServletResponse response, HttpServletRequest request) throws Exception {
|
public String selectInfoList(@RequestParam HashMap<String, Object> params, ModelMap model, HttpServletResponse response, HttpServletRequest request) throws Exception {
|
||||||
|
|
|
||||||
|
|
@ -78,7 +78,7 @@ public class GeneralUserMngController {
|
||||||
// 운영서버 경로
|
// 운영서버 경로
|
||||||
// private final String savePath = "D:\\Tomcat6\\geoinfoEgov\\webapps\\geoinfo\\files";
|
// private final String savePath = "D:\\Tomcat6\\geoinfoEgov\\webapps\\geoinfo\\files";
|
||||||
// 개발서버 경로
|
// 개발서버 경로
|
||||||
private final String savePath = EgovProperties.getProperty("Geoinfo.FilePath");
|
private final String savePath = EgovProperties.getProperty("Geoinfo.FilePath.User");
|
||||||
|
|
||||||
@RequestMapping(value = "admins/user/00.do")
|
@RequestMapping(value = "admins/user/00.do")
|
||||||
public String selectInfoList(@RequestParam HashMap<String, Object> params, ModelMap model, HttpServletResponse response, HttpServletRequest request) throws Exception {
|
public String selectInfoList(@RequestParam HashMap<String, Object> params, ModelMap model, HttpServletResponse response, HttpServletRequest request) throws Exception {
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ public class FileController
|
||||||
@Resource(name = "fileService")
|
@Resource(name = "fileService")
|
||||||
private FileService fileService;
|
private FileService fileService;
|
||||||
|
|
||||||
public String filePath = EgovProperties.getProperty("Geoinfo.FilePath");
|
public String filePath = EgovProperties.getProperty("Geoinfo.FilePath.User");
|
||||||
|
|
||||||
// 파일 다운로드
|
// 파일 다운로드
|
||||||
@RequestMapping(value = "file.do")
|
@RequestMapping(value = "file.do")
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,6 @@ import javax.servlet.http.HttpServletRequest;
|
||||||
import org.jfree.util.Log;
|
import org.jfree.util.Log;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
import com.extentech.toolkit.Logger;
|
|
||||||
|
|
||||||
|
|
||||||
public class RsWrapper implements java.io.Serializable {
|
public class RsWrapper implements java.io.Serializable {
|
||||||
|
|
|
||||||
|
|
@ -72,12 +72,12 @@
|
||||||
<!-- MULTIPART RESOLVERS -->
|
<!-- MULTIPART RESOLVERS -->
|
||||||
<!-- regular spring resolver -->
|
<!-- regular spring resolver -->
|
||||||
<bean id="spring.RegularCommonsMultipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
|
<bean id="spring.RegularCommonsMultipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
|
||||||
<property name="maxUploadSize" value="100000000" />
|
<property name="maxUploadSize" value="1000000000" />
|
||||||
<property name="maxInMemorySize" value="100000000" />
|
<property name="maxInMemorySize" value="100000000" />
|
||||||
</bean>
|
</bean>
|
||||||
<!-- custom multi file resolver -->
|
<!-- custom multi file resolver -->
|
||||||
<!-- <bean id="local.MultiCommonsMultipartResolver" class="egovframework.com.cmm.web.EgovMultipartResolver">
|
<!-- <bean id="local.MultiCommonsMultipartResolver" class="egovframework.com.cmm.web.EgovMultipartResolver">
|
||||||
<property name="maxUploadSize" value="100000000" />
|
<property name="maxUploadSize" value="1000000000" />
|
||||||
<property name="maxInMemorySize" value="100000000" />
|
<property name="maxInMemorySize" value="100000000" />
|
||||||
</bean> -->
|
</bean> -->
|
||||||
<!-- choose one from above and alias it to the name Spring expects -->
|
<!-- choose one from above and alias it to the name Spring expects -->
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ Oracle.Driver=oracle.jdbc.driver.OracleDriver
|
||||||
|
|
||||||
#Oracle.Url=jdbc:oracle:thin:@192.168.0.29:1521:xe
|
#Oracle.Url=jdbc:oracle:thin:@192.168.0.29:1521:xe
|
||||||
#Oracle.Url=jdbc:oracle:thin:@192.168.0.8:3452:orcl
|
#Oracle.Url=jdbc:oracle:thin:@192.168.0.8:3452:orcl
|
||||||
Oracle.Url=jdbc:oracle:thin:@118.219.150.34:1521:ORAGEODEV
|
Oracle.Url=jdbc:oracle:thin:@10.dbnt.co.kr:1521:ORAGEODEV
|
||||||
# \uc2e4\uc11c\ubc84 -> 218.232.234.200:1521:orageodev
|
# \uc2e4\uc11c\ubc84 -> 218.232.234.200:1521:orageodev
|
||||||
#Oracle.Url=jdbc:oracle:thin:@218.232.234.200:1521:orageodev
|
#Oracle.Url=jdbc:oracle:thin:@218.232.234.200:1521:orageodev
|
||||||
#Oracle.Url=jdbc:oracle:thin:@localhost:1521:xe
|
#Oracle.Url=jdbc:oracle:thin:@localhost:1521:xe
|
||||||
|
|
@ -28,5 +28,8 @@ Oracle.Password=geoinfo
|
||||||
################### \ud30c\uc77c\uad00\ub828 ###################
|
################### \ud30c\uc77c\uad00\ub828 ###################
|
||||||
###############################################
|
###############################################
|
||||||
|
|
||||||
Geoinfo.FilePath=D:\\app_geoinfo\\app\\eclipse\\workspace\\geoinfo_admin\\src\\main\\webapp\\files\\
|
#Geoinfo.FilePath=D:\\app_geoinfo\\app\\eclipse\\workspace\\geoinfo_admin\\src\\main\\webapp\\files\\
|
||||||
#Geoinfo.FilePath=D:\\gitaey\\geoinfo_eGov\\workspace\\geoinfo_eGov\\src\\main\\webapp\\files\\
|
#Geoinfo.FilePath=D:\\gitaey\\geoinfo_eGov\\workspace\\geoinfo_eGov\\src\\main\\webapp\\files\\
|
||||||
|
Geoinfo.FilePath=C:\\geoinfo_admin_files\\
|
||||||
|
Geoinfo.FilePath.Admin=C:\\geoinfo_files_admin\\
|
||||||
|
Geoinfo.FilePath.User=C:\\geoinfo_files_user\\
|
||||||
|
|
@ -74,12 +74,12 @@
|
||||||
<!-- MULTIPART RESOLVERS -->
|
<!-- MULTIPART RESOLVERS -->
|
||||||
<!-- regular spring resolver -->
|
<!-- regular spring resolver -->
|
||||||
<bean id="spring.RegularCommonsMultipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
|
<bean id="spring.RegularCommonsMultipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
|
||||||
<property name="maxUploadSize" value="100000000" />
|
<property name="maxUploadSize" value="1000000000" />
|
||||||
<property name="maxInMemorySize" value="100000000" />
|
<property name="maxInMemorySize" value="100000000" />
|
||||||
</bean>
|
</bean>
|
||||||
<!-- custom multi file resolver -->
|
<!-- custom multi file resolver -->
|
||||||
<bean id="local.MultiCommonsMultipartResolver" class="egovframework.com.cmm.web.EgovMultipartResolver">
|
<bean id="local.MultiCommonsMultipartResolver" class="egovframework.com.cmm.web.EgovMultipartResolver">
|
||||||
<property name="maxUploadSize" value="100000000" />
|
<property name="maxUploadSize" value="1000000000" />
|
||||||
<property name="maxInMemorySize" value="100000000" />
|
<property name="maxInMemorySize" value="100000000" />
|
||||||
</bean>
|
</bean>
|
||||||
<!-- choose one from above and alias it to the name Spring expects -->
|
<!-- choose one from above and alias it to the name Spring expects -->
|
||||||
|
|
|
||||||
Binary file not shown.
Loading…
Reference in New Issue