refactor: Query DTO 필드 정리

미사용 코드 제거
dev
Jonguk. Lim 4 months ago
parent 232fb948b6
commit 4daeea3ce6

@ -12,58 +12,6 @@ public class DsuseMgtDetailQuery extends QueryRequest{
//검색조건
private String schDscdmngId; // 검색 폐기관리 id
//폐기관리
private String dscdmngId; // 폐기관리 ID
private String deptCd; // 부서 코드
private String userId; // 사용자 ID
private String prgrsSttsCd; // 진행 상태 코드
private String bsshCd; // 마약류 취급자 식별 번호
private String rndDtlRptCnt; // 수불 상세 보고 수
private String hdrDe; // 취급 일자
private String dsuseSeCd; // 폐기 구분 코드
private String dsusePrvCd; // 폐기 사유 코드
private String dsuseMthCd; // 폐기 방법 코드
private String dsuseLoc; // 폐기 장소
private String dsuseDe; // 폐기 일자
private String stts; // 처리 상태
private String usrRptIdNo; // 사용자 보고 식별 번호
private String orgUsrRptIdNo; // 원 사용자 보고 식별 번호
private String rptTyCd; // 보고 유형 코드
private String useYn; // 사용 여부
private String regDt; // 등록 일시
private String rgtr; // 등록자
private String mdfcnDt; // 수정 일시
private String mdfr; // 수정자
//저장소 정보
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; // 허가 번호
private String dscdmngSn; // 폐기관리 순번
private String prductCd; // 제품 코드
private String prductNm; // 제품 명
private String minDistbQy; // 최소 유통단위 수량
private String minDistbUnit; // 최소 유통 단위
private String minDistb; // 최소 유통 단위 및 수량
private String pceQy; // 낱개단위 수량
private String pceUnit; // 낱개 단위
private String pce; // 낱개 단위 및 수량
private String mnfNo; // 제조 번호
private String prdValidDe; // 제조 유효기한 일자
private String mnfSeq; // 제조 일련번호
private String dsuseQy; // 폐기 수량
private String usrRptInIdNo; // 사용자 보고 라인 식별 번호
public String getSchDscdmngId() {
return ifEmpty(schDscdmngId, () -> null);
}
@ -72,418 +20,4 @@ public class DsuseMgtDetailQuery extends QueryRequest{
this.schDscdmngId = schDscdmngId;
return self();
}
public String getDscdmngId() {
return ifEmpty(dscdmngId, () -> null);
}
public <T extends DsuseMgtDetailQuery> T setDscdmngId(String dscdmngId) {
this.dscdmngId = dscdmngId;
return self();
}
public String getDeptCd() {
return ifEmpty(deptCd, () -> null);
}
public <T extends DsuseMgtDetailQuery> T setDeptCd(String deptCd) {
this.deptCd = deptCd;
return self();
}
public String getUserId() {
return ifEmpty(userId, () -> null);
}
public <T extends DsuseMgtDetailQuery> T setUserId(String userId) {
this.userId = userId;
return self();
}
public String getPrgrsSttsCd() {
return ifEmpty(prgrsSttsCd, () -> null);
}
public <T extends DsuseMgtDetailQuery> T setPrgrsSttsCd(String prgrsSttsCd) {
this.prgrsSttsCd = prgrsSttsCd;
return self();
}
public String getBsshCd() {
return ifEmpty(bsshCd, () -> null);
}
public <T extends DsuseMgtDetailQuery> T setBsshCd(String bsshCd) {
this.bsshCd = bsshCd;
return self();
}
public String getRndDtlRptCnt() {
return ifEmpty(rndDtlRptCnt, () -> null);
}
public <T extends DsuseMgtDetailQuery> T setRndDtlRptCnt(String rndDtlRptCnt) {
this.rndDtlRptCnt = rndDtlRptCnt;
return self();
}
public String getHdrDe() {
return ifEmpty(hdrDe, () -> null);
}
public <T extends DsuseMgtDetailQuery> T setHdrDe(String hdrDe) {
this.hdrDe = hdrDe;
return self();
}
public String getDsuseSeCd() {
return ifEmpty(dsuseSeCd, () -> null);
}
public <T extends DsuseMgtDetailQuery> T setDsuseSeCd(String dsuseSeCd) {
this.dsuseSeCd = dsuseSeCd;
return self();
}
public String getDsusePrvCd() {
return ifEmpty(dsusePrvCd, () -> null);
}
public <T extends DsuseMgtDetailQuery> T setDsusePrvCd(String dsusePrvCd) {
this.dsusePrvCd = dsusePrvCd;
return self();
}
public String getDsuseMthCd() {
return ifEmpty(dsuseMthCd, () -> null);
}
public <T extends DsuseMgtDetailQuery> T setDsuseMthCd(String dsuseMthCd) {
this.dsuseMthCd = dsuseMthCd;
return self();
}
public String getDsuseLoc() {
return ifEmpty(dsuseLoc, () -> null);
}
public <T extends DsuseMgtDetailQuery> T setDsuseLoc(String dsuseLoc) {
this.dsuseLoc = dsuseLoc;
return self();
}
public String getDsuseDe() {
return ifEmpty(dsuseDe, () -> null);
}
public <T extends DsuseMgtDetailQuery> T setDsuseDe(String dsuseDe) {
this.dsuseDe = dsuseDe;
return self();
}
public String getStts() {
return ifEmpty(stts, () -> null);
}
public <T extends DsuseMgtDetailQuery> T setStts(String stts) {
this.stts = stts;
return self();
}
public String getUsrRptIdNo() {
return ifEmpty(usrRptIdNo, () -> null);
}
public <T extends DsuseMgtDetailQuery> T setUsrRptIdNo(String usrRptIdNo) {
this.usrRptIdNo = usrRptIdNo;
return self();
}
public String getOrgUsrRptIdNo() {
return ifEmpty(orgUsrRptIdNo, () -> null);
}
public <T extends DsuseMgtDetailQuery> T setOrgUsrRptIdNo(String orgUsrRptIdNo) {
this.orgUsrRptIdNo = orgUsrRptIdNo;
return self();
}
public String getRptTyCd() {
return ifEmpty(rptTyCd, () -> null);
}
public <T extends DsuseMgtDetailQuery> T setRptTyCd(String rptTyCd) {
this.rptTyCd = rptTyCd;
return self();
}
public String getUseYn() {
return ifEmpty(useYn, () -> null);
}
public <T extends DsuseMgtDetailQuery> T setUseYn(String useYn) {
this.useYn = useYn;
return self();
}
public String getRegDt() {
return ifEmpty(regDt, () -> null);
}
public <T extends DsuseMgtDetailQuery> T setRegDt(String regDt) {
this.regDt = regDt;
return self();
}
public String getRgtr() {
return ifEmpty(rgtr, () -> null);
}
public <T extends DsuseMgtDetailQuery> T setRgtr(String rgtr) {
this.rgtr = rgtr;
return self();
}
public String getMdfcnDt() {
return ifEmpty(mdfcnDt, () -> null);
}
public <T extends DsuseMgtDetailQuery> T setMdfcnDt(String mdfcnDt) {
this.mdfcnDt = mdfcnDt;
return self();
}
public String getMdfr() {
return ifEmpty(mdfr, () -> null);
}
public <T extends DsuseMgtDetailQuery> T setMdfr(String mdfr) {
this.mdfr = mdfr;
return self();
}
public String getBsshNm() {
return ifEmpty(bsshNm, () -> null);
}
public <T extends DsuseMgtDetailQuery> T setBsshNm(String bsshNm) {
this.bsshNm = bsshNm;
return self();
}
public String getIndutyNm() {
return ifEmpty(indutyNm, () -> null);
}
public <T extends DsuseMgtDetailQuery> T setIndutyNm(String indutyNm) {
this.indutyNm = indutyNm;
return self();
}
public String getHdntCd() {
return ifEmpty(hdntCd, () -> null);
}
public <T extends DsuseMgtDetailQuery> T setHdntCd(String hdntCd) {
this.hdntCd = hdntCd;
return self();
}
public String getHdntNm() {
return ifEmpty(hdntNm, () -> null);
}
public <T extends DsuseMgtDetailQuery> T setHdntNm(String hdntNm) {
this.hdntNm = hdntNm;
return self();
}
public String getBizrno() {
return ifEmpty(bizrno, () -> null);
}
public <T extends DsuseMgtDetailQuery> T setBizrno(String bizrno) {
this.bizrno = bizrno;
return self();
}
public String getRprsntvNm() {
return ifEmpty(rprsntvNm, () -> null);
}
public <T extends DsuseMgtDetailQuery> T setRprsntvNm(String rprsntvNm) {
this.rprsntvNm = rprsntvNm;
return self();
}
public String getChrgNm() {
return ifEmpty(chrgNm, () -> null);
}
public <T extends DsuseMgtDetailQuery> T setChrgNm(String chrgNm) {
this.chrgNm = chrgNm;
return self();
}
public String getHptlNo() {
return ifEmpty(hptlNo, () -> null);
}
public <T extends DsuseMgtDetailQuery> T setHptlNo(String hptlNo) {
this.hptlNo = hptlNo;
return self();
}
public String getJoinYn() {
return ifEmpty(joinYn, () -> null);
}
public <T extends DsuseMgtDetailQuery> T setJoinYn(String joinYn) {
this.joinYn = joinYn;
return self();
}
public String getBsshSttsNm() {
return ifEmpty(bsshSttsNm, () -> null);
}
public <T extends DsuseMgtDetailQuery> T setBsshSttsNm(String bsshSttsNm) {
this.bsshSttsNm = bsshSttsNm;
return self();
}
public String getPrmisnNo() {
return ifEmpty(prmisnNo, () -> null);
}
public <T extends DsuseMgtDetailQuery> T setPrmisnNo(String prmisnNo) {
this.prmisnNo = prmisnNo;
return self();
}
public String getDscdmngSn() {
return ifEmpty(dscdmngSn, () -> null);
}
public <T extends DsuseMgtDetailQuery> T setDscdmngSn(String dscdmngSn) {
this.dscdmngSn = dscdmngSn;
return self();
}
public String getPrductCd() {
return ifEmpty(prductCd, () -> null);
}
public <T extends DsuseMgtDetailQuery> T setPrductCd(String prductCd) {
this.prductCd = prductCd;
return self();
}
public String getPrductNm() {
return ifEmpty(prductNm, () -> null);
}
public <T extends DsuseMgtDetailQuery> T setPrductNm(String prductNm) {
this.prductNm = prductNm;
return self();
}
public String getMinDistbQy() {
return ifEmpty(minDistbQy, () -> null);
}
public <T extends DsuseMgtDetailQuery> T setMinDistbQy(String minDistbQy) {
this.minDistbQy = minDistbQy;
return self();
}
public String getMinDistbUnit() {
return ifEmpty(minDistbUnit, () -> null);
}
public <T extends DsuseMgtDetailQuery> T setMinDistbUnit(String minDistbUnit) {
this.minDistbUnit = minDistbUnit;
return self();
}
public String getMindistb() {
return ifEmpty(minDistb, () -> null);
}
public <T extends DsuseMgtDetailQuery> T setMindistb(String minDistb) {
this.minDistb = minDistb;
return self();
}
public String getPceqy() {
return ifEmpty(pceQy, () -> null);
}
public <T extends DsuseMgtDetailQuery> T setPceqy(String pceQy) {
this.pceQy = pceQy;
return self();
}
public String getPceunit() {
return ifEmpty(pceUnit, () -> null);
}
public <T extends DsuseMgtDetailQuery> T setPceunit(String pceUnit) {
this.pceUnit = pceUnit;
return self();
}
public String getPce() {
return ifEmpty(pce, () -> null);
}
public <T extends DsuseMgtDetailQuery> T setPce(String pce) {
this.pce = pce;
return self();
}
public String getMnfno() {
return ifEmpty(mnfNo, () -> null);
}
public <T extends DsuseMgtDetailQuery> T setMnfno(String mnfNo) {
this.mnfNo = mnfNo;
return self();
}
public String getPrdvalidde() {
return ifEmpty(prdValidDe, () -> null);
}
public <T extends DsuseMgtDetailQuery> T setPrdvalidde(String prdValidDe) {
this.prdValidDe = prdValidDe;
return self();
}
public String getMnfseq() {
return ifEmpty(mnfSeq, () -> null);
}
public <T extends DsuseMgtDetailQuery> T setMnfseq(String mnfSeq) {
this.mnfSeq = mnfSeq;
return self();
}
public String getDsuseqy() {
return ifEmpty(dsuseQy, () -> null);
}
public <T extends DsuseMgtDetailQuery> T setDsuseqy(String dsuseQy) {
this.dsuseQy = dsuseQy;
return self();
}
public String getUsrrptinidno() {
return ifEmpty(usrRptInIdNo, () -> null);
}
public <T extends DsuseMgtDetailQuery> T setUsrrptinidno(String usrRptInIdNo) {
this.usrRptInIdNo = usrRptInIdNo;
return self();
}
}

