diff --git a/src/main/java/cokr/xit/adds/nims/BsshQuery.java b/src/main/java/cokr/xit/adds/nims/BsshQuery.java deleted file mode 100644 index 3a3ae23..0000000 --- a/src/main/java/cokr/xit/adds/nims/BsshQuery.java +++ /dev/null @@ -1,153 +0,0 @@ -package cokr.xit.adds.nims; - -import cokr.xit.foundation.component.QueryRequest; - -/**취급자 조회 요청 -*/ -public class BsshQuery extends QueryRequest{ - - private static final long serialVersionUID = 1L; - - //검색조건 - private String schBsshCd; // 취급자 식별번호 - private String schBsshNm; // 취급자 명 - - //저장소 정보 - private String bsshCd; // 취급자 식별번호 - private String bsshNm; // 취급자명 - private String indutyNm; // 업종명 - private String hdntCd; // 의료업자 구분 - private String hdntNm; // 의료업자 구분명 - private String bizrno; // 사업자등록번호 - private String rprsntvNm; // 대표자 명 - private String chrgNm; // 담당자 명 - private String hptlNo; // 요양기관 기호 - private String joinYn; // 획원가입 여부 - private String bsshSttsNm; // 상태 - private String prmisnNo; // 허가 번호 - - public String getSchBsshCd() { - return ifEmpty(schBsshCd, () -> null); - } - - public T setSchBsshCd(String schBsshCd) { - this.schBsshCd = schBsshCd; - return self(); - } - - public String getSchBsshNm() { - return ifEmpty(schBsshNm, () -> null); - } - - public T setSchBsshNm(String schBsshNm) { - this.schBsshNm = schBsshNm; - return self(); - } - - public String getbsshCd() { - return ifEmpty(bsshCd, () -> null); - } - - public T setbsshCd(String bsshCd) { - this.bsshCd = bsshCd; - return self(); - } - - public String getbsshNm() { - return ifEmpty(bsshNm, () -> null); - } - - public T setbsshNm(String bsshNm) { - this.bsshNm = bsshNm; - return self(); - } - - public String getindutyNm() { - return ifEmpty(indutyNm, () -> null); - } - - public T setindutyNm(String indutyNm) { - this.indutyNm = indutyNm; - return self(); - } - - public String gethdntCd() { - return ifEmpty(hdntCd, () -> null); - } - - public T sethdntCd(String hdntCd) { - this.hdntCd = hdntCd; - return self(); - } - public String gethdntNm() { - return ifEmpty(hdntNm, () -> null); - } - - public T sethdntNm(String hdntNm) { - this.hdntNm = hdntNm; - return self(); - } - - public String getbizrno() { - return ifEmpty(bizrno, () -> null); - } - - public T setbizrno(String bizrno) { - this.bizrno = bizrno; - return self(); - } - - public String getrprsntvNm() { - return ifEmpty(rprsntvNm, () -> null); - } - - public T setrprsntvNm(String rprsntvNm) { - this.rprsntvNm = rprsntvNm; - return self(); - } - - public String getchrgNm() { - return ifEmpty(chrgNm, () -> null); - } - - public T setchrgNm(String chrgNm) { - this.chrgNm = chrgNm; - return self(); - } - - public String gethptlNo() { - return ifEmpty(hptlNo, () -> null); - } - - public T sethptlNo(String hptlNo) { - this.hptlNo = hptlNo; - return self(); - } - - public String getjoinYn() { - return ifEmpty(joinYn, () -> null); - } - - public T setjoinYn(String joinYn) { - this.joinYn = joinYn; - return self(); - } - - public String getbsshSttsNm() { - return ifEmpty(bsshSttsNm, () -> null); - } - - public T setbsshSttsNm(String bsshSttsNm) { - this.bsshSttsNm = bsshSttsNm; - return self(); - } - - public String getprmisnNo() { - return ifEmpty(prmisnNo, () -> null); - } - - public T setprmisnNo(String prmisnNo) { - this.prmisnNo = prmisnNo; - return self(); - } -} diff --git a/src/main/java/cokr/xit/adds/nims/ProductQuery.java b/src/main/java/cokr/xit/adds/nims/ProductQuery.java deleted file mode 100644 index 2871654..0000000 --- a/src/main/java/cokr/xit/adds/nims/ProductQuery.java +++ /dev/null @@ -1,153 +0,0 @@ -package cokr.xit.adds.nims; - -import cokr.xit.foundation.component.QueryRequest; - -/**제품 정보 조회 요청 -* -*/ -public class ProductQuery extends QueryRequest{ - - private static final long serialVersionUID = 1L; - - //검색조건 - private String schProductCd; // 제품코드 - private String schProductNm; // 제품명 - - //저장소 정보 - private String prductCd; // 제품코드 - private String prdlstMstCd; // ?? - private String prductNm; // 제품명 - private String nrcdSeNm; // 마약/향정구분 - private String prtmSeNm; // 중점/일반구분 - private String prdMinDistbQy; // 최소유통단위 - private String stdPackngStleNm; // 최소유통단위명 - private String prdTotPceQy; // 낱개단위 - private String pceCoUnitNm; // 낱개단위명 - private String bsshCd; // 취급자 번호 - private String rgsDt; // ??일시 - private String updDt; // 수정일시 - - public String getSchProductCd() { - return ifEmpty(schProductCd, () -> null); - } - - public T setSchProductCd(String schProductCd) { - this.schProductCd = schProductCd; - return self(); - } - - public String getSchProductNm() { - return ifEmpty(schProductNm, () -> null); - } - - public T setSchProductNm(String schProductNm) { - this.schProductNm = schProductNm; - return self(); - } - - public String getPrductCd() { - return ifEmpty(prductCd, () -> null); - } - - public T setPrductCd(String prductCd) { - this.prductCd = prductCd; - return self(); - } - - public String getPrdlstMstCd() { - return ifEmpty(prdlstMstCd, () -> null); - } - - public T setPrdlstMstCd(String prdlstMstCd) { - this.prdlstMstCd = prdlstMstCd; - return self(); - } - - public String getPrductNm() { - return ifEmpty(prductNm, () -> null); - } - - public T setPrductNm(String prductNm) { - this.prductNm = prductNm; - return self(); - } - public String getNrcdSeNm() { - return ifEmpty(nrcdSeNm, () -> null); - } - - public T setNrcdSeNm(String nrcdSeNm) { - this.nrcdSeNm = nrcdSeNm; - return self(); - } - - public String getPrtmSeNm() { - return ifEmpty(prtmSeNm, () -> null); - } - - public T setPrtmSeNm(String prtmSeNm) { - this.prtmSeNm = prtmSeNm; - return self(); - } - - public String getPrdMinDistbQy() { - return ifEmpty(prdMinDistbQy, () -> null); - } - - public T setPrdMinDistbQy(String prdMinDistbQy) { - this.prdMinDistbQy = prdMinDistbQy; - return self(); - } - - public String getStdPackngStleNm() { - return ifEmpty(stdPackngStleNm, () -> null); - } - - public T setStdPackngStleNm(String stdPackngStleNm) { - this.stdPackngStleNm = stdPackngStleNm; - return self(); - } - - public String getPrdTotPceQy() { - return ifEmpty(prdTotPceQy, () -> null); - } - - public T setPrdTotPceQy(String prdTotPceQy) { - this.prdTotPceQy = prdTotPceQy; - return self(); - } - - public String getPceCoUnitNm() { - return ifEmpty(pceCoUnitNm, () -> null); - } - - public T setPceCoUnitNm(String pceCoUnitNm) { - this.pceCoUnitNm = pceCoUnitNm; - return self(); - } - - public String getbsshCd() { - return ifEmpty(bsshCd, () -> null); - } - - public T setbsshCd(String bsshCd) { - this.bsshCd = bsshCd; - return self(); - } - public String getRgsDt() { - return ifEmpty(rgsDt, () -> null); - } - - public T setRgsDt(String rgsDt) { - this.rgsDt = rgsDt; - return self(); - } - - public String getUpdDt() { - return ifEmpty(updDt, () -> null); - } - - public T setUpdDt(String updDt) { - this.updDt = updDt; - return self(); - } -} diff --git a/src/main/java/cokr/xit/adds/nims/dao/BsshMapper.java b/src/main/java/cokr/xit/adds/nims/dao/BsshMapper.java deleted file mode 100644 index 93ae670..0000000 --- a/src/main/java/cokr/xit/adds/nims/dao/BsshMapper.java +++ /dev/null @@ -1,22 +0,0 @@ -package cokr.xit.adds.nims.dao; - -import java.util.List; - -import org.egovframe.rte.psl.dataaccess.mapper.Mapper; - -import cokr.xit.adds.nims.BsshQuery; -import cokr.xit.foundation.component.AbstractMapper; -import cokr.xit.foundation.data.DataObject; - -/** 취급자 정보 DAO - */ -@Mapper("bsshMapper") -public interface BsshMapper extends AbstractMapper { - - /**지정한 조건에 따라 취급자 목록을 조회하여 반환한다.
- * @param req 취급자 조회 조건 - * @return 취급자 목록 - */ - List selectBsshList(BsshQuery req); - -} diff --git a/src/main/java/cokr/xit/adds/nims/service/BsshService.java b/src/main/java/cokr/xit/adds/nims/service/BsshService.java deleted file mode 100644 index 42b489f..0000000 --- a/src/main/java/cokr/xit/adds/nims/service/BsshService.java +++ /dev/null @@ -1,19 +0,0 @@ -package cokr.xit.adds.nims.service; - -import java.util.List; - -import cokr.xit.adds.nims.BsshQuery; -import cokr.xit.foundation.data.DataObject; - -public interface BsshService { - - /** 단속자료 목록을 조회한다. - * @param query 단속자료 목록 조회 조건 - *
  • pageNum: 페이지 번호
  • - *
  • fetchSize: 페이지 목록 건수
  • - *
- * @return 단속자료 목록 - */ - List getbsshList(BsshQuery query); - -} diff --git a/src/main/java/cokr/xit/adds/nims/service/bean/BsshServiceBean.java b/src/main/java/cokr/xit/adds/nims/service/bean/BsshServiceBean.java deleted file mode 100644 index 364ffae..0000000 --- a/src/main/java/cokr/xit/adds/nims/service/bean/BsshServiceBean.java +++ /dev/null @@ -1,145 +0,0 @@ -package cokr.xit.adds.nims.service.bean; - -import java.util.ArrayList; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.io.BufferedReader; -import java.io.BufferedWriter; -import java.io.File; -import java.io.FilenameFilter; -import java.io.IOException; -import java.io.InputStreamReader; -import java.io.OutputStreamWriter; -import java.net.URL; -import java.nio.charset.Charset; - -import javax.annotation.Resource; -import javax.net.ssl.HttpsURLConnection; - -import org.springframework.stereotype.Service; -import com.fasterxml.jackson.databind.ObjectMapper; - -import cokr.xit.adds.nims.BsshQuery; -import cokr.xit.adds.nims.dao.BsshMapper; -import cokr.xit.adds.nims.service.BsshService; -import cokr.xit.foundation.component.AbstractServiceBean; -import cokr.xit.foundation.data.DataObject; - -@Service("bsshService") -public class BsshServiceBean extends AbstractServiceBean implements BsshService { - - /** 취급자 정보 DAO */ - @Resource(name = "bsshMapper") - private BsshMapper bsshMapper; - - @Override - public List getbsshList(BsshQuery query){ - - ObjectMapper mapper = new ObjectMapper(); - String sUrl = "http://localhost:9076/api/biz/nims/v1/getNimsBsshInfoSt"; - String sJsonData = ""; - String rtnMsg = ""; // 처리 결과 메시지 - - // Json 파라미터 설정 - sJsonData = "{ " - + " \"k\":" + "\"" + "\"" - + ", \"fg\":" + "\"1\"" - + ", \"pg\":" + "\"1\"" - + ", \"bi\":\"\"" - + ", \"hp\":\"\"" - + ", \"bn\":" + query.getSchBsshNm() + "\"" - + ", \"bc\":" + query.getSchBsshCd() + "\"" - + ", \"ymd\":\"\"" - + ", \"fg2\":\"\"1\"" - + ", \"dbSkipYn\":\"\"N\"" - + ", \"userId\":\"suji\"" - + " }"; - - rtnMsg = callHttpsJson(sUrl, "POST", sJsonData); - - return bsshMapper.selectBsshList(query); - } - - - /**지정한 조건에 따라 과태료 대장 등록 자료 일괄 조회 목록을 조회하여 반환한다. - * @param req 과태료 대장 등록 자료 일괄 조회 조회 조건 - * @return 과태료 대장 등록 자료 일괄 조회 목록 - */ - public String callHttpsJson(String sUrl, String sMethod, String sJsonData) { - // - String returnMsg = ""; - // - HttpsURLConnection httpsConn = null; - - try { - // HTTPS 통신을 위한 URL 생성 - URL url = new URL(sUrl); - - // HttpsURLConnection 객체 생성 - httpsConn = (HttpsURLConnection) url.openConnection(); - - // Content-Type - httpsConn.setRequestProperty("Content-Type", "application/json"); - // Method Setting(GET/POST) - httpsConn.setRequestMethod(sMethod); // GET, POST, DELETE - // Connection Timeout setting - httpsConn.setConnectTimeout(10000); // 컨텍션타임아웃 10초 - // Read Timeout Setting - httpsConn.setReadTimeout(10000); // 컨텐츠조회 타임아웃 10초 - - if (sMethod.equals("POST")) { - // Input setting - httpsConn.setDoInput(true); - // Output setting - httpsConn.setDoOutput(true); // 항상 갱신된내용을 가져옴 - - // POST방식으로 송신할 json 데이터 전송 - BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(httpsConn.getOutputStream())); - bw.write(sJsonData); - bw.flush(); - bw.close(); - } else { - // Input setting - httpsConn.setDoInput(false); - // Output setting - httpsConn.setDoOutput(false); - } - - // HTTP 응답 코드 수신, 서버에서 보낸 응답 데이터 수신 받기 - int responseCode = httpsConn.getResponseCode(); - - Charset charset = Charset.forName("UTF-8"); - String inputLine; - StringBuffer response = new StringBuffer(); - - if (responseCode == 200) { - BufferedReader in = new BufferedReader(new InputStreamReader(httpsConn.getInputStream(), charset)); - - while ((inputLine = in.readLine()) != null) { - response.append(inputLine); - } - in.close(); - } else { - BufferedReader in = new BufferedReader(new InputStreamReader(httpsConn.getErrorStream(), charset)); - - while ((inputLine = in.readLine()) != null) { - response.append(inputLine); - } - in.close(); - } - - returnMsg = response.toString(); - } catch (IOException e) { - returnMsg = "IOException :" + e; - } catch (Exception e) { - returnMsg = "Exception :" + e; - } finally { - if (httpsConn != null) { - httpsConn.disconnect(); - } - } - - return returnMsg; - } -} diff --git a/src/main/java/cokr/xit/adds/nims/web/TestController.java b/src/main/java/cokr/xit/adds/nims/web/TestController.java deleted file mode 100644 index 1bbabc1..0000000 --- a/src/main/java/cokr/xit/adds/nims/web/TestController.java +++ /dev/null @@ -1,45 +0,0 @@ -package cokr.xit.adds.nims.web; - -import org.springframework.beans.factory.annotation.Value; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.servlet.ModelAndView; - -import cokr.xit.base.web.ApplicationController; -import lombok.RequiredArgsConstructor; - -@RequiredArgsConstructor -@Controller -@RequestMapping( - name = "Nims 관리", - value = {"/adds/nims/"} -) -public class TestController extends ApplicationController { - @Value("${app.api.host:}") - private String apiHost; - - /** - * url 직접호출했을때 처럼 되어야 한다 - * http://localhost:9077/adds/nims/barcodeForm.do - * @return - */ - @RequestMapping( - name = "Nims 바코드 리더", - value = {"/barcodeForm.do"} - ) - public ModelAndView barcodeForm() { - ModelAndView mav = new ModelAndView(); - mav.setViewName("adds/nims/barcode-main"); - return mav.addObject("apiHost", apiHost); - } - - @RequestMapping( - name = "신청서접수", - value = {"/dsuseMgtReceipt_Test.do"} - ) - public ModelAndView dsuseMgtReceiptForm() { - ModelAndView mav = new ModelAndView(); - mav.setViewName("adds/nims/dsuseMgtReceipt_Test-main"); - return mav.addObject("apiHost", apiHost); - } -} diff --git a/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgt-info.jsp b/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgt-info.jsp deleted file mode 100644 index cb0d1b4..0000000 --- a/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgt-info.jsp +++ /dev/null @@ -1,406 +0,0 @@ -<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" session="false"%> -<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%> - -신청서 정보 상세 - - -
- -
- -
- - -
- - -
-
- - -
-
- - -
- -
- - -
-
- - -
-
- - -
-
- - -
-
-
- -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
-
- - -
-
- - - -
- -
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - - - - -
-
- - - - - - - - - - - - - - - - - -
- -
- - -
- - - - - - -
- - -
-
- -