소스 정리.

main
jjh 6 months ago
parent ec86c5406d
commit f7dbbbc66d

@ -185,5 +185,4 @@ public class OpnnSbmsn extends AbstractEntity {
*/ */
private Integer rductAmt; private Integer rductAmt;
} }

@ -23,18 +23,24 @@ import cokr.xit.foundation.data.DataObject;
@Mapper("crdnReRegMapper") @Mapper("crdnReRegMapper")
public interface CrdnReRegMapper extends AbstractMapper { public interface CrdnReRegMapper extends AbstractMapper {
/** .<br /> /** .
* @param req * @param req
* @return * @return
*/ */
List<DataObject> selectCrdnReRegList(LevyExclQuery req); List<DataObject> selectCrdnReRegList(LevyExclQuery req);
/** . /** .
* @param req * @param req
* @return * @return
*/ */
List<DataObject> selectCrdnReRegs(LevyExclQuery req); List<DataObject> selectCrdnReRegs(LevyExclQuery req);
/** ID .
* @param crdnId ID
* @return
*/
DataObject selectCrdnInfo(String crdnId);
/** . /** .
* @param params * @param params
* <ul><li>"crdnReReg" - </li> * <ul><li>"crdnReReg" - </li>
@ -55,7 +61,7 @@ public interface CrdnReRegMapper extends AbstractMapper {
return crdnReReg != null && insertCrdnReReg(params().set("crdnReReg", crdnReReg)) == 1; return crdnReReg != null && insertCrdnReReg(params().set("crdnReReg", crdnReReg)) == 1;
} }
/** . /** .
* @param params * @param params
* <ul><li>"crdnReReg" - </li> * <ul><li>"crdnReReg" - </li>
* <li>"currentUser" - </li> * <li>"currentUser" - </li>
@ -75,10 +81,4 @@ public interface CrdnReRegMapper extends AbstractMapper {
return crdnReReg != null && deleteCrdnReReg(params().set("crdnReReg", crdnReReg)) == 1; return crdnReReg != null && deleteCrdnReReg(params().set("crdnReReg", crdnReReg)) == 1;
} }
/** ID .
* @param crdnId ID
* @return
*/
DataObject selectCrdnInfo(String crdnId);
} }