@ -1,5 +1,7 @@
package cokr.xit.adds.nims;
import org.apache.poi.ss.formula.functions.T;
import cokr.xit.foundation.component.QueryRequest;
/**
@ -16,43 +18,7 @@ public class DsuseMgtDocQuery extends QueryRequest{
private String schDateTo; // 검색 일자 종료
private String schBsshCd; // 검색 일자 종료
private String schSttsCd; // 진행상태
//폐기관리
private String dscdmngId; // 폐기관리 ID
private String deptCd; // 부서 코드
private String userId; // 사용자 ID
private String prgrsSttsCd; // 진행 상태 코드
private String bsshCd; // 마약류 취급자 식별 번호
private String rndDtlRptCnt; // 수불 상세 보고 수
private String hdrDe; // 취급 일자
private String dsuseSeCd; // 폐기 구분 코드
private String dsusePrvCd; // 폐기 사유 코드
private String dsuseMthCd; // 폐기 방법 코드
private String dsuseLoc; // 폐기 장소
private String dsuseDe; // 폐기 일자
private String stts; // 처리 상태
private String usrRptIdNo; // 사용자 보고 식별 번호
private String orgUsrRptIdNo; // 원 사용자 보고 식별 번호
private String rptTyCd; // 보고 유형 코드
private String useYn; // 사용 여부
private String regDt; // 등록 일시
private String rgtr; // 등록자
private String mdfcnDt; // 수정 일시
private String mdfr; // 수정자
//저장소 정보
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 getSchSggCd() {
return ifEmpty(schSggCd, () -> null);
@ -99,15 +65,6 @@ public class DsuseMgtDocQuery extends QueryRequest{
return self();
}
public String getDscdmngId() {
return ifEmpty(dscdmngId, () -> null);
}
public <T extends DsuseMgtDocQuery> T setDscdmngId(String dscdmngId) {
this.dscdmngId = dscdmngId;
return self();
}
public String getDeptCd() {
return ifEmpty(deptCd, () -> null);
}
@ -117,275 +74,6 @@ public class DsuseMgtDocQuery extends QueryRequest{
return self();
}
public String getUserId() {
return ifEmpty(userId, () -> null);
}
public <T extends DsuseMgtDocQuery> T setUserId(String userId) {
this.userId = userId;
return self();
}
public String getPrgrsSttsCd() {
return ifEmpty(prgrsSttsCd, () -> null);
}
public <T extends DsuseMgtDocQuery> T setPrgrsSttsCd(String prgrsSttsCd) {
this.prgrsSttsCd = prgrsSttsCd;
return self();
}
public String getBsshCd() {
return ifEmpty(bsshCd, () -> null);
}
public <T extends DsuseMgtDocQuery> T setBsshCd(String bsshCd) {
this.bsshCd = bsshCd;
return self();
}
public String getRndDtlRptCnt() {
return ifEmpty(rndDtlRptCnt, () -> null);
}
public <T extends DsuseMgtDocQuery> T setRndDtlRptCnt(String rndDtlRptCnt) {
this.rndDtlRptCnt = rndDtlRptCnt;
return self();
}
public String getHdrDe() {
return ifEmpty(hdrDe, () -> null);
}
public <T extends DsuseMgtDocQuery> T setHdrDe(String hdrDe) {
this.hdrDe = hdrDe;
return self();
}
public String getDsuseSeCd() {
return ifEmpty(dsuseSeCd, () -> null);
}
public <T extends DsuseMgtDocQuery> T setDsuseSeCd(String dsuseSeCd) {
this.dsuseSeCd = dsuseSeCd;
return self();
}
public String getDsusePrvCd() {
return ifEmpty(dsusePrvCd, () -> null);
}
public <T extends DsuseMgtDocQuery> T setDsusePrvCd(String dsusePrvCd) {
this.dsusePrvCd = dsusePrvCd;
return self();
}
public String getDsuseMthCd() {
return ifEmpty(dsuseMthCd, () -> null);
}
public <T extends DsuseMgtDocQuery> T setDsuseMthCd(String dsuseMthCd) {
this.dsuseMthCd = dsuseMthCd;
return self();
}
public String getDsuseLoc() {
return ifEmpty(dsuseLoc, () -> null);
}
public <T extends DsuseMgtDocQuery> T setDsuseLoc(String dsuseLoc) {
this.dsuseLoc = dsuseLoc;
return self();
}
public String getDsuseDe() {
return ifEmpty(dsuseDe, () -> null);
}
public <T extends DsuseMgtDocQuery> T setDsuseDe(String dsuseDe) {
this.dsuseDe = dsuseDe;
return self();
}
public String getStts() {
return ifEmpty(stts, () -> null);
}
public <T extends DsuseMgtDocQuery> T setStts(String stts) {
this.stts = stts;
return self();
}
public String getUsrRptIdNo() {
return ifEmpty(usrRptIdNo, () -> null);
}
public <T extends DsuseMgtDocQuery> T setUsrRptIdNo(String usrRptIdNo) {
this.usrRptIdNo = usrRptIdNo;
return self();
}
public String getOrgUsrRptIdNo() {
return ifEmpty(orgUsrRptIdNo, () -> null);
}
public <T extends DsuseMgtDocQuery> T setOrgUsrRptIdNo(String orgUsrRptIdNo) {
this.orgUsrRptIdNo = orgUsrRptIdNo;
return self();
}
public String getRptTyCd() {
return ifEmpty(rptTyCd, () -> null);
}
public <T extends DsuseMgtDocQuery> T setRptTyCd(String rptTyCd) {
this.rptTyCd = rptTyCd;
return self();
}
public String getUseYn() {
return ifEmpty(useYn, () -> null);
}
public <T extends DsuseMgtDocQuery> T setUseYn(String useYn) {
this.useYn = useYn;
return self();
}
public String getRegDt() {
return ifEmpty(regDt, () -> null);
}
public <T extends DsuseMgtDocQuery> T setRegDt(String regDt) {
this.regDt = regDt;
return self();
}
public String getRgtr() {
return ifEmpty(rgtr, () -> null);
}
public <T extends DsuseMgtDocQuery> T setRgtr(String rgtr) {
this.rgtr = rgtr;
return self();
}
public String getMdfcnDt() {
return ifEmpty(mdfcnDt, () -> null);
}
public <T extends DsuseMgtDocQuery> T setMdfcnDt(String mdfcnDt) {
this.mdfcnDt = mdfcnDt;
return self();
}
public String getMdfr() {
return ifEmpty(mdfr, () -> null);
}
public <T extends DsuseMgtDocQuery> T setMdfr(String mdfr) {
this.mdfr = mdfr;
return self();
}
public String getBsshNm() {
return ifEmpty(bsshNm, () -> null);
}
public <T extends DsuseMgtDocQuery> T setBsshNm(String bsshNm) {
this.bsshNm = bsshNm;
return self();
}
public String getIndutyNm() {
return ifEmpty(indutyNm, () -> null);
}
public <T extends DsuseMgtDocQuery> T setIndutyNm(String indutyNm) {
this.indutyNm = indutyNm;
return self();
}
public String getHdntCd() {
return ifEmpty(hdntCd, () -> null);
}
public <T extends DsuseMgtDocQuery> T setHdntCd(String hdntCd) {
this.hdntCd = hdntCd;
return self();
}
public String getHdntNm() {
return ifEmpty(hdntNm, () -> null);
}
public <T extends DsuseMgtDocQuery> T setHdntNm(String hdntNm) {
this.hdntNm = hdntNm;
return self();
}
public String getBizrno() {
return ifEmpty(bizrno, () -> null);
}
public <T extends DsuseMgtDocQuery> T setNizrno(String bizrno) {
this.bizrno = bizrno;
return self();
}
public String getRprsntvNm() {
return ifEmpty(rprsntvNm, () -> null);
}
public <T extends DsuseMgtDocQuery> T setRprsntvNm(String rprsntvNm) {
this.rprsntvNm = rprsntvNm;
return self();
}
public String getChrgNm() {
return ifEmpty(chrgNm, () -> null);
}
public <T extends DsuseMgtDocQuery> T setChrgNm(String chrgNm) {
this.chrgNm = chrgNm;
return self();
}
public String getHptlNo() {
return ifEmpty(hptlNo, () -> null);
}
public <T extends DsuseMgtDocQuery> T setHptlNo(String hptlNo) {
this.hptlNo = hptlNo;
return self();
}
public String getJoinYn() {
return ifEmpty(joinYn, () -> null);
}
public <T extends DsuseMgtDocQuery> T setJoinYn(String joinYn) {
this.joinYn = joinYn;
return self();
}
public String getBsshSttsNm() {
return ifEmpty(bsshSttsNm, () -> null);
}
public <T extends DsuseMgtDocQuery> T setBsshSttsNm(String bsshSttsNm) {
this.bsshSttsNm = bsshSttsNm;
return self();
}
public String getPrmisnNo() {
return ifEmpty(prmisnNo, () -> null);
}
public <T extends DsuseMgtDocQuery> T setPrmisnNo(String prmisnNo) {
this.prmisnNo = prmisnNo;
return self();
}
public String getSchSttsCd() {
return ifEmpty(schSttsCd, () -> null);
}

@ -15,44 +15,9 @@ public class DsuseMgtReceiptQuery extends QueryRequest{
private String schDateTo; // 검색 일자 종료
private String schBsshCd; // 업체코드
private String schSttsCd; // 진행상태코드
//폐기관리
private String dscdmngId; // 폐기관리 ID
private String deptCd; // 부서 코드
private String userId; // 사용자 ID
private String prgrsSttsCd; // 진행 상태 코드
private String bsshCd; // 마약류 취급자 식별 번호
private String rndDtlRptCnt; // 수불 상세 보고 수
private String hdrDe; // 취급 일자
private String dsuseSeCd; // 폐기 구분 코드
private String dsusePrvCd; // 폐기 사유 코드
private String dsuseMthCd; // 폐기 방법 코드
private String dsuseLoc; // 폐기 장소
private String dsuseDe; // 폐기 일자
private String stts; // 처리 상태
private String usrRptIdNo; // 사용자 보고 식별 번호
private String orgUsrRptIdNo; // 원 사용자 보고 식별 번호
private String rptTyCd; // 보고 유형 코드
private String useYn; // 사용 여부
private String regDt; // 등록 일시
private String rgtr; // 등록자
private String mdfcnDt; // 수정 일시
private String mdfr; // 수정자
//저장소 정보
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; // 허가 번호
private String nimsRptYn; // NIMS 보고 여부
public String getNimsRptYn() {
@ -64,7 +29,6 @@ public class DsuseMgtReceiptQuery extends QueryRequest{
return self();
}
public String getSchSggCd() {
return ifEmpty(schSggCd, () -> null);
}
@ -110,15 +74,6 @@ public class DsuseMgtReceiptQuery extends QueryRequest{
return self();
}
public String getdscdmngId() {
return ifEmpty(dscdmngId, () -> null);
}
public <T extends DsuseMgtReceiptQuery> T setdscdmngId(String dscdmngId) {
this.dscdmngId = dscdmngId;
return self();
}
public String getdeptCd() {
return ifEmpty(deptCd, () -> null);
}
@ -137,123 +92,6 @@ public class DsuseMgtReceiptQuery extends QueryRequest{
return self();
}
public String getprgrsSttsCd() {
return ifEmpty(prgrsSttsCd, () -> null);
}
public <T extends DsuseMgtReceiptQuery> T setprgrsSttsCd(String prgrsSttsCd) {
this.prgrsSttsCd = prgrsSttsCd;
return self();
}
public String getbsshCd() {
return ifEmpty(bsshCd, () -> null);
}
public <T extends DsuseMgtReceiptQuery> T setbsshCd(String bsshCd) {
this.bsshCd = bsshCd;
return self();
}
public String getrndDtlRptCnt() {
return ifEmpty(rndDtlRptCnt, () -> null);
}
public <T extends DsuseMgtReceiptQuery> T setrndDtlRptCnt(String rndDtlRptCnt) {
this.rndDtlRptCnt = rndDtlRptCnt;
return self();
}
public String gethdrDe() {
return ifEmpty(hdrDe, () -> null);
}
public <T extends DsuseMgtReceiptQuery> T sethdrDe(String hdrDe) {
this.hdrDe = hdrDe;
return self();
}
public String getdsuseSeCd() {
return ifEmpty(dsuseSeCd, () -> null);
}
public <T extends DsuseMgtReceiptQuery> T setdsuseSeCd(String dsuseSeCd) {
this.dsuseSeCd = dsuseSeCd;
return self();
}
public String getdsusePrvCd() {
return ifEmpty(dsusePrvCd, () -> null);
}
public <T extends DsuseMgtReceiptQuery> T setdsusePrvCd(String dsusePrvCd) {
this.dsusePrvCd = dsusePrvCd;
return self();
}
public String getdsuseMthCd() {
return ifEmpty(dsuseMthCd, () -> null);
}
public <T extends DsuseMgtReceiptQuery> T setdsuseMthCd(String dsuseMthCd) {
this.dsuseMthCd = dsuseMthCd;
return self();
}
public String getdsuseLoc() {
return ifEmpty(dsuseLoc, () -> null);
}
public <T extends DsuseMgtReceiptQuery> T setdsuseLoc(String dsuseLoc) {
this.dsuseLoc = dsuseLoc;
return self();
}
public String getdsuseDe() {
return ifEmpty(dsuseDe, () -> null);
}
public <T extends DsuseMgtReceiptQuery> T setdsuseDe(String dsuseDe) {
this.dsuseDe = dsuseDe;
return self();
}
public String getstts() {
return ifEmpty(stts, () -> null);
}
public <T extends DsuseMgtReceiptQuery> T setstts(String stts) {
this.stts = stts;
return self();
}
public String getusrRptIdNo() {
return ifEmpty(usrRptIdNo, () -> null);
}
public <T extends DsuseMgtReceiptQuery> T setusrRptIdNo(String usrRptIdNo) {
this.usrRptIdNo = usrRptIdNo;
return self();
}
public String getorgUsrRptIdNo() {
return ifEmpty(orgUsrRptIdNo, () -> null);
}
public <T extends DsuseMgtReceiptQuery> T setorgUsrRptIdNo(String orgUsrRptIdNo) {
this.orgUsrRptIdNo = orgUsrRptIdNo;
return self();
}
public String getrptTyCd() {
return ifEmpty(rptTyCd, () -> null);
}
public <T extends DsuseMgtReceiptQuery> T setrptTyCd(String rptTyCd) {
this.rptTyCd = rptTyCd;
return self();
}
public String getuseYn() {
return ifEmpty(useYn, () -> null);
}
@ -262,138 +100,4 @@ public class DsuseMgtReceiptQuery extends QueryRequest{
this.useYn = useYn;
return self();
}
public String getregDt() {
return ifEmpty(regDt, () -> null);
}
public <T extends DsuseMgtReceiptQuery> T setregDt(String regDt) {
this.regDt = regDt;
return self();
}
public String getrgtr() {
return ifEmpty(rgtr, () -> null);
}
public <T extends DsuseMgtReceiptQuery> T setrgtr(String rgtr) {
this.rgtr = rgtr;
return self();
}
public String getmdfcnDt() {
return ifEmpty(mdfcnDt, () -> null);
}
public <T extends DsuseMgtReceiptQuery> T setmdfcnDt(String mdfcnDt) {
this.mdfcnDt = mdfcnDt;
return self();
}
public String getmdfr() {
return ifEmpty(mdfr, () -> null);
}
public <T extends DsuseMgtReceiptQuery> T setmdfr(String mdfr) {
this.mdfr = mdfr;
return self();
}
public String getbsshNm() {
return ifEmpty(bsshNm, () -> null);
}
public <T extends DsuseMgtReceiptQuery> T setbsshNm(String bsshNm) {
this.bsshNm = bsshNm;
return self();
}
public String getindutyNm() {
return ifEmpty(indutyNm, () -> null);
}
public <T extends DsuseMgtReceiptQuery> T setindutyNm(String indutyNm) {
this.indutyNm = indutyNm;
return self();
}
public String gethdntCd() {
return ifEmpty(hdntCd, () -> null);
}
public <T extends DsuseMgtReceiptQuery> T sethdntCd(String hdntCd) {
this.hdntCd = hdntCd;
return self();
}
public String gethdntNm() {
return ifEmpty(hdntNm, () -> null);
}
public <T extends DsuseMgtReceiptQuery> T sethdntNm(String hdntNm) {
this.hdntNm = hdntNm;
return self();
}
public String getbizrno() {
return ifEmpty(bizrno, () -> null);
}
public <T extends DsuseMgtReceiptQuery> T setbizrno(String bizrno) {
this.bizrno = bizrno;
return self();
}
public String getrprsntvNm() {
return ifEmpty(rprsntvNm, () -> null);
}
public <T extends DsuseMgtReceiptQuery> T setrprsntvNm(String rprsntvNm) {
this.rprsntvNm = rprsntvNm;
return self();
}
public String getchrgNm() {
return ifEmpty(chrgNm, () -> null);
}
public <T extends DsuseMgtReceiptQuery> T setchrgNm(String chrgNm) {
this.chrgNm = chrgNm;
return self();
}
public String gethptlNo() {
return ifEmpty(hptlNo, () -> null);
}
public <T extends DsuseMgtReceiptQuery> T sethptlNo(String hptlNo) {
this.hptlNo = hptlNo;
return self();
}
public String getjoinYn() {
return ifEmpty(joinYn, () -> null);
}
public <T extends DsuseMgtReceiptQuery> T setjoinYn(String joinYn) {
this.joinYn = joinYn;
return self();
}
public String getbsshSttsNm() {
return ifEmpty(bsshSttsNm, () -> null);
}
public <T extends DsuseMgtReceiptQuery> T setbsshSttsNm(String bsshSttsNm) {
this.bsshSttsNm = bsshSttsNm;
return self();
}
public String getprmisnNo() {
return ifEmpty(prmisnNo, () -> null);
}
public <T extends DsuseMgtReceiptQuery> T setprmisnNo(String prmisnNo) {
this.prmisnNo = prmisnNo;
return self();
}
}

@ -13,7 +13,8 @@ import cokr.xit.foundation.data.DataObject;
@Mapper("dsuseMgtDetailMapper")
public interface DsuseMgtDetailMapper extends AbstractMapper {
/** .<br />
/**
* .<br />
* @param req
* @return
*/

@ -13,7 +13,8 @@ import cokr.xit.foundation.data.DataObject;
@Mapper("dsuseMgtDocMapper")
public interface DsuseMgtDocMapper extends AbstractMapper {
/** .<br />
/**
* .<br />
* @param req
* @return
*/

@ -19,16 +19,16 @@ public interface DsuseMgtReceiptMapper extends AbstractMapper {
*/
List<DataObject> selectDsuseMgtReceiptList(DsuseMgtReceiptQuery req);
DataObject selectDsuseMgtReceiptInfo(String dscdmngId);
/** .
* @param DsuseMgtReceiptQuery
/**
* .
* @param query DsuseMgtReceiptQuery
* @return
*/
int removeDsuseMgt(DsuseMgtReceiptQuery query);
/** .
* @param DsuseMgtReceiptQuery
/**
* .
* @param query DsuseMgtReceiptQuery
* @return
*/
int updatePrgsSttusOfDsuseMgt(DsuseMgtReceiptQuery query);

@ -13,7 +13,8 @@ import cokr.xit.foundation.data.DataObject;
@Mapper("dsuseMgtRsltMapper")
public interface DsuseMgtRsltMapper extends AbstractMapper {
/** .<br />
/**
* .<br />
* @param req
* @return
*/

@ -16,16 +16,17 @@ public interface DsuseMgtReceiptService {
*/
List<DataObject> getDsuseMgtReceiptList(DsuseMgtReceiptQuery query);
DataObject getDsuseMgtReceiptInfo(String dscdmngId);
/** .
* @param DsuseMgtReceiptQuery
/**
* .
* @param query DsuseMgtReceiptQuery
* @return
*/
String removeDsuseMgt(DsuseMgtReceiptQuery query);
/** .
* @param DsuseMgtReceiptQuery
/**
* .
* @param query DsuseMgtReceiptQuery
* @return
*/
String updatePrgsSttusOfDsuseMgt(DsuseMgtReceiptQuery query);

@ -28,13 +28,8 @@ public class DsuseMgtReceiptServiceBean extends AbstractServiceBean implements D
return dsuseMgtReceiptMapper.selectDsuseMgtReceiptList(query);
}
@Override
public DataObject getDsuseMgtReceiptInfo(String dscdmngId){
return dsuseMgtReceiptMapper.selectDsuseMgtReceiptInfo(dscdmngId);
}
/** .
* @param DsuseMgtReceiptQuery
* @param query DsuseMgtReceiptQuery
* @return
*/
@Override
@ -47,7 +42,7 @@ public class DsuseMgtReceiptServiceBean extends AbstractServiceBean implements D
}
/** .
* @param DsuseMgtReceiptQuery
* @param query DsuseMgtReceiptQuery
* @return
*/
@Override

@ -267,7 +267,6 @@ public class AddsNimsController extends ApplicationController {
return mav
.addObject("pageName", "dsuseMgtMappingInfo") // View(jsp)에서 사용할 id 뒤에 붙일 suffix
.addObject("apiHost", apiHost)
.addObject("dsuseMappingInfo", toJson(dsuseMappingInfo)) /* View(jsp)에서 사용할 id 뒤에 붙일 suffix */;
}
@RequestMapping(value = "/updatePrgsSttusOfDsuseMgt.do", name = "페기 보고 확인 등록")
@ -417,8 +416,7 @@ public class AddsNimsController extends ApplicationController {
.addObject("pageName", "bsshPopup") // View(jsp)에서 사용할 id 뒤에 붙일 suffix
.addObject("infoPrefix", "bssh") // prefix
.addObject("infoPrefixUrl", "/adds/nims") // prefixUrl
.addObject("openPage", openPage)
.addObject("apiHost", apiHost);
.addObject("openPage", openPage);
}
@RequestMapping(value = "/product-popup.do", name="마약류 제품 조회 팝업")
@ -429,8 +427,7 @@ public class AddsNimsController extends ApplicationController {
.addObject("pageName", "productMain") // View(jsp)에서 사용할 id 뒤에 붙일 suffix
.addObject("infoPrefix", "product") // prefix
.addObject("infoPrefixUrl", "/adds/nims") // prefixUrl
.addObject("openPage", openPage)
.addObject("apiHost", apiHost);
.addObject("openPage", openPage);
}
//-------------------------------------------------------------------------------------------------
// 마약류폐기보고 팝업

@ -26,8 +26,6 @@
tdm.dsuse_de, /* 폐기_일자 */
MAX(CASE WHEN tf.sub_type = '01' THEN tf.file_id END) AS 'dsuse_rslt_doc',
MAX(CASE WHEN tf.sub_type = '02' THEN tf.file_id END) AS 'dsuse_rslt_list_photo'
-- max(case when tf.SUB_TYPE = '01' THEN tf.file_nm end) as '폐기결과보고서파일',
-- max(case when tf.SUB_TYPE = '02' THEN tf.file_nm end) as '폐기처리내역및사진파일'
FROM tb_dsuse_mgt tdm
LEFT JOIN tb_dept td ON tdm.dept_cd = td.dept_cd
LEFT JOIN tb_bssh_info tbi ON tdm.bssh_cd =tbi.bssh_cd

@ -1,300 +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"%>
<c:set var="prefixName" scope="request">QR code reading</c:set>
<div class="wrapper" style="padding-top:2em">
<div class="container" id="demo-content">
<div id="divBarcode">
<label>바코드 스캔</label>
<input type="text" id="barcodeStr" name="barcodeStr" style="width: 390px;" minlength="200" >
<button id="btnBarcode" class="btn btn-primary">조회</button>
</div>
<h3 class="title">바코드(이미지) scan</h3>
<div id="divImage">
<div>
<!-- <img id="img" src="../../images/qr_code.png" style="width:300px; height: 200px; border: 1px solid gray"></img>-->
<div id="img" style="width:300px; height: 200px; border: 1px solid gray"></div>
</div>
</div>
<br>
<textarea id="result2" style="width: 500px; height: 200px"></textarea>
</div>
<div class="footer">
<section class="container">
<p></p>
</section>
</div>
</div>
<script type="text/javascript">
document.querySelector("#barcodeStr").addEventListener('change', function () {
document.getElementById('result2').value = '';
console.log('change');
submitBarcodeScan();
}, {passive: true});
document.querySelector("#btnBarcode").addEventListener('click', function () {
console.log('click');
if(document.querySelector("#barcodeStr").value === ''){
alert('바코드를 읽어 주세요.')
return;
}
document.getElementById('result2').value = '';
submitBarcodeScan();
}, {passive: true});
$(document).ready(function () {
const sec9 = document.querySelector('#divImage');
const uploadBox = sec9.querySelector('#img');
/* 박스 안에 Drag 들어왔을 때 */
uploadBox.addEventListener('dragenter', function (e) {
console.log('dragenter');
});
/* 박스 안에 Drag를 하고 있을 때 */
uploadBox.addEventListener('dragover', function (e) {
e.preventDefault();
console.log('dragover');
const vaild = e.dataTransfer.types.indexOf('Files') >= 0;
if (!vaild) {
this.style.backgroundColor = 'red';
} else {
this.style.backgroundColor = 'green';
}
});
/* 박스 밖으로 Drag가 나갈 때 */
uploadBox.addEventListener('dragleave', function (e) {
console.log('dragleave');
this.style.backgroundColor = 'white';
});
/* 박스 안에서 Drag를 Drop했을 때 */
uploadBox.addEventListener('drop', function (e) {
e.preventDefault();
console.log('drop');
this.style.backgroundColor = 'white';
console.dir(e.dataTransfer);
//유효성 Check
if (!isValid(e.dataTransfer)) {
return;
}
const data = e.dataTransfer.files;
console.dir(data);
//
const formData = new FormData();
for (let i = 0; i < data.length; i++) {
formData.append('uploadFiles', data[i]);
}
document.getElementById('result2').value = ''
requestSubmit({
url: '<c:url value="${apiHost}/api/biz/nims/v1/getProductInfoByQrcodeImg" />',
method: 'POST',
data: formData,
progress: () => {
},
loadend: (res) => {
const rslt = JSON.parse(res)
if (rslt.success) {
//console.log(data[0].qrcode)
document.getElementById('result2').value = JSON.stringify(rslt.data, null, 4)
return true;
}else{
alert(rslt.code + ":" + rslt.message);
}
},
error: (e) => {
console.error(e)
}
});
});
});
function submitBarcodeScan(){
const data = {
barcodeStr: document.querySelector("#barcodeStr").value
};
const url = '<c:url value="${apiHost}/api/biz/nims/v1/getPrdMnfSeqInfoOfBarcode" />';
fetch(url, {
method: 'POST',
body: JSON.stringify(data)
})
.then(response => {
if (!response.ok) {
return response.json().then(error => { throw error; });
}
return response.json();
})
.then(res => {
console.log(res);
console.log(res.data);
if (!res.success) {
alert(res.code + ":" + res.message);
return false;
}
document.getElementById('result2').value = JSON.stringify(res.data, null, 4)
return true;
})
.catch(error => {
console.log(error);
if (error && typeof error === 'object') {
console.log(error);
}
});
}
function isValid(data) {
//파일인지 유효성 검사
if (data.types.indexOf('Files') < 0) {
return false;
}
const files = data.files
//파일의 개수는 1개씩만 가능하도록 유효성 검사
if (files.length > 1) {
alert('파일은 하나씩 전송이 가능합니다.');
return false;
}
//이미지인지 유효성 검사
let isStop = false;
let fileInfos = [];
for (let i = 0; i < files.length; i++) {
if (files[i].type.indexOf('image') < 0) {
isStop = true;
alert('이미지 파일만 업로드 가능합니다.');
break;
}
//파일의 사이즈는 1MB 미만
if (files[i].size >= 1024 * 1024 * 2) {
isStop = true;
alert('2MB 이상인 파일은 업로드할 수 없습니다.');
break;
}
fileInfos[i] = {
fileName: files[i].name,
size: files[i].size
}
}
if (isStop) {
fileInfos = null;
return isStop;
}
alert(JSON.stringify(fileInfos, null, 4));
return true;
}
/**
* <pre>
* file upload 요청
* obj = {
* method: string
* url: string
* data: FormData
* }
*
* @param obj
* </pre>
*/
function requestSubmit(obj) {
const xhr = new XMLHttpRequest();
/* 성공/에러 */
xhr.addEventListener('load', function () {
const data = xhr.responseText;
if (obj.load) {
obj.load(data);
}
});
/* 성공 */
xhr.addEventListener('loadend', function () {
const data = xhr.responseText;
console.log(data);
if (obj.loadend) {
obj.loadend(data);
}
});
/* 실패 */
xhr.addEventListener('error', function () {
console.log('파일 업로드 요청 중 에러 발생 : ' + xhr.status + ' / ' + xhr.statusText);
if (obj.error) {
obj.error(xhr, xhr.status, xhr.statusText);
}
});
/* 중단 */
xhr.addEventListener('abort', function () {
if (obj.abort) {
obj.abort(xhr);
}
});
/* 진행 */
xhr.upload.addEventListener('progress', function () {
if (obj.progress) {
obj.progress(xhr);
}
});
/* 요청 시작 */
xhr.addEventListener('loadstart', function () {
if (obj.loadstart) {
obj.loadstart(xhr);
}
});
const method = obj.method || 'GET';
const url = obj.url || '';
const data = obj.data || null;
if (obj.async === false) {
xhr.open(method, url, obj.async);
} else {
xhr.open(method, url, true);
}
if (obj.contentType) {
xhr.setRequestHeader('Content-Type', obj.contentType);
}
try {
xhr.send(data);
console.log(xhr.status)
} catch (e) {
console.error(e)
}
}
</script>

@ -293,7 +293,6 @@
$P.mappingControl = new DatasetControl({
urls : {
<%--load : '<c:url value="${apiHost}/api/biz/nims/v1/getDsuseMgtMapping" />',--%>
load : wctx.url("/adds/nims/getDsuseRptAndDsuseMgtMapping.do")
}
, prefix: "dsuseMgtMapping"
@ -402,7 +401,6 @@
ajax.post({
<%--url: '<c:url value="${apiHost}/api/biz/nims/v1/modifyMappingDsuseMgt"/>'--%>
url: wctx.url("/adds/nims/modifyMappingDsuseMgt.do")
, data: JSON.stringify({
dscdmngId: $P.formFields.get().dscdmngId,

Loading…
Cancel
Save