fix: 폐기보고 통계 상세 목록 추가

dev
Jonguk. Lim 4 months ago
parent 327e2aa536
commit 180f57bba7

@ -63,11 +63,11 @@ public class ApiKeyQuery extends QueryRequest{
return self();
}
public String getuseYn() {
public String getUseYn() {
return ifEmpty(useYn, () -> null);
}
public <T extends ApiKeyQuery> T setuseYn(String useYn) {
public <T extends ApiKeyQuery> T setUseYn(String useYn) {
this.useYn = useYn;
return self();
}

@ -95,29 +95,29 @@ public class DsuseMgtReceiptQuery extends QueryRequest{
return self();
}
public String getdeptCd() {
public String getDeptCd() {
return ifEmpty(deptCd, () -> null);
}
public <T extends DsuseMgtReceiptQuery> T setdeptCd(String deptCd) {
public <T extends DsuseMgtReceiptQuery> T setDeptCd(String deptCd) {
this.deptCd = deptCd;
return self();
}
public String getuserId() {
public String getUserId() {
return ifEmpty(userId, () -> null);
}
public <T extends DsuseMgtReceiptQuery> T setuserId(String userId) {
public <T extends DsuseMgtReceiptQuery> T setUserId(String userId) {
this.userId = userId;
return self();
}
public String getuseYn() {
public String getUseYn() {
return ifEmpty(useYn, () -> null);
}
public <T extends DsuseMgtReceiptQuery> T setuseYn(String useYn) {
public <T extends DsuseMgtReceiptQuery> T setUseYn(String useYn) {
this.useYn = useYn;
return self();
}

@ -22,6 +22,12 @@ public class DsuseMgtStatisticsQuery extends QueryRequest{
private String useYn; // 사용 여부
private String nimsRptYn; // NIMS 보고 여부
private String nrcdSeNm; // 폐기/항정 구분
private String prtmSeNm; // 중점/일반 구분드
private String indutyNm; // 취급자 업종 구분
private String prgrsSttsCd; // 진행상태코드
private String prductCd; // 진행상태코드
public String getCellDefs() {
return ifEmpty(cellDefs, () -> null);
}
@ -85,30 +91,75 @@ public class DsuseMgtStatisticsQuery extends QueryRequest{
return self();
}
public String getdeptCd() {
public String getDeptCd() {
return ifEmpty(deptCd, () -> null);
}
public <T extends DsuseMgtStatisticsQuery> T setdeptCd(String deptCd) {
public <T extends DsuseMgtStatisticsQuery> T setDeptCd(String deptCd) {
this.deptCd = deptCd;
return self();
}
public String getuserId() {
public String getUserId() {
return ifEmpty(userId, () -> null);
}
public <T extends DsuseMgtStatisticsQuery> T setuserId(String userId) {
public <T extends DsuseMgtStatisticsQuery> T setUserId(String userId) {
this.userId = userId;
return self();
}
public String getuseYn() {
public String getUseYn() {
return ifEmpty(useYn, () -> null);
}
public <T extends DsuseMgtStatisticsQuery> T setuseYn(String useYn) {
public <T extends DsuseMgtStatisticsQuery> T setUseYn(String useYn) {
this.useYn = useYn;
return self();
}
public String getNrcdSeNm() {
return ifEmpty(nrcdSeNm, () -> null);
}
public <T extends DsuseMgtStatisticsQuery> T setNrcdSeNm(String nrcdSeNm) {
this.nrcdSeNm = nrcdSeNm;
return self();
}
public String getPrtmSeNm() {
return ifEmpty(prtmSeNm, () -> null);
}
public <T extends DsuseMgtStatisticsQuery> T setPrtmSeNm(String prtmSeNm) {
this.prtmSeNm = prtmSeNm;
return self();
}
public String getIndutyNm() {
return ifEmpty(indutyNm, () -> null);
}
public <T extends DsuseMgtStatisticsQuery> T setIndutyNm(String indutyNm) {
this.indutyNm = indutyNm;
return self();
}
public String getPrgrsSttsCd() {
return ifEmpty(prgrsSttsCd, () -> null);
}
public <T extends DsuseMgtStatisticsQuery> T setPrgrsSttsCd(String prgrsSttsCd) {
this.prgrsSttsCd = prgrsSttsCd;
return self();
}
public String getPrductCd() {
return ifEmpty(prductCd, () -> null);
}
public <T extends DsuseMgtStatisticsQuery> T setPrductCd(String prductCd) {
this.prductCd = prductCd;
return self();
}
}

@ -19,23 +19,27 @@ public interface DsuseMgtStatisticsMapper extends AbstractMapper {
* @return / and /
*/
List<DataObject> selectDsuseMgtNcrdAndPrtmStatistics(DsuseMgtStatisticsQuery query);
List<DataObject> selectDsuseMgtNcrdAndPrtmStatisticsDtls(DsuseMgtStatisticsQuery query);
/**
*
* @return
*/
List<DataObject> selectDsuseMgtDsuseQyByPrdStatistics(DsuseMgtStatisticsQuery query);
List<DataObject> selectDsuseMgtDsuseQyByPrdStatisticsDtls(DsuseMgtStatisticsQuery query);
/**
*
* @return
*/
List<DataObject> selectDsuseMgtDsuseQyByIndutyStatistics(DsuseMgtStatisticsQuery query);
List<DataObject> selectDsuseMgtDsuseQyByIndutyStatisticsDtls(DsuseMgtStatisticsQuery query);
/**
*
* @return
*/
List<DataObject> selectDsuseMgtDsuseQyByBsshStatistics(DsuseMgtStatisticsQuery query);
List<DataObject> selectDsuseMgtDsuseQyByBsshStatisticsDtls(DsuseMgtStatisticsQuery query);
}

@ -12,7 +12,14 @@ public interface AddsNimsService {
List<DataObject> getDsuseMgtRsltImgList(DsuseMgtRsltQuery query);
List<DataObject> getDsuseMgtNcrdAndPrtmStatistics(DsuseMgtStatisticsQuery query);
List<DataObject> getDsuseMgtNcrdAndPrtmStatisticsDtls(DsuseMgtStatisticsQuery query);
List<DataObject> getDsuseMgtDsuseQyByPrdStatistics(DsuseMgtStatisticsQuery query);
List<DataObject> getDsuseMgtDsuseQyByPrdStatisticsDtls(DsuseMgtStatisticsQuery query);
List<DataObject> getDsuseMgtDsuseQyByIndutyStatistics(DsuseMgtStatisticsQuery query);
List<DataObject> getDsuseMgtDsuseQyByIndutyStatisticsDtls(DsuseMgtStatisticsQuery query);
List<DataObject> getDsuseMgtDsuseQyByBsshStatistics(DsuseMgtStatisticsQuery query);
List<DataObject> getDsuseMgtDsuseQyByBsshStatisticsDtls(DsuseMgtStatisticsQuery query);
}

@ -42,19 +42,38 @@ public class AddsNimsServiceBean extends AbstractServiceBean implements AddsNims
public List<DataObject> getDsuseMgtNcrdAndPrtmStatistics(DsuseMgtStatisticsQuery query) {
return dsuseMgtStatisticsMapper.selectDsuseMgtNcrdAndPrtmStatistics(query);
}
@Override
public List<DataObject> getDsuseMgtNcrdAndPrtmStatisticsDtls(DsuseMgtStatisticsQuery query) {
return dsuseMgtStatisticsMapper.selectDsuseMgtNcrdAndPrtmStatisticsDtls(query);
}
@Override
public List<DataObject> getDsuseMgtDsuseQyByPrdStatistics(DsuseMgtStatisticsQuery query) {
return dsuseMgtStatisticsMapper.selectDsuseMgtDsuseQyByPrdStatistics(query);
}
@Override
public List<DataObject> getDsuseMgtDsuseQyByPrdStatisticsDtls(DsuseMgtStatisticsQuery query) {
return dsuseMgtStatisticsMapper.selectDsuseMgtDsuseQyByPrdStatisticsDtls(query);
}
@Override
public List<DataObject> getDsuseMgtDsuseQyByIndutyStatistics(DsuseMgtStatisticsQuery query) {
return dsuseMgtStatisticsMapper.selectDsuseMgtDsuseQyByIndutyStatistics(query);
}
@Override
public List<DataObject> getDsuseMgtDsuseQyByIndutyStatisticsDtls(DsuseMgtStatisticsQuery query) {
return dsuseMgtStatisticsMapper.selectDsuseMgtDsuseQyByIndutyStatisticsDtls(query);
}
@Override
public List<DataObject> getDsuseMgtDsuseQyByBsshStatistics(DsuseMgtStatisticsQuery query) {
return dsuseMgtStatisticsMapper.selectDsuseMgtDsuseQyByBsshStatistics(query);
}
@Override
public List<DataObject> getDsuseMgtDsuseQyByBsshStatisticsDtls(DsuseMgtStatisticsQuery query) {
return dsuseMgtStatisticsMapper.selectDsuseMgtDsuseQyByBsshStatisticsDtls(query);
}
}

@ -369,6 +369,13 @@ public class AddsNimsController extends ApplicationController {
return excelDownloadDsuseMgtNcrdAndPrtmStatistics(query);
}
@RequestMapping(value = "/getDsuseMgtNcrdAndPrtmStatisticsDtls.do", name="마약/항정 and 중점/일반 별 상세 목록")
public ModelAndView getDsuseMgtNcrdAndPrtmStatisticsDtls(DsuseMgtStatisticsQuery query) {
ModelAndView mav = new ModelAndView("adds/nims/dsuseMgtNcrdAndPrtmStatistics-info");
return mav.addObject("statisticsDtlList", toJson(addsNimsService.getDsuseMgtNcrdAndPrtmStatisticsDtls(query)));
}
@RequestMapping(value = "/getDsuseMgtDsuseQyByPrdStatistics.do", name="제품별 폐기 현황 통계")
public ModelAndView getDsuseMgtDsuseQyByPrdStatistics(DsuseMgtStatisticsQuery query) {
if(!"xls".equals(query.getDownload())) {
@ -378,6 +385,12 @@ public class AddsNimsController extends ApplicationController {
return excelDownloadDsuseMgtDsuseQyByPrdStatistics(query);
}
@RequestMapping(value = "/getDsuseMgtDsuseQyByPrdStatisticsDtls.do", name="제품별 폐기 현황 상세 목록")
public ModelAndView getDsuseMgtDsuseQyByPrdStatisticsDtls(DsuseMgtStatisticsQuery query) {
ModelAndView mav = new ModelAndView("adds/nims/dsuseMgtDsuseQyByPrdStatistics-info");
return mav.addObject("statisticsDtlList", toJson(addsNimsService.getDsuseMgtDsuseQyByPrdStatisticsDtls(query)));
}
@RequestMapping(value = "/getDsuseMgtDsuseQyByIndutyStatistics.do", name="취급자 업종별 폐기 현황 통계")
public ModelAndView getDsuseMgtDsuseQyByIndutyStatistics(DsuseMgtStatisticsQuery query) {
if(!"xls".equals(query.getDownload())) {
@ -387,6 +400,12 @@ public class AddsNimsController extends ApplicationController {
return excelDownloadDsuseMgtDsuseQyByIndutyStatistics(query);
}
@RequestMapping(value = "/getDsuseMgtDsuseQyByIndutyStatisticsDtls.do", name="취급자 업종별 상세 목록")
public ModelAndView getDsuseMgtDsuseQyByIndutyStatisticsDtls(DsuseMgtStatisticsQuery query) {
ModelAndView mav = new ModelAndView("adds/nims/dsuseMgtDsuseQyByIndutyStatistics-info");
return mav.addObject("statisticsDtlList", toJson(addsNimsService.getDsuseMgtDsuseQyByIndutyStatisticsDtls(query)));
}
@RequestMapping(value = "/getDsuseMgtDsuseQyByBsshStatistics.do", name="취급자별 폐기 현황 통계")
public ModelAndView getDsuseMgtDsuseQyByBsshStatistics(DsuseMgtStatisticsQuery query) {
if(!"xls".equals(query.getDownload())) {
@ -395,6 +414,12 @@ public class AddsNimsController extends ApplicationController {
}
return excelDownloadDsuseMgtDsuseQyByBsshStatistics(query);
}
@RequestMapping(value = "/getDsuseMgtDsuseQyByBsshStatisticsDtls.do", name="제품별 폐기 현황 상세 목록")
public ModelAndView getDsuseMgtDsuseQyByBsshStatisticsDtls(DsuseMgtStatisticsQuery query) {
ModelAndView mav = new ModelAndView("adds/nims/dsuseMgtDsuseQyByBsshStatistics-info");
return mav.addObject("statisticsDtlList", toJson(addsNimsService.getDsuseMgtDsuseQyByBsshStatisticsDtls(query)));
}
//-------------------------------------------------------------------------------------------------
// 폐기 관리 통계
//-------------------------------------------------------------------------------------------------

@ -100,6 +100,53 @@
ON T.dept_cd = td.dept_cd
</select>
<select id="selectDsuseMgtNcrdAndPrtmStatisticsDtls" parameterType="map" resultType="dataobject">
/* 마약/항정 and 중점/일반 상세 목록 */
SELECT ROW_NUMBER() over (ORDER BY tdm.dept_cd, tdm.dsuse_de DESC, tdm.dsuse_mth_cd) AS ROW_NUM
, tdm.dept_cd
, td.dept_nm
, tdm.dsuse_de
, tcc.code_val AS dsuse_mth_nm
, tbi.bssh_nm
, tdm.dscdmng_id
, tdmd.prduct_cd
, tpi.prduct_nm
, tpi.nrcd_se_nm
, tpi.prtm_se_nm
, tdmd.dsuse_qy
FROM tb_dsuse_mgt tdm
JOIN tb_dsuse_mgt_dtl tdmd
ON tdm.dscdmng_id = tdmd.dscdmng_id
JOIN tb_prduct_info tpi
ON tdmd.prduct_cd = tpi.prduct_cd
JOIN tb_dept td
ON tdm.dept_cd = td.dept_cd
JOIN tb_bssh_info tbi
ON tdm.bssh_cd = tbi.bssh_cd
LEFT JOIN tb_cmn_code tcc
ON (tcc.grp_id = 'ADDS05'
AND tdm.dsuse_mth_cd = tcc.code)
WHERE tdm.use_yn = 'Y'
<if test="deptCd != null and deptCd != ''">
AND tdm.dept_cd = #{deptCd} <!-- 관할 관청 -->
</if>
<if test="schDateFrom != null">
AND tdm.dsuse_de <![CDATA[>=]]> #{schDateFrom} <!-- 폐기 일자 시작 -->
</if>
<if test="schDateTo != null">
AND tdm.dsuse_de <![CDATA[<=]]> #{schDateTo} <!-- 폐기 일자 종료 -->
</if>
<if test="schSttsCd != null">
AND tdm.prgrs_stts_cd = #{schSttsCd} <!-- 진행 상태 -->
</if>
<if test="nrcdSeNm != null">
AND tpi.nrcd_se_nm = #{nrcdSeNm} <!-- 진행 상태 -->
</if>
<if test="prtmSeNm != null">
AND tpi.prtm_se_nm = #{prtmSeNm} <!-- 진행 상태 -->
</if>
</select>
<select id="selectDsuseMgtDsuseQyByPrdStatistics" parameterType="map" resultType="dataobject">
/* 제품별 폐기 현황 */
WITH tgt AS (
@ -174,6 +221,54 @@
ON T.dept_cd = td.dept_cd
</select>
<select id="selectDsuseMgtDsuseQyByPrdStatisticsDtls" parameterType="map" resultType="dataobject">
/* 제품별 폐기 현황 상세 목록 */
SELECT ROW_NUMBER() over (ORDER BY tdm.dept_cd, tdm.dsuse_de DESC, tdm.dsuse_mth_cd) AS ROW_NUM
, tdm.dept_cd
, td.dept_nm
, tdm.dsuse_de
, tcc.code_val AS prgrs_stts_nm
, tcc2.code_val AS dsuse_mth_nm
, tbi.bssh_nm
, tdm.dscdmng_id
, tdm.rnd_dtl_rpt_cnt
, tdmd.prduct_cd
, tpi.prduct_nm
, tdmd.dsuse_qy
FROM tb_dsuse_mgt tdm
JOIN tb_dsuse_mgt_dtl tdmd
ON tdm.dscdmng_id = tdmd.dscdmng_id
JOIN tb_prduct_info tpi
ON tdmd.prduct_cd = tpi.prduct_cd
JOIN tb_dept td
ON tdm.dept_cd = td.dept_cd
JOIN tb_bssh_info tbi
ON tdm.bssh_cd = tbi.bssh_cd
LEFT JOIN tb_cmn_code tcc
ON (tcc.grp_id = 'ADDS11'
AND tdm.prgrs_stts_cd = tcc.code)
LEFT JOIN tb_cmn_code tcc2
ON (tcc2.grp_id = 'ADDS05'
AND tdm.dsuse_mth_cd = tcc2.code)
WHERE tdm.use_yn = 'Y'
AND tpi.prduct_cd = #{prductCd}
<if test="deptCd != null and deptCd != ''">
AND tdm.dept_cd = #{deptCd} <!-- 관할 관청 -->
</if>
<if test="schDateFrom != null">
AND tdm.dsuse_de <![CDATA[>=]]> #{schDateFrom} <!-- 폐기 일자 시작 -->
</if>
<if test="schDateTo != null">
AND tdm.dsuse_de <![CDATA[<=]]> #{schDateTo} <!-- 폐기 일자 종료 -->
</if>
<if test="schSttsCd != null">
AND tdm.prgrs_stts_cd = #{schSttsCd} <!-- 진행 상태 -->
</if>
<if test="prgrsSttsCd != null">
AND tdm.prgrs_stts_cd = #{prgrsSttsCd} <!-- 진행 상태 -->
</if>
</select>
<select id="selectDsuseMgtDsuseQyByIndutyStatistics" parameterType="map" resultType="dataobject">
/* 마약류취급자 업종별 폐기 현황 */
WITH tgt AS (
@ -190,13 +285,13 @@
, IF(tbi.induty_nm = '마약류제조업', 1, 0) AS 마약류제조업
, IF(tbi.induty_nm = '마약류취급의료업', 1, 0) AS 마약류취급의료업
, IF(tbi.induty_nm = '마약류취급학술연구', 1, 0) AS 마약류취급학술연구
, IF(tbi.induty_nm = '마약류도매업', tdmd.dsuse_qy, 0) AS 마약류도매업Qy
, IF(tbi.induty_nm = '마약류소매업', tdmd.dsuse_qy, 0) AS 마약류소매업Qy
, IF(tbi.induty_nm = '마약류수출입업', tdmd.dsuse_qy, 0) AS 마약류수출입업Qy
, IF(tbi.induty_nm = '마약류원료사용', tdmd.dsuse_qy, 0) AS 마약류원료사용Qy
, IF(tbi.induty_nm = '마약류제조업', tdmd.dsuse_qy, 0) AS 마약류제조업Qy
, IF(tbi.induty_nm = '마약류취급의료업', tdmd.dsuse_qy, 0) AS 마약류취급의료업Qy
, IF(tbi.induty_nm = '마약류취급학술연구', tdmd.dsuse_qy, 0) AS 마약류취급학술연구Qy
, IF(tbi.induty_nm = '마약류도매업', tdmd.dsuse_qy, 0) AS 마약류도매업Qy
, IF(tbi.induty_nm = '마약류소매업', tdmd.dsuse_qy, 0) AS 마약류소매업Qy
, IF(tbi.induty_nm = '마약류수출입업', tdmd.dsuse_qy, 0) AS 마약류수출입업Qy
, IF(tbi.induty_nm = '마약류원료사용', tdmd.dsuse_qy, 0) AS 마약류원료사용Qy
, IF(tbi.induty_nm = '마약류제조업', tdmd.dsuse_qy, 0) AS 마약류제조업Qy
, IF(tbi.induty_nm = '마약류취급의료업', tdmd.dsuse_qy, 0) AS 마약류취급의료업Qy
, IF(tbi.induty_nm = '마약류취급학술연구', tdmd.dsuse_qy, 0) AS 마약류취급학술연구Qy
FROM tb_dsuse_mgt tdm
JOIN tb_dsuse_mgt_dtl tdmd
ON tdm.dscdmng_id = tdmd.dscdmng_id
@ -263,6 +358,50 @@
ON T.dept_cd = td.dept_cd
</select>
<select id="selectDsuseMgtDsuseQyByIndutyStatisticsDtls" parameterType="map" resultType="dataobject">
/* 취급 업종별 폐기 현황 상세 목록 */
SELECT ROW_NUMBER() over (ORDER BY tdm.dept_cd, tdm.dsuse_de DESC, tdm.dsuse_mth_cd) AS ROW_NUM
, tdm.dept_cd
, td.dept_nm
, tdm.dsuse_de
, tcc.code_val AS dsuse_mth_nm
, tbi.bssh_nm
, tbi.induty_nm
, tdm.dscdmng_id
, tdm.rnd_dtl_rpt_cnt
, tdmd.prduct_cd
, tpi.prduct_nm
, tdmd.dsuse_qy
FROM tb_dsuse_mgt tdm
JOIN tb_dsuse_mgt_dtl tdmd
ON tdm.dscdmng_id = tdmd.dscdmng_id
JOIN tb_prduct_info tpi
ON tdmd.prduct_cd = tpi.prduct_cd
JOIN tb_dept td
ON tdm.dept_cd = td.dept_cd
JOIN tb_bssh_info tbi
ON tdm.bssh_cd = tbi.bssh_cd
LEFT JOIN tb_cmn_code tcc
ON (tcc.grp_id = 'ADDS05'
AND tdm.dsuse_mth_cd = tcc.code)
WHERE tdm.use_yn = 'Y'
<if test="deptCd != null and deptCd != ''">
AND tdm.dept_cd = #{deptCd} <!-- 관할 관청 -->
</if>
<if test="schDateFrom != null">
AND tdm.dsuse_de <![CDATA[>=]]> #{schDateFrom} <!-- 폐기 일자 시작 -->
</if>
<if test="schDateTo != null">
AND tdm.dsuse_de <![CDATA[<=]]> #{schDateTo} <!-- 폐기 일자 종료 -->
</if>
<if test="schSttsCd != null">
AND tdm.prgrs_stts_cd = #{schSttsCd} <!-- 진행 상태 -->
</if>
<if test="indutyNm != null">
AND tbi.induty_nm = #{indutyNm} <!-- 진행 상태 -->
</if>
</select>
<select id="selectDsuseMgtDsuseQyByBsshStatistics" parameterType="map" resultType="dataobject">
/* 마약류취급자별 폐기 현황 */
WITH tgt AS (
@ -340,4 +479,53 @@
LEFT JOIN tb_dept td
ON T.dept_cd = td.dept_cd
</select>
<select id="selectDsuseMgtDsuseQyByBsshStatisticsDtls" parameterType="map" resultType="dataobject">
/* 마약류 취급자별 상세 목록 */
SELECT ROW_NUMBER() over (ORDER BY tdm.dept_cd, tdm.dsuse_de DESC, tdm.dsuse_mth_cd) AS ROW_NUM
, tdm.dept_cd
, td.dept_nm
, tdm.dsuse_de
, tcc.code_val AS dsuse_mth_nm
, tbi.bssh_nm
, tdm.dscdmng_id
, tdm.rnd_dtl_rpt_cnt
, tdmd.prduct_cd
, tpi.prduct_nm
, tpi.nrcd_se_nm
, tpi.prtm_se_nm
, tdmd.dsuse_qy
, tpi.nrcd_se_nm
FROM tb_dsuse_mgt tdm
JOIN tb_dsuse_mgt_dtl tdmd
ON tdm.dscdmng_id = tdmd.dscdmng_id
JOIN tb_prduct_info tpi
ON tdmd.prduct_cd = tpi.prduct_cd
JOIN tb_dept td
ON tdm.dept_cd = td.dept_cd
JOIN tb_bssh_info tbi
ON tdm.bssh_cd = tbi.bssh_cd
LEFT JOIN tb_cmn_code tcc
ON (tcc.grp_id = 'ADDS05'
AND tdm.dsuse_mth_cd = tcc.code)
WHERE tdm.use_yn = 'Y'
<if test="deptCd != null and deptCd != ''">
AND tdm.dept_cd = #{deptCd} <!-- 관할 관청 -->
</if>
<if test="schDateFrom != null">
AND tdm.dsuse_de <![CDATA[>=]]> #{schDateFrom} <!-- 폐기 일자 시작 -->
</if>
<if test="schDateTo != null">
AND tdm.dsuse_de <![CDATA[<=]]> #{schDateTo} <!-- 폐기 일자 종료 -->
</if>
<if test="schSttsCd != null">
AND tdm.prgrs_stts_cd = #{schSttsCd} <!-- 진행 상태 -->
</if>
<if test="nrcdSeNm != null">
AND tpi.nrcd_se_nm = #{nrcdSeNm} <!-- 진행 상태 -->
</if>
<if test="prtmSeNm != null">
AND tpi.prtm_se_nm = #{prtmSeNm} <!-- 진행 상태 -->
</if>
</select>
</mapper>

@ -0,0 +1,145 @@
<%@ 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">취급별 폐기 현황 상세</c:set>
<div class="card-datatable text-nowrap">
<div class="dataTables_wrapper dt-bootstrap5 no-footer" id="DataTables_Table_0_wrapper--${pageName}">
<div class="table-responsive ox-scroll oy-scroll h-px-500" id="table-responsive--${pageName}">
<table class="table-layout-fixed dataTable datatables-ajax table table-bordered no-footer" id="DataTables_Table_0--${pageName}" aria-describedby="DataTables_Table_0_info">
<thead class="sticky-thead">
<tr>
<th class="cmn" style="width: 72px;">No.</th>
<th class="cmn" style="width: 130.141px;">폐기관리번호</th>
<th class="cmn" style="width: 120.469px;">폐기일자</th>
<th class="cmn" style="width: 120px;">폐기방법</th>
<th class="cmn" style="width: 200.469px;">업체명</th>
<th class="cmn" style="width: 150.469px;">제품코드</th>
<th class="cmn" style="width: 300px;">제품명</th>
<%-- <th class="cmn" style="width: 90px;">폐기건수</th>--%>
<th class="cmn" style="width: 90px;">폐기수량</th>
<th class="cmn" style="width: 130px;">업종명</th>
</tr>
</thead>
<tbody id="tbody--${pageName}">
</tbody>
<template id="${infoPrefix}Row--${pageName}">
<tr data-key="{ROW_NUM}">
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{ROW_NUM}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{dscdmng_id}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{dsuse_de}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{dsuse_mth_nm}</td>
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{bssh_nm}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{prduct_cd}</td>
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{prduct_nm}</td>
<%-- <td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{rnd_dtl_rpt_cnt}</td>--%>
<td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{dsuse_qy}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{induty_nm}</td>
</tr>
</template>
<template id="${infoPrefix}NotFound--${pageName}">
<tr class="odd">
<td valign="top" colspan="13" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td>
</tr>
</template>
</table>
</div>
</div>
</div>
<div class="d-flex flex-row p-3 justify-content-between">
<label id="${infoPrefix}Paging--${pageName}PagingInfo" class="dataTables_info" role="status" aria-live="polite"></label>
<ul id="${infoPrefix}Paging--${pageName}" class="pagination pagination-primary" style="display: none;">
</ul>
</div>
<script>
/**************************************************************************
* Global Variable
**************************************************************************/
pageObject["${pageName}"] = {};
/**************************************************************************
* script 진입
**************************************************************************/
$(document).ready(function() {
// pageObject
let $P = pageObject["${pageName}"];
/**************************************************************************
* DatasetControl
**************************************************************************/
$P.control = new DatasetControl({
prefix: "dsuseQyByBsshStatistics"
, prefixName: "취급자별 폐기 현황 상세"
, keymapper: info => info ? info.ROW_NUM : ""
, dataGetter : obj => obj
, appendData: true
, infoSize: "xl"
, formats: {
dsuse_de: dateFormat
, dsuse_qy: numberFormat
}
});
// $P.control 설정
$P.control.defaultFetchSize = FETCH_XXS; // 1 페이지당 조회되는 자료 건수 index.jsp에서 확인 FETCH_XS = 30
$P.control.beforeCurrent = null;
/**************************************************************************
* DatasetControl 이벤트
**************************************************************************/
// Dataset 변경 이벤트
$P.control.onDatasetChange = (obj) => {
$P.renderList(obj.${infoPrefix}Total);
$("#${infoPrefix}Paging--${pageName}").setPagingInfo({
list: $P.control.dataset
, prefix: "${infoPrefix}Paging--${pageName}"
, start: obj.${infoPrefix}Start
, totalSize: $P.control.dataset.length
, fetchSize: obj.${infoPrefix}Fetch
, func: "pageObject['${pageName}'].control.load({index})"
});
};
// 현재 선택 자료 변경 이벤트
$P.control.onCurrentChange = item => {
if (!item) return;
let key = item.data.ROW_NUM;
$("#tbody--${pageName}").setCurrentRow(key);
}
$P.renderList = (totalSize) => {
let ${infoPrefix}List = $P.control.dataset;
let empty = ${infoPrefix}List.empty;
// 업무별 DataTables(그리드) tr, td
let foundContent = document.getElementById("${infoPrefix}Row--${pageName}").content;
let foundTr = $(foundContent).find("tr")[0].cloneNode(false);
let foundTds = $(foundContent).find("td");
foundTds.each(function() {
foundTr.appendChild(this.cloneNode(true));
});
//
let replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].control.setCurrent('" + dataItem.getValue("ROW_NUM") + "');")
let trs = empty ? [document.getElementById("${infoPrefix}NotFound--${pageName}").content.outerHTML]
: ${infoPrefix}List.inStrings(foundTr.outerHTML, replacer);
let noMore = (${infoPrefix}List.length >= totalSize);
let initScroll = ($P.control.query.pageNum < 2);
$("#tbody--${pageName}").html(trs.join());
}
$P.control.setData(${statisticsDtlList});
});
</script>

@ -89,8 +89,8 @@
<th class="cmn align-content-center p-1" style="width: 280px;" rowspan="2">취급업체명</th>
<th class="cmn align-content-center p-1" style="width: 120px;" rowspan="2">대표자</th>
<th class="cmn fw-bold" colspan="4">처리상태 별 (폐기건수 / 폐기수량)</th>
<th class="cmn align-content-center p-1 text-blue" style="width: 100px;" rowspan="2">폐기건수</th>
<th class="cmn align-content-center p-1 text-blue" style="width: 100px;" rowspan="2">폐기수량</th>
<th class="cmn align-content-center p-1" style="width: 100px;" rowspan="2">폐기건수</th>
<th class="cmn align-content-center p-1" style="width: 100px;" rowspan="2">폐기수량</th>
</tr>
<tr id="theadTr--${pageName}"
data-by="by--${pageName}" data-by-output="byOutput--${pageName}" data-main-option="mainOption--${pageName}" data-sub-option="subOption--${pageName}">
@ -161,7 +161,7 @@
}
, prefix: "dsuseMgtDsuseQyByBsshStatistics"
, prefixName: "제품별 폐기 현황"
, keymapper: info => info ? info.dept_cd : ""
, keymapper: info => info ? info.bssh_cd : ""
, dataGetter: obj => obj.${infoPrefix}List
, appendData: true
, infoSize: "xl"
@ -177,7 +177,7 @@
**************************************************************************/
// Dataset 변경 이벤트
$P.control.onDatasetChange = (obj) => {
$P.renderList(obj.${infoPrefix}Total);
$P.renderList();
$("#${infoPrefix}Paging--${pageName}").setPagingInfo({
//list: $P.control.dataset
prefix: "${infoPrefix}Paging--${pageName}"
@ -195,16 +195,48 @@
return;
}
let key = item.data.dept_cd;
let key = item.data.bssh_cd;
$("#tbody--${pageName}").setCurrentRow(key);
};
$P.control.getInfo = (obj, bsshCd) => {
if(bsshCd === undefined || bsshCd === '') return;
const row = $P.control.dataset.getCurrent();
if(row.dept_nm === 'TOTAL') return;
let params = $P.formFields.get(); // 검색 조건
if(!$('#chkDsuseDe--${pageName}').is(":checked")){
params.schDateFrom = '';
params.schDateTo = '';
}
params.deptCd = row.dept_cd;
params.bsshCd = bsshCd;
params.prgrsSttsCd = obj.dataset.div;
if(row[obj.dataset.val] === 0 || row[obj.dataset.val] === undefined) return;
ajax.get({
url : wctx.url("/adds/nims/getDsuseMgtDsuseQyByBsshStatisticsDtls.do")
, data : params
, success : resp => {
dialog.open({
id : $P.control.prefixed("Dialog")
, title : '취급자별 폐기 현황 상세 목록'
, content : resp
, size : "xxl"
, onClose : () => {
$P.control.reload({all : true});
}
});
}
});
}
/**************************************************************************
* DataTables 이벤트
**************************************************************************/
// DataTables에 click, dbclick 이벤트
$P.renderList = (totalSize) => {
$P.renderList = () => {
let ${infoPrefix}List = $P.control.dataset;
let empty = ${infoPrefix}List.empty;
@ -218,10 +250,11 @@
});
let replacer = (str, dataItem) => {
str = str.replace(/{onclick}/gi, "pageObject['${pageName}'].control.setCurrent('" + dataItem.getValue("bssh_cd") + "');")
str = str.replace(/{onclick}/gi, "pageObject['${pageName}'].control.getInfo(this, '" + dataItem.getValue("bssh_cd") + "');");
if(dataItem.getValue("dept_cd") === "TOTAL"){
str = str.replace(/{fw-bold-if-total}/gi, "fw-bold");
str = str.replace(/{ROW_NUM}/gi, "")
str = str.replace(/text-blue/gi, "")
} else {
str = str.replace(/{fw-bold-if-total}/gi, "");
}
@ -233,6 +266,7 @@
$("#tbody--${pageName}").html(trs.join());
}
$P.control.getBsshInfo = (gdccId) => {
let dialogTitle = "마약류 취급업체 조회";
let params = {openPage : "frmSearch--${pageName}"};

@ -0,0 +1,145 @@
<%@ 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">취급 업종별 현황 상세</c:set>
<div class="card-datatable text-nowrap">
<div class="dataTables_wrapper dt-bootstrap5 no-footer" id="DataTables_Table_0_wrapper--${pageName}">
<div class="table-responsive ox-scroll oy-scroll h-px-500" id="table-responsive--${pageName}">
<table class="table-layout-fixed dataTable datatables-ajax table table-bordered no-footer" id="DataTables_Table_0--${pageName}" aria-describedby="DataTables_Table_0_info">
<thead class="sticky-thead">
<tr>
<th class="cmn" style="width: 72px;">No.</th>
<th class="cmn" style="width: 130.141px;">폐기관리번호</th>
<th class="cmn" style="width: 120.469px;">폐기일자</th>
<th class="cmn" style="width: 120px;">폐기방법</th>
<th class="cmn" style="width: 200.469px;">업체명</th>
<th class="cmn" style="width: 150.469px;">제품코드</th>
<th class="cmn" style="width: 300px;">제품명</th>
<%-- <th class="cmn" style="width: 90px;">폐기건수</th>--%>
<th class="cmn" style="width: 90px;">폐기수량</th>
<th class="cmn" style="width: 130px;">업종명</th>
</tr>
</thead>
<tbody id="tbody--${pageName}">
</tbody>
<template id="${infoPrefix}Row--${pageName}">
<tr data-key="{ROW_NUM}">
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{ROW_NUM}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{dscdmng_id}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{dsuse_de}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{dsuse_mth_nm}</td>
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{bssh_nm}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{prduct_cd}</td>
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{prduct_nm}</td>
<%-- <td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{rnd_dtl_rpt_cnt}</td>--%>
<td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{dsuse_qy}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{induty_nm}</td>
</tr>
</template>
<template id="${infoPrefix}NotFound--${pageName}">
<tr class="odd">
<td valign="top" colspan="13" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td>
</tr>
</template>
</table>
</div>
</div>
</div>
<div class="d-flex flex-row p-3 justify-content-between">
<label id="${infoPrefix}Paging--${pageName}PagingInfo" class="dataTables_info" role="status" aria-live="polite"></label>
<ul id="${infoPrefix}Paging--${pageName}" class="pagination pagination-primary" style="display: none;">
</ul>
</div>
<script>
/**************************************************************************
* Global Variable
**************************************************************************/
pageObject["${pageName}"] = {};
/**************************************************************************
* script 진입
**************************************************************************/
$(document).ready(function() {
// pageObject
let $P = pageObject["${pageName}"];
/**************************************************************************
* DatasetControl
**************************************************************************/
$P.control = new DatasetControl({
prefix: "dsuseQyByIndutyStatistics"
, prefixName: "취급 업종별 폐기 현황 상세"
, keymapper: info => info ? info.ROW_NUM : ""
, dataGetter : obj => obj
, appendData: true
, infoSize: "xl"
, formats: {
dsuse_de: dateFormat
, dsuse_qy: numberFormat
}
});
// $P.control 설정
$P.control.defaultFetchSize = FETCH_XXS; // 1 페이지당 조회되는 자료 건수 index.jsp에서 확인 FETCH_XS = 30
$P.control.beforeCurrent = null;
/**************************************************************************
* DatasetControl 이벤트
**************************************************************************/
// Dataset 변경 이벤트
$P.control.onDatasetChange = (obj) => {
$P.renderList(obj.${infoPrefix}Total);
$("#${infoPrefix}Paging--${pageName}").setPagingInfo({
list: $P.control.dataset
, prefix: "${infoPrefix}Paging--${pageName}"
, start: obj.${infoPrefix}Start
, totalSize: $P.control.dataset.length
, fetchSize: obj.${infoPrefix}Fetch
, func: "pageObject['${pageName}'].control.load({index})"
});
};
// 현재 선택 자료 변경 이벤트
$P.control.onCurrentChange = item => {
if (!item) return;
let key = item.data.ROW_NUM;
$("#tbody--${pageName}").setCurrentRow(key);
}
$P.renderList = (totalSize) => {
let ${infoPrefix}List = $P.control.dataset;
let empty = ${infoPrefix}List.empty;
// 업무별 DataTables(그리드) tr, td
let foundContent = document.getElementById("${infoPrefix}Row--${pageName}").content;
let foundTr = $(foundContent).find("tr")[0].cloneNode(false);
let foundTds = $(foundContent).find("td");
foundTds.each(function() {
foundTr.appendChild(this.cloneNode(true));
});
//
let replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].control.setCurrent('" + dataItem.getValue("ROW_NUM") + "');");
let trs = empty ? [document.getElementById("${infoPrefix}NotFound--${pageName}").content.outerHTML]
: ${infoPrefix}List.inStrings(foundTr.outerHTML, replacer);
let noMore = (${infoPrefix}List.length >= totalSize);
let initScroll = ($P.control.query.pageNum < 2);
$("#tbody--${pageName}").html(trs.join());
}
$P.control.setData(${statisticsDtlList});
});
</script>

@ -30,7 +30,7 @@
<input type="text" class="form-control form-date" id="schDateTo--${pageName}" name="schDateTo" data-fmt-type="day" autocomplete="off" title="종료 날짜 선택" />
<button type="button" class="bx bx-lg bx-calendar bg-white"></button>
</span>
<input type="checkbox" id="chkDsuseDe--${pageName}" name="chkDsuseDe" title="폐기일자 적용" style="align-items: baseline"/>&nbsp;<strong>폐기일자 적용</strong>
<input type="checkbox" id="chkDsuseDe--${pageName}" name="chkDsuseDe" title="폐기일자 적용" style="align-items: baseline" />&nbsp;<strong>폐기일자 적용</strong>
</div>
<!-- 업체명 -->
@ -85,8 +85,8 @@
<tr id="theadTr0--${pageName}">
<th class="cmn align-content-center p-1" style="width: 170px;" rowspan="2">관할관청</th>
<th class="cmn fw-bold" colspan="7">업종별 구분 (폐기건수 / 폐기수량)</th>
<th class="cmn align-content-center p-1 text-blue" style="width: 100px;" rowspan="2">폐기건수</th>
<th class="cmn align-content-center p-1 text-blue" style="width: 100px;" rowspan="2">폐기수량</th>
<th class="cmn align-content-center p-1" style="width: 100px;" rowspan="2">폐기건수</th>
<th class="cmn align-content-center p-1" style="width: 100px;" rowspan="2">폐기수량</th>
</tr>
<tr id="theadTr--${pageName}"
data-by="by--${pageName}" data-by-output="byOutput--${pageName}" data-main-option="mainOption--${pageName}" data-sub-option="subOption--${pageName}">
@ -104,15 +104,15 @@
<template id="${infoPrefix}Row--${pageName}">
<tr data-key="{dept_cd}" class="{fw-bold-if-total}">
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{dept_nm}</td>
<td class="text-end" onclick="{onclick}" ondblclick="{ondblclick}">{마약류취급의료업} / {마약류취급의료업Qy}</td>
<td class="text-end" onclick="{onclick}" ondblclick="{ondblclick}">{마약류소매업} / {마약류소매업Qy}</td>
<td class="text-end" onclick="{onclick}" ondblclick="{ondblclick}">{마약류도매업} / {마약류도매업Qy}</td>
<td class="text-end" onclick="{onclick}" ondblclick="{ondblclick}">{마약류제조업} / {마약류제조업Qy}</td>
<td class="text-end" onclick="{onclick}" ondblclick="{ondblclick}">{마약류수출입업} / {마약류수출입업Qy}</td>
<td class="text-end" onclick="{onclick}" ondblclick="{ondblclick}">{마약류원료사용} / {마약류원료사용Qy}</td>
<td class="text-end" onclick="{onclick}" ondblclick="{ondblclick}">{마약류취급학술연구} / {마약류취급학술연구Qy}</td>
<td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}">{dsuseCnt}</td>
<td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}">{dsuseQy}</td>
<td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}" data-div="indutyNm" data-val="마약류취급의료업">{마약류취급의료업} / {마약류취급의료업Qy}</td>
<td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}" data-div="indutyNm" data-val="마약류소매업">{마약류소매업} / {마약류소매업Qy}</td>
<td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}" data-div="indutyNm" data-val="마약류도매업">{마약류도매업} / {마약류도매업Qy}</td>
<td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}" data-div="indutyNm" data-val="마약류제조업">{마약류제조업} / {마약류제조업Qy}</td>
<td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}" data-div="indutyNm" data-val="마약류수출입업">{마약류수출입업} / {마약류수출입업Qy}</td>
<td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}" data-div="indutyNm" data-val="마약류원료사용">{마약류원료사용} / {마약류원료사용Qy}</td>
<td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}" data-div="indutyNm" data-val="마약류취급학술연구">{마약류취급학술연구} / {마약류취급학술연구Qy}</td>
<td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}" data-div="" data-val="dsuseCnt">{dsuseCnt}</td>
<td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}" data-div="" data-val="dsuseQy">{dsuseQy}</td>
</tr>
</template>
<template id="${infoPrefix}NotFound--${pageName}">
@ -175,7 +175,7 @@
**************************************************************************/
// Dataset 변경 이벤트
$P.control.onDatasetChange = (obj) => {
$P.renderList(obj.${infoPrefix}Total);
$P.renderList();
$("#${infoPrefix}Paging--${pageName}").setPagingInfo({
prefix: "${infoPrefix}Paging--${pageName}"
, start: obj.${infoPrefix}Start
@ -196,12 +196,44 @@
$("#tbody--${pageName}").setCurrentRow(key);
};
$P.control.getInfo = (obj, deptCd) => {
if(deptCd === undefined || deptCd === 'TOTAL') return;
let params = $P.formFields.get(); // 검색 조건
if(!$('#chkDsuseDe--${pageName}').is(":checked")){
params.schDateFrom = '';
params.schDateTo = '';
}
params.deptCd = deptCd;
const row = $P.control.dataset.getCurrent();
if(row[obj.dataset.val] === 0 || row[obj.dataset.val] === undefined) return;
if(obj.dataset.div === 'indutyNm') {
params.indutyNm = obj.dataset.val;
}
ajax.get({
url : wctx.url("/adds/nims/getDsuseMgtDsuseQyByIndutyStatisticsDtls.do")
, data : params
, success : resp => {
dialog.open({
id : $P.control.prefixed("Dialog")
, title : '취급자 업종별 현황 상세 목록'
, content : resp
, size : "xxl"
, onClose : () => {
$P.control.reload({all : true});
}
});
}
});
}
/**************************************************************************
* DataTables 이벤트
**************************************************************************/
// DataTables에 click, dbclick 이벤트
$P.renderList = (totalSize) => {
$P.renderList = () => {
let ${infoPrefix}List = $P.control.dataset;
let empty = ${infoPrefix}List.empty;
@ -215,9 +247,10 @@
});
let replacer = (str, dataItem) => {
str = str.replace(/{onclick}/gi, "pageObject['${pageName}'].control.setCurrent('" + dataItem.getValue("dept_cd") + "');")
if(dataItem.getValue("dept_cd") == "TOTAL"){
str = str.replace(/{onclick}/gi, "pageObject['${pageName}'].control.getInfo(this, '" + dataItem.getValue("dept_cd") + "');");
if(dataItem.getValue("dept_cd") === "TOTAL"){
str = str.replace(/{fw-bold-if-total}/gi, "fw-bold");
str = str.replace(/text-blue/gi, "")
} else {
str = str.replace(/{fw-bold-if-total}/gi, "");
}
@ -362,7 +395,7 @@
// input, select 초기화
let searchForm = $("#frmSearch--${pageName}");
searchForm.find("input[type='checkbox']").prop("checked", false);
searchForm.find("input[type='checkbox']").prop("checked", true);
searchForm.find("input[type='text']").val("");
searchForm.find("input[type='hidden']").val("");
searchForm.find("select").each(function() { $(this).find("option:eq(0)").prop("selected", true); });

@ -0,0 +1,146 @@
<%@ 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">제품별 폐기 현황 상세</c:set>
<div class="card-datatable text-nowrap">
<div class="dataTables_wrapper dt-bootstrap5 no-footer" id="DataTables_Table_0_wrapper--${pageName}">
<div class="table-responsive ox-scroll oy-scroll h-px-500" id="table-responsive--${pageName}">
<table class="table-layout-fixed dataTable datatables-ajax table table-bordered no-footer" id="DataTables_Table_0--${pageName}" aria-describedby="DataTables_Table_0_info">
<thead class="sticky-thead">
<tr>
<th class="cmn" style="width: 72px;">No.</th>
<th class="cmn" style="width: 130.141px;">폐기관리번호</th>
<th class="cmn" style="width: 120.469px;">폐기일자</th>
<th class="cmn" style="width: 120px;">폐기방법</th>
<th class="cmn" style="width: 200.469px;">업체명</th>
<th class="cmn" style="width: 150.469px;">제품코드</th>
<th class="cmn" style="width: 300px;">제품명</th>
<%-- <th class="cmn" style="width: 90px;">폐기건수</th>--%>
<th class="cmn" style="width: 90px;">폐기수량</th>
<th class="cmn" style="width: 130px;">진행상태</th>
</tr>
</thead>
<tbody id="tbody--${pageName}">
</tbody>
<template id="${infoPrefix}Row--${pageName}">
<tr data-key="{ROW_NUM}">
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{ROW_NUM}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{dscdmng_id}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{dsuse_de}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{dsuse_mth_nm}</td>
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{bssh_nm}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{prduct_cd}</td>
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{prduct_nm}</td>
<%-- <td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{rnd_dtl_rpt_cnt}</td>--%>
<td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{dsuse_qy}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{prgrs_stts_nm}</td>
</tr>
</template>
<template id="${infoPrefix}NotFound--${pageName}">
<tr class="odd">
<td valign="top" colspan="13" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td>
</tr>
</template>
</table>
</div>
</div>
</div>
<div class="d-flex flex-row p-3 justify-content-between">
<label id="${infoPrefix}Paging--${pageName}PagingInfo" class="dataTables_info" role="status" aria-live="polite"></label>
<ul id="${infoPrefix}Paging--${pageName}" class="pagination pagination-primary" style="display: none;">
</ul>
</div>
<script>
/**************************************************************************
* Global Variable
**************************************************************************/
pageObject["${pageName}"] = {};
/**************************************************************************
* script 진입
**************************************************************************/
$(document).ready(function() {
// pageObject
let $P = pageObject["${pageName}"];
/**************************************************************************
* DatasetControl
**************************************************************************/
$P.control = new DatasetControl({
prefix: "dsuseQyByIndutyStatistics"
, prefixName: "취급 업종별 폐기 현황 상세"
, keymapper: info => info ? info.ROW_NUM : ""
, dataGetter : obj => obj
, appendData: true
, infoSize: "xl"
, formats: {
dsuse_de: dateFormat
, dsuse_qy: numberFormat
}
});
// $P.control 설정
$P.control.defaultFetchSize = FETCH_XXS; // 1 페이지당 조회되는 자료 건수 index.jsp에서 확인 FETCH_XS = 30
$P.control.beforeCurrent = null;
/**************************************************************************
* DatasetControl 이벤트
**************************************************************************/
// Dataset 변경 이벤트
$P.control.onDatasetChange = (obj) => {
$P.renderList(obj.${infoPrefix}Total);
$("#${infoPrefix}Paging--${pageName}").setPagingInfo({
list: $P.control.dataset
, prefix: "${infoPrefix}Paging--${pageName}"
, start: obj.${infoPrefix}Start
, totalSize: $P.control.dataset.length
, fetchSize: obj.${infoPrefix}Fetch
, func: "pageObject['${pageName}'].control.load({index})"
});
};
// 현재 선택 자료 변경 이벤트
$P.control.onCurrentChange = item => {
if (!item) return;
let key = item.data.ROW_NUM;
$("#tbody--${pageName}").setCurrentRow(key);
}
$P.renderList = (totalSize) => {
let ${infoPrefix}List = $P.control.dataset;
let empty = ${infoPrefix}List.empty;
// 업무별 DataTables(그리드) tr, td
let foundContent = document.getElementById("${infoPrefix}Row--${pageName}").content;
let foundTr = $(foundContent).find("tr")[0].cloneNode(false);
let foundTds = $(foundContent).find("td");
foundTds.each(function() {
foundTr.appendChild(this.cloneNode(true));
});
//
let replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].control.setCurrent('" + dataItem.getValue("ROW_NUM") + "');")
let trs = empty ? [document.getElementById("${infoPrefix}NotFound--${pageName}").content.outerHTML]
: ${infoPrefix}List.inStrings(foundTr.outerHTML, replacer);
let noMore = (${infoPrefix}List.length >= totalSize);
let initScroll = ($P.control.query.pageNum < 2);
$("#tbody--${pageName}").html(trs.join());
}
$P.control.setData(${statisticsDtlList});
});
</script>

@ -88,8 +88,8 @@
<th class="cmn align-content-center p-1" style="width: 146px;" rowspan="2">제품코드</th>
<th class="cmn align-content-center p-1" style="width: 350px;" rowspan="2">제품명</th>
<th class="cmn fw-bold" colspan="4">처리상태 별 (폐기건수 / 폐기수량)</th>
<th class="cmn align-content-center p-1 text-blue" style="width: 100px;" rowspan="2">폐기건수</th>
<th class="cmn align-content-center p-1 text-blue" style="width: 100px;" rowspan="2">폐기수량</th>
<th class="cmn align-content-center p-1" style="width: 100px;" rowspan="2">폐기건수</th>
<th class="cmn align-content-center p-1" style="width: 100px;" rowspan="2">폐기수량</th>
</tr>
<tr id="theadTr--${pageName}"
data-by="by--${pageName}" data-by-output="byOutput--${pageName}" data-main-option="mainOption--${pageName}" data-sub-option="subOption--${pageName}">
@ -107,12 +107,12 @@
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{dept_nm}</td>
<td class="text-center" onclick="{onclick}" ondblclick="{ondblclick}">{prduct_cd}</td>
<td class="text-start" onclick="{onclick}" ondblclick="{ondblclick}">{prduct_nm}</td>
<td class="text-end" onclick="{onclick}" ondblclick="{ondblclick}">{receiptCnt} / {receiptQy}</td>
<td class="text-end" onclick="{onclick}" ondblclick="{ondblclick}">{rsltCnt} / {rsltQy}</td>
<td class="text-end" onclick="{onclick}" ondblclick="{ondblclick}">{mappingCnt} / {mappingQy}</td>
<td class="text-end" onclick="{onclick}" ondblclick="{ondblclick}">{cpltCnt} / {cpltQy}</td>
<td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}">{dsuseCnt}</td>
<td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}">{dsuseQy}</td>
<td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}" data-div="01" data-val="receiptCnt">{receiptCnt} / {receiptQy}</td>
<td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}" data-div="06" data-val="rsltCnt">{rsltCnt} / {rsltQy}</td>
<td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}" data-div="21" data-val="mappingCnt">{mappingCnt} / {mappingQy}</td>
<td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}" data-div="99" data-val="cpltCnt">{cpltCnt} / {cpltQy}</td>
<td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}" data-div="" data-val="dsuseCnt">{dsuseCnt}</td>
<td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}" data-div="" data-val="dsuseQy">{dsuseQy}</td>
</tr>
</template>
<template id="${infoPrefix}NotFound--${pageName}">
@ -200,6 +200,38 @@
$("#tbody--${pageName}").setCurrentRow(key);
};
$P.control.getInfo = (obj, prductCd) => {
if(prductCd === undefined || prductCd === '') return;
const row = $P.control.dataset.getCurrent();
if(row.dept_nm === 'TOTAL') return;
let params = $P.formFields.get(); // 검색 조건
if(!$('#chkDsuseDe--${pageName}').is(":checked")){
params.schDateFrom = '';
params.schDateTo = '';
}
params.deptCd = row.dept_cd;
params.prductCd = prductCd;
params.prgrsSttsCd = obj.dataset.div;
if(row[obj.dataset.val] === 0 || row[obj.dataset.val] === undefined) return;
ajax.get({
url : wctx.url("/adds/nims/getDsuseMgtDsuseQyByPrdStatisticsDtls.do")
, data : params
, success : resp => {
dialog.open({
id : $P.control.prefixed("Dialog")
, title : '제품별 폐기 현황 상세 목록'
, content : resp
, size : "xxl"
, onClose : () => {
$P.control.reload({all : true});
}
});
}
});
}
/**************************************************************************
* DataTables 이벤트
@ -219,10 +251,11 @@
});
let replacer = (str, dataItem) => {
str = str.replace(/{onclick}/gi, "pageObject['${pageName}'].control.setCurrent('" + dataItem.getValue("prduct_cd") + "');")
str = str.replace(/{onclick}/gi, "pageObject['${pageName}'].control.getInfo(this, '" + dataItem.getValue("prduct_cd") + "');");
if(dataItem.getValue("dept_cd") === "TOTAL"){
str = str.replace(/{fw-bold-if-total}/gi, "fw-bold");
str = str.replace(/{ROW_NUM}/gi, "")
str = str.replace(/text-blue/gi, "")
} else {
str = str.replace(/{fw-bold-if-total}/gi, "");
}

@ -0,0 +1,146 @@
<%@ 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">제품 구붑별 현황 상세</c:set>
<div class="card-datatable text-nowrap">
<div class="dataTables_wrapper dt-bootstrap5 no-footer" id="DataTables_Table_0_wrapper--${pageName}">
<div class="table-responsive ox-scroll oy-scroll h-px-500" id="table-responsive--${pageName}">
<table class="table-layout-fixed dataTable datatables-ajax table table-bordered no-footer" id="DataTables_Table_0--${pageName}" aria-describedby="DataTables_Table_0_info">
<thead class="sticky-thead">
<tr>
<th class="cmn" style="width: 72px;">No.</th>
<th class="cmn" style="width: 130.141px;">폐기관리번호</th>
<th class="cmn" style="width: 120.469px;">폐기일자</th>
<th class="cmn" style="width: 120px;">폐기방법</th>
<th class="cmn" style="width: 200.469px;">업체명</th>
<th class="cmn" style="width: 150.469px;">제품코드</th>
<th class="cmn" style="width: 300px;">제품명</th>
<%-- <th class="cmn" style="width: 90px;">폐기건수</th>--%>
<th class="cmn" style="width: 90px;">폐기수량</th>
<th class="cmn" style="width: 130px;">마약/향정구분</th>
<th class="cmn" style="width: 130px;">중점일반구분</th>
</tr>
</thead>
<tbody id="tbody--${pageName}">
</tbody>
<template id="${infoPrefix}Row--${pageName}">
<tr data-key="{ROW_NUM}">
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{ROW_NUM}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{dscdmng_id}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{dsuse_de}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{dsuse_mth_nm}</td>
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{bssh_nm}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{prduct_cd}</td>
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{prduct_nm}</td>
<%-- <td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{rnd_dtl_rpt_cnt}</td>--%>
<td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{dsuse_qy}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{nrcd_se_nm}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{prtm_se_nm}</td>
</tr>
</template>
<template id="${infoPrefix}NotFound--${pageName}">
<tr class="odd">
<td valign="top" colspan="13" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td>
</tr>
</template>
</table>
</div>
</div>
</div>
<div class="d-flex flex-row p-3 justify-content-between">
<label id="${infoPrefix}Paging--${pageName}PagingInfo" class="dataTables_info" role="status" aria-live="polite"></label>
<ul id="${infoPrefix}Paging--${pageName}" class="pagination pagination-primary" style="display: none;">
</ul>
</div>
<script>
/**************************************************************************
* Global Variable
**************************************************************************/
pageObject["${pageName}"] = {};
/**************************************************************************
* script 진입
**************************************************************************/
$(document).ready(function() {
// pageObject
let $P = pageObject["${pageName}"];
/**************************************************************************
* DatasetControl
**************************************************************************/
$P.control = new DatasetControl({
prefix: "ncrdAndPrtmStatistics"
, prefixName: "제품 구분별 현황 상세"
, keymapper: info => info ? info.ROW_NUM : ""
, dataGetter : obj => obj
, appendData: true
, infoSize: "xl"
, formats: {
dsuse_de: dateFormat
, dsuse_qy: numberFormat
}
});
// $P.control 설정
$P.control.defaultFetchSize = FETCH_XXS; // 1 페이지당 조회되는 자료 건수 index.jsp에서 확인 FETCH_XS = 30
$P.control.beforeCurrent = null;
/**************************************************************************
* DatasetControl 이벤트
**************************************************************************/
// Dataset 변경 이벤트
$P.control.onDatasetChange = (obj) => {
$P.renderList(obj.${infoPrefix}Total);
$("#${infoPrefix}Paging--${pageName}").setPagingInfo({
list: $P.control.dataset
, prefix: "${infoPrefix}Paging--${pageName}"
, start: obj.${infoPrefix}Start
, totalSize: $P.control.dataset.length
, fetchSize: obj.${infoPrefix}Fetch
, func: "pageObject['${pageName}'].control.load({index})"
});
};
// 현재 선택 자료 변경 이벤트
$P.control.onCurrentChange = item => {
if (!item) return;
let key = item.data.ROW_NUM;
$("#tbody--${pageName}").setCurrentRow(key);
}
$P.renderList = (totalSize) => {
let ${infoPrefix}List = $P.control.dataset;
let empty = ${infoPrefix}List.empty;
// 업무별 DataTables(그리드) tr, td
let foundContent = document.getElementById("${infoPrefix}Row--${pageName}").content;
let foundTr = $(foundContent).find("tr")[0].cloneNode(false);
let foundTds = $(foundContent).find("td");
foundTds.each(function() {
foundTr.appendChild(this.cloneNode(true));
});
//
let replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].control.setCurrent('" + dataItem.getValue("ROW_NUM") + "');")
let trs = empty ? [document.getElementById("${infoPrefix}NotFound--${pageName}").content.outerHTML]
: ${infoPrefix}List.inStrings(foundTr.outerHTML, replacer);
let noMore = (${infoPrefix}List.length >= totalSize);
let initScroll = ($P.control.query.pageNum < 2);
$("#tbody--${pageName}").html(trs.join());
}
$P.control.setData(${statisticsDtlList});
});
</script>

@ -23,7 +23,7 @@
<div class="col-4">
<label class="form-label fw-bold form-search-title text-end">폐기일자</label>
<span class="form-search-linebox" id="inputHdrDe">
<span class="form-search-linebox">
<input type="text" class="form-control form-date" id="schDateFrom--${pageName}" name="schDateFrom" data-fmt-type="day" autocomplete="off" title="시작 날짜 선택" />
<button type="button" class="bx bx-lg bx-calendar bg-white"></button>
~
@ -89,8 +89,8 @@
<th class="cmn align-content-center p-1" style="width: 170px;" rowspan="2">관할관청</th>
<th class="cmn fw-bold" colspan="6">마약 / 향정 구분 (폐기건수 / 폐기수량)</th>
<th class="cmn fw-bold" colspan="3">중점 / 일반 구분 (폐기건수 / 폐기수량)</th>
<th class="cmn align-content-center p-1 text-blue" style="width: 100px;" rowspan="2">폐기건수</th>
<th class="cmn align-content-center p-1 text-blue" style="width: 100px;" rowspan="2">폐기수량</th>
<th class="cmn align-content-center p-1" style="width: 100px;" rowspan="2">폐기건수</th>
<th class="cmn align-content-center p-1" style="width: 100px;" rowspan="2">폐기수량</th>
</tr>
<tr id="theadTr--${pageName}"
data-by="by--${pageName}" data-by-output="byOutput--${pageName}" data-main-option="mainOption--${pageName}" data-sub-option="subOption--${pageName}">
@ -110,17 +110,17 @@
<template id="${infoPrefix}Row--${pageName}">
<tr data-key="{dept_cd}" class="{fw-bold-if-total}">
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{dept_nm}</td>
<td class="text-end" onclick="{onclick}" ondblclick="{ondblclick}">{대마} / {대마qy}</td>
<td class="text-end" onclick="{onclick}" ondblclick="{ondblclick}">{마약} / {마약qy}</td>
<td class="text-end" onclick="{onclick}" ondblclick="{ondblclick}">{한외마약} / {한외마약qy}</td>
<td class="text-end" onclick="{onclick}" ondblclick="{ondblclick}">{향정} / {향정qy}</td>
<td class="text-end" onclick="{onclick}" ondblclick="{ondblclick}">{향정제외} / {향정제외qy}</td>
<td class="text-end" onclick="{onclick}" ondblclick="{ondblclick}">{기타} / {기타qy}</td>
<td class="text-end" onclick="{onclick}" ondblclick="{ondblclick}">{비마약류} / {비마약류qy}</td>
<td class="text-end" onclick="{onclick}" ondblclick="{ondblclick}">{일반관리대상} / {일반관리대상qy}</td>
<td class="text-end" onclick="{onclick}" ondblclick="{ondblclick}">{중점관리대상} / {중점관리대상qy}</td>
<td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}">{dsuseCnt}</td>
<td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}">{dsuseQy}</td>
<td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}" data-div="NrcdSeNm" data-val="대마">{대마} / {대마qy}</td>
<td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}" data-div="NrcdSeNm" data-val="마약">{마약} / {마약qy}</td>
<td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}" data-div="NrcdSeNm" data-val="한외마약">{한외마약} / {한외마약qy}</td>
<td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}" data-div="NrcdSeNm" data-val="향정">{향정} / {향정qy}</td>
<td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}" data-div="NrcdSeNm" data-val="향정제외">{향정제외} / {향정제외qy}</td>
<td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}" data-div="NrcdSeNm" data-val="기타">{기타} / {기타qy}</td>
<td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}" data-div="prtmSeNm" data-val="비마약류">{비마약류} / {비마약류qy}</td>
<td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}" data-div="prtmSeNm" data-val="일반관리대상">{일반관리대상} / {일반관리대상qy}</td>
<td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}" data-div="prtmSeNm" data-val="중점관리대상">{중점관리대상} / {중점관리대상qy}</td>
<td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}" data-div="" data-val="dsuseCnt">{dsuseCnt}</td>
<td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}" data-div="" data-val="dsuseQy">{dsuseQy}</td>
</tr>
</template>
<template id="${infoPrefix}NotFound--${pageName}">
@ -152,6 +152,7 @@
* script 진입
**************************************************************************/
$(document).ready(function() {
// pageObject
let $P = pageObject["${pageName}"];
@ -208,31 +209,32 @@
$("#tbody--${pageName}").setCurrentRow(key);
};
$P.control.getInfo = (deptCd) => {
let dialogTitle = "NIMS 폐기 보고 확인 등록";
let row = $P.control.dataset.getCurrent();
if (typeof row == "undefined" || row == null || row == "") return;
$P.control.getInfo = (obj, deptCd) => {
if(deptCd === undefined || deptCd === 'TOTAL') return;
let params = $P.formFields.get(); // 검색 조건
if(!$('#chkDsuseDe--${pageName}').is(":checked")){
$P.control.query.schDateFrom = '';
$P.control.query.schDateTo = '';
params.schDateFrom = '';
params.schDateTo = '';
}
params.deptCd = deptCd;
params = {
...params,
deptCd: row.dept_cd,
nrcdSeNm: row.nrcdSeNm,
prtmSeNm: row.prtm_se_nm,
};
const row = $P.control.dataset.getCurrent();
if(row[obj.dataset.val] === 0 || row[obj.dataset.val] === undefined) return;
if(obj.dataset.div === "NrcdSeNm") {
params.nrcdSeNm = obj.dataset.val;
}else if(obj.dataset.div === "prtmSeNm"){
params.prtmSeNm = obj.dataset.val;
}
ajax.get({
url : wctx.url("/adds/nims/dsuseMgtMapping-info.do")
url : wctx.url("/adds/nims/getDsuseMgtNcrdAndPrtmStatisticsDtls.do")
, data : params
, success : resp => {
dialog.open({
id : $P.control.prefixed("Dialog")
, title : dialogTitle
, title : '제품 구분별 현황 상세 목록'
, content : resp
, size : "xxl"
, onClose : () => {
@ -261,9 +263,10 @@
});
let replacer = (str, dataItem) => {
str = str.replace(/{ondblclick}/gi, "pageObject['${pageName}'].control.getInfo('" + dataItem.getValue("dept_cd") + ");");
str = str.replace(/{onclick}/gi, "pageObject['${pageName}'].control.getInfo(this, '" + dataItem.getValue("dept_cd") + "');");
if(dataItem.getValue("dept_cd") === "TOTAL"){
str = str.replace(/{fw-bold-if-total}/gi, "fw-bold");
str = str.replace(/text-blue/gi, "")
} else {
str = str.replace(/{fw-bold-if-total}/gi, "");
}
@ -296,17 +299,6 @@
});
}
/**************************************************************************
* 사용자 함수(function)
**************************************************************************/
// 사용자검색 callback
$P.callbackFindUser = (userId, userNm) => {
$("#schRgtrCd--${pageName}").val(userId); // 사용자 ID
$("#schRgtrNm--${pageName}").val(userNm); // 사용자 명
}
// 업체 검색 버튼 이벤트
$P.fnSearchBssh = () => {
$P.control.getBsshInfo();
@ -410,7 +402,7 @@
// input, select 초기화
let searchForm = $("#frmSearch--${pageName}");
searchForm.find("input[type='checkbox']").prop("checked", false);
searchForm.find("input[type='checkbox']").prop("checked", true);
searchForm.find("input[type='text']").val("");
searchForm.find("input[type='hidden']").val("");
searchForm.find("select").each(function() { $(this).find("option:eq(0)").prop("selected", true); });

Loading…
Cancel
Save