feat: 포털시스템 메인화면 시추공 수 최신화
parent
b8661cb834
commit
82c1cb4513
|
|
@ -996,21 +996,7 @@ public class MainController
|
||||||
// 2017.10.17 dhlee session ip 브라우져 검증 추가
|
// 2017.10.17 dhlee session ip 브라우져 검증 추가
|
||||||
String ip = InetAddress.getLocalHost().toString(); // IP
|
String ip = InetAddress.getLocalHost().toString(); // IP
|
||||||
String agent = request.getHeader("User-Agent"); // 브라우져
|
String agent = request.getHeader("User-Agent"); // 브라우져
|
||||||
// String brower = "";
|
|
||||||
//
|
|
||||||
// if (agent != null) {
|
|
||||||
// if (agent.indexOf("Trident") > -1) {
|
|
||||||
// brower = "MSIE";
|
|
||||||
// } else if (agent.indexOf("Chrome") > -1) {
|
|
||||||
// brower = "Chrome";
|
|
||||||
// } else if (agent.indexOf("Opera") > -1) {
|
|
||||||
// brower = "Opera";
|
|
||||||
// } else if (agent.indexOf("iPhone") > -1 && agent.indexOf("Mobile") > -1) {
|
|
||||||
// brower = "iPhone";
|
|
||||||
// } else if (agent.indexOf("Android") > -1 && agent.indexOf("Mobile") > -1) {
|
|
||||||
// brower = "Android";
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
String id = request.getSession().getAttribute("USERID").toString();
|
String id = request.getSession().getAttribute("USERID").toString();
|
||||||
String s_ip = request.getSession().getAttribute("USERIP").toString();
|
String s_ip = request.getSession().getAttribute("USERIP").toString();
|
||||||
String s_agent = request.getSession().getAttribute("USERAGENT").toString();
|
String s_agent = request.getSession().getAttribute("USERAGENT").toString();
|
||||||
|
|
@ -1064,8 +1050,6 @@ public class MainController
|
||||||
month = now.get(Calendar.MONTH) + 1;
|
month = now.get(Calendar.MONTH) + 1;
|
||||||
date = now.get(Calendar.DATE);
|
date = now.get(Calendar.DATE);
|
||||||
|
|
||||||
// System.out.println(year+"년 "+month+"월 "+date+"일 "+ hour +
|
|
||||||
// "시 "+mm+"분 ");
|
|
||||||
dayofweek = now.get(Calendar.DAY_OF_WEEK);
|
dayofweek = now.get(Calendar.DAY_OF_WEEK);
|
||||||
|
|
||||||
map.put("year", year);
|
map.put("year", year);
|
||||||
|
|
@ -1105,634 +1089,16 @@ public class MainController
|
||||||
|
|
||||||
String visitors = mainService.selectVisitors(); // 방문자수
|
String visitors = mainService.selectVisitors(); // 방문자수
|
||||||
String registrant = mainService.selectRegistrant(); // 등록자수
|
String registrant = mainService.selectRegistrant(); // 등록자수
|
||||||
int total_cnt = mainService.selecrTotal_cnt(); // 총 시추공수
|
|
||||||
/*
|
|
||||||
* 20230216 사용하지 않는 부문으로 판단
|
|
||||||
* int cnt01 = 0;
|
|
||||||
int cnt02 = 0;
|
|
||||||
int cnt03 = 0;
|
|
||||||
int cnt04 = 0;
|
|
||||||
int cnt05 = 0;
|
|
||||||
int cnt06 = 0;
|
|
||||||
int cnt11 = 0;
|
|
||||||
int cnt12 = 0;
|
|
||||||
int cnt13 = 0;
|
|
||||||
int cnt14 = 0;
|
|
||||||
int cnt15 = 0;
|
|
||||||
int cnt16 = 0;
|
|
||||||
int cnt17 = 0;
|
|
||||||
int cnt18 = 0;
|
|
||||||
int cnt201 = 0;
|
|
||||||
int cnt202 = 0;
|
|
||||||
int cnt203 = 0;
|
|
||||||
int cnt204 = 0;
|
|
||||||
int cnt205 = 0;
|
|
||||||
int cnt206 = 0;
|
|
||||||
int cnt207 = 0;
|
|
||||||
int cnt208 = 0;
|
|
||||||
int cnt209 = 0;
|
|
||||||
int cnt210 = 0;
|
|
||||||
int cnt211 = 0;
|
|
||||||
int cnt212 = 0;
|
|
||||||
int cnt213 = 0;
|
|
||||||
int cnt214 = 0;
|
|
||||||
int cnt215 = 0;
|
|
||||||
int cnt216 = 0;
|
|
||||||
int cnt_not = 0;
|
|
||||||
|
|
||||||
String code_ex1 = "070,363"; // 국토해양부 서울청
|
|
||||||
String code_ex2 = "025,413"; // 국토해양부 부산청
|
|
||||||
String code_ex3 = "001,394"; // 국토해양부 대전청
|
|
||||||
String code_ex4 = "013,367"; // 국토해양부 익산청
|
|
||||||
String code_ex5 = "056,365"; // 국토해양부 원주청
|
|
||||||
// 11개 해양항만청
|
|
||||||
String code_ex6 = "801,802,803,804,805,806,807,808,809,810,811,556,401,416,399,353";
|
|
||||||
|
|
||||||
String code_ex11 = "004,051,362"; // 한국토지주택공사
|
|
||||||
String code_ex12 = "031"; // 한국도로공사
|
|
||||||
String code_ex13 = "134"; // 한국수자원공사
|
|
||||||
String code_ex14 = "400,703"; // 연안계획과
|
|
||||||
String code_ex15 = "131"; // 한국철도시설공단
|
|
||||||
String code_ex16 = "082"; // 한국수력원자력
|
|
||||||
String code_ex17 = "305"; // 한국공항공사
|
|
||||||
String code_ex18 = "702"; // 한국항만공사
|
|
||||||
|
|
||||||
String code_ex201 = "419"; // 서울특별시
|
|
||||||
String code_ex202 = "088"; // 부산광역시
|
|
||||||
String code_ex203 = "263"; // 대구광역시
|
|
||||||
String code_ex204 = "412"; // 인천광역시
|
|
||||||
String code_ex205 = "077"; // 광주광역시
|
|
||||||
String code_ex206 = "391"; // 대전광역시
|
|
||||||
String code_ex207 = "048"; // 울산광역시
|
|
||||||
|
|
||||||
String code_ex208 = "554"; // 경기도
|
|
||||||
String code_ex209 = "065"; // 강원도
|
|
||||||
String code_ex210 = "548"; // 충청남도
|
|
||||||
String code_ex211 = "902"; // 충청북도
|
|
||||||
String code_ex212 = "903"; // 경상남도
|
|
||||||
String code_ex213 = "904"; // 경상북도
|
|
||||||
String code_ex214 = "127"; // 전라남도
|
|
||||||
String code_ex215 = "905"; // 전라북도
|
|
||||||
String code_ex216 = "907"; // 제주도
|
|
||||||
*/
|
|
||||||
// //시추공수
|
|
||||||
// /////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// 국토해양부 서울청
|
|
||||||
/*try
|
|
||||||
{
|
|
||||||
map.put("code", code_ex1);
|
|
||||||
int resultinfo = cnt01 = mainService.selectInformationInfo(map);
|
|
||||||
cnt01 = resultinfo;
|
|
||||||
mv.addObject("CNT1", resultinfo);
|
|
||||||
}
|
|
||||||
catch (NumberFormatException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (IndexOutOfBoundsException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (Exception e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
// 국토해양부 부산청
|
|
||||||
try
|
|
||||||
{
|
|
||||||
map.put("code", code_ex2);
|
|
||||||
int resultinfo = cnt02 = mainService.selectInformationInfo(map);
|
|
||||||
mv.addObject("CNT2", getFormattedMoney(resultinfo));
|
|
||||||
}
|
|
||||||
catch (NumberFormatException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (IndexOutOfBoundsException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (Exception e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
|
|
||||||
// 국토해양부 대전청
|
|
||||||
try
|
|
||||||
{
|
|
||||||
map.put("code", code_ex3);
|
|
||||||
int resultinfo = cnt03 = mainService.selectInformationInfo(map);
|
|
||||||
mv.addObject("CNT3", getFormattedMoney(resultinfo));
|
|
||||||
}
|
|
||||||
catch (NumberFormatException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (IndexOutOfBoundsException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (Exception e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
|
|
||||||
// 국토해양부 익산청
|
|
||||||
try
|
|
||||||
{
|
|
||||||
map.put("code", code_ex4);
|
|
||||||
int resultinfo = cnt04 = mainService.selectInformationInfo(map);
|
|
||||||
mv.addObject("CNT4", getFormattedMoney(resultinfo));
|
|
||||||
}
|
|
||||||
catch (NumberFormatException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (IndexOutOfBoundsException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (Exception e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
|
|
||||||
// 국토해양부 원주청
|
|
||||||
try
|
|
||||||
{
|
|
||||||
map.put("code", code_ex5);
|
|
||||||
int resultinfo = cnt05 = mainService.selectInformationInfo(map);
|
|
||||||
mv.addObject("CNT5", getFormattedMoney(resultinfo));
|
|
||||||
}
|
|
||||||
catch (NumberFormatException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (IndexOutOfBoundsException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (Exception e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
|
|
||||||
// 11개 해양항만청
|
|
||||||
try
|
|
||||||
{
|
|
||||||
map.put("code", code_ex6);
|
|
||||||
int resultinfo = cnt06 = mainService.selectInformationInfo(map);
|
|
||||||
mv.addObject("CNT6", getFormattedMoney(resultinfo));
|
|
||||||
}
|
|
||||||
catch (NumberFormatException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (IndexOutOfBoundsException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (Exception e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
// 합계
|
|
||||||
int sum1 = (cnt01) + (cnt02) + (cnt03) + (cnt04) + (cnt05) + (cnt06);
|
|
||||||
mv.addObject("SUM1", getFormattedMoney(Integer.toString(sum1)));
|
|
||||||
|
|
||||||
// 한국토지주택공사
|
|
||||||
try
|
|
||||||
{
|
|
||||||
map.put("code", code_ex11);
|
|
||||||
int resultinfo = cnt11 = mainService.selectInformationInfo(map);
|
|
||||||
mv.addObject("CNT11", getFormattedMoney(resultinfo));
|
|
||||||
}
|
|
||||||
catch (NumberFormatException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (IndexOutOfBoundsException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (Exception e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
|
|
||||||
// 한국도로공사
|
|
||||||
try
|
|
||||||
{
|
|
||||||
map.put("code", code_ex12);
|
|
||||||
int resultinfo = cnt12 = mainService.selectInformationInfo(map);
|
|
||||||
mv.addObject("CNT12", getFormattedMoney(resultinfo));
|
|
||||||
}
|
|
||||||
catch (NumberFormatException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (IndexOutOfBoundsException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (Exception e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
|
|
||||||
// 한국수자원공사
|
|
||||||
try
|
|
||||||
{
|
|
||||||
map.put("code", code_ex13);
|
|
||||||
int resultinfo = cnt13 = mainService.selectInformationInfo(map);
|
|
||||||
mv.addObject("CNT13", getFormattedMoney(resultinfo));
|
|
||||||
}
|
|
||||||
catch (NumberFormatException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (IndexOutOfBoundsException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (Exception e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
|
|
||||||
// 연안계획과
|
|
||||||
try
|
|
||||||
{
|
|
||||||
map.put("code", code_ex14);
|
|
||||||
int resultinfo = cnt14 = mainService.selectInformationInfo(map);
|
|
||||||
mv.addObject("CNT14", getFormattedMoney(resultinfo));
|
|
||||||
}
|
|
||||||
catch (NumberFormatException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (IndexOutOfBoundsException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (Exception e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
|
|
||||||
// 한국철도시설공단
|
|
||||||
try
|
|
||||||
{
|
|
||||||
map.put("code", code_ex15);
|
|
||||||
int resultinfo = cnt15 = mainService.selectInformationInfo(map);
|
|
||||||
mv.addObject("CNT15", getFormattedMoney(resultinfo));
|
|
||||||
}
|
|
||||||
catch (NumberFormatException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (IndexOutOfBoundsException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (Exception e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
|
|
||||||
// 한국수력원자력
|
|
||||||
try
|
|
||||||
{
|
|
||||||
map.put("code", code_ex16);
|
|
||||||
int resultinfo = cnt16 = mainService.selectInformationInfo(map);
|
|
||||||
mv.addObject("CNT16", getFormattedMoney(resultinfo));
|
|
||||||
}
|
|
||||||
catch (NumberFormatException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (IndexOutOfBoundsException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (Exception e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
|
|
||||||
// 한국공항공사
|
|
||||||
try
|
|
||||||
{
|
|
||||||
map.put("code", code_ex17);
|
|
||||||
int resultinfo = cnt17 = mainService.selectInformationInfo(map);
|
|
||||||
mv.addObject("CNT17", getFormattedMoney(resultinfo));
|
|
||||||
}
|
|
||||||
catch (NumberFormatException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (IndexOutOfBoundsException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (Exception e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
|
|
||||||
// 한국항만공사
|
|
||||||
try
|
|
||||||
{
|
|
||||||
map.put("code", code_ex18);
|
|
||||||
int resultinfo = cnt18 = mainService.selectInformationInfo(map);
|
|
||||||
mv.addObject("CNT18", getFormattedMoney(resultinfo));
|
|
||||||
}
|
|
||||||
catch (NumberFormatException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (IndexOutOfBoundsException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (Exception e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
// 합계
|
|
||||||
int sum2 = (cnt11) + (cnt12) + (cnt13) + (cnt14) + (cnt15) + (cnt16) + (cnt17) + (cnt18);
|
|
||||||
mv.addObject("SUM2", getFormattedMoney(Integer.toString(sum2)));
|
|
||||||
int sum3 = sum1 + sum2;
|
|
||||||
mv.addObject("SUM3", getFormattedMoney(Integer.toString(sum3)));
|
|
||||||
|
|
||||||
// 서울특별시
|
|
||||||
try
|
|
||||||
{
|
|
||||||
map.put("code", code_ex201);
|
|
||||||
int resultinfo = cnt201 = mainService.selectInformationInfo(map);
|
|
||||||
mv.addObject("CNT201", getFormattedMoney(resultinfo));
|
|
||||||
}
|
|
||||||
catch (NumberFormatException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (IndexOutOfBoundsException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (Exception e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
|
|
||||||
// 부산광역시
|
|
||||||
try
|
|
||||||
{
|
|
||||||
map.put("code", code_ex202);
|
|
||||||
int resultinfo = cnt202 = mainService.selectInformationInfo(map);
|
|
||||||
mv.addObject("CNT202", getFormattedMoney(resultinfo));
|
|
||||||
}
|
|
||||||
catch (NumberFormatException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (IndexOutOfBoundsException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (Exception e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
|
|
||||||
// 대구광역시
|
|
||||||
try
|
|
||||||
{
|
|
||||||
map.put("code", code_ex203);
|
|
||||||
int resultinfo = cnt203 = mainService.selectInformationInfo(map);
|
|
||||||
mv.addObject("CNT203", getFormattedMoney(resultinfo));
|
|
||||||
}
|
|
||||||
catch (NumberFormatException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (IndexOutOfBoundsException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (Exception e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
|
|
||||||
// 인천광역시
|
|
||||||
try
|
|
||||||
{
|
|
||||||
map.put("code", code_ex204);
|
|
||||||
int resultinfo = cnt204 = mainService.selectInformationInfo(map);
|
|
||||||
mv.addObject("CNT204", getFormattedMoney(resultinfo));
|
|
||||||
}
|
|
||||||
catch (NumberFormatException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (IndexOutOfBoundsException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (Exception e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
|
|
||||||
// 광주광역시
|
|
||||||
try
|
|
||||||
{
|
|
||||||
map.put("code", code_ex205);
|
|
||||||
int resultinfo = cnt205 = mainService.selectInformationInfo(map);
|
|
||||||
mv.addObject("CNT205", getFormattedMoney(resultinfo));
|
|
||||||
}
|
|
||||||
catch (NumberFormatException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (IndexOutOfBoundsException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (Exception e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
|
|
||||||
// 대전광역시
|
|
||||||
try
|
|
||||||
{
|
|
||||||
map.put("code", code_ex206);
|
|
||||||
int resultinfo = cnt206 = mainService.selectInformationInfo(map);
|
|
||||||
mv.addObject("CNT206", getFormattedMoney(resultinfo));
|
|
||||||
}
|
|
||||||
catch (NumberFormatException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (IndexOutOfBoundsException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (Exception e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
|
|
||||||
// 울산광역시
|
|
||||||
try
|
|
||||||
{
|
|
||||||
map.put("code", code_ex207);
|
|
||||||
int resultinfo = cnt207 = mainService.selectInformationInfo(map);
|
|
||||||
mv.addObject("CNT207", getFormattedMoney(resultinfo));
|
|
||||||
}
|
|
||||||
catch (NumberFormatException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (IndexOutOfBoundsException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (Exception e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
|
|
||||||
// 경기도
|
|
||||||
try
|
|
||||||
{
|
|
||||||
map.put("code", code_ex208);
|
|
||||||
int resultinfo = cnt208 = mainService.selectInformationInfo(map);
|
|
||||||
mv.addObject("CNT208", getFormattedMoney(resultinfo));
|
|
||||||
}
|
|
||||||
catch (NumberFormatException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (IndexOutOfBoundsException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (Exception e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
// 강원도
|
|
||||||
try
|
|
||||||
{
|
|
||||||
map.put("code", code_ex209);
|
|
||||||
int resultinfo = cnt209 = mainService.selectInformationInfo(map);
|
|
||||||
mv.addObject("CNT209", getFormattedMoney(resultinfo));
|
|
||||||
}
|
|
||||||
catch (NumberFormatException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (IndexOutOfBoundsException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (Exception e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
|
|
||||||
// 충청남도
|
|
||||||
try
|
|
||||||
{
|
|
||||||
map.put("code", code_ex210);
|
|
||||||
int resultinfo = cnt210 = mainService.selectInformationInfo(map);
|
|
||||||
mv.addObject("CNT210", getFormattedMoney(resultinfo));
|
|
||||||
}
|
|
||||||
catch (NumberFormatException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (IndexOutOfBoundsException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (Exception e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
// 충청북도
|
|
||||||
try
|
|
||||||
{
|
|
||||||
map.put("code", code_ex211);
|
|
||||||
int resultinfo = cnt211 = mainService.selectInformationInfo(map);
|
|
||||||
mv.addObject("CNT211", getFormattedMoney(resultinfo));
|
|
||||||
}
|
|
||||||
catch (NumberFormatException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (IndexOutOfBoundsException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (Exception e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
|
|
||||||
// 경상남도
|
|
||||||
try
|
|
||||||
{
|
|
||||||
map.put("code", code_ex212);
|
|
||||||
int resultinfo = cnt212 = mainService.selectInformationInfo(map);
|
|
||||||
mv.addObject("CNT212", getFormattedMoney(resultinfo));
|
|
||||||
}
|
|
||||||
catch (NumberFormatException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (IndexOutOfBoundsException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (Exception e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
|
|
||||||
// 경상북도
|
|
||||||
try
|
|
||||||
{
|
|
||||||
map.put("code", code_ex213);
|
|
||||||
int resultinfo = cnt213 = mainService.selectInformationInfo(map);
|
|
||||||
mv.addObject("CNT213", getFormattedMoney(resultinfo));
|
|
||||||
}
|
|
||||||
catch (NumberFormatException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (IndexOutOfBoundsException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (Exception e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
|
|
||||||
// 전라남도
|
|
||||||
try
|
|
||||||
{
|
|
||||||
map.put("code", code_ex214);
|
|
||||||
int resultinfo = cnt214 = mainService.selectInformationInfo(map);
|
|
||||||
mv.addObject("CNT214", getFormattedMoney(resultinfo));
|
|
||||||
}
|
|
||||||
catch (NumberFormatException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (IndexOutOfBoundsException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (Exception e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
|
|
||||||
// 전라북도
|
|
||||||
try
|
|
||||||
{
|
|
||||||
map.put("code", code_ex215);
|
|
||||||
int resultinfo = cnt215 = mainService.selectInformationInfo(map);
|
|
||||||
mv.addObject("CNT215", getFormattedMoney(resultinfo));
|
|
||||||
}
|
|
||||||
catch (NumberFormatException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (IndexOutOfBoundsException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (Exception e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
|
|
||||||
// 제주도
|
|
||||||
try
|
|
||||||
{
|
|
||||||
map.put("code", code_ex216);
|
|
||||||
int resultinfo = cnt216 = mainService.selectInformationInfo(map);
|
|
||||||
mv.addObject("CNT216", getFormattedMoney(resultinfo));
|
|
||||||
}
|
|
||||||
catch (NumberFormatException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (IndexOutOfBoundsException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (Exception e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
|
|
||||||
// 합계
|
|
||||||
int sum4 = (cnt201) + (cnt202) + (cnt203) + (cnt204) + (cnt205) + (cnt206) + (cnt207) + (cnt208) + (cnt209) + (cnt210) + (cnt211) + (cnt212) + (cnt213) + (cnt214) + (cnt215) + (cnt216);
|
|
||||||
mv.addObject("SUM4", getFormattedMoney(Integer.toString(sum4)));
|
|
||||||
|
|
||||||
// 미지정
|
|
||||||
try
|
|
||||||
{
|
|
||||||
String code = code_ex1 + "," + code_ex2 + "," + code_ex3 + "," + code_ex4 + "," + code_ex5 + "," + code_ex6 + "," + code_ex11 + "," + code_ex12 + "," + code_ex13 + "," + code_ex14 + "," + code_ex15 + "," + code_ex16 + ","
|
|
||||||
+ code_ex17 + "," + code_ex18 + "," + code_ex201 + "," + code_ex202 + "," + code_ex203 + "," + code_ex204 + "," + code_ex205 + "," + code_ex206 + "," + code_ex207 + "," + code_ex208 + "," + code_ex209 + "," + code_ex210
|
|
||||||
+ "," + code_ex211 + "," + code_ex212 + "," + code_ex213 + "," + code_ex214 + "," + code_ex215 + "," + code_ex216;
|
|
||||||
|
|
||||||
map.put("code", code);
|
|
||||||
int resultinfo = cnt_not = mainService.selectInformationInfoNon(map);
|
|
||||||
mv.addObject("CNTNOT", getFormattedMoney(resultinfo));
|
|
||||||
int cnt_not_temp = (cnt_not);
|
|
||||||
int sum5 = sum3 + sum4 + cnt_not_temp;
|
|
||||||
|
|
||||||
mv.addObject("SUM5", getFormattedMoney(Integer.toString(sum5)));
|
|
||||||
}
|
|
||||||
catch (NumberFormatException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (IndexOutOfBoundsException e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}
|
|
||||||
catch (Exception e) {
|
|
||||||
log.debug("error", e);
|
|
||||||
}*/
|
|
||||||
|
|
||||||
mv.addObject("cls", cls);
|
mv.addObject("cls", cls);
|
||||||
mv.addObject("mod_cnt", mod_cnt);
|
mv.addObject("mod_cnt", mod_cnt);
|
||||||
mv.addObject("input_cnt", input_cnt);
|
mv.addObject("input_cnt", input_cnt);
|
||||||
mv.addObject("visitors", visitors);
|
mv.addObject("visitors", visitors);
|
||||||
mv.addObject("registrant", registrant);
|
mv.addObject("registrant", registrant);
|
||||||
mv.addObject("total_cnt", total_cnt);
|
|
||||||
mv.addObject("year", year);
|
mv.addObject("year", year);
|
||||||
mv.addObject("month", month);
|
mv.addObject("month", month);
|
||||||
mv.addObject("date", date);
|
mv.addObject("date", date);
|
||||||
// mv.addObject("sessionId", request.getSession().getId());
|
|
||||||
// mv.addObject("name", request.getSession().getAttribute("userId"));
|
|
||||||
|
|
||||||
if (flag) {
|
if (flag) {
|
||||||
mv.addObject("dupLogin", flag);
|
mv.addObject("dupLogin", flag);
|
||||||
|
|
|
||||||
|
|
@ -45,8 +45,8 @@ Globals.PAGELIST = 10
|
||||||
Globals.FileCreatePathZip = c:\\test2\\
|
Globals.FileCreatePathZip = c:\\test2\\
|
||||||
# Active X
|
# Active X
|
||||||
# \uc9c0\ub3c4\uc11c\ubc84
|
# \uc9c0\ub3c4\uc11c\ubc84
|
||||||
#Globals.OcxHostUrl = http://218.232.234.166/Server/
|
Globals.OcxHostUrl = http://218.232.234.166/Server/
|
||||||
Globals.OcxHostUrl = http://172.12.192.44/Server/
|
#Globals.OcxHostUrl = http://172.12.192.44/Server/
|
||||||
|
|
||||||
Globals.OcxMapFileVer = 2,0,0,3
|
Globals.OcxMapFileVer = 2,0,0,3
|
||||||
Globals.OcxMapClassID = CC13D8F5-F406-4833-855D-F44DA7875776
|
Globals.OcxMapClassID = CC13D8F5-F406-4833-855D-F44DA7875776
|
||||||
|
|
|
||||||
|
|
@ -51,6 +51,10 @@
|
||||||
if(val) val.focus();
|
if(val) val.focus();
|
||||||
});
|
});
|
||||||
/* == 공지팝업 로드 끝 == */
|
/* == 공지팝업 로드 끝 == */
|
||||||
|
|
||||||
|
const commaNumberEles = document.getElementsByClassName("comma-number");
|
||||||
|
for (i = 0; i < commaNumberEles.length; i++)
|
||||||
|
commaNumberEles[i].textContent = addComma(commaNumberEles[i].textContent);
|
||||||
});
|
});
|
||||||
|
|
||||||
function dupLoginCheck(flag) {
|
function dupLoginCheck(flag) {
|
||||||
|
|
@ -239,6 +243,38 @@
|
||||||
// url = "noticeView.do?idx="+idx;
|
// url = "noticeView.do?idx="+idx;
|
||||||
parent.location.href="topMenuSelect.do?url=pdsView&idx="+idx;
|
parent.location.href="topMenuSelect.do?url=pdsView&idx="+idx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function addComma( val ) {
|
||||||
|
val = String(val);
|
||||||
|
|
||||||
|
if( typeof val == "undefined" || val == null || val == "" ) {
|
||||||
|
return "0";
|
||||||
|
}
|
||||||
|
var decimal = '';
|
||||||
|
var num = val.replace(/,/gi, "");
|
||||||
|
|
||||||
|
//음수이면 잠깐 부호를 떼었다가 나중에 붙여준다.
|
||||||
|
var isNegative = false;
|
||||||
|
if( num.indexOf('-') == 0 ) {
|
||||||
|
isNegative = true;
|
||||||
|
num = num.replace(/-/gi, "");
|
||||||
|
}
|
||||||
|
|
||||||
|
if( num.indexOf('.') > -1 ) {
|
||||||
|
var arrSplitDecimalPoint = num.split('.');
|
||||||
|
num = arrSplitDecimalPoint[0];
|
||||||
|
decimal = '.' + arrSplitDecimalPoint[1];
|
||||||
|
}
|
||||||
|
|
||||||
|
var num2 = num.split(/(?=(?:\d{3})+$)/).join(",") + decimal;
|
||||||
|
|
||||||
|
//음수이면 잠깐 떼었던 부호를 붙여준다.
|
||||||
|
if( isNegative == true ) {
|
||||||
|
num2 = "-" + num2;
|
||||||
|
}
|
||||||
|
|
||||||
|
return num2; // "1,234,567"
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
<style>
|
<style>
|
||||||
.custom-popup-wrapper {
|
.custom-popup-wrapper {
|
||||||
|
|
@ -260,6 +296,12 @@
|
||||||
z-index: 99;
|
z-index: 99;
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
.hole::after {
|
||||||
|
content: ' 공';
|
||||||
|
}
|
||||||
|
|
||||||
|
.comma-number {
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
<body class="main">
|
<body class="main">
|
||||||
<!-- 팝업 시작 -->
|
<!-- 팝업 시작 -->
|
||||||
|
|
@ -314,7 +356,7 @@
|
||||||
<div class="status-count-box">
|
<div class="status-count-box">
|
||||||
<span class="count-title">시추정보 보유현황</span>
|
<span class="count-title">시추정보 보유현황</span>
|
||||||
<div class="value-group">
|
<div class="value-group">
|
||||||
<span class="status-count"><fmt:formatNumber value="${ total_cnt }" pattern="#,###" />공<span style="font-size : 12px; vertical-align: middle; line-height: 50px;">(${ year }년 ${ month }월 ${ date }일 기준)</span></span>
|
<span class="status-count"><fmt:formatNumber value="390197" pattern="#,###" />공 <span style="font-size : 12px; vertical-align: middle; line-height: 50px;">(2023년 12월 31일 기준)</span></span>
|
||||||
<a href="#status-id" class="btn status-btn">자세히보기</a>
|
<a href="#status-id" class="btn status-btn">자세히보기</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -566,7 +608,7 @@
|
||||||
<h1 class="contents-title"><span class="contents-title-text">시추정보 DB 구축 현황</span></h1>
|
<h1 class="contents-title"><span class="contents-title-text">시추정보 DB 구축 현황</span></h1>
|
||||||
|
|
||||||
<div class="provision-box">
|
<div class="provision-box">
|
||||||
<span class="textR">333,902공</span><span>의 시추정보DB가 구축되어 있습니다.(2021년 12월 31일 기준)</span>
|
<span class="textR comma-number hole">390197</span><span>의 시추정보DB가 구축되어 있습니다.(2023년 12월 31일 기준)</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h3 class="page-title-3depth marT10 padB10"><span>발주처별 구축현황</span></h3>
|
<h3 class="page-title-3depth marT10 padB10"><span>발주처별 구축현황</span></h3>
|
||||||
|
|
@ -593,250 +635,254 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head" rowspan="17">국토교통부</td>
|
<td class="td-head" rowspan="17">국토교통부</td>
|
||||||
<td class="td-head" rowspan="7">소속기관</td>
|
<td class="td-head" rowspan="7">소속기관</td>
|
||||||
<td class="td-head">서울청</td>
|
<td class="td-head">서울지방국토관리청</td>
|
||||||
<td class="t-right">9,241공</td>
|
<td class="t-right"><span class="comma-number hole">9493</span></td>
|
||||||
<td rowspan="8">국토교통부 보유</td>
|
<td rowspan="8">국토교통부 보유</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head">부산청</td>
|
<td class="td-head">부산지방국토관리청</td>
|
||||||
<td class="t-right">22,488공</td>
|
<td class="t-right"><span class="comma-number hole">22772</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head">대전청</td>
|
<td class="td-head">대전지방국토관리청</td>
|
||||||
<td class="t-right">16,908공</td>
|
<td class="t-right"><span class="comma-number hole">17020</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head">익산청</td>
|
<td class="td-head">익산지방국토관리청</td>
|
||||||
<td class="t-right">14,303공</td>
|
<td class="t-right"><span class="comma-number hole">14563</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head">원주청</td>
|
<td class="td-head">원주지방국토관리청</td>
|
||||||
<td class="t-right">6,054공</td>
|
<td class="t-right"><span class="comma-number hole">6178</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head">행정중심복합도시건설청</td>
|
<td class="td-head">행정중심복합도시건설청</td>
|
||||||
<td class="t-right">1,616공</td>
|
<td class="t-right"><span class="comma-number hole">1692</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head">새만금개발청</td>
|
<td class="td-head">새만금개발청</td>
|
||||||
<td class="t-right">399공</td>
|
<td class="t-right"><span class="comma-number hole">399</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head td-total" colspan="2">합계</td>
|
<td class="td-head td-total" colspan="2">합계</td>
|
||||||
<td class="t-right">71,009공</td>
|
<td class="t-right"><span class="comma-number hole">72117</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head" rowspan="7">산하기관</td>
|
<td class="td-head" rowspan="7">산하기관</td>
|
||||||
<td class="td-head">한국토지주택공사</td>
|
<td class="td-head">한국토지주택공사</td>
|
||||||
<td class="t-right">92,800공</td>
|
<td class="t-right"><span class="comma-number hole">94879</span></td>
|
||||||
<td rowspan="9">국토교통부 보유</td>
|
<td rowspan="9">국토교통부 보유</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head">한국도로공사</td>
|
<td class="td-head">한국도로공사</td>
|
||||||
<td class="t-right">34,976공</td>
|
<td class="t-right"><span class="comma-number hole">37399</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head">한국수자원공사</td>
|
<td class="td-head">한국수자원공사</td>
|
||||||
<td class="t-right">5,991공</td>
|
<td class="t-right"><span class="comma-number hole">7013</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head">한국철도시설공단</td>
|
<td class="td-head">한국철도시설공단</td>
|
||||||
<td class="t-right">22,617공</td>
|
<td class="t-right"><span class="comma-number hole">24208</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head">한국수력원자력</td>
|
<td class="td-head">한국수력원자력</td>
|
||||||
<td class="t-right">227공</td>
|
<td class="t-right"><span class="comma-number hole">227</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head">한국공항공사</td>
|
<td class="td-head">한국공항공사</td>
|
||||||
<td class="t-right">94공</td>
|
<td class="t-right"><span class="comma-number hole">94공</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head">한국항만공사</td>
|
<td class="td-head">한국철도공사</td>
|
||||||
<td class="t-right">519공</td>
|
<td class="t-right"><span class="comma-number hole">519</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head td-total" colspan="2">합계</td>
|
<td class="td-head td-total" colspan="2">합계</td>
|
||||||
<td class="t-right">157,224공</td>
|
<td class="t-right"><span class="comma-number hole">164491</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head td-total" colspan="2">국토교통부 및 산하기관 총 합계</td>
|
<td class="td-head td-total" colspan="2">국토교통부 및 산하기관 총 합계</td>
|
||||||
<td class="t-right">228,233공</td>
|
<td class="t-right"><span class="comma-number hole">236608</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head" rowspan="21">해양수산부</td>
|
<td class="td-head" rowspan="21">해양수산부</td>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head">직속</td>
|
<td class="td-head">직속</td>
|
||||||
<td class="td-head">어촌어항과</td>
|
<td class="td-head">어촌어항과</td>
|
||||||
<td class="t-right">847공</td>
|
<td class="t-right"><span class="comma-number hole">847</span></td>
|
||||||
<td>-</td>
|
<td>-</td>
|
||||||
</tr>
|
</tr>
|
||||||
<td class="td-head" rowspan="12">소속기관</td>
|
<td class="td-head" rowspan="12">소속기관</td>
|
||||||
<td class="td-head">부산항만청</td>
|
<td class="td-head">부산항만청</td>
|
||||||
<td class="t-right">2,393공</td>
|
<td class="t-right"><span class="comma-number hole">2501</span></td>
|
||||||
<td rowspan="19">해양수산부 보유</td>
|
<td rowspan="19">해양수산부 보유</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head">인천항만청</td>
|
<td class="td-head">인천항만청</td>
|
||||||
<td class="t-right">1,525공</td>
|
<td class="t-right"><span class="comma-number hole">1601</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head">여수항만청</td>
|
<td class="td-head">여수항만청</td>
|
||||||
<td class="t-right">1010공</td>
|
<td class="t-right"><span class="comma-number hole">1131</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head">울산항만청</td>
|
<td class="td-head">울산항만청</td>
|
||||||
<td class="t-right">608공</td>
|
<td class="t-right"><span class="comma-number hole">629</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head">포항항만청</td>
|
<td class="td-head">포항항만청</td>
|
||||||
<td class="t-right">403공</td>
|
<td class="t-right"><span class="comma-number hole">406</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head">목포항만청</td>
|
<td class="td-head">목포항만청</td>
|
||||||
<td class="t-right">675공</td>
|
<td class="t-right"><span class="comma-number hole">709</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head">군산항만청</td>
|
<td class="td-head">군산항만청</td>
|
||||||
<td class="t-right">1,128공</td>
|
<td class="t-right"><span class="comma-number hole">1168</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head">마산항만청</td>
|
<td class="td-head">마산항만청</td>
|
||||||
<td class="t-right">480공</td>
|
<td class="t-right"><span class="comma-number hole">522</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head">동해항만청</td>
|
<td class="td-head">동해항만청</td>
|
||||||
<td class="t-right">585공</td>
|
<td class="t-right"><span class="comma-number hole">592</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head">대산항만청</td>
|
<td class="td-head">대산항만청</td>
|
||||||
<td class="t-right">218공</td>
|
<td class="t-right"><span class="comma-number hole">226</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head">평택항만청</td>
|
<td class="td-head">평택항만청</td>
|
||||||
<td class="t-right">770공</td>
|
<td class="t-right"><span class="comma-number hole">793</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head td-total">합계</td>
|
<td class="td-head td-total">합계</td>
|
||||||
<td class="t-right">10,642공</td>
|
<td class="t-right"><span class="comma-number hole">11125</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head" rowspan="6">산하기관</td>
|
<td class="td-head" rowspan="6">산하기관</td>
|
||||||
<td class="td-head">부산항만공사</td>
|
<td class="td-head">부산항만공사</td>
|
||||||
<td class="t-right">518공</td>
|
<td class="t-right"><span class="comma-number hole">603</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head">경기평택항만공사</td>
|
<td class="td-head">경기평택항만공사</td>
|
||||||
<td class="t-right">52공</td>
|
<td class="t-right"><span class="comma-number hole">52</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head">울산항만공사</td>
|
<td class="td-head">울산항만공사</td>
|
||||||
<td class="t-right">221공</td>
|
<td class="t-right"><span class="comma-number hole">245</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head">인천항만공사</td>
|
<td class="td-head">인천항만공사</td>
|
||||||
<td class="t-right">393공</td>
|
<td class="t-right"><span class="comma-number hole">407</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head">여수광양항만공사</td>
|
<td class="td-head">여수광양항만공사</td>
|
||||||
<td class="t-right">107공</td>
|
<td class="t-right"><span class="comma-number hole">124</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head td-total">합계</td>
|
<td class="td-head td-total">합계</td>
|
||||||
<td class="t-right">1,291공</td>
|
<td class="t-right"><span class="comma-number hole">1431</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head td-total" colspan="2">해양수산부 및 산하기관 총 합계</td>
|
<td class="td-head td-total" colspan="2">해양수산부 및 산하기관 총 합계</td>
|
||||||
<td class="t-right">11,933공</td>
|
<td class="t-right"><span class="comma-number hole">12556</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head" rowspan="16">지자체</td>
|
<td class="td-head" rowspan="17">지자체</td>
|
||||||
<td class="td-head" rowspan="7">광역자치단체</td>
|
<td class="td-head" rowspan="8">광역자치단체</td>
|
||||||
<td class="td-head">서울특별시</td>
|
<td class="td-head">서울특별시</td>
|
||||||
<td class="t-right">16,650공</td>
|
<td class="t-right"><span class="comma-number hole">17410</span></td>
|
||||||
<td rowspan="17">-</td>
|
<td rowspan="17">-</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head">부산광역시</td>
|
<td class="td-head">부산광역시</td>
|
||||||
<td class="t-right">4,724공</td>
|
<td class="t-right"><span class="comma-number hole">5364</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head">대구광역시</td>
|
<td class="td-head">대구광역시</td>
|
||||||
<td class="t-right">2,820공</td>
|
<td class="t-right"><span class="comma-number hole">3024</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head">인천광역시</td>
|
<td class="td-head">인천광역시</td>
|
||||||
<td class="t-right">1,884공</td>
|
<td class="t-right"><span class="comma-number hole">2012</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head">광주광역시</td>
|
<td class="td-head">광주광역시</td>
|
||||||
<td class="t-right">918공</td>
|
<td class="t-right"><span class="comma-number hole">1118</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head">대전광역시</td>
|
<td class="td-head">대전광역시</td>
|
||||||
<td class="t-right">457공</td>
|
<td class="t-right"><span class="comma-number hole">532</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head">울산광역시</td>
|
<td class="td-head">울산광역시</td>
|
||||||
<td class="t-right">832공</td>
|
<td class="t-right"><span class="comma-number hole">867</span></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="td-head">세종특별자치시</td>
|
||||||
|
<td class="t-right"><span class="comma-number hole">315</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head" rowspan="9">기초자치단체</td>
|
<td class="td-head" rowspan="9">기초자치단체</td>
|
||||||
<td class="td-head">경기도</td>
|
<td class="td-head">경기도</td>
|
||||||
<td class="t-right">9,254공</td>
|
<td class="t-right"><span class="comma-number hole">9902</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head">강원도</td>
|
<td class="td-head">강원도</td>
|
||||||
<td class="t-right">3,507공</td>
|
<td class="t-right"><span class="comma-number hole">4161</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head">충청남도</td>
|
<td class="td-head">충청남도</td>
|
||||||
<td class="t-right">2,766공</td>
|
<td class="t-right"><span class="comma-number hole">3050</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head">충청북도</td>
|
<td class="td-head">충청북도</td>
|
||||||
<td class="t-right">1,181공</td>
|
<td class="t-right"><span class="comma-number hole">1341</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head">경상남도</td>
|
<td class="td-head">경상남도</td>
|
||||||
<td class="t-right">2,059공</td>
|
<td class="t-right"><span class="comma-number hole">2182</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head">경상북도</td>
|
<td class="td-head">경상북도</td>
|
||||||
<td class="t-right">2,293공</td>
|
<td class="t-right"><span class="comma-number hole">2632</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head">전라남도</td>
|
<td class="td-head">전라남도</td>
|
||||||
<td class="t-right">3,443공</td>
|
<td class="t-right"><span class="comma-number hole">4764</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head">전라북도</td>
|
<td class="td-head">전라북도</td>
|
||||||
<td class="t-right">705공</td>
|
<td class="t-right"><span class="comma-number hole">733</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head">제주특별자치도</td>
|
<td class="td-head">제주특별자치도</td>
|
||||||
<td class="t-right">211공</td>
|
<td class="t-right"><span class="comma-number hole">227</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head td-total" colspan="3">지자체 총 합계</td>
|
<td class="td-head td-total" colspan="3">지자체 총 합계</td>
|
||||||
<td class="t-right">53,936공</td>
|
<td class="t-right"><span class="comma-number hole">59634</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head" colspan="2">행정안전부</td>
|
<td class="td-head" colspan="2">행정안전부</td>
|
||||||
<td class="td-head">재난관리책임기관</td>
|
<td class="td-head">재난관리책임기관</td>
|
||||||
<td class="t-right">10,422공</td>
|
<td class="t-right"><span class="comma-number hole">12492</span></td>
|
||||||
<td>-</td>
|
<td>-</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head" colspan="3">민간기관</td>
|
<td class="td-head" colspan="3">민간기관</td>
|
||||||
<td class="t-right">29,378공</td>
|
<td class="t-right"><span class="comma-number hole">68907</span></td>
|
||||||
<td>-</td>
|
<td>-</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-head td-total" colspan="3">전체 총 합계</td>
|
<td class="td-head td-total" colspan="3">전체 총 합계</td>
|
||||||
<td class="t-right">333,902공</td>
|
<td class="t-right"><span class="comma-number hole">390197</span></td>
|
||||||
<td></td>
|
<td></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
|
||||||
|
|
@ -7,14 +7,14 @@
|
||||||
<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||||||
<%
|
<%
|
||||||
try {
|
try {
|
||||||
|
|
||||||
// 한글인코딩
|
// 한글인코딩
|
||||||
request.setCharacterEncoding("UTF-8");
|
request.setCharacterEncoding("UTF-8");
|
||||||
|
|
||||||
// post, get에서 쓸 url을
|
// post, get에서 쓸 url을
|
||||||
//String reqUrl = "http://218.232.234.166/o2map/services/wms";
|
String reqUrl = "http://218.232.234.166/o2map/services/wms";
|
||||||
String reqUrl = "http://100.10.111.21:8080/o2map/services/wms";
|
//String reqUrl = "http://100.10.111.21:8080/o2map/services/wms";
|
||||||
|
|
||||||
//GET방식에서 key, value를 url에 넣는 과정
|
//GET방식에서 key, value를 url에 넣는 과정
|
||||||
Map paramMap = request.getParameterMap();
|
Map paramMap = request.getParameterMap();
|
||||||
Iterator iterator = paramMap.keySet().iterator();
|
Iterator iterator = paramMap.keySet().iterator();
|
||||||
|
|
@ -30,33 +30,33 @@
|
||||||
//get에서 knv를 url에 담는 과정
|
//get에서 knv를 url에 담는 과정
|
||||||
String middleUrl = "";
|
String middleUrl = "";
|
||||||
while (iterator.hasNext()) {
|
while (iterator.hasNext()) {
|
||||||
|
|
||||||
String key = (String) iterator.next();
|
String key = (String) iterator.next();
|
||||||
|
|
||||||
if (key.equalsIgnoreCase("url")) {
|
if (key.equalsIgnoreCase("url")) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
String values[] = (String[]) paramMap.get(key);
|
String values[] = (String[]) paramMap.get(key);
|
||||||
|
|
||||||
if (values[0] != null) {
|
if (values[0] != null) {
|
||||||
middleUrl = middleUrl + key.toUpperCase() + "=" + URLEncoder.encode(values[0], "UTF-8") + "&";
|
middleUrl = middleUrl + key.toUpperCase() + "=" + URLEncoder.encode(values[0], "UTF-8") + "&";
|
||||||
}
|
}
|
||||||
|
|
||||||
// System.out.println("key : " + key + " ___ value : " + values[0]);
|
// System.out.println("key : " + key + " ___ value : " + values[0]);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String resultUrl = reqUrl + middleUrl;
|
String resultUrl = reqUrl + middleUrl;
|
||||||
|
|
||||||
URL url = null;
|
URL url = null;
|
||||||
HttpURLConnection con = null;
|
HttpURLConnection con = null;
|
||||||
|
|
||||||
if (request.getMethod().equalsIgnoreCase("GET")) {
|
if (request.getMethod().equalsIgnoreCase("GET")) {
|
||||||
|
|
||||||
url = new URL(resultUrl);
|
url = new URL(resultUrl);
|
||||||
//System.out.println("request : (" + request.getMethod() + ") "+ resultUrl);
|
//System.out.println("request : (" + request.getMethod() + ") "+ resultUrl);
|
||||||
|
|
||||||
con = (HttpURLConnection) url.openConnection();
|
con = (HttpURLConnection) url.openConnection();
|
||||||
con.setDoOutput(true);
|
con.setDoOutput(true);
|
||||||
con.setRequestMethod(request.getMethod());
|
con.setRequestMethod(request.getMethod());
|
||||||
|
|
@ -72,32 +72,32 @@
|
||||||
os.write(bytes, 0, bytesRead);
|
os.write(bytes, 0, bytesRead);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
url = new URL(reqUrl);
|
url = new URL(reqUrl);
|
||||||
//System.out.println("request : (" + request.getMethod() + ") "+ reqUrl);
|
//System.out.println("request : (" + request.getMethod() + ") "+ reqUrl);
|
||||||
|
|
||||||
// POST방식에서 inputStream을 StringBuilder에 붙임
|
// POST방식에서 inputStream을 StringBuilder에 붙임
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
InputStreamReader is = new InputStreamReader(request.getInputStream());
|
InputStreamReader is = new InputStreamReader(request.getInputStream());
|
||||||
BufferedReader br = new BufferedReader(is);
|
BufferedReader br = new BufferedReader(is);
|
||||||
String read = br.readLine();
|
String read = br.readLine();
|
||||||
|
|
||||||
while (read != null) {
|
while (read != null) {
|
||||||
sb.append(read);
|
sb.append(read);
|
||||||
read = br.readLine();
|
read = br.readLine();
|
||||||
}
|
}
|
||||||
|
|
||||||
String strBody = sb.toString();
|
String strBody = sb.toString();
|
||||||
System.out.println("before body : " + strBody);
|
System.out.println("before body : " + strBody);
|
||||||
|
|
||||||
con = (HttpURLConnection) url.openConnection();
|
con = (HttpURLConnection) url.openConnection();
|
||||||
con.setRequestMethod(request.getMethod());
|
con.setRequestMethod(request.getMethod());
|
||||||
con.setRequestProperty("charset", "UTF-8");
|
con.setRequestProperty("charset", "UTF-8");
|
||||||
con.setDoOutput(true);
|
con.setDoOutput(true);
|
||||||
con.setUseCaches(false);
|
con.setUseCaches(false);
|
||||||
|
|
||||||
if (strBody.trim().startsWith("<")) {
|
if (strBody.trim().startsWith("<")) {
|
||||||
// XML of Post Method
|
// XML of Post Method
|
||||||
con.setRequestProperty("Content-Type", "application/xml");
|
con.setRequestProperty("Content-Type", "application/xml");
|
||||||
|
|
@ -106,18 +106,18 @@
|
||||||
strBody = strBody + middleUrl;
|
strBody = strBody + middleUrl;
|
||||||
con.setRequestProperty("Content-Type", request.getContentType());
|
con.setRequestProperty("Content-Type", request.getContentType());
|
||||||
}
|
}
|
||||||
|
|
||||||
System.out.println("after body : " + strBody);
|
System.out.println("after body : " + strBody);
|
||||||
// StringBuilder를 byte화 시켜서 post로 넘어온 데이터를 담는다
|
// StringBuilder를 byte화 시켜서 post로 넘어온 데이터를 담는다
|
||||||
byte[] postData = strBody.getBytes();
|
byte[] postData = strBody.getBytes();
|
||||||
con.setRequestProperty("Content-Length", Integer.toString(postData.length));
|
con.setRequestProperty("Content-Length", Integer.toString(postData.length));
|
||||||
con.getOutputStream().write(postData);
|
con.getOutputStream().write(postData);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
out.clear();
|
out.clear();
|
||||||
out = pageContext.pushBody();
|
out = pageContext.pushBody();
|
||||||
|
|
||||||
response.setContentType(con.getContentType());
|
response.setContentType(con.getContentType());
|
||||||
InputStream inStream = con.getInputStream();
|
InputStream inStream = con.getInputStream();
|
||||||
OutputStream outStream = response.getOutputStream();
|
OutputStream outStream = response.getOutputStream();
|
||||||
|
|
@ -127,16 +127,16 @@
|
||||||
int bytesRead = 0;
|
int bytesRead = 0;
|
||||||
while ((bytesRead = inStream.read(bytes, 0, length)) > 0) {
|
while ((bytesRead = inStream.read(bytes, 0, length)) > 0) {
|
||||||
outStream.write(bytes, 0, bytesRead);
|
outStream.write(bytes, 0, bytesRead);
|
||||||
}
|
}
|
||||||
}finally {
|
}finally {
|
||||||
if (inStream !=null){
|
if (inStream !=null){
|
||||||
inStream.close();
|
inStream.close();
|
||||||
}
|
}
|
||||||
if (outStream !=null){
|
if (outStream !=null){
|
||||||
outStream.close();
|
outStream.close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
System.out.println("proxyo2map proxy exception : " + e);
|
System.out.println("proxyo2map proxy exception : " + e);
|
||||||
response.setStatus(500);
|
response.setStatus(500);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue