소스 정리.

main
jjh 6 months ago
parent ec86c5406d
commit f7dbbbc66d

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

@ -23,18 +23,24 @@ import cokr.xit.foundation.data.DataObject;
@Mapper("crdnReRegMapper")
public interface CrdnReRegMapper extends AbstractMapper {
/** .<br />
/** .
* @param req
* @return
*/
List<DataObject> selectCrdnReRegList(LevyExclQuery req);
/** .
/** .
* @param req
* @return
*/
List<DataObject> selectCrdnReRegs(LevyExclQuery req);
/** ID .
* @param crdnId ID
* @return
*/
DataObject selectCrdnInfo(String crdnId);
/** .
* @param params
* <ul><li>"crdnReReg" - </li>
@ -55,7 +61,7 @@ public interface CrdnReRegMapper extends AbstractMapper {
return crdnReReg != null && insertCrdnReReg(params().set("crdnReReg", crdnReReg)) == 1;
}
/** .
/** .
* @param params
* <ul><li>"crdnReReg" - </li>
* <li>"currentUser" - </li>
@ -75,10 +81,4 @@ public interface CrdnReRegMapper extends AbstractMapper {
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")
public interface LevyExclMapper extends AbstractMapper {
/** .<br />
/** .
* @param req
* @return
*/
List<DataObject> selectLevyExclList(LevyExclQuery req);
/** .
* @param req
* @return
/** .
* @param req
* @return
*/
List<DataObject> selectLevyExcls(LevyExclQuery req);
/** 1 .
* @param levyExclId ID
* @return
/** .
* @param req
* @return
*/
default DataObject selectLevyExclInfo(LevyExclQuery req) {
// 삭제 여부 확인
@ -96,7 +96,7 @@ public interface LevyExclMapper extends AbstractMapper {
return levyExcl != null && updateLevyExcl(params().set("levyExcl", levyExcl)) == 1;
}
/** .
/** .
* @param params
* <ul><li>"levyExcl" - </li>
* <li>"currentUser" - </li>
@ -117,7 +117,7 @@ public interface LevyExclMapper extends AbstractMapper {
}
/**(TB_CRDN) .
* @param excl
* @param crdn
* @return
*/
int updateParkngPsbltyRsltCd(Map<String, Object> params);
@ -140,7 +140,7 @@ public interface LevyExclMapper extends AbstractMapper {
}
/** (TB_SNDNG_DTL) .
* @param excl
* @param sndngDtl
* @return
*/
int updateRcvmtCd(Map<String, Object> params);

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

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

@ -89,7 +89,7 @@ public class OpnnSbmsnBean extends AbstractComponent {
return opnnSbmsnMapper.selectOpnnSbmsns(req);
}
/** ID .
/** .
* @param req
* @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.StyleMaker;
import cokr.xit.fims.excl.LevyExclQuery;
import cokr.xit.fims.excl.OpnnDlbrMbr;
import cokr.xit.fims.excl.OpnnSbmsn;
import cokr.xit.fims.excl.service.OpnnDlbrMbrService;
import cokr.xit.fims.excl.service.OpnnSbmsnService;
import cokr.xit.fims.mngt.service.bean.FactionBean;
import cokr.xit.fims.task.Task;
@ -65,6 +67,9 @@ public class Excl02Controller extends ApplicationController {
, updateOpinionSubmission = "/020/update.do" // 의견제출 대장 수정
, getOpinionSubmissionAnswerInfo = "/030/info.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")
protected OpnnSbmsnService opnnSbmsnService;
/**의견제출 심의 회원 서비스*/
@Resource(name = "opnnDlbrMbrService")
private OpnnDlbrMbrService opnnDlbrMbrService;
/** 파일 정보 서비스 서비스 */
@Resource(name="fileService")
private FileService fileService;
@ -108,7 +117,7 @@ public class Excl02Controller extends ApplicationController {
;
}
/** .<br />
/** .
* {@link OpnnSbmsnService#getOpnnSbmsnList(Excl02Query)}
* @param req
* @return jsonView
@ -193,8 +202,8 @@ public class Excl02Controller extends ApplicationController {
}
}
/** ID .
* @param opnnId ID
/** .
* @param req
* @return fims/excl/excl02020-info jsonView
* <pre>{
* "opnnSbmsnInfo":
@ -265,7 +274,7 @@ public class Excl02Controller extends ApplicationController {
.addObject("rtnMsg", rtnMsg);
}
/** .
/** .
* @param opnnSbmsn , uploadFiles
* @return jsonView
* <pre><code> {
@ -297,15 +306,15 @@ public class Excl02Controller extends ApplicationController {
.addObject("rtnMsg", rtnMsg);
}
/** ID .
* @param opnnId Id
/** .
* @param req
* @return fims/excl/excl02030-info jsonView
* <pre>{
* "opnnSbmsnSttsInfo":
* "opnnSbmsnInfo":
* }</pre>
*/
@Task
@RequestMapping(name="의견제출 대장 심의정보 조회", value=METHOD_URL.getOpinionSubmissionAnswerInfo)
@RequestMapping(name="의견제출 대장 심의 정보 조회", value=METHOD_URL.getOpinionSubmissionAnswerInfo)
public ModelAndView getOpinionSubmissionAnswerInfo(LevyExclQuery req) {
DataObject info = opnnSbmsnService.getOpnnSbmsnInfo(req);
@ -330,7 +339,7 @@ public class Excl02Controller extends ApplicationController {
;
}
/** () .
/** .
* @param opnnSbmsn
* @return jsonView
* <pre><code> {
@ -354,8 +363,8 @@ public class Excl02Controller extends ApplicationController {
.addObject("rtnMsg", rtnMsg);
}
/** .
* @param opnnSbmsnIDs IDs
/** .
* @param req
* @return jsonView
* <pre><code> {
* "affected":
@ -383,8 +392,8 @@ public class Excl02Controller extends ApplicationController {
return mav;
}
/** ID .
* @param opnnSbmsnId Id
/** .
* @param opnnSbmsn
* @return jsonView
* <pre><code> {
* "affected":
@ -422,4 +431,77 @@ public class Excl02Controller extends ApplicationController {
.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>
<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>
@ -409,6 +412,8 @@
checkbox.prop("checked", keys.includes(checkbox.val()));
});
// 심의의결서 출력 버튼
$("#btnPrintDlbrDecsn--${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
$P.callbackRsn = (obj) => {
// 서버에 전송할 data(파라미터) 생성
@ -765,6 +808,10 @@
$("#btnUpdateOpnnDlbr--${pageName}").on("click", function() {
$P.fnUpdateOpnnDlbr($(this).attr("title"));
});
// 심의의결서 출력 버튼 이벤트
$("#btnPrintDlbrDecsn--${pageName}").on("click", function() {
$P.fnPrintDlbrDecsn($(this).attr("title"));
});
// 의견제출 삭제 버튼 이벤트
$("#btnRemove--${pageName}").on("click", function() {
$P.fnRemove($(this).attr("title"));

Loading…
Cancel
Save