1579 lines
62 KiB
Java
1579 lines
62 KiB
Java
package sgis.app.web;
|
|
|
|
import java.util.HashMap;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
|
|
import javax.annotation.Resource;
|
|
import javax.servlet.http.HttpServletRequest;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
import org.json.simple.JSONObject;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Controller;
|
|
import org.springframework.ui.ModelMap;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
import egovframework.rte.psl.dataaccess.util.EgovMap;
|
|
import sgis.app.service.AppInstrumentService;
|
|
import sgis.app.service.AppMainService;
|
|
import sgis.app.service.AppSgImpPlanService;
|
|
import sgis.com.mapper.ComCodeMapper;
|
|
import sgis.com.util.StringUtil;
|
|
import sgis.com.vo.ComCodeVO;
|
|
import sgis.com.vo.SessionVO;
|
|
import sgis.com.web.BaseController;
|
|
|
|
/**
|
|
* @FileName : AppInstrumentController.java
|
|
* @Date : 2022. 9. 19.
|
|
* @Creator : ICTWAY KIM YOON SU
|
|
* @Discription :
|
|
*/
|
|
@Controller
|
|
public class AppInstrumentController extends BaseController{
|
|
|
|
@Autowired
|
|
private ComCodeMapper ComCodeMapper;
|
|
|
|
@Resource(name ="AppMainService")
|
|
private AppMainService AppMainService;
|
|
|
|
@Resource(name="AppSgImpPlanService")
|
|
private AppSgImpPlanService AppSgImpPlanService;
|
|
|
|
@Resource(name ="AppInstrumentService")
|
|
private AppInstrumentService AppInstrumentService;
|
|
// 계측정보 탭 정보
|
|
@RequestMapping(value="/app/const/includeTapInstrumentInfo.do")
|
|
public String includeTapInstrumentInfo(@RequestParam HashMap<String,Object> params, ModelMap model,HttpServletRequest request, HttpServletResponse response) throws Exception{
|
|
|
|
EgovMap item = AppMainService.selectConstItemsInfo(params);
|
|
String resultStr = "";
|
|
String viewList = "";
|
|
|
|
//최종 Tab구성. "Y"인것만 보여주기
|
|
if(item !=null && item.size() > 0) {
|
|
if(("Y").equals(item.get("surSet"))) {
|
|
resultStr += "<li id='surSet' data-target='tab-1'><a href='#' data-toggle='tab' class='nav-tab'>지표침하판</a></li>";
|
|
viewList += "surSet";
|
|
}
|
|
if(("Y").equals(item.get("surPin"))) {
|
|
resultStr += "<li id='surPin' data-target='tab-2'><a href='#' data-toggle='tab' class='nav-tab'>지표침하핀</a></li>";
|
|
viewList += ",surPin";
|
|
}
|
|
if(("Y").equals(item.get("verInc"))) {
|
|
resultStr += "<li id='verInc' data-target='tab-3'><a href='#' data-toggle='tab' class='nav-tab'>지중경사계</a></li>";
|
|
viewList += ",verInc";
|
|
}
|
|
if(("Y").equals(item.get("setExt"))) {
|
|
resultStr += "<li id='setExt' data-target='tab-4'><a href='#' data-toggle='tab' class='nav-tab'>층별침하계</a></li>";
|
|
viewList += ",setExt";
|
|
}
|
|
if(("Y").equals(item.get("watPre"))) {
|
|
resultStr += "<li id='watPre' data-target='tab-5'><a href='#' data-toggle='tab' class='nav-tab'>간극수압계</a></li>";
|
|
viewList += ",watPre";
|
|
}
|
|
if(("Y").equals(item.get("watLev"))) {
|
|
resultStr += "<li id='watLev' data-target='tab-6'><a href='#' data-toggle='tab' class='nav-tab'>지하수위계</a></li>";
|
|
viewList += ",watLev";
|
|
}
|
|
}
|
|
|
|
String[] array = viewList.split(",");
|
|
|
|
String firstTap;
|
|
if(array[0].isEmpty()) {
|
|
firstTap = array[1];
|
|
} else {
|
|
firstTap = array[0];
|
|
}
|
|
|
|
model.put("html", resultStr);
|
|
model.put("params", params);
|
|
model.put("item", item);
|
|
model.put("firstTap", firstTap);
|
|
|
|
return "sgis/com/includeTapInstrumentInfo";
|
|
}
|
|
|
|
// 계측정보 첫 화면
|
|
@RequestMapping(value="/app/const/selectInstrumentInfoList.do")
|
|
public String selectInstrumentInfoList(@RequestParam HashMap<String, Object> params, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception{
|
|
|
|
EgovMap item = AppMainService.selectConstItemsInfo(params);
|
|
String itemEmptyYn = "";
|
|
String viewList = "";
|
|
|
|
if(item != null && item.size() > 0 ){
|
|
if(("Y").equals(item.get("surSet"))) {
|
|
viewList += "surSet";
|
|
}
|
|
if(("Y").equals(item.get("surPin"))) {
|
|
viewList += ",surPin";
|
|
}
|
|
if(("Y").equals(item.get("verInc"))) {
|
|
viewList += ",verInc";
|
|
}
|
|
if(("Y").equals(item.get("setExt"))) {
|
|
viewList += ",setExt";
|
|
}
|
|
if(("Y").equals(item.get("watPre"))) {
|
|
viewList += ",watPre";
|
|
}
|
|
if(("Y").equals(item.get("watLev"))) {
|
|
viewList += ",watLev";
|
|
}
|
|
}
|
|
|
|
String[] array = viewList.split(",");
|
|
|
|
String firstTap = "";
|
|
if(!"".equals(viewList) && item != null) {
|
|
if(array[0].isEmpty()) {
|
|
firstTap = array[1];
|
|
}else {
|
|
firstTap = array[0];
|
|
}
|
|
itemEmptyYn = "Y";
|
|
}else {
|
|
itemEmptyYn = "N";
|
|
}
|
|
|
|
model.put("itemEmptyYn", itemEmptyYn);
|
|
model.put("firstTap", firstTap);
|
|
model.put("params", params);
|
|
|
|
return "sgis/app/constInfo/instrumentInfo";
|
|
}
|
|
@RequestMapping(value="/app/const/selectsurSetInfo.do")
|
|
public String selectsurSetInfo(@RequestParam HashMap<String,Object> params, ModelMap model,HttpServletRequest request, HttpServletResponse response) throws Exception{
|
|
|
|
setLeftMenu(params, model, request);
|
|
setCode2Model2("project_epsg_code", model); // EPSG 코드
|
|
model.put("params", params);
|
|
|
|
return "sgis/app/constInfo/surSetInfo";
|
|
};
|
|
|
|
//계측정보 지표침하판 데이터 호출
|
|
@SuppressWarnings("unchecked")
|
|
@RequestMapping(value = "/app/const/surSetInfo_jsondata.do", method = {RequestMethod.POST, RequestMethod.GET})
|
|
public void surSetInfo_jsondata(@RequestParam HashMap<String,Object> params, ModelMap model,HttpServletRequest request, HttpServletResponse response) throws Exception{
|
|
request.setCharacterEncoding("UTF-8");
|
|
response.setContentType("text/html;charset=UTF-8");
|
|
|
|
//data정보
|
|
List<?> result = AppInstrumentService.selectSurSetInfo(params);
|
|
HashMap<String, List<?>> resultMap = new HashMap<String, List<?>>();
|
|
resultMap.put("dataList1", result);
|
|
|
|
JSONObject json = new JSONObject();
|
|
json.putAll( resultMap );
|
|
response.getWriter().print(json);
|
|
};
|
|
|
|
//계측정보 저장
|
|
@RequestMapping(value="/app/const/insertSurSetInfo.do", method=RequestMethod.POST)
|
|
public @ResponseBody JSONObject insertSurSetInfo(@RequestParam HashMap<String,Object> params, ModelMap model,HttpServletRequest request, HttpServletResponse response) throws Exception{
|
|
|
|
|
|
|
|
String retStr = "";
|
|
|
|
try {
|
|
SessionVO sessionVO = getSessionInfo();
|
|
String sysRegId = sessionVO.getsUserId(); //사용자 ID
|
|
int cnt = Integer.parseInt((String)params.get("itemCnt"));
|
|
|
|
EgovMap saupDetailInfo = AppMainService.selectAppSaupDetail(params);
|
|
|
|
//기존데이터 삭제
|
|
AppInstrumentService.deleteSurSetInfo(params);
|
|
|
|
for(int i=0;i<cnt;i++){
|
|
|
|
HashMap<String, Object> insertMap = new HashMap<String, Object>();
|
|
// data정보
|
|
insertMap.put("businessName", saupDetailInfo.get("businessName"));
|
|
insertMap.put("businessCode", params.get("businessCode"));
|
|
insertMap.put("surSetCode", params.get("surSetCode_"+ i));
|
|
insertMap.put("zoneCode", params.get("zoneCode_" + i ));
|
|
insertMap.put("epsgCodeType", params.get("epsgCodeType_"+i));
|
|
insertMap.put("pointX", Float.valueOf((String)params.get("pointX_"+i)));
|
|
insertMap.put("pointY", Float.valueOf((String)params.get("pointY_"+i)));
|
|
insertMap.put("sysRegId", sysRegId);
|
|
insertMap.put("consCode", params.get("consCode_"+i));
|
|
AppInstrumentService.insertSurSetInfo(insertMap);
|
|
}
|
|
|
|
retStr = "success";
|
|
|
|
}catch (Exception e) {
|
|
// TODO: handle exception
|
|
retStr = "fail";
|
|
}
|
|
|
|
JSONObject json = new JSONObject();
|
|
json.put("result", retStr);
|
|
return json;
|
|
};
|
|
|
|
@RequestMapping(value="/app/const/deleteSurSetInfo.do", method=RequestMethod.POST)
|
|
@ResponseBody
|
|
public JSONObject deleteSurSetInfo(@RequestParam HashMap<String,Object> params, ModelMap model,HttpServletRequest request, HttpServletResponse response) throws Exception{
|
|
|
|
String retStr = "";
|
|
|
|
try {
|
|
SessionVO sessionVO = getSessionInfo();
|
|
int cnt = Integer.parseInt((String)params.get("itemCnt"));
|
|
String sysRegId = sessionVO.getsUserId(); //사용자 ID
|
|
|
|
AppInstrumentService.deleteSurSetInfo(params);
|
|
AppInstrumentService.deleteSurSetSubInfo(params);
|
|
|
|
EgovMap saupDetailInfo = AppMainService.selectAppSaupDetail(params);
|
|
|
|
String delItem = (String)params.get("delItem");
|
|
String[] array = delItem.split("|");
|
|
|
|
for(int i=0;i<cnt;i++){
|
|
|
|
HashMap<String, Object> insertMap = new HashMap<String, Object>();
|
|
|
|
//data정보
|
|
insertMap.put("businessName", saupDetailInfo.get("businessName"));
|
|
insertMap.put("businessCode", params.get("businessCode"));
|
|
insertMap.put("surSetCode", params.get("surSetCode_"+ i));
|
|
insertMap.put("zoneCode", params.get("zoneCode_" + i ));
|
|
insertMap.put("epsgCodeType", params.get("epsgCodeType_"+i));
|
|
insertMap.put("pointX", Float.valueOf((String)params.get("pointX_"+i)));
|
|
insertMap.put("pointY", Float.valueOf((String)params.get("pointY_"+i)));
|
|
insertMap.put("sysRegId", sysRegId);
|
|
insertMap.put("consCode", params.get("consCode_"+i));
|
|
|
|
AppInstrumentService.insertSurSetInfo(insertMap);
|
|
|
|
}
|
|
retStr = "success";
|
|
|
|
}catch (Exception e) {
|
|
// TODO: handle exception
|
|
retStr = "fail";
|
|
}
|
|
|
|
JSONObject json = new JSONObject();
|
|
json.put("result", retStr);
|
|
return json;
|
|
};
|
|
|
|
// 지표침하판 주정보 저장여부
|
|
@RequestMapping(value="/app/const/confirmSurSetInfo.do", method=RequestMethod.POST)
|
|
@ResponseBody
|
|
public JSONObject confirmSurSetInfo(@RequestParam HashMap<String,Object> params, ModelMap model,HttpServletRequest request, HttpServletResponse response) throws Exception{
|
|
|
|
String retStr = "";
|
|
try {
|
|
params.put("businessCode", params.get("businessCode"));
|
|
params.put("consCode", params.get("consCode"));
|
|
List<?> result = AppInstrumentService.selectSurSetInfo(params);
|
|
if(result.isEmpty()) {
|
|
retStr = "fail";
|
|
}else {
|
|
retStr = "success";
|
|
}
|
|
}catch (Exception e) {
|
|
// TODO: handle exception
|
|
retStr = "fail";
|
|
}
|
|
|
|
JSONObject json = new JSONObject();
|
|
json.put("result", retStr);
|
|
return json;
|
|
|
|
};
|
|
|
|
//지표침하판 부정보
|
|
@RequestMapping(value="/app/const/selectIncludeSurSetSubInfo.do")
|
|
public String selectIncludeSurSetSubInfo(@RequestParam HashMap<String,Object> params, ModelMap model,HttpServletRequest request, HttpServletResponse response) throws Exception{
|
|
|
|
List<?> result = AppInstrumentService.selectSurSetInfo(params);
|
|
model.put("params", params);
|
|
setUnitCode2Model("unit_code", model);
|
|
return "sgis/app/constInfo/popup/includeSurSetSubInfo";
|
|
}
|
|
|
|
//지표침하판 부정보 데이터 조회
|
|
@SuppressWarnings("unchecked")
|
|
@RequestMapping(value = "/app/const/surSetSubInfo_jsondata.do", method = {RequestMethod.POST, RequestMethod.GET})
|
|
public void surSetSubInfo_jsondata(@RequestParam HashMap<String,Object> params, ModelMap model,HttpServletRequest request, HttpServletResponse response) throws Exception{
|
|
request.setCharacterEncoding("UTF-8");
|
|
response.setContentType("text/html;charset=UTF-8");
|
|
|
|
//data정보
|
|
List<?> result = AppInstrumentService.selectSurSetSubInfo(params);
|
|
|
|
HashMap<String, List<?>> resultMap = new HashMap<String, List<?>>();
|
|
resultMap.put("dataList1", result);
|
|
|
|
JSONObject json = new JSONObject();
|
|
json.putAll( resultMap );
|
|
response.getWriter().print(json);
|
|
};
|
|
|
|
//지표침하판 부정보 저장
|
|
@RequestMapping(value="/app/const/insertSurSetSubInfo.do", produces="application/json;charset=utf-8")
|
|
@ResponseBody
|
|
public JSONObject insertSurSetSubInfo(@RequestParam HashMap<String,Object> params, ModelMap model,HttpServletRequest request, HttpServletResponse response) throws Exception{
|
|
|
|
String retStr = "";
|
|
|
|
try {
|
|
SessionVO sessionVO = getSessionInfo();
|
|
|
|
//기존데이터 삭제
|
|
AppInstrumentService.deleteSurSetSubInfo(params);
|
|
|
|
int cnt = Integer.parseInt((String)params.get("itemCnt"));
|
|
|
|
for(int i=0;i<cnt;i++){
|
|
|
|
HashMap<String, Object> insertMap = new HashMap<String, Object>();
|
|
|
|
ComCodeVO codeVO = new ComCodeVO();
|
|
codeVO.setCdGrp("unit_code");
|
|
List<?> unitCodeList = ComCodeMapper.selectComCodeList(codeVO);
|
|
List<Map<String, Object>> listMap = (List<Map<String, Object>>) unitCodeList;
|
|
for(int k=0; k < unitCodeList.size(); k++) {
|
|
if(StringUtil.nullToBlank((String)params.get("setUnit")).equals(listMap.get(k).get("label"))) {
|
|
params.put("mUnit", (String) listMap.get(k).get("code"));
|
|
}
|
|
if(StringUtil.nullToBlank((String)params.get("setUnit2")).equals(listMap.get(k).get("label"))) {
|
|
params.put("mUnit2", (String) listMap.get(k).get("code"));
|
|
}
|
|
}
|
|
|
|
// data정보
|
|
insertMap.put("businessCode", params.get("businessCode"));
|
|
insertMap.put("consCode", params.get("consCode"));
|
|
insertMap.put("mUnit", params.get("mUnit"));
|
|
insertMap.put("mUnit2", params.get("mUnit2"));
|
|
insertMap.put("measureDt", params.get("measureDt_"+ i));
|
|
insertMap.put("nod", params.get("nod_" + i).equals("") ? null : Float.valueOf((String)params.get("nod_" + i)));
|
|
insertMap.put("nodPer", params.get("nodPer_" + i).equals("") ? null : Float.valueOf((String)params.get("nodPer_" + i)));
|
|
insertMap.put("measuringRod", params.get("measuringRod_" + i).equals("") ? null : Float.valueOf((String)params.get("measuringRod_" + i)));
|
|
insertMap.put("subByPeriod", params.get("subByPeriod_" + i).equals("") ? null : Float.valueOf((String)params.get("subByPeriod_" + i)));
|
|
insertMap.put("amountCumSub", params.get("amountCumSub_" + i).equals("") ? null : Float.valueOf((String)params.get("amountCumSub_" + i)));
|
|
insertMap.put("groundHeight", params.get("groundHeight_" + i).equals("") ? null : Float.valueOf((String)params.get("groundHeight_" + i)));
|
|
insertMap.put("fillHeight", params.get("fillHeight_" + i).equals("") ? null : Float.valueOf((String)params.get("fillHeight_" + i)));
|
|
insertMap.put("realFillHeight", params.get("realFillHeight_" + i).equals("") ? null : Float.valueOf((String)params.get("realFillHeight_" + i)));
|
|
insertMap.put("connSetRod", params.get("connSetRod_" + i).equals("") ? null : Float.valueOf((String)params.get("connSetRod_" + i)));
|
|
|
|
AppInstrumentService.insertSurSetSubInfo(insertMap);
|
|
}
|
|
|
|
retStr = "success";
|
|
|
|
}catch (Exception e) {
|
|
// TODO: handle exception
|
|
retStr = "fail";
|
|
}
|
|
|
|
JSONObject json = new JSONObject();
|
|
json.put("result", retStr);
|
|
return json;
|
|
};
|
|
|
|
@RequestMapping(value="/app/const/selectsurPinInfo.do")
|
|
public String selectsurPinInfo(@RequestParam HashMap<String,Object> params, ModelMap model,HttpServletRequest request, HttpServletResponse response) throws Exception{
|
|
|
|
setLeftMenu(params, model, request);
|
|
setCode2Model2("project_epsg_code", model); // EPSG 코드
|
|
setUnitCode2Model("unit_code", model);
|
|
model.put("params", params);
|
|
|
|
return "sgis/app/constInfo/surPinInfo";
|
|
};
|
|
|
|
//계측정보 지표침하핀 데이터 호출
|
|
@SuppressWarnings("unchecked")
|
|
@RequestMapping(value = "/app/const/surPinInfo_jsondata.do", method = {RequestMethod.POST, RequestMethod.GET})
|
|
public void surPinInfo_jsondata(@RequestParam HashMap<String,Object> params, ModelMap model,HttpServletRequest request, HttpServletResponse response) throws Exception{
|
|
request.setCharacterEncoding("UTF-8");
|
|
response.setContentType("text/html;charset=UTF-8");
|
|
|
|
//data정보
|
|
List<?> result = AppInstrumentService.selectSurPinInfo(params);
|
|
HashMap<String, List<?>> resultMap = new HashMap<String, List<?>>();
|
|
resultMap.put("dataList1", result);
|
|
|
|
JSONObject json = new JSONObject();
|
|
json.putAll( resultMap );
|
|
response.getWriter().print(json);
|
|
};
|
|
|
|
|
|
//계측정보 저장
|
|
@RequestMapping(value="/app/const/insertSurPinInfo.do", method=RequestMethod.POST)
|
|
public @ResponseBody JSONObject insertSurPinInfo(@RequestParam HashMap<String,Object> params, ModelMap model,HttpServletRequest request, HttpServletResponse response) throws Exception{
|
|
|
|
String retStr = "";
|
|
|
|
|
|
try {
|
|
SessionVO sessionVO = getSessionInfo();
|
|
String sysRegId = sessionVO.getsUserId(); //사용자 ID
|
|
int cnt = Integer.parseInt((String)params.get("itemCnt"));
|
|
|
|
//기존데이터 삭제
|
|
AppInstrumentService.deleteSurPinInfo(params);
|
|
|
|
EgovMap saupDetailInfo = AppMainService.selectAppSaupDetail(params);
|
|
|
|
for(int i=0;i<cnt;i++){
|
|
|
|
HashMap<String, Object> insertMap = new HashMap<String, Object>();
|
|
|
|
// data정보
|
|
insertMap.put("businessName", saupDetailInfo.get("businessName"));
|
|
insertMap.put("businessCode", params.get("businessCode"));
|
|
insertMap.put("surPinCode", params.get("surPinCode_"+ i));
|
|
insertMap.put("zoneCode", params.get("zoneCode_" + i ));
|
|
insertMap.put("epsgCodeType", params.get("epsgCodeType_"+i));
|
|
insertMap.put("pointX", Float.valueOf((String)params.get("pointX_"+i)));
|
|
insertMap.put("pointY", Float.valueOf((String)params.get("pointY_"+i)));
|
|
insertMap.put("sysRegId", sysRegId);
|
|
insertMap.put("consCode", params.get("consCode_"+i));
|
|
AppInstrumentService.insertSurPinInfo(insertMap);
|
|
}
|
|
|
|
retStr = "success";
|
|
|
|
}catch (Exception e) {
|
|
// TODO: handle exception
|
|
retStr = "fail";
|
|
}
|
|
|
|
JSONObject json = new JSONObject();
|
|
json.put("result", retStr);
|
|
return json;
|
|
};
|
|
|
|
@RequestMapping(value="/app/const/deleteSurPinInfo.do", method=RequestMethod.POST)
|
|
@ResponseBody
|
|
public JSONObject deleteSurPinInfo(@RequestParam HashMap<String,Object> params, ModelMap model,HttpServletRequest request, HttpServletResponse response) throws Exception{
|
|
|
|
String retStr = "";
|
|
|
|
try {
|
|
SessionVO sessionVO = getSessionInfo();
|
|
|
|
String sysRegId = sessionVO.getsUserId(); //사용자 ID
|
|
int cnt = Integer.parseInt((String)params.get("itemCnt"));
|
|
|
|
AppInstrumentService.deleteSurPinInfo(params);
|
|
EgovMap saupDetailInfo = AppMainService.selectAppSaupDetail(params);
|
|
String delItem = (String)params.get("delItem");
|
|
String[] array = delItem.split("\\|");
|
|
HashMap<String, Object> deleteMap = new HashMap<String, Object>();
|
|
for(int i=0;i<array.length;i++){
|
|
if(!array[i].equals("|")) {
|
|
deleteMap.put("consCode", (array[i]));
|
|
deleteMap.put("businessCode", params.get("businessCode"));
|
|
|
|
AppInstrumentService.deleteSurPinSubInfo(deleteMap);
|
|
}
|
|
}
|
|
|
|
for(int i=0;i<cnt;i++){
|
|
|
|
HashMap<String, Object> insertMap = new HashMap<String, Object>();
|
|
|
|
// data정보
|
|
insertMap.put("businessName", saupDetailInfo.get("businessName"));
|
|
insertMap.put("businessCode", params.get("businessCode"));
|
|
insertMap.put("surPinCode", params.get("surPinCode_"+ i));
|
|
insertMap.put("zoneCode", params.get("zoneCode_" + i ));
|
|
insertMap.put("epsgCodeType", params.get("epsgCodeType_"+i));
|
|
insertMap.put("pointX", Float.valueOf((String)params.get("pointX_"+i)));
|
|
insertMap.put("pointY", Float.valueOf((String)params.get("pointY_"+i)));
|
|
insertMap.put("sysRegId", sysRegId);
|
|
insertMap.put("consCode", params.get("consCode_"+i));
|
|
|
|
AppInstrumentService.insertSurPinInfo(insertMap);
|
|
}
|
|
retStr = "success";
|
|
|
|
}catch (Exception e) {
|
|
// TODO: handle exception
|
|
retStr = "fail";
|
|
}
|
|
|
|
JSONObject json = new JSONObject();
|
|
json.put("result", retStr);
|
|
return json;
|
|
};
|
|
|
|
// 지표침하핀 주정보 저장여부
|
|
@RequestMapping(value="/app/const/confirmSurPinInfo.do", method=RequestMethod.POST)
|
|
@ResponseBody
|
|
public JSONObject confirmSurPinInfo(@RequestParam HashMap<String,Object> params, ModelMap model,HttpServletRequest request, HttpServletResponse response) throws Exception{
|
|
|
|
model.put("params", params);
|
|
|
|
String retStr = "";
|
|
try {
|
|
params.put("businessCode", params.get("businessCode"));
|
|
params.put("consCode", params.get("consCode"));
|
|
List<?> result = AppInstrumentService.selectSurPinInfo(params);
|
|
if(result.isEmpty()) {
|
|
retStr = "fail";
|
|
}else {
|
|
retStr = "success";
|
|
}
|
|
}catch (Exception e) {
|
|
// TODO: handle exception
|
|
retStr = "fail";
|
|
}
|
|
|
|
JSONObject json = new JSONObject();
|
|
json.put("result", retStr);
|
|
return json;
|
|
};
|
|
|
|
//지표침하핀 부정보
|
|
@RequestMapping(value="/app/const/selectIncludeSurPinSubInfo.do")
|
|
public String selectIncludeSurPinSubInfo(@RequestParam HashMap<String,Object> params, ModelMap model,HttpServletRequest request, HttpServletResponse response) throws Exception{
|
|
|
|
model.put("params", params);
|
|
setUnitCode2Model("unit_code", model); // 단위정보
|
|
List<?> result = AppInstrumentService.selectSurPinInfo(params);
|
|
return "sgis/app/constInfo/popup/includeSurPinSubInfo";
|
|
}
|
|
|
|
//지표침하핀 부정보 데이터 조회
|
|
@SuppressWarnings("unchecked")
|
|
@RequestMapping(value = "/app/const/surPinSubInfo_jsondata.do", method = {RequestMethod.POST, RequestMethod.GET})
|
|
public void surPinSubInfo_jsondata(@RequestParam HashMap<String,Object> params, ModelMap model,HttpServletRequest request, HttpServletResponse response) throws Exception{
|
|
request.setCharacterEncoding("UTF-8");
|
|
response.setContentType("text/html;charset=UTF-8");
|
|
|
|
//data정보
|
|
List<?> result = AppInstrumentService.selectSurPinSubInfo(params);
|
|
HashMap<String, List<?>> resultMap = new HashMap<String, List<?>>();
|
|
resultMap.put("dataList1", result);
|
|
|
|
JSONObject json = new JSONObject();
|
|
json.putAll( resultMap );
|
|
response.getWriter().print(json);
|
|
};
|
|
|
|
//지표침하핀 부정보 저장
|
|
@RequestMapping(value="/app/const/insertSurPinSubInfo.do", produces="application/json;charset=utf-8")
|
|
@ResponseBody
|
|
public JSONObject insertSurPinSubInfo(@RequestParam HashMap<String,Object> params, ModelMap model,HttpServletRequest request, HttpServletResponse response) throws Exception{
|
|
|
|
String retStr = "";
|
|
|
|
try {
|
|
SessionVO sessionVO = getSessionInfo();
|
|
|
|
//기존데이터 삭제
|
|
AppInstrumentService.deleteSurPinSubInfo(params);
|
|
|
|
int cnt = Integer.parseInt((String)params.get("itemCnt"));
|
|
|
|
for(int i=0;i<cnt;i++){
|
|
|
|
HashMap<String, Object> insertMap = new HashMap<String, Object>();
|
|
|
|
ComCodeVO codeVO = new ComCodeVO();
|
|
codeVO.setCdGrp("unit_code");
|
|
List<?> unitCodeList = ComCodeMapper.selectComCodeList(codeVO);
|
|
List<Map<String, Object>> listMap = (List<Map<String, Object>>) unitCodeList;
|
|
for(int k=0; k < unitCodeList.size(); k++) {
|
|
if(StringUtil.nullToBlank((String)params.get("setUnit")).equals(listMap.get(k).get("label"))) {
|
|
params.put("mUnit", (String) listMap.get(k).get("code"));
|
|
}
|
|
if(StringUtil.nullToBlank((String)params.get("setUnit2")).equals(listMap.get(k).get("label"))) {
|
|
params.put("mUnit2", (String) listMap.get(k).get("code"));
|
|
}
|
|
}
|
|
|
|
// data정보
|
|
insertMap.put("businessCode", params.get("businessCode"));
|
|
insertMap.put("consCode", params.get("consCode"));
|
|
insertMap.put("mUnit", params.get("mUnit"));
|
|
insertMap.put("mUnit2", params.get("mUnit2"));
|
|
insertMap.put("measureDt", params.get("measureDt_"+ i));
|
|
insertMap.put("nod", Integer.parseInt((String)params.get("nod_" + i)));
|
|
insertMap.put("measurement", params.get("measurement_" + i).equals("") ? null : Float.valueOf((String)params.get("measurement_" + i)));
|
|
insertMap.put("daySet", params.get("daySet_" + i).equals("") ? null : Float.valueOf((String)params.get("daySet_" + i)));
|
|
insertMap.put("amountCumSub", params.get("amountCumSub_" + i).equals("") ? null : Float.valueOf((String)params.get("amountCumSub_" + i)));
|
|
|
|
AppInstrumentService.insertSurPinSubInfo(insertMap);
|
|
}
|
|
|
|
retStr = "success";
|
|
|
|
}catch (Exception e) {
|
|
// TODO: handle exception
|
|
retStr = "fail";
|
|
}
|
|
|
|
JSONObject json = new JSONObject();
|
|
json.put("result", retStr);
|
|
return json;
|
|
};
|
|
|
|
@RequestMapping(value="/app/const/selectverIncInfo.do")
|
|
public String selectverIncInfo(@RequestParam HashMap<String,Object> params, ModelMap model,HttpServletRequest request, HttpServletResponse response) throws Exception{
|
|
|
|
setLeftMenu(params, model, request);
|
|
setCode2Model2("project_epsg_code", model); // EPSG 코드
|
|
model.put("params", params);
|
|
|
|
return "sgis/app/constInfo/verIncInfo";
|
|
};
|
|
|
|
//계측정보 지중경사계 데이터 호출
|
|
@SuppressWarnings("unchecked")
|
|
@RequestMapping(value = "/app/const/verIncInfo_jsondata.do", method = {RequestMethod.POST, RequestMethod.GET})
|
|
public void verIncInfo_jsondata(@RequestParam HashMap<String,Object> params, ModelMap model,HttpServletRequest request, HttpServletResponse response) throws Exception{
|
|
request.setCharacterEncoding("UTF-8");
|
|
response.setContentType("text/html;charset=UTF-8");
|
|
|
|
//data정보
|
|
List<?> result = AppInstrumentService.selectVerIncInfo(params);
|
|
|
|
HashMap<String, List<?>> resultMap = new HashMap<String, List<?>>();
|
|
resultMap.put("dataList1", result);
|
|
|
|
JSONObject json = new JSONObject();
|
|
json.putAll( resultMap );
|
|
response.getWriter().print(json);
|
|
};
|
|
|
|
//계측정보 저장
|
|
@RequestMapping(value="/app/const/insertVerIncInfo.do", method=RequestMethod.POST)
|
|
public @ResponseBody JSONObject insertVerIncInfo(@RequestParam HashMap<String,Object> params, ModelMap model,HttpServletRequest request, HttpServletResponse response) throws Exception{
|
|
|
|
String retStr = "";
|
|
|
|
|
|
try {
|
|
SessionVO sessionVO = getSessionInfo();
|
|
String sysRegId = sessionVO.getsUserId(); //사용자 ID
|
|
EgovMap saupDetailInfo = AppMainService.selectAppSaupDetail(params);
|
|
|
|
int cnt = Integer.parseInt((String)params.get("itemCnt"));
|
|
|
|
//기존데이터 삭제
|
|
AppInstrumentService.deleteVerIncInfo(params);
|
|
|
|
for(int i=0;i<cnt;i++){
|
|
|
|
|
|
HashMap<String, Object> insertMap = new HashMap<String, Object>();
|
|
|
|
// data정보
|
|
insertMap.put("businessName", saupDetailInfo.get("businessName"));
|
|
insertMap.put("businessCode", params.get("businessCode"));
|
|
insertMap.put("verIncCode", params.get("verIncCode_"+ i));
|
|
insertMap.put("zoneCode", params.get("zoneCode_" + i ));
|
|
insertMap.put("epsgCodeType", params.get("epsgCodeType_"+i));
|
|
insertMap.put("pointX", Float.valueOf((String)params.get("pointX_"+i)));
|
|
insertMap.put("pointY", Float.valueOf((String)params.get("pointY_"+i)));
|
|
insertMap.put("zoneCode", params.get("zoneCode_" + i));
|
|
insertMap.put("sysRegId", sysRegId);
|
|
insertMap.put("consCode", params.get("consCode_"+i));
|
|
insertMap.put("direction", params.get("direction_"+i));
|
|
AppInstrumentService.insertVerIncInfo(insertMap);
|
|
}
|
|
|
|
retStr = "success";
|
|
|
|
}catch (Exception e) {
|
|
// TODO: handle exception
|
|
retStr = "fail";
|
|
}
|
|
|
|
JSONObject json = new JSONObject();
|
|
json.put("result", retStr);
|
|
return json;
|
|
};
|
|
|
|
@RequestMapping(value="/app/const/deleteVerIncInfo.do", method=RequestMethod.POST)
|
|
@ResponseBody
|
|
public JSONObject deleteVerIncInfo(@RequestParam HashMap<String,Object> params, ModelMap model,HttpServletRequest request, HttpServletResponse response) throws Exception{
|
|
|
|
String retStr = "";
|
|
|
|
try {
|
|
SessionVO sessionVO = getSessionInfo();
|
|
String sysRegId = sessionVO.getsUserId(); //사용자 ID
|
|
|
|
int cnt = Integer.parseInt((String)params.get("itemCnt"));
|
|
EgovMap saupDetailInfo = AppMainService.selectAppSaupDetail(params);
|
|
|
|
AppInstrumentService.deleteVerIncInfo(params);
|
|
|
|
String delItem = (String)params.get("delItem");
|
|
String[] array = delItem.split("\\|");
|
|
HashMap<String, Object> deleteMap = new HashMap<String, Object>();
|
|
for(int i=0;i<array.length;i++){
|
|
if(!array[i].equals("|")) {
|
|
deleteMap.put("consCode", (array[i]));
|
|
deleteMap.put("businessCode", params.get("businessCode"));
|
|
|
|
AppInstrumentService.deleteVerIncSubInfo(deleteMap);
|
|
}
|
|
}
|
|
|
|
for(int i=0;i<cnt;i++){
|
|
|
|
HashMap<String, Object> insertMap = new HashMap<String, Object>();
|
|
|
|
// data정보
|
|
insertMap.put("businessName", saupDetailInfo.get("businessName"));
|
|
insertMap.put("businessCode", params.get("businessCode"));
|
|
insertMap.put("verIncCode", params.get("verIncCode_"+ i));
|
|
insertMap.put("zoneCode", params.get("zoneCode_" + i ));
|
|
insertMap.put("epsgCodeType", params.get("epsgCodeType_"+i));
|
|
insertMap.put("pointX", Float.valueOf((String)params.get("pointX_"+i)));
|
|
insertMap.put("pointY", Float.valueOf((String)params.get("pointY_"+i)));
|
|
insertMap.put("sysRegId", sysRegId);
|
|
insertMap.put("consCode", params.get("consCode_"+i));
|
|
insertMap.put("direction", params.get("direction_"+i));
|
|
AppInstrumentService.insertVerIncInfo(insertMap);
|
|
}
|
|
|
|
retStr = "success";
|
|
|
|
}catch (Exception e) {
|
|
// TODO: handle exception
|
|
retStr = "fail";
|
|
}
|
|
|
|
JSONObject json = new JSONObject();
|
|
json.put("result", retStr);
|
|
return json;
|
|
};
|
|
|
|
// 지중경사계 주정보 저장여부
|
|
@RequestMapping(value="/app/const/confirmVerIncInfo.do", method=RequestMethod.POST)
|
|
@ResponseBody
|
|
public JSONObject confirmVerIncInfo(@RequestParam HashMap<String,Object> params, ModelMap model,HttpServletRequest request, HttpServletResponse response) throws Exception{
|
|
|
|
model.put("params", params);
|
|
|
|
String retStr = "";
|
|
try {
|
|
params.put("businessCode", params.get("businessCode"));
|
|
params.put("consCode", params.get("consCode"));
|
|
List<?> result = AppInstrumentService.selectVerIncInfo(params);
|
|
if(result.isEmpty()) {
|
|
retStr = "fail";
|
|
}else {
|
|
retStr = "success";
|
|
}
|
|
}catch (Exception e) {
|
|
// TODO: handle exception
|
|
retStr = "fail";
|
|
}
|
|
|
|
JSONObject json = new JSONObject();
|
|
json.put("result", retStr);
|
|
return json;
|
|
};
|
|
|
|
//지중경사계 부정보
|
|
@RequestMapping(value="/app/const/selectIncludeVerIncSubInfo.do")
|
|
public String selectIncludeVerIncSubInfo(@RequestParam HashMap<String,Object> params, ModelMap model,HttpServletRequest request, HttpServletResponse response) throws Exception{
|
|
|
|
model.put("params", params);
|
|
List<?> result = AppInstrumentService.selectVerIncInfo(params);
|
|
return "sgis/app/constInfo/popup/includeVerIncSubInfo";
|
|
}
|
|
|
|
//지중경사계 부정보 데이터 조회
|
|
@SuppressWarnings("unchecked")
|
|
@RequestMapping(value = "/app/const/verIncSubInfo_jsondata.do", method = {RequestMethod.POST, RequestMethod.GET})
|
|
public void verIncSubInfo_jsondata(@RequestParam HashMap<String,Object> params, ModelMap model,HttpServletRequest request, HttpServletResponse response) throws Exception{
|
|
request.setCharacterEncoding("UTF-8");
|
|
response.setContentType("text/html;charset=UTF-8");
|
|
|
|
//data정보
|
|
List<?> result = AppInstrumentService.selectVerIncSubInfo(params);
|
|
|
|
HashMap<String, List<?>> resultMap = new HashMap<String, List<?>>();
|
|
resultMap.put("dataList1", result);
|
|
|
|
JSONObject json = new JSONObject();
|
|
json.putAll( resultMap );
|
|
response.getWriter().print(json);
|
|
};
|
|
|
|
//지중경사계 부정보 저장
|
|
@RequestMapping(value="/app/const/insertVerIncSubInfo.do", produces="application/json;charset=utf-8")
|
|
@ResponseBody
|
|
public JSONObject insertVerIncSubInfo(@RequestParam HashMap<String,Object> params, ModelMap model,HttpServletRequest request, HttpServletResponse response) throws Exception{
|
|
|
|
String retStr = "";
|
|
|
|
try {
|
|
SessionVO sessionVO = getSessionInfo();
|
|
|
|
//기존데이터 삭제
|
|
AppInstrumentService.deleteVerIncSubInfo(params);
|
|
|
|
int cnt = Integer.parseInt((String)params.get("itemCnt"));
|
|
|
|
for(int i=0;i<cnt;i++){
|
|
|
|
HashMap<String, Object> insertMap = new HashMap<String, Object>();
|
|
|
|
// data정보
|
|
insertMap.put("businessCode", params.get("businessCode"));
|
|
insertMap.put("consCode", params.get("consCode"));
|
|
insertMap.put("depth", Float.valueOf((String)params.get("depth_" + i)));
|
|
insertMap.put("measureDt", params.get("measureDt_"+ i));
|
|
insertMap.put("horizonScale", params.get("horizonScale_" + i).equals("") ? null : Float.valueOf((String)params.get("horizonScale_" + i)));
|
|
|
|
AppInstrumentService.insertVerIncSubInfo(insertMap);
|
|
}
|
|
|
|
retStr = "success";
|
|
|
|
}catch (Exception e) {
|
|
// TODO: handle exception
|
|
retStr = "fail";
|
|
}
|
|
|
|
JSONObject json = new JSONObject();
|
|
json.put("result", retStr);
|
|
return json;
|
|
};
|
|
|
|
|
|
@RequestMapping(value="/app/const/selectsetExtInfo.do")
|
|
public String selectsetExtInfo(@RequestParam HashMap<String,Object> params, ModelMap model,HttpServletRequest request, HttpServletResponse response) throws Exception{
|
|
|
|
setLeftMenu(params, model, request);
|
|
setCode2Model2("project_epsg_code", model); // EPSG 코드
|
|
model.put("params", params);
|
|
|
|
return "sgis/app/constInfo/setExtInfo";
|
|
};
|
|
|
|
//계측정보 층별침하계 데이터 호출
|
|
@SuppressWarnings("unchecked")
|
|
@RequestMapping(value = "/app/const/setExtInfo_jsondata.do", method = {RequestMethod.POST, RequestMethod.GET})
|
|
public void setExtInfo_jsondata(@RequestParam HashMap<String,Object> params, ModelMap model,HttpServletRequest request, HttpServletResponse response) throws Exception{
|
|
request.setCharacterEncoding("UTF-8");
|
|
response.setContentType("text/html;charset=UTF-8");
|
|
|
|
//data정보
|
|
List<?> result = AppInstrumentService.selectSetExtInfo(params);
|
|
|
|
HashMap<String, List<?>> resultMap = new HashMap<String, List<?>>();
|
|
resultMap.put("dataList1", result);
|
|
|
|
JSONObject json = new JSONObject();
|
|
json.putAll( resultMap );
|
|
response.getWriter().print(json);
|
|
};
|
|
|
|
//계측정보 저장
|
|
@RequestMapping(value="/app/const/insertSetExtInfo.do", method=RequestMethod.POST)
|
|
public @ResponseBody JSONObject insertSetExtInfo(@RequestParam HashMap<String,Object> params, ModelMap model,HttpServletRequest request, HttpServletResponse response) throws Exception{
|
|
|
|
String retStr = "";
|
|
|
|
|
|
try {
|
|
SessionVO sessionVO = getSessionInfo();
|
|
String sysRegId = sessionVO.getsUserId(); //사용자 ID
|
|
|
|
int cnt = Integer.parseInt((String)params.get("itemCnt"));
|
|
EgovMap saupDetailInfo = AppMainService.selectAppSaupDetail(params);
|
|
|
|
//기존데이터 삭제
|
|
AppInstrumentService.deleteSetExtInfo(params);
|
|
|
|
for(int i=0;i<cnt;i++){
|
|
|
|
|
|
HashMap<String, Object> insertMap = new HashMap<String, Object>();
|
|
|
|
// data정보
|
|
insertMap.put("businessName", saupDetailInfo.get("businessName"));
|
|
insertMap.put("businessCode", params.get("businessCode"));
|
|
insertMap.put("setExtCode", params.get("setExtCode_"+ i));
|
|
insertMap.put("zoneCode", params.get("zoneCode_" + i ));
|
|
insertMap.put("epsgCodeType", params.get("epsgCodeType_"+i));
|
|
insertMap.put("pointX", Float.valueOf((String)params.get("pointX_"+i)));
|
|
insertMap.put("pointY", Float.valueOf((String)params.get("pointY_"+i)));
|
|
insertMap.put("sysRegId", sysRegId);
|
|
insertMap.put("consCode", params.get("consCode_"+i));
|
|
AppInstrumentService.insertSetExtInfo(insertMap);
|
|
}
|
|
|
|
retStr = "success";
|
|
|
|
}catch (Exception e) {
|
|
// TODO: handle exception
|
|
retStr = "fail";
|
|
}
|
|
|
|
JSONObject json = new JSONObject();
|
|
json.put("result", retStr);
|
|
return json;
|
|
};
|
|
|
|
@RequestMapping(value="/app/const/deleteSetExtInfo.do", method=RequestMethod.POST)
|
|
@ResponseBody
|
|
public JSONObject deleteSetExtInfo(@RequestParam HashMap<String,Object> params, ModelMap model,HttpServletRequest request, HttpServletResponse response) throws Exception{
|
|
|
|
String retStr = "";
|
|
|
|
try {
|
|
SessionVO sessionVO = getSessionInfo();
|
|
String sysRegId = sessionVO.getsUserId(); //사용자 ID
|
|
|
|
int cnt = Integer.parseInt((String)params.get("itemCnt"));
|
|
EgovMap saupDetailInfo = AppMainService.selectAppSaupDetail(params);
|
|
|
|
AppInstrumentService.deleteSetExtInfo(params);
|
|
String delItem = (String)params.get("delItem");
|
|
String[] array = delItem.split("\\|");
|
|
HashMap<String, Object> deleteMap = new HashMap<String, Object>();
|
|
for(int i=0;i<array.length;i++){
|
|
if(!array[i].equals("|")) {
|
|
deleteMap.put("consCode", (array[i]));
|
|
deleteMap.put("businessCode", params.get("businessCode"));
|
|
|
|
AppInstrumentService.deleteSetExtSubInfo(deleteMap);
|
|
}
|
|
}
|
|
for(int i=0;i<cnt;i++){
|
|
|
|
|
|
HashMap<String, Object> insertMap = new HashMap<String, Object>();
|
|
|
|
// data정보
|
|
insertMap.put("businessName", saupDetailInfo.get("businessName"));
|
|
insertMap.put("businessCode", params.get("businessCode"));
|
|
insertMap.put("setExtCode", params.get("setExtCode_"+ i));
|
|
insertMap.put("zoneCode", params.get("zoneCode_" + i ));
|
|
insertMap.put("epsgCodeType", params.get("epsgCodeType_"+i));
|
|
insertMap.put("pointX", Float.valueOf((String)params.get("pointX_"+i)));
|
|
insertMap.put("pointY", Float.valueOf((String)params.get("pointY_"+i)));
|
|
insertMap.put("sysRegId", sysRegId);
|
|
insertMap.put("consCode", params.get("consCode_"+i));
|
|
|
|
AppInstrumentService.insertSetExtInfo(insertMap);
|
|
}
|
|
retStr = "success";
|
|
|
|
}catch (Exception e) {
|
|
// TODO: handle exception
|
|
retStr = "fail";
|
|
}
|
|
|
|
JSONObject json = new JSONObject();
|
|
json.put("result", retStr);
|
|
return json;
|
|
};
|
|
|
|
//층별침하계 주정보 저장여부
|
|
@RequestMapping(value="/app/const/confirmSetExtInfo.do", method=RequestMethod.POST)
|
|
@ResponseBody
|
|
public JSONObject confirmSetExtInfo(@RequestParam HashMap<String,Object> params, ModelMap model,HttpServletRequest request, HttpServletResponse response) throws Exception{
|
|
|
|
model.put("params", params);
|
|
|
|
String retStr = "";
|
|
try {
|
|
params.put("businessCode", params.get("businessCode"));
|
|
params.put("consCode", params.get("consCode"));
|
|
List<?> result = AppInstrumentService.selectSetExtInfo(params);
|
|
if(result.isEmpty()) {
|
|
retStr = "fail";
|
|
}else {
|
|
retStr = "success";
|
|
}
|
|
}catch (Exception e) {
|
|
// TODO: handle exception
|
|
retStr = "fail";
|
|
}
|
|
|
|
JSONObject json = new JSONObject();
|
|
json.put("result", retStr);
|
|
return json;
|
|
};
|
|
|
|
//층별침하계 부정보
|
|
@RequestMapping(value="/app/const/selectIncludeSetExtSubInfo.do")
|
|
public String selectIncludeSetExtSubInfo(@RequestParam HashMap<String,Object> params, ModelMap model,HttpServletRequest request, HttpServletResponse response) throws Exception{
|
|
|
|
model.put("params", params);
|
|
setUnitCode2Model("unit_code", model); // 단위정보
|
|
List<?> result = AppInstrumentService.selectSetExtInfo(params);
|
|
return "sgis/app/constInfo/popup/includeSetExtSubInfo";
|
|
}
|
|
|
|
//층별침하계 부정보 데이터 조회
|
|
@SuppressWarnings("unchecked")
|
|
@RequestMapping(value = "/app/const/setExtSubInfo_jsondata.do", method = {RequestMethod.POST, RequestMethod.GET})
|
|
public void setExtSubInfo_jsondata(@RequestParam HashMap<String,Object> params, ModelMap model,HttpServletRequest request, HttpServletResponse response) throws Exception{
|
|
request.setCharacterEncoding("UTF-8");
|
|
response.setContentType("text/html;charset=UTF-8");
|
|
|
|
//data정보
|
|
List<?> result = AppInstrumentService.selectSetExtSubInfo(params);
|
|
|
|
HashMap<String, List<?>> resultMap = new HashMap<String, List<?>>();
|
|
resultMap.put("dataList1", result);
|
|
|
|
JSONObject json = new JSONObject();
|
|
json.putAll( resultMap );
|
|
response.getWriter().print(json);
|
|
};
|
|
|
|
//층별침하계 부정보 저장
|
|
@RequestMapping(value="/app/const/insertSetExtSubInfo.do", produces="application/json;charset=utf-8")
|
|
@ResponseBody
|
|
public JSONObject insertSetExtSubInfo(@RequestParam HashMap<String,Object> params, ModelMap model,HttpServletRequest request, HttpServletResponse response) throws Exception{
|
|
|
|
String retStr = "";
|
|
|
|
try {
|
|
SessionVO sessionVO = getSessionInfo();
|
|
|
|
//기존데이터 삭제
|
|
AppInstrumentService.deleteSetExtSubInfo(params);
|
|
|
|
int cnt = Integer.parseInt((String)params.get("itemCnt"));
|
|
|
|
for(int i=0;i<cnt;i++){
|
|
|
|
HashMap<String, Object> insertMap = new HashMap<String, Object>();
|
|
|
|
ComCodeVO codeVO = new ComCodeVO();
|
|
codeVO.setCdGrp("unit_code");
|
|
List<?> unitCodeList = ComCodeMapper.selectComCodeList(codeVO);
|
|
List<Map<String, Object>> listMap = (List<Map<String, Object>>) unitCodeList;
|
|
for(int k=0; k < unitCodeList.size(); k++) {
|
|
if(StringUtil.nullToBlank((String)params.get("setUnit")).equals(listMap.get(k).get("label"))) {
|
|
params.put("mUnit", (String) listMap.get(k).get("code"));
|
|
}
|
|
}
|
|
// data정보
|
|
insertMap.put("businessCode", params.get("businessCode"));
|
|
insertMap.put("consCode", params.get("consCode"));
|
|
insertMap.put("mUnit", params.get("mUnit"));
|
|
insertMap.put("nod", params.get("nod_" + i).equals("") ? null : Float.valueOf((String)params.get("nod_" + i)));
|
|
insertMap.put("depthByLayer", params.get("depthByLayer_" + i).equals("") ? null : Float.valueOf((String)params.get("depthByLayer_" + i)));
|
|
insertMap.put("displacement", params.get("displacement_" + i).equals("") ? null : Float.valueOf((String)params.get("displacement_" + i)));
|
|
insertMap.put("fillHeight", params.get("fillHeight_" + i).equals("") ? null : Float.valueOf((String)params.get("fillHeight_" + i)));
|
|
|
|
AppInstrumentService.insertSetExtSubInfo(insertMap);
|
|
}
|
|
|
|
retStr = "success";
|
|
|
|
}catch (Exception e) {
|
|
// TODO: handle exception
|
|
retStr = "fail";
|
|
}
|
|
|
|
JSONObject json = new JSONObject();
|
|
json.put("result", retStr);
|
|
return json;
|
|
};
|
|
|
|
@RequestMapping(value="/app/const/selectwatPreInfo.do")
|
|
public String selectwatPreInfo(@RequestParam HashMap<String,Object> params, ModelMap model,HttpServletRequest request, HttpServletResponse response) throws Exception{
|
|
|
|
setLeftMenu(params, model, request);
|
|
setCode2Model2("project_epsg_code", model); // EPSG 코드
|
|
model.put("params", params);
|
|
|
|
return "sgis/app/constInfo/watPreInfo";
|
|
};
|
|
|
|
//계측정보 층별침하계 데이터 호출
|
|
@SuppressWarnings("unchecked")
|
|
@RequestMapping(value = "/app/const/watPreInfo_jsondata.do", method = {RequestMethod.POST, RequestMethod.GET})
|
|
public void watPreInfo_jsondata(@RequestParam HashMap<String,Object> params, ModelMap model,HttpServletRequest request, HttpServletResponse response) throws Exception{
|
|
request.setCharacterEncoding("UTF-8");
|
|
response.setContentType("text/html;charset=UTF-8");
|
|
|
|
//data정보
|
|
List<?> result = AppInstrumentService.selectWatPreInfo(params);
|
|
|
|
HashMap<String, List<?>> resultMap = new HashMap<String, List<?>>();
|
|
resultMap.put("dataList1", result);
|
|
|
|
JSONObject json = new JSONObject();
|
|
json.putAll( resultMap );
|
|
response.getWriter().print(json);
|
|
};
|
|
|
|
//계측정보 저장
|
|
@RequestMapping(value="/app/const/insertWatPreInfo.do", method=RequestMethod.POST)
|
|
public @ResponseBody JSONObject insertwatPreInfo(@RequestParam HashMap<String,Object> params, ModelMap model,HttpServletRequest request, HttpServletResponse response) throws Exception{
|
|
|
|
String retStr = "";
|
|
|
|
|
|
try {
|
|
SessionVO sessionVO = getSessionInfo();
|
|
String sysRegId = sessionVO.getsUserId(); //사용자 ID
|
|
|
|
int cnt = Integer.parseInt((String)params.get("itemCnt"));
|
|
EgovMap saupDetailInfo = AppMainService.selectAppSaupDetail(params);
|
|
|
|
//기존데이터 삭제
|
|
AppInstrumentService.deleteWatPreInfo(params);
|
|
|
|
for(int i=0;i<cnt;i++){
|
|
|
|
|
|
HashMap<String, Object> insertMap = new HashMap<String, Object>();
|
|
|
|
// data정보
|
|
insertMap.put("businessName", saupDetailInfo.get("businessName"));
|
|
insertMap.put("businessCode", params.get("businessCode"));
|
|
insertMap.put("watPreCode", params.get("watPreCode_"+ i));
|
|
insertMap.put("zoneCode", params.get("zoneCode_" + i ));
|
|
insertMap.put("epsgCodeType", params.get("epsgCodeType_"+i));
|
|
insertMap.put("pointX", Float.valueOf((String)params.get("pointX_"+i)));
|
|
insertMap.put("pointY", Float.valueOf((String)params.get("pointY_"+i)));
|
|
insertMap.put("sysRegId", sysRegId);
|
|
insertMap.put("consCode", params.get("consCode_"+i));
|
|
|
|
AppInstrumentService.insertWatPreInfo(insertMap);
|
|
}
|
|
|
|
retStr = "success";
|
|
|
|
}catch (Exception e) {
|
|
// TODO: handle exception
|
|
retStr = "fail";
|
|
}
|
|
|
|
JSONObject json = new JSONObject();
|
|
json.put("result", retStr);
|
|
return json;
|
|
};
|
|
|
|
@RequestMapping(value="/app/const/deleteWatPreInfo.do", method=RequestMethod.POST)
|
|
@ResponseBody
|
|
public JSONObject deleteWatPreInfo(@RequestParam HashMap<String,Object> params, ModelMap model,HttpServletRequest request, HttpServletResponse response) throws Exception{
|
|
|
|
String retStr = "";
|
|
|
|
try {
|
|
SessionVO sessionVO = getSessionInfo();
|
|
String sysRegId = sessionVO.getsUserId(); //사용자 ID
|
|
|
|
int cnt = Integer.parseInt((String)params.get("itemCnt"));
|
|
EgovMap saupDetailInfo = AppMainService.selectAppSaupDetail(params);
|
|
|
|
AppInstrumentService.deleteWatPreInfo(params);
|
|
|
|
String delItem = (String)params.get("delItem");
|
|
String[] array = delItem.split("\\|");
|
|
HashMap<String, Object> deleteMap = new HashMap<String, Object>();
|
|
for(int i=0;i<array.length;i++){
|
|
if(!array[i].equals("|")) {
|
|
deleteMap.put("consCode", (array[i]));
|
|
deleteMap.put("businessCode", params.get("businessCode"));
|
|
|
|
AppInstrumentService.deleteWatPreSubInfo(deleteMap);
|
|
}
|
|
}
|
|
|
|
for(int i=0;i<cnt;i++){
|
|
|
|
HashMap<String, Object> insertMap = new HashMap<String, Object>();
|
|
|
|
// data정보
|
|
insertMap.put("businessName", saupDetailInfo.get("businessName"));
|
|
insertMap.put("businessCode", params.get("businessCode"));
|
|
insertMap.put("watPreCode", params.get("watPreCode_"+ i));
|
|
insertMap.put("zoneCode", params.get("zoneCode_" + i ));
|
|
insertMap.put("epsgCodeType", params.get("epsgCodeType_"+i));
|
|
insertMap.put("pointX", Float.valueOf((String)params.get("pointX_"+i)));
|
|
insertMap.put("pointY", Float.valueOf((String)params.get("pointY_"+i)));
|
|
insertMap.put("sysRegId", sysRegId);
|
|
insertMap.put("consCode", params.get("consCode_"+i));
|
|
|
|
AppInstrumentService.insertWatPreInfo(insertMap);
|
|
}
|
|
retStr = "success";
|
|
|
|
}catch (Exception e) {
|
|
// TODO: handle exception
|
|
retStr = "fail";
|
|
}
|
|
|
|
JSONObject json = new JSONObject();
|
|
json.put("result", retStr);
|
|
return json;
|
|
};
|
|
|
|
//층별침하계 주정보 저장여부
|
|
@RequestMapping(value="/app/const/confirmWatPreInfo.do", method=RequestMethod.POST)
|
|
@ResponseBody
|
|
public JSONObject confirmWatPreInfo(@RequestParam HashMap<String,Object> params, ModelMap model,HttpServletRequest request, HttpServletResponse response) throws Exception{
|
|
|
|
model.put("params", params);
|
|
|
|
String retStr = "";
|
|
try {
|
|
params.put("businessCode", params.get("businessCode"));
|
|
params.put("consCode", params.get("consCode"));
|
|
List<?> result = AppInstrumentService.selectWatPreInfo(params);
|
|
if(result.isEmpty()) {
|
|
retStr = "fail";
|
|
}else {
|
|
retStr = "success";
|
|
}
|
|
}catch (Exception e) {
|
|
// TODO: handle exception
|
|
retStr = "fail";
|
|
}
|
|
|
|
JSONObject json = new JSONObject();
|
|
json.put("result", retStr);
|
|
return json;
|
|
};
|
|
|
|
//간극수압계 부정보
|
|
@RequestMapping(value="/app/const/selectIncludeWatPreSubInfo.do")
|
|
public String selectIncludeWatPreSubInfo(@RequestParam HashMap<String,Object> params, ModelMap model,HttpServletRequest request, HttpServletResponse response) throws Exception{
|
|
|
|
model.put("params", params);
|
|
setUnitCode2Model("unit_code", model); // 단위정보
|
|
List<?> result = AppInstrumentService.selectWatPreInfo(params);
|
|
return "sgis/app/constInfo/popup/includeWatPreSubInfo";
|
|
}
|
|
|
|
//간극수압계 부정보 데이터 조회
|
|
@SuppressWarnings("unchecked")
|
|
@RequestMapping(value = "/app/const/watPreSubInfo_jsondata.do", method = {RequestMethod.POST, RequestMethod.GET})
|
|
public void watPreSubInfo_jsondata(@RequestParam HashMap<String,Object> params, ModelMap model,HttpServletRequest request, HttpServletResponse response) throws Exception{
|
|
request.setCharacterEncoding("UTF-8");
|
|
response.setContentType("text/html;charset=UTF-8");
|
|
|
|
//data정보
|
|
List<?> result = AppInstrumentService.selectWatPreSubInfo(params);
|
|
|
|
HashMap<String, List<?>> resultMap = new HashMap<String, List<?>>();
|
|
resultMap.put("dataList1", result);
|
|
|
|
JSONObject json = new JSONObject();
|
|
json.putAll( resultMap );
|
|
response.getWriter().print(json);
|
|
};
|
|
|
|
//간극수압계 부정보 저장
|
|
@RequestMapping(value="/app/const/insertWatPreSubInfo.do", produces="application/json;charset=utf-8")
|
|
@ResponseBody
|
|
public JSONObject insertWatPreSubInfo(@RequestParam HashMap<String,Object> params, ModelMap model,HttpServletRequest request, HttpServletResponse response) throws Exception{
|
|
|
|
String retStr = "";
|
|
|
|
try {
|
|
SessionVO sessionVO = getSessionInfo();
|
|
|
|
//기존데이터 삭제
|
|
AppInstrumentService.deleteWatPreSubInfo(params);
|
|
|
|
int cnt = Integer.parseInt((String)params.get("itemCnt"));
|
|
|
|
for(int i=0;i<cnt;i++){
|
|
|
|
HashMap<String, Object> insertMap = new HashMap<String, Object>();
|
|
|
|
// data정보
|
|
insertMap.put("businessCode", params.get("businessCode"));
|
|
insertMap.put("consCode", params.get("consCode"));
|
|
insertMap.put("nod", params.get("nod_" + i).equals("") ? null : Float.valueOf((String)params.get("nod_" + i)));
|
|
insertMap.put("sensorInstallDepth", params.get("sensorInstallDepth_" + i).equals("") ? null : Float.valueOf((String)params.get("sensorInstallDepth_" + i)));
|
|
insertMap.put("temperature", params.get("temperature_" + i).equals("") ? null : Float.valueOf((String)params.get("temperature_" + i)));
|
|
insertMap.put("watPre", params.get("watPre_" + i).equals("") ? null : Float.valueOf((String)params.get("watPre_" + i)));
|
|
insertMap.put("overWatPre", params.get("overWatPre_" + i).equals("") ? null : Float.valueOf((String)params.get("overWatPre_" + i)));
|
|
insertMap.put("hydPre", params.get("hydPre_" + i).equals("") ? null : Float.valueOf((String)params.get("hydPre_" + i)));
|
|
insertMap.put("watPreSen", params.get("watPreSen_" + i).equals("") ? null : Float.valueOf((String)params.get("watPreSen_" + i)));
|
|
insertMap.put("subsidence", params.get("subsidence_" + i).equals("") ? null : Float.valueOf((String)params.get("subsidence_" + i)));
|
|
|
|
AppInstrumentService.insertWatPreSubInfo(insertMap);
|
|
}
|
|
|
|
retStr = "success";
|
|
|
|
}catch (Exception e) {
|
|
// TODO: handle exception
|
|
retStr = "fail";
|
|
}
|
|
|
|
JSONObject json = new JSONObject();
|
|
json.put("result", retStr);
|
|
return json;
|
|
};
|
|
|
|
@RequestMapping(value="/app/const/selectwatLevInfo.do")
|
|
public String selectwatLevInfo(@RequestParam HashMap<String,Object> params, ModelMap model,HttpServletRequest request, HttpServletResponse response) throws Exception{
|
|
|
|
setLeftMenu(params, model, request);
|
|
setCode2Model2("project_epsg_code", model); // EPSG 코드
|
|
model.put("params", params);
|
|
|
|
return "sgis/app/constInfo/watLevInfo";
|
|
};
|
|
|
|
//계측정보 지하수위계 데이터 호출
|
|
@SuppressWarnings("unchecked")
|
|
@RequestMapping(value = "/app/const/watLevInfo_jsondata.do", method = {RequestMethod.POST, RequestMethod.GET})
|
|
public void watLevInfo_jsondata(@RequestParam HashMap<String,Object> params, ModelMap model,HttpServletRequest request, HttpServletResponse response) throws Exception{
|
|
request.setCharacterEncoding("UTF-8");
|
|
response.setContentType("text/html;charset=UTF-8");
|
|
|
|
//data정보
|
|
List<?> result = AppInstrumentService.selectWatLevInfo(params);
|
|
|
|
HashMap<String, List<?>> resultMap = new HashMap<String, List<?>>();
|
|
resultMap.put("dataList1", result);
|
|
|
|
JSONObject json = new JSONObject();
|
|
json.putAll( resultMap );
|
|
response.getWriter().print(json);
|
|
};
|
|
|
|
//계측정보 저장
|
|
@RequestMapping(value="/app/const/insertWatLevInfo.do", method=RequestMethod.POST)
|
|
public @ResponseBody JSONObject insertwatLevInfo(@RequestParam HashMap<String,Object> params, ModelMap model,HttpServletRequest request, HttpServletResponse response) throws Exception{
|
|
|
|
String retStr = "";
|
|
|
|
|
|
try {
|
|
SessionVO sessionVO = getSessionInfo();
|
|
String sysRegId = sessionVO.getsUserId(); //사용자 ID
|
|
|
|
int cnt = Integer.parseInt((String)params.get("itemCnt"));
|
|
EgovMap saupDetailInfo = AppMainService.selectAppSaupDetail(params);
|
|
|
|
//기존데이터 삭제
|
|
AppInstrumentService.deleteWatLevInfo(params);
|
|
|
|
for(int i=0;i<cnt;i++){
|
|
|
|
|
|
HashMap<String, Object> insertMap = new HashMap<String, Object>();
|
|
|
|
// data정보
|
|
insertMap.put("businessName", saupDetailInfo.get("businessName"));
|
|
insertMap.put("businessCode", params.get("businessCode"));
|
|
insertMap.put("watLevCode", params.get("watLevCode_"+ i));
|
|
insertMap.put("zoneCode", params.get("zoneCode_" + i ));
|
|
insertMap.put("epsgCodeType", params.get("epsgCodeType_"+i));
|
|
insertMap.put("pointX", Float.valueOf((String)params.get("pointX_"+i)));
|
|
insertMap.put("pointY", Float.valueOf((String)params.get("pointY_"+i)));
|
|
insertMap.put("sysRegId", sysRegId);
|
|
insertMap.put("consCode", params.get("consCode_"+i));
|
|
|
|
AppInstrumentService.insertWatLevInfo(insertMap);
|
|
}
|
|
|
|
retStr = "success";
|
|
|
|
}catch (Exception e) {
|
|
// TODO: handle exception
|
|
retStr = "fail";
|
|
}
|
|
|
|
JSONObject json = new JSONObject();
|
|
json.put("result", retStr);
|
|
return json;
|
|
};
|
|
|
|
@RequestMapping(value="/app/const/deleteWatLevInfo.do", method=RequestMethod.POST)
|
|
@ResponseBody
|
|
public JSONObject deleteWatLevInfo(@RequestParam HashMap<String,Object> params, ModelMap model,HttpServletRequest request, HttpServletResponse response) throws Exception{
|
|
|
|
String retStr = "";
|
|
|
|
try {
|
|
SessionVO sessionVO = getSessionInfo();
|
|
String sysRegId = sessionVO.getsUserId(); //사용자 ID
|
|
|
|
int cnt = Integer.parseInt((String)params.get("itemCnt"));
|
|
EgovMap saupDetailInfo = AppMainService.selectAppSaupDetail(params);
|
|
|
|
AppInstrumentService.deleteWatLevInfo(params);
|
|
|
|
String delItem = (String)params.get("delItem");
|
|
String[] array = delItem.split("\\|");
|
|
HashMap<String, Object> deleteMap = new HashMap<String, Object>();
|
|
for(int i=0;i<array.length;i++){
|
|
if(!array[i].equals("|")) {
|
|
deleteMap.put("consCode", (array[i]));
|
|
deleteMap.put("businessCode", params.get("businessCode"));
|
|
|
|
AppInstrumentService.deleteWatLevSubInfo(deleteMap);
|
|
}
|
|
}
|
|
|
|
for(int i=0;i<cnt;i++){
|
|
|
|
HashMap<String, Object> insertMap = new HashMap<String, Object>();
|
|
|
|
// data정보
|
|
insertMap.put("businessName", saupDetailInfo.get("businessName"));
|
|
insertMap.put("businessCode", params.get("businessCode"));
|
|
insertMap.put("watLevCode", params.get("watLevCode_"+ i));
|
|
insertMap.put("zoneCode", params.get("zoneCode_" + i ));
|
|
insertMap.put("epsgCodeType", params.get("epsgCodeType_"+i));
|
|
insertMap.put("pointX", Float.valueOf((String)params.get("pointX_"+i)));
|
|
insertMap.put("pointY", Float.valueOf((String)params.get("pointY_"+i)));
|
|
insertMap.put("sysRegId", sysRegId);
|
|
insertMap.put("consCode", params.get("consCode_"+i));
|
|
|
|
AppInstrumentService.insertWatLevInfo(insertMap);
|
|
}
|
|
retStr = "success";
|
|
|
|
}catch (Exception e) {
|
|
// TODO: handle exception
|
|
retStr = "fail";
|
|
}
|
|
|
|
JSONObject json = new JSONObject();
|
|
json.put("result", retStr);
|
|
return json;
|
|
};
|
|
|
|
//층별침하계 주정보 저장여부
|
|
@RequestMapping(value="/app/const/confirmWatLevInfo.do", method=RequestMethod.POST)
|
|
@ResponseBody
|
|
public JSONObject confirmWatLevInfo(@RequestParam HashMap<String,Object> params, ModelMap model,HttpServletRequest request, HttpServletResponse response) throws Exception{
|
|
|
|
model.put("params", params);
|
|
|
|
String retStr = "";
|
|
try {
|
|
params.put("businessCode", params.get("businessCode"));
|
|
params.put("consCode", params.get("consCode"));
|
|
List<?> result = AppInstrumentService.selectWatLevInfo(params);
|
|
if(result.isEmpty()) {
|
|
retStr = "fail";
|
|
}else {
|
|
retStr = "success";
|
|
}
|
|
}catch (Exception e) {
|
|
// TODO: handle exception
|
|
retStr = "fail";
|
|
}
|
|
|
|
JSONObject json = new JSONObject();
|
|
json.put("result", retStr);
|
|
return json;
|
|
};
|
|
|
|
//층별침하계 부정보
|
|
@RequestMapping(value="/app/const/selectIncludeWatLevSubInfo.do")
|
|
public String selectIncludeWatLevSubInfo(@RequestParam HashMap<String,Object> params, ModelMap model,HttpServletRequest request, HttpServletResponse response) throws Exception{
|
|
|
|
model.put("params", params);
|
|
setUnitCode2Model("unit_code", model); // 단위정보
|
|
List<?> result = AppInstrumentService.selectWatLevInfo(params);
|
|
return "sgis/app/constInfo/popup/includeWatLevSubInfo";
|
|
}
|
|
|
|
//지표침하판 부정보 데이터 조회
|
|
@SuppressWarnings("unchecked")
|
|
@RequestMapping(value = "/app/const/watLevSubInfo_jsondata.do", method = {RequestMethod.POST, RequestMethod.GET})
|
|
public void watLevSubInfo_jsondata(@RequestParam HashMap<String,Object> params, ModelMap model,HttpServletRequest request, HttpServletResponse response) throws Exception{
|
|
request.setCharacterEncoding("UTF-8");
|
|
response.setContentType("text/html;charset=UTF-8");
|
|
|
|
//data정보
|
|
List<?> result = AppInstrumentService.selectWatLevSubInfo(params);
|
|
|
|
HashMap<String, List<?>> resultMap = new HashMap<String, List<?>>();
|
|
resultMap.put("dataList1", result);
|
|
|
|
JSONObject json = new JSONObject();
|
|
json.putAll( resultMap );
|
|
response.getWriter().print(json);
|
|
};
|
|
|
|
//지하수위계 부정보 저장
|
|
@RequestMapping(value="/app/const/insertWatLevSubInfo.do", produces="application/json;charset=utf-8")
|
|
@ResponseBody
|
|
public JSONObject insertWatLevSubInfo(@RequestParam HashMap<String,Object> params, ModelMap model,HttpServletRequest request, HttpServletResponse response) throws Exception{
|
|
|
|
String retStr = "";
|
|
|
|
try {
|
|
SessionVO sessionVO = getSessionInfo();
|
|
|
|
//기존데이터 삭제
|
|
AppInstrumentService.deleteWatLevSubInfo(params);
|
|
|
|
int cnt = Integer.parseInt((String)params.get("itemCnt"));
|
|
|
|
for(int i=0;i<cnt;i++){
|
|
|
|
HashMap<String, Object> insertMap = new HashMap<String, Object>();
|
|
|
|
// data정보
|
|
insertMap.put("businessCode", params.get("businessCode"));
|
|
insertMap.put("consCode", params.get("consCode"));
|
|
insertMap.put("measureDt", params.get("measureDt_"+ i));
|
|
insertMap.put("nod", params.get("nod_" + i).equals("") ? null : Float.valueOf((String) params.get("nod_" + i)));
|
|
insertMap.put("measurement", params.get("measurement_" + i).equals("") ? null : Float.valueOf((String) params.get("measurement_" + i)));
|
|
insertMap.put("watLev", params.get("watLev_" + i).equals("") ? null : Float.valueOf((String) params.get("watLev_" + i)));
|
|
insertMap.put("topHeight", params.get("topHeight_" + i).equals("") ? null : Float.valueOf((String) params.get("topHeight_" + i)));
|
|
insertMap.put("fillHeight", params.get("fillHeight_" + i).equals("") ? null : Float.valueOf((String) params.get("fillHeight_" + i)));
|
|
AppInstrumentService.insertWatLevSubInfo(insertMap);
|
|
}
|
|
|
|
retStr = "success";
|
|
|
|
}catch (Exception e) {
|
|
// TODO: handle exception
|
|
retStr = "fail";
|
|
}
|
|
|
|
JSONObject json = new JSONObject();
|
|
json.put("result", retStr);
|
|
return json;
|
|
};
|
|
|
|
|
|
|
|
@RequestMapping(value="/app/const/includeInstrumentInfo.do")
|
|
public String includeInstrumentInfo(@RequestParam HashMap<String, Object> params, ModelMap model,HttpServletRequest request, HttpServletResponse response) throws Exception{
|
|
|
|
setZoneCode2Model(params, model);
|
|
|
|
EgovMap fillInfo = AppSgImpPlanService.includeFillInfo(params);
|
|
|
|
model.put("fillInfo", fillInfo);
|
|
model.put("params", params);
|
|
|
|
|
|
return "sgis/com/includeInstrumentInfo";
|
|
}
|
|
}
|