File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
<%
/**
* @Class Name : EgovHpcmRegist.jsp
* @Description : EgovHpcmRegist 화면
* @Modification Information
* @
* @ 수정일 수정자 수정내용
* @ ------- -------- ---------------------------
* @ 2009.02.01 박정규 최초 생성
* 2016.06.13 김연호 표준프레임워크 v3.6 개선
*
* @author 공통서비스팀
* @since 2009.02.01
* @version 1.0
* @see
*
*/
%>
<%@ page contentType="text/html; charset=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="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="ec" uri="/WEB-INF/tld/ecnet_tld.tld"%>
<!DOCTYPE html>
<html lang="ko">
<head>
<title>팝업창관리 관리</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<script type="text/javascript" src="<c:url value='/js/EgovMultiFile.js'/>"></script>
<script type="text/javaScript" language="javascript">
$( document ).ready(function(){
<c:if test="${!empty mjonPayVO.moid}">
$('.no_modi').find('input').prop('readonly', true);
</c:if>
<c:if test="${empty mjonPayVO.moid}">
$('.modi').remove();
</c:if>
});
/* 수정 */
function fn_modify(){
if(!confirm("수정하시겠습니까?")) {
return;
}
var frm = document.writeForm;
frm.action = "<c:url value='/uss/ion/pay/UpdateCash.do'/>";
frm.submit();
}
function fn_delete(){
if(!confirm("삭제하시겠습니까?")) {
return;
}
frm = document.writeForm;
frm.action = "<c:url value='/uss/ion/msg/SendMsgDelete.do' />";
frm.submit();
}
/* 결제취소 */
var pg_opener = null;
function pgCancelPopup(){
var amt = $("#amt").val();
var cancelCnt = $("#cancelCnt").val();
var userMoney = $("#userMoney").val();
var userPoint = $("#userPoint").val();
if(cancelCnt > 0){
alert("이미 결제 취소한 목록이 있습니다.");
return false;
}
if( amt > userMoney ){
alert("현제 보유 금액(${mjonPayVO.userMoney}) 이 취소금액(${mjonPayVO.amt}) 보다 작아 결제취소가 불가능합니다.");
return false;
}
var cancelPoint = amt*2/100 ;
if( cancelPoint > userPoint ){
alert("현제 보유 포인트(${mjonPayVO.userPoint}) 이 취소포인트("+cancelPoint+") 보다 작아 결제취소가 불가능합니다.");
return false;
}
var docWidth = screen.availWidth;
var docHeight = screen.availHeight;
var scX = window.screenX||window.screenLeft||0;
var scY = window.screenY||window.screenTop||0;
var popupX = scX + (docWidth - 185) / 2;
var popupY = scY + (docHeight - 195) / 2;
pg_opener = window.open('', 'pg_opener', 'width=685, height=695, left='+popupX+', top='+popupY+',location = no,status= no,toolbars= no');
document.writeForm.method = "post";
document.writeForm.action = "/web/cop/nicepay/cancelRequestAjax.do";
document.writeForm.target = "pg_opener" ;
document.writeForm.submit();
}
function goList(no){
var writeForm = document.writeForm;
var actionUrl = "";
if(no == 1) {
actionUrl = '/uss/ion/pay/CashList.do';
} else if (no == 2) {
actionUrl = '/uss/ion/pay/PointList.do';
} else if (no == 3) {
actionUrl = '/uss/ion/pay/PayList.do';
window.history.back();
return;
}
writeForm.action = actionUrl;
writeForm.submit();
}
</script>
</head>
<body>
<form name="writeForm" id="writeForm" method="post">
<input type="text" name="searchCondition" value="${searchVO.searchCondition}" />
<input type="text" name="searchCondition2" value="${searchVO.searchCondition2}" />
<input type="text" name="searchCondition3" value="${searchVO.searchCondition3}" />
<input type="text" name="searchKeyword" value="${searchVO.searchKeyword}" />
<input type="text" name="pageUnit" value="${searchVO.pageUnit}" />
<input type="hidden" name="cashId" value="${mjonPayVO.cashId}" />
<input type="hidden" id="amt" value="${mjonPayVO.amt}" />
<input type="hidden" id="cancelCnt" value="${mjonPayVO.cancelCnt}" />
<input type="hidden" id="userMoney" value="${mjonPayVO.userMoney}" />
<input type="hidden" id="userPoint" value="${mjonPayVO.userPoint}" />
<div class="contWrap">
<div class="pageTitle">
<div class="pageIcon"><img src="/pb/img/pageTitIcon4.png" alt=""></div>
<h2 class="titType1 c_222222 fwBold">결제정보 수정</h2>
<p class="tType6 c_999999">결제정보 수정 할 수 있습니다.</p>
</div>
<div class="pageCont">
<table class="tbType2">
<colgroup>
<col style="width: 20%">
<col style="width: 80%">
</colgroup>
<tbody>
<tr class="no_modi">
<th><span class="reqArea">주문번호(PG사)</span></th>
<td colspan="3">
<input type="text"
placeholder=""
name="tid" value="${mjonPayVO.tid}" title="주문번호(PG사)" maxlength="100" />
</td>
</tr>
<tr class="no_modi">
<th><span class="reqArea">주문번호(고객사)</span></th>
<td colspan="3">
<input type="text"
placeholder=""
name="moid" value="${mjonPayVO.moid}" title="주문번호(고객사)" maxlength="100" />
</td>
</tr>
<tr class="no_modi">
<th><span class="reqArea">아이디</span></th>
<td colspan="3">
<input type="text"
placeholder=""
name="userId" value="${mjonPayVO.userId}" title="아이디" maxlength="100" />
</td>
</tr>
<tr class="no_modi">
<th><span class="reqArea">이름</span></th>
<td colspan="3">
<input type="text" placeholder="" name="buyerName" value="${mjonPayVO.userName}" title="이름" maxlength="100" />
</td>
</tr>
<tr class="no_modi">
<th><span class="reqArea">결제자</span></th>
<td colspan="3">
<input type="text" placeholder="" name="buyerName" value="${mjonPayVO.buyerName}" title="이름" maxlength="100" />
</td>
</tr>
<tr class="no_modi">
<th><span class="reqArea">이메일</span></th>
<td colspan="3">
<input type="text" placeholder="" name="email" value="${mjonPayVO.email}" title="이메일" maxlength="100" />
</td>
</tr>
<tr class="no_modi">
<th><span class="reqArea">결제금액</span></th>
<td colspan="3">
<input type="text" name="amt" value="<fmt:formatNumber value="${mjonPayVO.amt}" type="number" />" title="결제금액" maxlength="20" />
</td>
</tr>
<tr class="no_modi">
<th><span class="reqArea">결제수단</span></th>
<td colspan="3">
<input type="text" name="payMethodTxt" value="${mjonPayVO.payMethodTxt}" title="결제수단" maxlength="20" />
</td>
</tr>
<tr class="no_modi">
<th><span class="reqArea">결제폰번호</span></th>
<td colspan="3">
<input type="text" name="phone" value="${mjonPayVO.phone}" title="결제폰번호" maxlength="20" />
</td>
</tr>
<tr class="no_modi">
<th><span class="reqArea">결제상태</span></th>
<td colspan="3">
<input type="text" name="pgStatusTxt" value="${mjonPayVO.pgStatusTxt}" title="결제상태" maxlength="20" />
</td>
</tr>
<tr class="no_modi">
<th><span class="reqArea">결제메세지</span></th>
<td colspan="3">
<input type="text" name="resultMsg" value="${mjonPayVO.resultMsg}" title="캐시" maxlength="20" />
</td>
</tr>
<tr class="no_modi">
<th><span class="reqArea">결제영수증</span></th>
<td colspan="3">
<input type="text" name="rcptTypeTxt" value="${mjonPayVO.rcptTypeTxt}" title="결제영수증" maxlength="20" />
</td>
</tr>
<tr class="no_modi">
<th><span class="reqArea">결제사</span></th>
<td colspan="3">
<input type="text" placeholder="" name="goodsName" value="${mjonPayVO.goodsName}" title="결제사" maxlength="100" />
</td>
</tr>
<tr class="no_modi">
<th><span class="reqArea">PG코드</span></th>
<td colspan="3">
<input type="text" name="pgCode" value="${mjonPayVO.pgCode}" title="PG코드" maxlength="20" />
</td>
</tr>
<tr class="no_modi">
<th><span class="reqArea">결제시간</span></th>
<td colspan="3">
<input type="text" name="regDate" value="${mjonPayVO.regDate}" title="결제시간" maxlength="20" />
</td>
</tr>
</tbody>
</table>
<div class="btnWrap">
<c:choose>
<c:when test="${cashPage}">
<input type="button" class="btnType1 bg_888888" value="목 록" onclick="goList(1);return false;">
</c:when>
<c:when test="${pointPage}">
<input type="button" class="btnType1 bg_888888" value="목 록" onclick="goList(2);return false;">
</c:when>
<c:otherwise>
<input type="button" class="btnType1 bg_888888" value="목 록" onclick="goList(3);return false;">
</c:otherwise>
</c:choose>
<%-- <c:if test="${!empty mjonPayVO.cashId }">
<input type="button" class="btnType1" value="수 정" onclick="fn_modify(); return false;">
</c:if> --%>
<%-- <c:if test="${'1' eq mjonPayVO.pgStatus }">
<input type="button" class="btnType1" value="결제취소" onclick="pgCancelPopup(); return false;">
</c:if> --%>
</div>
</div>
</div>
</form>
</body>
</html>