사용자 열람신청 반려 진행중
This commit is contained in:
parent
d33717fb11
commit
9a85e996f2
@ -29,6 +29,7 @@ import org.springframework.web.servlet.support.RequestContextUtils;
|
||||
import com.fasterxml.jackson.core.io.JsonStringEncoder;
|
||||
import com.inicis.std.util.SignatureUtil;
|
||||
|
||||
import egovframework.rte.fdl.idgnr.EgovIdGnrService;
|
||||
import egovframework.rte.fdl.security.userdetails.util.EgovUserDetailsHelper;
|
||||
import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo;
|
||||
import kcc.com.cmm.EgovMessageSource;
|
||||
@ -145,6 +146,8 @@ public class AdjstReqStatusController {
|
||||
@Value("#{globalSettings['Globals.pay.siteDomain']}")
|
||||
private String global_siteDomain;
|
||||
|
||||
@Resource(name="recordReadingHstryGnrService")
|
||||
private EgovIdGnrService recordReadingHstryGnrService;
|
||||
|
||||
|
||||
/**
|
||||
@ -550,10 +553,16 @@ public class AdjstReqStatusController {
|
||||
// 작성단계 셋팅
|
||||
adrRecordReadingVO.setFrstRegisterId(userId); // 최초수정자
|
||||
adrRecordReadingVO.setLastUpdusrId(userId); // 최초등록자
|
||||
adrRecordReadingVO.setPrcsnStatCd(KccadrConstants.ADR_RCD_RDNG_PRCSN_STAT_CD_10); //신청완료 상태
|
||||
adrRecordReadingVO.setPrcsnStatCd(KccadrConstants.ADR_RCD_RDNG_PRCSN_STAT_CD_10); //신청 상태
|
||||
|
||||
try {
|
||||
adrRecordReadingService.insertRecordReading(adrRecordReadingVO);
|
||||
|
||||
// history 영역
|
||||
adrRecordReadingVO.setFrstRegisterId(userId);
|
||||
adrRecordReadingVO.setRecordReadingHstrySeq(recordReadingHstryGnrService.getNextStringId());
|
||||
adrRecordReadingService.insertRecordReadingHist(adrRecordReadingVO);
|
||||
|
||||
modelAndView.addObject("result", "success");
|
||||
} catch(Exception e) {
|
||||
modelAndView.addObject("result", "fail");
|
||||
@ -618,6 +627,14 @@ public class AdjstReqStatusController {
|
||||
payVO.setPrcsnStatCd("90");
|
||||
payVO.setAsctnTablePk1(adrRecordReadingVO.getRecordReadingSeq());
|
||||
adrRecordReadingService.updatePrcsnStatCd(payVO);
|
||||
adrRecordReadingVO.setFrstRegisterId(userId);
|
||||
|
||||
|
||||
// history 영역
|
||||
adrRecordReadingVO.setRecordReadingHstrySeq(recordReadingHstryGnrService.getNextStringId());
|
||||
adrRecordReadingVO.setPrcsnStatCd("90");
|
||||
adrRecordReadingService.insertRecordReadingHist(adrRecordReadingVO);
|
||||
|
||||
|
||||
|
||||
modelAndView.addObject("result", "success");
|
||||
|
||||
@ -43,4 +43,8 @@ public interface AdrRecordReadingService {
|
||||
|
||||
AdrRecordReadingVO selectStatCdAndStatTxt(AdrRecordReadingVO adrRecordReadingVO);
|
||||
|
||||
void updateExpense(AdrRecordReadingVO adrRecordReadingVO);
|
||||
|
||||
void insertRecordReadingHist(AdrRecordReadingVO adrRecordReadingVO);
|
||||
|
||||
}
|
||||
|
||||
@ -196,5 +196,13 @@ public class AdrRecordReadingDAO extends EgovAbstractDAO {
|
||||
return (AdrRecordReadingVO) select("AdrRecordReadingDAO.selectStatCdAndStatTxt", adrRecordReadingVO);
|
||||
}
|
||||
|
||||
public void updateExpense(AdrRecordReadingVO adrRecordReadingVO) {
|
||||
update("AdrRecordReadingDAO.updateExpense", adrRecordReadingVO);
|
||||
}
|
||||
|
||||
public void insertRecordReadingHist(AdrRecordReadingVO adrRecordReadingVO) {
|
||||
insert("AdrRecordReadingHstryDAO.insert", adrRecordReadingVO);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -24,23 +24,8 @@ public class AdrRecordReadingServiceImpl implements AdrRecordReadingService {
|
||||
@Resource(name="recordReadingGnrService")
|
||||
private EgovIdGnrService idgenService;
|
||||
|
||||
//이력 상세
|
||||
//@Resource(name="adrRecordReadingDetailDAO")
|
||||
//private adrRecordReadingDetailDAO adrRecordReadingDetailDAO;
|
||||
|
||||
//이력 상세
|
||||
//@Resource(name="KccadrMgrUdtService")
|
||||
//private KccadrMgrUdtService kccadrMgrUdtService;
|
||||
|
||||
|
||||
/*
|
||||
String insert4Func(
|
||||
String p_adrSeq
|
||||
, String p_menuNm
|
||||
, String p_menuId
|
||||
, String p_frstRegisterId
|
||||
) throws Exception;
|
||||
*/
|
||||
@Resource(name="recordReadingHstryGnrService")
|
||||
private EgovIdGnrService recordReadingHstryGnrService;
|
||||
|
||||
//C
|
||||
public String insert4Func(
|
||||
@ -119,4 +104,14 @@ public class AdrRecordReadingServiceImpl implements AdrRecordReadingService {
|
||||
return adrRecordReadingDAO.selectStatCdAndStatTxt(adrRecordReadingVO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateExpense(AdrRecordReadingVO adrRecordReadingVO) {
|
||||
adrRecordReadingDAO.updateExpense(adrRecordReadingVO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void insertRecordReadingHist(AdrRecordReadingVO adrRecordReadingVO) {
|
||||
adrRecordReadingDAO.insertRecordReadingHist(adrRecordReadingVO);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -321,9 +321,13 @@ public class KccadrConstants {
|
||||
public static final String ADR_RCD_RDNG_DOCU_TY_10 = "10"; // 기일조서
|
||||
public static final String ADR_RCD_RDNG_DOCU_TY_20 = "20"; // 조정조서
|
||||
//처리상태
|
||||
public static final String ADR_RCD_RDNG_PRCSN_STAT_CD_10 = "10"; // 신청완료
|
||||
public static final String ADR_RCD_RDNG_PRCSN_STAT_CD_20 = "20"; // 결제완료
|
||||
public static final String ADR_RCD_RDNG_PRCSN_STAT_CD_30 = "30"; // 출력완료
|
||||
public static final String ADR_RCD_RDNG_PRCSN_STAT_CD_90 = "90"; // 삭제
|
||||
public static final String ADR_RCD_RDNG_PRCSN_STAT_CD_10 = "10"; // 신청
|
||||
public static final String ADR_RCD_RDNG_PRCSN_STAT_CD_20 = "20"; // 비용납부
|
||||
public static final String ADR_RCD_RDNG_PRCSN_STAT_CD_30 = "30"; // 승인
|
||||
public static final String ADR_RCD_RDNG_PRCSN_STAT_CD_40 = "40"; // 반려
|
||||
public static final String ADR_RCD_RDNG_PRCSN_STAT_CD_50 = "50"; // 발급완료
|
||||
public static final String ADR_RCD_RDNG_PRCSN_STAT_CD_90 = "90"; // 취소
|
||||
|
||||
|
||||
|
||||
}
|
||||
@ -12,6 +12,8 @@ import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.ModelAttribute;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import egovframework.rte.fdl.idgnr.EgovIdGnrService;
|
||||
import egovframework.rte.fdl.security.userdetails.util.EgovUserDetailsHelper;
|
||||
@ -21,10 +23,12 @@ import kcc.com.cmm.service.EgovCmmUseService;
|
||||
import kcc.com.cmm.service.EgovFileMngService;
|
||||
import kcc.com.cmm.service.EgovFileMngUtil;
|
||||
import kcc.com.cmm.util.DateUtil;
|
||||
import kcc.com.utl.fcc.service.EgovStringUtil;
|
||||
import kcc.com.utl.user.service.CheckAdrProcessUtil;
|
||||
import kcc.com.utl.user.service.CheckFileUtil;
|
||||
import kcc.kccadr.accdnt.adr.service.AdjstDeputyReqService;
|
||||
import kcc.kccadr.accdnt.ans.service.AnsService;
|
||||
import kcc.kccadr.accdnt.ans.service.AnsVO;
|
||||
import kcc.kccadr.accdnt.arc.service.CorReqService;
|
||||
import kcc.kccadr.accdnt.ars.service.AdjstReqStatusService;
|
||||
import kcc.kccadr.accdnt.awd.service.AdjstWithDrawService;
|
||||
@ -34,9 +38,11 @@ import kcc.kccadr.adjPgrMgr.drt.service.DrtService;
|
||||
import kcc.kccadr.adjPgrMgr.ent.service.EntService;
|
||||
import kcc.kccadr.adjReqMgrOff.service.AdjReqMgrOffLineService;
|
||||
import kcc.kccadr.adjreqmgr.service.AdjReqMgrService;
|
||||
import kcc.kccadr.adjst.service.PayVO;
|
||||
import kcc.kccadr.advc.service.AdrHstryMgrService;
|
||||
import kcc.kccadr.advcRecord.service.AdrRecordReadingService;
|
||||
import kcc.kccadr.advcRecord.service.AdrRecordReadingVO;
|
||||
import kcc.kccadr.cmm.KccadrConstants;
|
||||
import kcc.kccadr.cmm.service.SMSOracleService;
|
||||
import kcc.kccadr.kccadrCom.service.KccadrCommonService;
|
||||
import kcc.kccadr.kccadrCom.service.KccadrMgrUdtService;
|
||||
@ -45,23 +51,21 @@ import kcc.kccadr.viewRecords.service.ViewRecordsService;
|
||||
import kcc.let.uat.uia.service.SsoLoginVO;
|
||||
import kcc.let.utl.fcc.service.EgovCryptoUtil;
|
||||
|
||||
/**
|
||||
* 조정진행목록 구현 클래스
|
||||
*
|
||||
* @author 곽승태
|
||||
* @since 2021.09.13
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* << 개정이력(Modification Information) >>
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2021.09.13 곽승태 최초 생성
|
||||
* </pre>
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
* @author : 이호영
|
||||
* @fileName : ViewRecordsController.java
|
||||
* @date : 2023.10.27
|
||||
* @description :
|
||||
* ===========================================================
|
||||
* DATE AUTHOR NOTE
|
||||
* ----------------------------------------------------------- *
|
||||
* 2023.10.27 이호영 최초 생성
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
@Controller
|
||||
public class ViewRecordsController {
|
||||
|
||||
@ -171,6 +175,9 @@ public class ViewRecordsController {
|
||||
@Resource(name = "SMSOracleService")
|
||||
private SMSOracleService sMSOracleService;
|
||||
|
||||
@Resource(name="recordReadingHstryGnrService")
|
||||
private EgovIdGnrService recordReadingHstryGnrService;
|
||||
|
||||
/*
|
||||
//개발, local oz 저장 경로
|
||||
@Value("#{globalSettings['Globals.oz.devPath']}")
|
||||
@ -318,15 +325,145 @@ public class ViewRecordsController {
|
||||
return "redirect:/web/user/login/ssoLogin.do";
|
||||
}
|
||||
AdrRecordReadingVO detailVO = adrRecordReadingService.selectDetail(adrRecordReadingVO);
|
||||
// AdrRecordReadingVO detailVO = adrRecordReadingService.selectDetail(adrRecordReadingVO);
|
||||
|
||||
// 결제 마감일 계산
|
||||
// DateUtil.AddDate 더하고싶은 날짜, 년, 월, 일
|
||||
// detailVO.setPayEndDay(DateUtil.AddDate(detailVO.getFrstRegistPnttm(), 0, 0, 7));
|
||||
model.addAttribute("info", detailVO);
|
||||
|
||||
return "/kccadr/viewRecords/popup/payOfExpenses";
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/kccadr/viewRecords/popup/rejPopup.do")
|
||||
public String rejPopup(@ModelAttribute("adrRecordReadingVO") AdrRecordReadingVO adrRecordReadingVO
|
||||
, HttpServletRequest request
|
||||
, ModelMap model) throws Exception {
|
||||
|
||||
String auth = EgovUserDetailsHelper.isAuthenticated() ? null : EgovUserDetailsHelper.getAuthenticatedUser().toString();
|
||||
LoginVO loginVO = "anonymousUser".equals(auth) ? new LoginVO() : (LoginVO)EgovUserDetailsHelper.getAuthenticatedUser();
|
||||
|
||||
SsoLoginVO ssoLoginVO = (SsoLoginVO) request.getSession().getAttribute("SSOLoginVO");
|
||||
|
||||
if (loginVO == null) {
|
||||
|
||||
model.addAttribute("msg", "로그인 해주세요.");
|
||||
return "redirect:/web/user/login/ssoLogin.do";
|
||||
}
|
||||
// AdrRecordReadingVO detailVO = adrRecordReadingService.selectDetail(adrRecordReadingVO);
|
||||
|
||||
// model.addAttribute("info", detailVO);
|
||||
|
||||
return "/kccadr/viewRecords/popup/rejPopup";
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @methodName : docAdjReqInsertAjax
|
||||
* @author : 이호영
|
||||
* @date : 2023.10.27
|
||||
* @description :
|
||||
* @param adrRecordReadingVO
|
||||
* @param model
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "/kccadr/viewRecords/updateExpenseAjax.do")
|
||||
public ModelAndView docAdjReqInsertAjax(AdrRecordReadingVO adrRecordReadingVO, ModelMap model) throws Exception {
|
||||
|
||||
ModelAndView modelAndView = new ModelAndView();
|
||||
modelAndView.setViewName("jsonView");
|
||||
|
||||
LoginVO loginVO = EgovUserDetailsHelper.isAuthenticated() ? (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser() : null;
|
||||
String userId = loginVO == null ? "" : EgovStringUtil.isNullToString(loginVO.getUniqId());
|
||||
|
||||
if (loginVO == null) {
|
||||
|
||||
modelAndView.addObject("result", "fail");
|
||||
modelAndView.addObject("message", "로그인 해주세요.");
|
||||
return modelAndView;
|
||||
}
|
||||
|
||||
adrRecordReadingVO.setLastUpdusrId(loginVO.getUniqId());
|
||||
|
||||
try {
|
||||
adrRecordReadingService.updateExpense(adrRecordReadingVO);
|
||||
|
||||
|
||||
// history 영역
|
||||
adrRecordReadingVO.setRecordReadingHstrySeq(recordReadingHstryGnrService.getNextStringId());
|
||||
adrRecordReadingVO.setFrstRegisterId(loginVO.getUniqId());
|
||||
adrRecordReadingService.insertRecordReadingHist(adrRecordReadingVO);
|
||||
// 기존 mapper 사용하기 위한 생성자
|
||||
// 상태값 update
|
||||
/* PayVO payVO = new PayVO();
|
||||
payVO.setLastUpdusrId(userId); // 수정자
|
||||
payVO.setPrcsnStatCd("20");
|
||||
payVO.setAsctnTablePk1(adrRecordReadingVO.getRecordReadingSeq());
|
||||
adrRecordReadingService.updatePrcsnStatCd(payVO);*/
|
||||
|
||||
|
||||
modelAndView.addObject("result", "success");
|
||||
} catch(Exception e) {
|
||||
modelAndView.addObject("result", "fail");
|
||||
}
|
||||
|
||||
|
||||
return modelAndView;
|
||||
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/kccadr/viewRecords/updateRejAjax.do")
|
||||
public ModelAndView updateRejAjax(AdrRecordReadingVO adrRecordReadingVO, ModelMap model) throws Exception {
|
||||
|
||||
ModelAndView modelAndView = new ModelAndView();
|
||||
modelAndView.setViewName("jsonView");
|
||||
|
||||
LoginVO loginVO = EgovUserDetailsHelper.isAuthenticated() ? (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser() : null;
|
||||
String userId = loginVO == null ? "" : EgovStringUtil.isNullToString(loginVO.getUniqId());
|
||||
|
||||
if (loginVO == null) {
|
||||
|
||||
modelAndView.addObject("result", "fail");
|
||||
modelAndView.addObject("message", "로그인 해주세요.");
|
||||
return modelAndView;
|
||||
}
|
||||
|
||||
adrRecordReadingVO.setLastUpdusrId(loginVO.getUniqId());
|
||||
|
||||
try {
|
||||
|
||||
|
||||
|
||||
|
||||
// 기존 mapper 사용하기 위한 생성자
|
||||
PayVO payVO = new PayVO();
|
||||
payVO.setLastUpdusrId(userId); // 수정자
|
||||
payVO.setPrcsnStatCd("40");
|
||||
payVO.setAsctnTablePk1(adrRecordReadingVO.getRecordReadingSeq());
|
||||
adrRecordReadingService.updatePrcsnStatCd(payVO);
|
||||
|
||||
|
||||
// history 영역
|
||||
adrRecordReadingVO.setRecordReadingSeq(adrRecordReadingVO.getRecordReadingSeq());
|
||||
adrRecordReadingVO.setPrcsnStatCd("40");
|
||||
adrRecordReadingVO.setFrstRegisterId(userId);
|
||||
adrRecordReadingVO.setRecordReadingHstrySeq(recordReadingHstryGnrService.getNextStringId());
|
||||
adrRecordReadingService.insertRecordReadingHist(adrRecordReadingVO);
|
||||
// 기존 mapper 사용하기 위한 생성자
|
||||
// 상태값 update
|
||||
/* PayVO payVO = new PayVO();
|
||||
payVO.setLastUpdusrId(userId); // 수정자
|
||||
payVO.setPrcsnStatCd("20");
|
||||
payVO.setAsctnTablePk1(adrRecordReadingVO.getRecordReadingSeq());
|
||||
adrRecordReadingService.updatePrcsnStatCd(payVO);*/
|
||||
|
||||
|
||||
modelAndView.addObject("result", "success");
|
||||
} catch(Exception e) {
|
||||
modelAndView.addObject("result", "fail");
|
||||
}
|
||||
|
||||
|
||||
return modelAndView;
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -2807,7 +2807,7 @@
|
||||
<!-- 기록열람이력일련번호 - adr_record_reading_hstry -->
|
||||
<bean name="recordReadingHstryGnrService" class="egovframework.rte.fdl.idgnr.impl.EgovTableIdGnrServiceImpl" destroy-method="destroy">
|
||||
<property name="strategy" ref="recordReadingHstryStrategy" />
|
||||
<property name="tableName" value="ADR_RECORD_READING_HSTRY"/>
|
||||
<property name="tableName" value="ADR_RECORD_HSTRY"/>
|
||||
<property name="dataSource" ref="dataSource" /><property name="blockSize" value="10"/><property name="table" value="IDS"/>
|
||||
</bean>
|
||||
<bean name="recordReadingHstryStrategy" class="egovframework.rte.fdl.idgnr.impl.strategy.EgovIdGnrStrategyImpl">
|
||||
|
||||
@ -250,7 +250,7 @@
|
||||
|
||||
<update id="adrRecordReadingDAO.updatePrcsnStatCd" parameterClass="PayVO">
|
||||
/*adrRecordReadingDAO.updatePrcsnStatCd*/
|
||||
UPDATE adr_record_reading
|
||||
UPDATE <include refid="AdrRecordReadingDAO.table_name"/>
|
||||
SET prcsn_stat_cd = #prcsnStatCd#,
|
||||
prcsn_pnttm = NOW(),
|
||||
last_updt_pnttm = NOW(),
|
||||
@ -258,4 +258,16 @@
|
||||
WHERE record_reading_seq = #asctnTablePk1#
|
||||
|
||||
</update>
|
||||
|
||||
<update id="AdrRecordReadingDAO.updateExpense" parameterClass="AdrRecordReadingVO">
|
||||
/*AdrRecordReadingDAO.updateExpense*/
|
||||
UPDATE <include refid="AdrRecordReadingDAO.table_name"/>
|
||||
SET expense = #expense#,
|
||||
prcsn_stat_cd = #prcsnStatCd#,
|
||||
last_updt_pnttm = NOW(),
|
||||
last_updusr_id = #lastUpdusrId#
|
||||
WHERE
|
||||
record_reading_seq = #recordReadingSeq#
|
||||
|
||||
</update>
|
||||
</sqlMap>
|
||||
|
||||
@ -41,7 +41,16 @@ function payPopOpen(){
|
||||
form.action="<c:out value='/kccadr/viewRecords/popup/payOfExpenses.do' />";
|
||||
// form.submit();
|
||||
// openPopupAndSubmitForm('payPopup', 'popupForm', 380, 380);
|
||||
openPopupAndSubmitForm('payPopup', 'popupForm', 800, 380);
|
||||
openPopupAndSubmitForm('payPopup', 'popupForm', 500, 380);
|
||||
|
||||
}
|
||||
function rejPopOpen(){
|
||||
|
||||
var form = document.popupForm;
|
||||
form.action="<c:out value='/kccadr/viewRecords/popup/rejPopup.do' />";
|
||||
// form.submit();
|
||||
// openPopupAndSubmitForm('payPopup', 'popupForm', 380, 380);
|
||||
openPopupAndSubmitForm('payPopup', 'popupForm', 500, 380);
|
||||
|
||||
}
|
||||
/*
|
||||
@ -180,8 +189,7 @@ function payPopOpen(){
|
||||
</tr>
|
||||
<tr>
|
||||
<th>발급비용</th>
|
||||
<td><p><c:out value="${info.expense }" /></p>원</td>
|
||||
|
||||
<td><p><c:out value="${info.expense }" /><c:out value="${not empty info.expense ? '원' : ''}" /></p></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@ -191,9 +199,18 @@ function payPopOpen(){
|
||||
<div class="btn_wrap btn_layout01">
|
||||
<div class="area_left"></div>
|
||||
<div class="area_right" style="width: auto;">
|
||||
<button type="button" class="btnType02" onclick="payPopOpen()">비용납부</button>
|
||||
<button type="button" class="btnType06">승인</button>
|
||||
<button type="button" class="btnType09" onclick="popOpen('/kccadrPb/adm/popup_rej.html','신청반려', '460','320')">반려</button>
|
||||
|
||||
<c:if test="${info.prcsnStatCd == '10' or info.prcsnStatCd == '20' or info.prcsnStatCd == '30' or info.prcsnStatCd == '40'}"> <!-- 취소일때 -->
|
||||
<c:if test="${info.recordReadingFlag == '10'}"> <!-- 우편일떄 -->
|
||||
<button type="button" class="btnType02" onclick="payPopOpen()">비용납부</button>
|
||||
<button type="button" class="btnType06">승인</button>
|
||||
</c:if>
|
||||
<c:if test="${info.recordReadingFlag == '20'}"> <!-- 방문일때 -->
|
||||
<button type="button" class="btnType02" onclick="payPopOpen()">발급완료</button>
|
||||
</c:if>
|
||||
<!-- <button type="button" class="btnType09" onclick="popOpen('/kccadrPb/adm/popup_rej.html','신청반려', '460','320')">반려</button> -->
|
||||
<button type="button" class="btnType09" onclick="rejPopOpen()">반려</button>
|
||||
</c:if>
|
||||
<button type="button" class="btnType04" onclick="fnListPage()">목록</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -25,11 +25,29 @@
|
||||
<link rel="stylesheet" href="/kccadrPb/adm/css/popup.css">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javaScript" language="javascript">
|
||||
|
||||
$(document).ready(function(){
|
||||
|
||||
var recordReadingFlag = "<c:out value='${info.recordReadingFlag}' />";
|
||||
var btnTxt = '';
|
||||
|
||||
if($('#recordReadingFlag').val() == '10'){
|
||||
// 우편일때는 납부요청 상태값으로
|
||||
$('#prcsnStatCd').val('20');
|
||||
btnTxt = '납부 요청';
|
||||
|
||||
}else if($('#recordReadingFlag').val() == '20'){
|
||||
// 방문일때는 완료 처리
|
||||
$('#prcsnStatCd').val('50')
|
||||
btnTxt = '저장';
|
||||
}
|
||||
|
||||
$('#submitBtn').text(btnTxt);
|
||||
|
||||
|
||||
});
|
||||
|
||||
function fnClose(){
|
||||
window.self.close();
|
||||
}
|
||||
@ -42,10 +60,10 @@
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!confirm("납부 요청을 하시겠습니까?")) return;
|
||||
if (!confirm("진행 하시겠습니까?")) return;
|
||||
|
||||
|
||||
var data = new FormData(document.updateForm);
|
||||
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
url : "/kccadr/viewRecords/updateExpenseAjax.do",
|
||||
@ -57,29 +75,32 @@
|
||||
cache : false,
|
||||
success : function(returnData, status) {
|
||||
if (returnData.result == 'success') {
|
||||
alert("납부요청이 완료되었습니다.");
|
||||
alert("완료되었습니다.");
|
||||
opener.location.reload();
|
||||
fnClose();
|
||||
} else {
|
||||
alert(returnData.message);
|
||||
}
|
||||
|
||||
},
|
||||
error : function(e) {
|
||||
alert("신청을 실패하였습니다.");
|
||||
alert("실패하였습니다.");
|
||||
console.log("ERROR : ", e);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<form id="updateForm" name="updateForm">
|
||||
<input type="hidden" id="recordReadingSeq" name="recordReadingSeq" value="${info.recordReadingSeq }" />
|
||||
<div class="area_popup fee_popup" style="width: 380px;">
|
||||
<input type="hidden" id="recordReadingFlag" name="recordReadingFlag" value="${info.recordReadingFlag }" />
|
||||
<input type="hidden" id="prcsnStatCd" name="prcsnStatCd" value="" />
|
||||
|
||||
|
||||
<!-- adrRecordReadingVO.setPrcsnStatCd("20"); -->
|
||||
|
||||
<div class="area_popup fee_popup" style="width: 100%;">
|
||||
<div class="cont_popup">
|
||||
|
||||
<div class="tb_tit">
|
||||
@ -97,13 +118,13 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<th>수수료 금액</th>
|
||||
<td><input type="text" id="expense" name="expense"><c:out value="${info.expense }"/></td>
|
||||
<td><input type="text" id="expense" name="expense" value="<c:out value="${info.expense }"/>"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="btn_wrap btn_layout04">
|
||||
<button type="button" class="btnType06" onclick="fnDocReqSubmit()">납부요청</button>
|
||||
<button type="button" class="btnType06" id="submitBtn" onclick="fnDocReqSubmit()">납부요청</button>
|
||||
<button type="button" class="btnType04" onclick="fnClose()">닫기</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -0,0 +1,109 @@
|
||||
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
|
||||
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
|
||||
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
|
||||
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
|
||||
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
|
||||
<%@ taglib prefix="double-submit" uri="http://www.egovframe.go.kr/tags/double-submit/jsp" %>
|
||||
<%@ taglib prefix="kc" uri="/WEB-INF/tlds/kcc_tld.tld"%>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Language" content="ko" >
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>수수료 등록</title>
|
||||
|
||||
<!-- css -->
|
||||
<link rel="stylesheet" href="/kccadrPb/adm/css/reset.css">
|
||||
<link rel="stylesheet" href="/kccadrPb/adm/css/font.css">
|
||||
<link rel="stylesheet" href="/kccadrPb/adm/css/common.css">
|
||||
<link rel="stylesheet" href="/kccadrPb/adm/css/content.css">
|
||||
<link rel="stylesheet" href="/kccadrPb/adm/css/content_media.css">
|
||||
<link rel="stylesheet" href="/kccadrPb/adm/css/popup.css">
|
||||
|
||||
|
||||
<script type="text/javaScript" language="javascript">
|
||||
|
||||
$(document).ready(function(){
|
||||
|
||||
|
||||
});
|
||||
|
||||
function fnClose(){
|
||||
window.self.close();
|
||||
}
|
||||
|
||||
function fnDocReqSubmit() {
|
||||
|
||||
if(!$('#cn').val()){
|
||||
alert('반려사유를 입력해 주세요');
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!confirm("반려 하시겠습니까?")) return;
|
||||
|
||||
|
||||
var data = new FormData(document.updateForm);
|
||||
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
url : "/kccadr/viewRecords/updateRejAjax.do",
|
||||
data : data,
|
||||
dataType : 'json',
|
||||
async : false,
|
||||
processData : false,
|
||||
contentType : false,
|
||||
cache : false,
|
||||
success : function(returnData, status) {
|
||||
if (returnData.result == 'success') {
|
||||
alert("완료되었습니다.");
|
||||
opener.location.reload();
|
||||
fnClose();
|
||||
} else {
|
||||
alert(returnData.message);
|
||||
}
|
||||
|
||||
},
|
||||
error : function(e) {
|
||||
alert("실패하였습니다.");
|
||||
console.log("ERROR : ", e);
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<form id="updateForm" name="updateForm">
|
||||
<input type="hidden" id="recordReadingSeq" name="recordReadingSeq" value="${adrRecordReadingVO.recordReadingSeq }" />
|
||||
<input type="hidden" id="prcsnStatCd" name="prcsnStatCd" value="40" />
|
||||
<div class="area_popup fee_popup" style="width: 450px;">
|
||||
<div class="cont_popup">
|
||||
|
||||
<div class="tb_tit">
|
||||
<p>신청 반려</p>
|
||||
</div>
|
||||
<table class="pop_tbType01">
|
||||
<colgroup>
|
||||
<col style="width: 35%;">
|
||||
<col style="width: auto;">
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>반려 사유</th>
|
||||
<td><textarea name="cn" id="cn" cols="30" rows="3"></textarea></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="btn_wrap btn_layout04">
|
||||
<button type="button" class="btnType06" onclick="fnDocReqSubmit()">반려</button>
|
||||
<button type="button" class="btnType04" onclick="fnClose()">닫기</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
@ -331,9 +331,6 @@
|
||||
<!-- //cont -->
|
||||
|
||||
<!-- 결제금액 설정 -->
|
||||
<c:set var="multipliedValue" value="${info.authQntty * 100000}" />
|
||||
<%-- <fmt:formatNumber value="${multipliedValue}" type="currency" currencySymbol="₩" var="formattedValue" /> --%>
|
||||
<fmt:formatNumber value="${multipliedValue}" type="currency" var="formattedValue" />
|
||||
<!-- 수수료정보팝업(1개) -->
|
||||
<div class="tooltip-wrap">
|
||||
<div class="popup_wrap fee_popup" tabindex="0" data-tooltip-con="fee_popup" data-focus="fee_popup" data-focus-prev="fee_popup_close">
|
||||
@ -357,7 +354,7 @@
|
||||
<tr>
|
||||
<td><kc:code codeId="CC601" code="${info.docuTy}"/> <c:out value="${info.authQntty}"/>부</td>
|
||||
<td>
|
||||
<p class="t_bold c_222222"><c:out value="${formattedValue}" />원</p>
|
||||
<p class="t_bold c_222222"><c:out value="${info.expense }" />원</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -374,7 +371,7 @@
|
||||
<tr>
|
||||
<th>결제금액</th>
|
||||
<td>
|
||||
<p><c:out value="${formattedValue}" />원(납부기간 : <c:out value="${info.payEndDay }" />, 13:00까지)</p>
|
||||
<p><c:out value="${info.expense}" />원(납부기간 : <c:out value="${info.payEndDay }" />, 13:00까지)</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
@ -296,11 +296,14 @@
|
||||
<td>
|
||||
<div class="radio_wrap">
|
||||
<!--
|
||||
기일조서
|
||||
조정종결통보서
|
||||
기일조서
|
||||
조정조서
|
||||
기일통지서
|
||||
직권결정문
|
||||
직권결정문송달 및 확정증명원
|
||||
조정신청서 및 첨부서류(본인 제출서류에 한함)
|
||||
-->
|
||||
<kc:select codeId="CC303" name="docuTy" id="docuTy" css="style='margin-left: 10px;'"/>
|
||||
<kc:select codeId="CC601" name="docuTy" id="docuTy" css="style='margin-left: 10px;'"/>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user