@ -25,21 +25,21 @@ import cokr.xit.foundation.data.DataObject;
@Mapper("levyExclMapper") @Mapper("levyExclMapper")
public interface LevyExclMapper extends AbstractMapper { public interface LevyExclMapper extends AbstractMapper {
/** .<br /> /** .
* @param req * @param req
* @return * @return
*/ */
List<DataObject> selectLevyExclList(LevyExclQuery req); List<DataObject> selectLevyExclList(LevyExclQuery req);
/** . /** .
* @param req * @param req
* @return * @return
*/ */
List<DataObject> selectLevyExcls(LevyExclQuery req); List<DataObject> selectLevyExcls(LevyExclQuery req);
/** 1 . /** .
* @param levyExclId ID * @param req
* @return * @return
*/ */
default DataObject selectLevyExclInfo(LevyExclQuery req) { default DataObject selectLevyExclInfo(LevyExclQuery req) {
// 삭제 여부 확인 // 삭제 여부 확인
@ -96,7 +96,7 @@ public interface LevyExclMapper extends AbstractMapper {
return levyExcl != null && updateLevyExcl(params().set("levyExcl", levyExcl)) == 1; return levyExcl != null && updateLevyExcl(params().set("levyExcl", levyExcl)) == 1;
} }
/** . /** .
* @param params * @param params
* <ul><li>"levyExcl" - </li> * <ul><li>"levyExcl" - </li>
* <li>"currentUser" - </li> * <li>"currentUser" - </li>
@ -117,7 +117,7 @@ public interface LevyExclMapper extends AbstractMapper {
} }
/**(TB_CRDN) . /**(TB_CRDN) .
* @param excl * @param crdn
* @return * @return
*/ */
int updateParkngPsbltyRsltCd(Map<String, Object> params); int updateParkngPsbltyRsltCd(Map<String, Object> params);
@ -140,7 +140,7 @@ public interface LevyExclMapper extends AbstractMapper {
} }
/** (TB_SNDNG_DTL) . /** (TB_SNDNG_DTL) .
* @param excl * @param sndngDtl
* @return * @return
*/ */
int updateRcvmtCd(Map<String, Object> params); int updateRcvmtCd(Map<String, Object> params);

@ -24,20 +24,20 @@ import cokr.xit.foundation.data.DataObject;
@Mapper("opnnSbmsnMapper") @Mapper("opnnSbmsnMapper")
public interface OpnnSbmsnMapper extends AbstractMapper { public interface OpnnSbmsnMapper extends AbstractMapper {
/** .<br /> /** .
* @param req * @param req
* @return * @return
*/ */
List<DataObject> selectOpnnSbmsnList(LevyExclQuery req); List<DataObject> selectOpnnSbmsnList(LevyExclQuery req);
/** . /** .
* @param req * @param req
* @return * @return
*/ */
List<DataObject> selectOpnnSbmsns(LevyExclQuery req); List<DataObject> selectOpnnSbmsns(LevyExclQuery req);
/** 1 . /** .
* @param opnnId ID * @param req
* @return * @return
*/ */
default DataObject selectOpnnSbmsnInfo(LevyExclQuery req) { default DataObject selectOpnnSbmsnInfo(LevyExclQuery req) {
@ -55,7 +55,7 @@ public interface OpnnSbmsnMapper extends AbstractMapper {
return !opnnSbmsns.isEmpty() ? opnnSbmsns.get(0) : null; return !opnnSbmsns.isEmpty() ? opnnSbmsns.get(0) : null;
} }
/** . /** .
* @param opnnId ID * @param opnnId ID
* @return * @return
*/ */
@ -101,7 +101,7 @@ public interface OpnnSbmsnMapper extends AbstractMapper {
return opnnSbmsn != null && updateOpnnSbmsn(params().set("opnnSbmsn", opnnSbmsn)) == 1; return opnnSbmsn != null && updateOpnnSbmsn(params().set("opnnSbmsn", opnnSbmsn)) == 1;
} }
/** () . /** .
* @param params * @param params
* <ul><li>"opnnSbmsn" - </li> * <ul><li>"opnnSbmsn" - </li>
* <li>"currentUser" - </li> * <li>"currentUser" - </li>
@ -110,7 +110,7 @@ public interface OpnnSbmsnMapper extends AbstractMapper {
*/ */
int updateOpnnSbmsnAnswer(Map<String, Object> params); int updateOpnnSbmsnAnswer(Map<String, Object> params);
/** () . /** .
* @param opnnSbmsn * @param opnnSbmsn
* @return * @return
* <ul><li> true</li> * <ul><li> true</li>

@ -31,7 +31,7 @@ public interface OpnnSbmsnService {
*/ */
List<DataObject> getOpnnSbmsns(LevyExclQuery req); List<DataObject> getOpnnSbmsns(LevyExclQuery req);
/** ID . /** .
* @param req * @param req
* @return * @return
*/ */
@ -61,7 +61,7 @@ public interface OpnnSbmsnService {
*/ */
String updateOpnnSbmsn(OpnnSbmsn opnnSbmsn, List<FileInfo> fileInfoList); String updateOpnnSbmsn(OpnnSbmsn opnnSbmsn, List<FileInfo> fileInfoList);
/** () . /** .
* @param opnnSbmsn * @param opnnSbmsn
* @return * @return
* <ul><li> true</li> * <ul><li> true</li>

@ -89,7 +89,7 @@ public class OpnnSbmsnBean extends AbstractComponent {
return opnnSbmsnMapper.selectOpnnSbmsns(req); return opnnSbmsnMapper.selectOpnnSbmsns(req);
} }
/** ID . /** .
* @param req * @param req
* @return * @return
*/ */

@ -31,7 +31,9 @@ import cokr.xit.fims.cmmn.service.bean.StngBean;
import cokr.xit.fims.cmmn.xls.FormatMaker; import cokr.xit.fims.cmmn.xls.FormatMaker;
import cokr.xit.fims.cmmn.xls.StyleMaker; import cokr.xit.fims.cmmn.xls.StyleMaker;
import cokr.xit.fims.excl.LevyExclQuery; import cokr.xit.fims.excl.LevyExclQuery;
import cokr.xit.fims.excl.OpnnDlbrMbr;
import cokr.xit.fims.excl.OpnnSbmsn; import cokr.xit.fims.excl.OpnnSbmsn;
import cokr.xit.fims.excl.service.OpnnDlbrMbrService;
import cokr.xit.fims.excl.service.OpnnSbmsnService; import cokr.xit.fims.excl.service.OpnnSbmsnService;
import cokr.xit.fims.mngt.service.bean.FactionBean; import cokr.xit.fims.mngt.service.bean.FactionBean;
import cokr.xit.fims.task.Task; import cokr.xit.fims.task.Task;
@ -65,6 +67,9 @@ public class Excl02Controller extends ApplicationController {
, updateOpinionSubmission = "/020/update.do" // 의견제출 대장 수정 , updateOpinionSubmission = "/020/update.do" // 의견제출 대장 수정
, getOpinionSubmissionAnswerInfo = "/030/info.do" // 의견제출 대장 심의 조회 , getOpinionSubmissionAnswerInfo = "/030/info.do" // 의견제출 대장 심의 조회
, updateOpinionSubmissionAnswer = "/030/update.do" // 의견제출 대장 심의 수정 , updateOpinionSubmissionAnswer = "/030/update.do" // 의견제출 대장 심의 수정
, getOpinionDeliberationMemberInfo = "/040/info.do" // 의견제출 심의 회원 조회
, createOpinionDeliberationMember = "/040/create.do" // 의견제출 심의 회원 등럭
, updateOpinionDeliberationMember = "/040/update.do" // 의견제출 심의 회원 수정
; ;
} }
@ -72,6 +77,10 @@ public class Excl02Controller extends ApplicationController {
@Resource(name="opnnSbmsnService") @Resource(name="opnnSbmsnService")
protected OpnnSbmsnService opnnSbmsnService; protected OpnnSbmsnService opnnSbmsnService;
/**의견제출 심의 회원 서비스*/
@Resource(name = "opnnDlbrMbrService")
private OpnnDlbrMbrService opnnDlbrMbrService;
/** 파일 정보 서비스 서비스 */ /** 파일 정보 서비스 서비스 */
@Resource(name="fileService") @Resource(name="fileService")
private FileService fileService; private FileService fileService;
@ -108,7 +117,7 @@ public class Excl02Controller extends ApplicationController {
; ;
} }
/** .<br /> /** .
* {@link OpnnSbmsnService#getOpnnSbmsnList(Excl02Query)} * {@link OpnnSbmsnService#getOpnnSbmsnList(Excl02Query)}
* @param req * @param req
* @return jsonView * @return jsonView
@ -193,8 +202,8 @@ public class Excl02Controller extends ApplicationController {
} }
} }
/** ID . /** .
* @param opnnId ID * @param req
* @return fims/excl/excl02020-info jsonView * @return fims/excl/excl02020-info jsonView
* <pre>{ * <pre>{
* "opnnSbmsnInfo": * "opnnSbmsnInfo":
@ -265,7 +274,7 @@ public class Excl02Controller extends ApplicationController {
.addObject("rtnMsg", rtnMsg); .addObject("rtnMsg", rtnMsg);
} }
/** . /** .
* @param opnnSbmsn , uploadFiles * @param opnnSbmsn , uploadFiles
* @return jsonView * @return jsonView
* <pre><code> { * <pre><code> {
@ -297,11 +306,11 @@ public class Excl02Controller extends ApplicationController {
.addObject("rtnMsg", rtnMsg); .addObject("rtnMsg", rtnMsg);
} }
/** ID . /** .
* @param opnnId Id * @param req
* @return fims/excl/excl02030-info jsonView * @return fims/excl/excl02030-info jsonView
* <pre>{ * <pre>{
* "opnnSbmsnSttsInfo": * "opnnSbmsnInfo":
* }</pre> * }</pre>
*/ */
@Task @Task
@ -330,7 +339,7 @@ public class Excl02Controller extends ApplicationController {
; ;
} }
/** () . /** .
* @param opnnSbmsn * @param opnnSbmsn
* @return jsonView * @return jsonView
* <pre><code> { * <pre><code> {
@ -354,8 +363,8 @@ public class Excl02Controller extends ApplicationController {
.addObject("rtnMsg", rtnMsg); .addObject("rtnMsg", rtnMsg);
} }
/** . /** .
* @param opnnSbmsnIDs IDs * @param req
* @return jsonView * @return jsonView
* <pre><code> { * <pre><code> {
* "affected": * "affected":
@ -383,8 +392,8 @@ public class Excl02Controller extends ApplicationController {
return mav; return mav;
} }
/** ID . /** .
* @param opnnSbmsnId Id * @param opnnSbmsn
* @return jsonView * @return jsonView
* <pre><code> { * <pre><code> {
* "affected": * "affected":
@ -422,4 +431,77 @@ public class Excl02Controller extends ApplicationController {
.addObject("rtnMsg", rtnMsg); .addObject("rtnMsg", rtnMsg);
} }
/** .
* @param req
* @return fims/excl/excl02040-info jsonView
* <pre>{
* "opnnDlbrMbrInfo":
* }</pre>
*/
@Task
@RequestMapping(name="의견제출 심의 회원 정보 조회", value=METHOD_URL.getOpinionDeliberationMemberInfo)
public ModelAndView getOpinionDeliberationMemberInfo(LevyExclQuery req) {
DataObject info = opnnDlbrMbrService.getOpnnDlbrMbrInfo(req);
boolean json = jsonResponse();
ModelAndView mav = new ModelAndView(json ? "jsonView" : "fims/excl/excl02030-info");
return mav
.addObject("pageName", "excl02040")
.addObject("infoPrefix", "opnnDlbrMbr") // prefix
.addObject("infoPrefixUrl", "/excl/excl02") // prefixUrl
.addObject("callPurpose", req.getCallPurpose()) // 호출 용도
.addObject("opnnDlbrMbrInfo", json ? info : toJson(info))
;
}
/** .
* @param opnnDlbrMbr
* @return jsonView
* <pre><code> {
* "saved": true, false
* }</code></pre>
*/
@Task
@RequestMapping(name="의견제출 심의 회원 등록", value=METHOD_URL.createOpinionDeliberationMember)
public ModelAndView create(OpnnDlbrMbr opnnDlbrMbr) {
boolean saved = false;
String rtnMsg = opnnDlbrMbrService.createOpnnDlbrMbr(opnnDlbrMbr);
if (rtnMsg.contains("[S]")) {
saved = true;
} else {
saved = false;
}
return new ModelAndView("jsonView")
.addObject("saved", saved)
.addObject("rtnMsg", rtnMsg);
}
/** .
* @param opnnDlbrMbr
* @return jsonView
* <pre><code> {
* "saved": true, false
* }</code></pre>
*/
@Task
@RequestMapping(name="의견제출 심의 회원 수정", value=METHOD_URL.updateOpinionDeliberationMember)
public ModelAndView update(OpnnDlbrMbr opnnDlbrMbr) {
boolean saved = false;
String rtnMsg = opnnDlbrMbrService.updateOpnnDlbrMbr(opnnDlbrMbr);
if (rtnMsg.contains("[S]")) {
saved = true;
} else {
saved = false;
}
return new ModelAndView("jsonView")
.addObject("saved", saved)
.addObject("rtnMsg", rtnMsg);
}
} }

@ -187,6 +187,9 @@
<button type="button" class="btn btn-primary w-px-120" id="btnUpdateOpnnDlbr--${pageName}" title="의견제출 심의"> <button type="button" class="btn btn-primary w-px-120" id="btnUpdateOpnnDlbr--${pageName}" title="의견제출 심의">
의견제출 심의 의견제출 심의
</button> </button>
<button type="button" class="btn btn-primary w-px-120" id="btnPrintDlbrDecsn--${pageName}" title="심의의결서 출력">
심의의결서 출력
</button>
<button type="button" class="btn btn-primary w-px-120" id="btnRemove--${pageName}" title="의견제출 삭제"> <button type="button" class="btn btn-primary w-px-120" id="btnRemove--${pageName}" title="의견제출 삭제">
의견제출 삭제 의견제출 삭제
</button> </button>
@ -409,6 +412,8 @@
checkbox.prop("checked", keys.includes(checkbox.val())); checkbox.prop("checked", keys.includes(checkbox.val()));
}); });
// 심의의결서 출력 버튼
$("#btnPrintDlbrDecsn--${pageName}").prop("disabled", keys.length < 1);
// 삭제 버튼 // 삭제 버튼
$("#btnRemove--${pageName}").prop("disabled", keys.length < 1); $("#btnRemove--${pageName}").prop("disabled", keys.length < 1);
@ -677,6 +682,44 @@
}); });
} }
// 심의의결서 출력
$P.makeHwpFileDlbrDecsn = (params) => {
if (!params) return;
let url = wctx.url("/" + params.taskSeCd + "/excl/excl02/010/makeHwp.do")
let parameter = toQuery({
opnnIds: params.opnnIds
, taskSeCd: params.taskSeCd
});
document.location.href = url + "?" + parameter;
}
// 심의의결서 출력 버튼 클릭 이벤트
$P.fnPrintDlbrDecsn = (title) => {
// 선택 자료
let selected = $P.control.dataset.getKeys("selected");
if (selected.length < 1) {
dialog.alert({
content: "선택하신 의견제출 정보가 없습니다."
, onOK: () => { }
});
return;
}
let params = {
callPurpose: "download"
, title: title
, sggCd: $P.control.dataset.getValue("SGG_CD") // 시군구 코드
, taskSeCd: $P.control.dataset.getValue("TASK_SE_CD") // 업무 구분 코드
, opnnIds: selected.join(",") // 의견제출 IDs
};
$P.makeHwpFileDlbrDecsn(params);
}
// 의견제출 삭제사유 callback // 의견제출 삭제사유 callback
$P.callbackRsn = (obj) => { $P.callbackRsn = (obj) => {
// 서버에 전송할 data(파라미터) 생성 // 서버에 전송할 data(파라미터) 생성
@ -765,6 +808,10 @@
$("#btnUpdateOpnnDlbr--${pageName}").on("click", function() { $("#btnUpdateOpnnDlbr--${pageName}").on("click", function() {
$P.fnUpdateOpnnDlbr($(this).attr("title")); $P.fnUpdateOpnnDlbr($(this).attr("title"));
}); });
// 심의의결서 출력 버튼 이벤트
$("#btnPrintDlbrDecsn--${pageName}").on("click", function() {
$P.fnPrintDlbrDecsn($(this).attr("title"));
});
// 의견제출 삭제 버튼 이벤트 // 의견제출 삭제 버튼 이벤트
$("#btnRemove--${pageName}").on("click", function() { $("#btnRemove--${pageName}").on("click", function() {
$P.fnRemove($(this).attr("title")); $P.fnRemove($(this).attr("title"));

Loading…
Cancel
Save