YNICTE/FO/Views/My/PayInfo.cshtml

729 lines
45 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@model NP.Model.VMPay
@{
bool isRfd = (Model.intval3 > 0) ? true : false;
}
<style>
.bskTitle {
margin-top: 20px !important;
}
.mpgPopWrap {
max-height:700px;
}
</style>
<h4 class="bskTitle">주문상품 정보</h4>
<p class="odrNum">결제번호 : @(Model.Pay.payno < 1000000 ? Model.Pay.payno.ToString("000000") : Model.Pay.payno.ToString())</p>
<table class="bskList">
<tbody>
<tr>
<td>
<h5>
<span class="blu">강좌</span>
<span class="@(Model.PayItem.cshape == 0 ? "org" : Model.PayItem.cshape == 1 ? "nav_grn" : "nav_blu")">@Model.PayItem.cshapename</span>
@Html.Raw(Model.PayItem.isrebate == 1 ? "<span class=\"grn\">환급과정</span>" : "")
<b style="color:@(Model.PayItem.pstatus == 22 ? "red" : "")">@Model.PayItem.itemname</b>
</h5>
@if (Model.PayItem.sdate != null && Model.PayItem.edate != null)
{
<dl>
@*<dd>교육기간 : <span class="red">@(Convert.ToDateTime(Model.PayItem.cshape == 1 ? Model.PayItem.sdate : Model.PayItem.cdt).ToShortDateString()) ~ @(Convert.ToDateTime(Model.PayItem.cshape == 1 ? Model.PayItem.edate : Model.PayItem.estart).ToShortDateString())</span></dd>*@
<dd>교육기간 : <span class="red">@(Convert.ToDateTime(Model.PayItem.sdate).ToShortDateString()) ~ @(Convert.ToDateTime(Model.PayItem.edate).ToShortDateString())</span></dd>
</dl>
}
else
{
<dl>
<dd>교육기간 : <span class="red">@(Model.PayItem.studydays)일</span></dd>
</dl>
}
<dl>
<dd>가격 : <span class="red">@Model.PayItem.payamt.ToString("#,0")</span>원</dd>
</dl>
</td>
</tr>
</tbody>
</table>
<h4 class="bskTitle">결제 정보</h4>
<table class="odrTable">
<tr><th>구매금액</th><td>@Model.Pay.payamt.ToString("#,0")원</td></tr>
<tr><th>지불방법</th><td>@Model.Pay.ptypename</td></tr>
@if (Model.Pay.ptype == 3)
{
<tr>
<th>입금계좌</th><td>
@if (!string.IsNullOrEmpty(Model.Pay.vactbankname) && !string.IsNullOrEmpty(Model.Pay.vactnum) && !string.IsNullOrEmpty(Model.Pay.vactname))
{
<span>@Model.Pay.vactbankname | @Model.Pay.vactnum | @Model.Pay.vactname</span>
}
</td>
</tr>
}
<tr>
<th>주문접수일</th>
@if (Model.Pay.paylimit != null && Model.PayItem.retime != null)
{
if (Convert.ToDateTime(Model.Pay.paylimit.Value.ToString("yyyy-MM-dd HH:mm")) >= Convert.ToDateTime(Model.PayItem.retime.Value.ToString("yyyy-MM-dd HH:mm")))
{
<td>@Model.Pay.cdt.ToString("yyyy-MM-dd HH:mm") @*@(Model.Pay.ptype == 3 ? string.Format("(만료일 : {0})", (Model.PayItem.retime.Value.ToString("yyyy-MM-dd HH:mm"))) : "")*@</td>
}
else
{
<td>@Model.Pay.cdt.ToString("yyyy-MM-dd HH:mm") @*@(Model.Pay.ptype == 3 ? string.Format("(만료일 : {0})", (Model.Pay.paylimit.Value.ToString("yyyy-MM-dd HH:mm"))) : "")*@</td>
}
}
else
{
<td>@Model.Pay.cdt.ToString("yyyy-MM-dd HH:mm")</td>
}
</tr>
<tr>
<th>주문상태</th>
<td><b>@Model.Pay.pstatusname</b> @Html.Raw(Model.Pay.ispg == 1 && Model.Pay.rstatus == 0 && Model.Pay.pstatus == 1 && Model.Pay.ptype == 1 ? "<a href=\"#\" onclick=\"viewtax()\" class=\"odrRcpt\" style=\"color:white\">영수증 출력</a>" : "")</td>
</tr>
</table>
@if (Model.intval3 > 0 && Model.PayRfd != null)
{
<h4 class="bskTitle">환불 정보</h4>
<table class="odrTable">
<tr>
<th>환불 신청일</th>
<td>@(Convert.ToDateTime(Model.PayRfd.cdt).ToString("yyyy-MM-dd HH:mm"))</td>
</tr>
<tr>
<th>환불상태</th>
<td>
@if (Model.intval3 > 0)
{
if (Model.PayRfd.rstatus == 0 && (Model.PayRfd.fgnob == null || Model.PayRfd.fgnor == null))
{
<label>서류접수대기</label> <a href="#" style="color:blue" onclick="refund();">[서류등록/취소]</a> <a href="#" onclick="rfdrequest(@(Model.PayRfd.rfdno));" style="color:blue">[신청서출력]</a>
}
else if (Model.PayRfd.rstatus == 0 && (Model.PayRfd.fgnob != null && Model.PayRfd.fgnor != null))
{
<label>접수완료</label><label id="rfdDate">(@Model.PayRfd.udt) 서류심사중</label> <a href="#" style="color:blue" onclick="refund();">[상세내용조회/취소]</a> <a href="#" onclick="rfdrequest(@(Model.PayRfd.rfdno));" style="color:blue">[신청서출력]</a>
}
else if (Model.PayRfd.rstatus == 1 && Model.PayRfd.fgnor != null && (Model.PayRfd.ptype != 3 || (Model.PayRfd.ptype == 3 && Model.PayRfd.fgnob != null)))
{
<label>환불불가</label><label id="rfdDate">(@Model.PayRfd.udt)</label> <a href="#" style="color:blue" onclick="refund();">[상세내용조회]</a> <a href="#" onclick="rfdrequest(@(Model.PayRfd.rfdno));" style="color:blue">[신청서출력]</a>
}
else if (Model.PayRfd.rstatus == 2 && Model.PayRfd.fgnor != null && (Model.PayRfd.ptype != 3 || (Model.PayRfd.ptype == 3 && Model.PayRfd.fgnob != null)))
{
<label>환불완료</label><label id="rfdDate">(@Model.PayRfd.udt)</label> <a href="#" style="color:blue" onclick="refund();">[상세내용조회]</a> <a href="#" onclick="rfdrequest(@(Model.PayRfd.rfdno));" style="color:blue">[신청서출력]</a>
} else if(Model.PayRfd.rstatus == 1) {
<label>환불 거절</label>
}
}
</td>
</tr>
</table>
}
<ul class="bskBtn col1">
<li><a href="/My/Paies" class="bk">결제관리 이동</a></li>
@if (Model.Pay.ispg != 1 && Model.Pay.rstatus == 0 && Model.Pay.pstatus == 1 && Model.Pay.ptype != 1 && Model.Pay.ptype != 6)
{
if (Convert.ToDateTime(Convert.ToDateTime(Model.Pay.payoktime).ToString("yyyy-MM-dd")) <= Convert.ToDateTime(DateTime.Now.AddMonths(1).ToString("yyyy-MM-10")))
{
<li><a href="#" onclick="calltax()" class="bk">계산서요청</a></li>
}
else
{
<li><a href="#" onclick="msg('계산서 요청 기한이 지나 신청이 불가능합니다.'); return;" class="bk">계산서요청</a></li>
}
}
@if (Model.Pay.pstatus == 1 && Model.Pay.rstatus != 2 && Model.PayItems.Where(w => w.rstatus == 0).Count() > 0)
{
if (Model.intval3 > 0 && Model.PayRfd != null && (Model.PayRfd.rstatus == 0 || Model.PayRfd.rstatus == 2))
{
<li><a href="#" onclick="refund()" class="bk" style="display:none">환불요청</a></li>
}
else if (Model.intval3 > 0 && Model.PayRfd != null && Model.PayRfd.rstatus == 1)
{
<li><a href="#" onclick="refund('reject')" class="bk">환불요청</a></li>
}
else
{
<li><a href="#" onclick="refund()" class="bk">환불요청</a></li>
}
}
@if (Model.Pay.rstatus < 2 && Model.Pay.pstatus == 22)
{
<li><a href="#" onclick="cancelpay()" class="bk">결제취소</a></li>
}
</ul>
<div class="mpgPop mpgPopFull" style="display:none;" id="pop1">
<div>
<div>
<div class="mpgPopWrap wdth650">
<div class="mpgPopTitle"><h5>계산서발행요청</h5><a href="#" onclick="javascript:mpgPopClose();"></a></div>
<div class="mpgPopScroll">
<div class="odrPop pop1box" style="padding: 10px 30px;">
<h4 class="bskTitle">상품선택</h4>
<table class="odrTable th150">
<tr><th>총결제액/입금일</th><td>@(Model.Pay.payamt.ToString("#,0"))원 (@(Model.Pay.payoktime == null ? "" : Model.Pay.payoktime.Value.ToString("yy-MM-dd HH:mm")))</td></tr>
<tr><th>결제방법</th><td>@Model.Pay.ptypename (@(Model.Pay.ispg == 1 ? "PG" : "현장결제"))</td></tr>
<tr>
<th>신청강좌</th>
<td>
@Model.PayItem.itemname
</td>
</tr>
<tr>
<th>발행요청금액</th>
<td>
@Model.PayItem.payamt.ToString("#,0")원
</td>
</tr>
<tr>
<th>청구구분</th>
<td>
<input type="hidden" name="isreceipt" id="isreceipt" />
<ul class="bakRadio">
<li><input type="radio" name="isreceipts" id="isreceipt1" checked="checked" /><label for="isreceipt1">영수</label></li>
<li><input type="radio" name="isreceipts" id="isreceipt0" /><label for="isreceipts0">청구</label></li>
</ul>
</td>
</tr>
</table>
<form id="mform" method="post" enctype="multipart/form-data">
<input type="hidden" id="pinos" name="pinos" value="@Model.PayItem.pino" />
<input type="hidden" name="payno" value="@Model.Pay.payno" />
<h4 class="bskTitle">발행업체 정보</h4>
<table class="odrTable th150">
<tr class="pd5"><th>회사명</th><td><input type="text" name="asname" id="asname" value="" /></td></tr>
<tr class="pd5">
<th>대표자</th>
<td><input type="text" name="ceoname" id="ceoname" value="" /></td>
</tr>
<tr class="pd5">
<th>사업자등록번호</th>
<td><input type="text" name="brno" id="brno" value="" maxlength="12" /></td>
</tr>
<tr class="pd5">
<th>법인등록번호</th>
<td><input type="text" name="grno" id="grno" value="" maxlength="14" /></td>
</tr>
<tr class="pd5">
<th>업태</th>
<td><input type="text" name="btype" id="btype" value="" /></td>
</tr>
<tr class="pd5">
<th>종목</th>
<td><input type="text" name="bkind" id="bkind" value="" /></td>
</tr>
<tr class="pd5">
<th>담당자</th>
<td><input type="text" name="manname" id="manname" value="" /></td>
</tr>
<tr class="pd5">
<th>연락처</th>
<td><input type="text" name="telno" id="telno" value="" /></td>
</tr>
<tr class="pd5">
<th>이메일주소</th>
<td><input type="text" name="email" id="email" value="" /></td>
</tr>
@*<tr class="pd5">
<th>사업자등록증첨부</th>
<td><input type="file" name="file1" id="file1" value="" /></td>
</tr>*@
<tr class="pd5">
<th>기재사항</th>
<td><input type="text" name="taxinfo" id="taxinfo" value="" /></td>
</tr>
</table>
</form>
<ul class="odrPopBtn col1">
<li><a href="#" onclick="save()" class="bk">계산서 발행요청</a></li>
</ul>
</div><!-- clsPopCont -->
</div>
</div><!-- clsPopWrap -->
</div>
</div>
</div>
<div class="mpgPop mpgPopFull" style="display:none;" id="pop2">
<div>
<div>
<div class="mpgPopWrap wdth750">
<div class="mpgPopTitle">
<h5>취소/환불요청</h5>
<a href="javascript:mpgPopClose();"></a>
</div>
<div class="mpgPopScroll">
<div class="odrPop pop1box" id="refundRequest">
<h4 class="bskTitle">상품선택</h4>
<table class="odrTable th150">
<tr><th>총결제액/입금일</th><td>@(Model.Pay.payamt.ToString("#,0"))원 (@(Model.Pay.payoktime == null ? "" : Model.Pay.payoktime.Value.ToString("yy-MM-dd HH:mm")))</td></tr>
<tr><th>결제방법</th><td>@Model.Pay.ptypename (@(Model.Pay.ispg == 1 ? "PG" : "현장결제"))</td></tr>
<tr>
<th>요청강좌</th>
<td>
@Model.PayItem.itemname
</td>
</tr>
</table>
<form id="mform2" method="post">
<input type="hidden" id="ramt" name="ramt" value="@Model.PayItem.payamt" />
<input type="hidden" id="pinos2" name="pinos" value="@Model.PayItem.pino" />
<input type="hidden" name="payno" id="payno" value="@Model.Pay.payno" />
<input type="hidden" name="ptype" id="ptype" value="@Model.Pay.ptype" />
<input type="hidden" name="rfdno" id="rfdno" value="@(isRfd? Model.PayRfd.rfdno.ToString() : "")" />
<div id="divCurrent">
<h4 class="bskTitle">환불정보</h4>
<table class="odrTable th150">
<tr class="pd5" style="@(Model.Pay.ptype == 1 ? "display:none;" : "")">
<th>환불은행</th>
<td><input type="text" name="bankname" id="bankname" maxlength="30" value="@(isRfd? Model.PayRfd.bankname : "")" @(isRfd ? "readonly" : "") /></td>
</tr>
<tr class="pd5" style="@(Model.Pay.ptype == 1 ? "display:none;" : "")">
<th>예금주</th>
<td><input type="text" name="bankowner" id="bankowner" maxlength="30" value="@(isRfd? Model.PayRfd.bankowner : "")" @(isRfd ? "readonly" : "") /></td>
</tr>
<tr class="pd5" style="@(Model.Pay.ptype == 1 ? "display:none;" : "")">
<th>환불계좌</th>
<td><input type="text" name="bankno" id="bankno" maxlength="30" value="@(isRfd? Model.PayRfd.bankno : "")" @(isRfd ? "readonly" : "") /></td>
</tr>
<tr style="@(Model.Pay.ptype == 1 ? "display:none;" : "")">
<th>개인계좌여부</th>
<td>
<input type="hidden" name="isowner" id="isowner" />
<ul class="bakRadio">
<li><input type="radio" name="isowners" id="isowner1" @(isRfd ? Model.PayRfd.isowner == 1 ? "checked" : "" : "checked") value="1" onclick="@(isRfd? "return(false);":"")" /><label for="isowner1">예</label></li>
<li><input type="radio" name="isowners" id="isowner0" @(isRfd ? Model.PayRfd.isowner == 0 ? "checked" : "" : "") value="0" onclick="@(isRfd? "return(false);":"")" /><label for="isowner0">아니오</label></li>
</ul>
</td>
</tr>
<tr class="pd5">
<th>담당자</th>
<td><input type="text" name="ruser" id="ruser" value="@(isRfd? Model.PayRfd.ruser : "")" @(isRfd ? "readonly" : "") /></td>
</tr>
<tr class="pd5">
<th>담당자연락처</th>
<td><input type="text" name="rphone" id="rphone" value="@(isRfd? Model.PayRfd.rphone : "")" @(isRfd ? "readonly" : "") /></td>
</tr>
<tr>
<th>환불요청사유</th>
<td>
<ul class="bakRadio">
<li><input type="radio" name="rreason" id="rreason1" @(isRfd ? Model.PayRfd.rreason == 0 ? "checked" : "" : "checked") value="0" onclick="@(isRfd? "return(false);":"")" /><label for="rreason1">교육취소</label></li>
<li><input type="radio" name="rreason" id="rreason2" @(isRfd ? Model.PayRfd.rreason == 1 ? "checked" : "" : "") value="1" onclick="@(isRfd? "return(false);":"")" /><label for="rreason2">과정변경</label></li>
<li><input type="radio" name="rreason" id="rreason3" @(isRfd ? Model.PayRfd.rreason == 2 ? "checked" : "" : "") value="2" onclick="@(isRfd? "return(false);":"")" /><label for="rreason3">과입금</label></li>
<li><input type="radio" name="rreason" id="rreason4" @(isRfd ? Model.PayRfd.rreason == 9 ? "checked" : "" : "") value="9" onclick="@(isRfd? "return(false);":"")" /><label for="rreason4">기타</label></li>
</ul>
</td>
</tr>
<tr class="pd5">
<th>메모</th>
<td>
<textarea name="rtext" id="rtext" rows="4" style="border:1px solid #cbcbcb; width:100%; @(isRfd?"background-color:#f5f5f5; color:#999": "")" @(isRfd ? "readonly" : "")>@(isRfd? Model.PayRfd.rtext : "")</textarea>
</td>
</tr>
</table>
@if (Model.intval3 > 0)
{
if (Model.PayRfd.fgnob == null || Model.PayRfd.fgnor == null)
{
<p class="odrpDesc" style="color:red">
※ 내용 변경을 원하실 경우 신청을 취소하고 다시 환불요청해주셔야 합니다.
</p>
<h4 class="bskTitle">첨부서류</h4>
<table class="odrTable th150">
<tr class="pd5">
<th>환불신청서</th>
<td><input type="file" name="file2" id="file2" value="" /></td>
</tr>
<tr class="pd5">
<th>통장사본</th>
<td><input type="file" name="file3" id="file3" value="" /></td>
</tr>
</table>
}
else if (Model.PayRfd.fgnob != null && Model.PayRfd.fgnor != null)
{
<h4 class="bskTitle">첨부서류</h4>
<table class="odrTable th150">
<tr class="pd5">
<th>환불신청서</th>
<td><a class="file" href="/focommon/downfile?fno=@(@Model.FileList.Where(x => x.fgno == Model.PayRfd.fgnor).FirstOrDefault().fileno)">@(@Model.FileList.Where(x => x.fgno == Model.PayRfd.fgnor).FirstOrDefault().orgname)</a></td>
</tr>
<tr class="pd5">
<th>통장사본</th>
<td><a class="file" href="/focommon/downfile?fno=@(@Model.FileList.Where(x => x.fgno == Model.PayRfd.fgnob).FirstOrDefault().fileno)">@(@Model.FileList.Where(x => x.fgno == Model.PayRfd.fgnob).FirstOrDefault().orgname)</a></td>
</tr>
</table>
<h4 class="bskTitle">검토결과</h4>
<table class="odrTable th150">
<tr class="pd5">
<th>검토상태</th>
<td>@Model.PayRfd.rstatusname</td>
</tr>
@if (Model.PayRfd.rstatus == 1)
{
<tr class="pd5">
<th>검토의견</th>
<td>
<label>@Model.PayRfd.rback</label>
</td>
</tr>
}
</table>
}
}
@if (Model.intval3 >= 0)
{
if (Model.PayRfd != null)
{
if (Model.PayRfd.fgnob == null || Model.PayRfd.fgnor == null)
{
<p class="odrpDesc" style="color:red">
※ 위 신청서를 작성한 이후, 신청서를 날인/스캔하여 통장사본과 같이 업로드를 해주셔야 합니다.
</p>
<h4 class="bskTitle">환불규정</h4>
<div>환불가능 조건 교육 신청일로부터 9일까지 & 전체학습진도율이 10% 미만인 경우</div>
<div>환불이 불가한 경우 전체학습진도율이 10%이상인 경우 or 교육이수기간 종료되어 미수료된 경우 or 교육 신청일로부터 10일 이후</div>
<br />
<ul class="odrChk"><li><input type="checkbox" id="chkrefund" /><label for="chkrefund">영남건설기술교육원 환불규정에 동의하고 수강취소 및 환불을 요청합니다.</label></li></ul>
}
}
else if (Model.PayRfd == null)
{
<p class="odrpDesc" style="color:red">
※ 위 신청서를 작성한 이후, 신청서를 날인/스캔하여 통장사본과 같이 업로드를 해주셔야 합니다.<br />
※ 담당자는 회사에 교육비 관련하여 담당하시는 분을 말하며 담당자가 없는 경우 교육생 정보를 입력해 주셔도 됩니다
</p>
<h4 class="bskTitle">환불규정</h4>
<div>환불가능 조건 교육 신청일로부터 9일까지 & 전체학습진도율이 10% 미만인 경우</div>
<div>환불이 불가한 경우 전체학습진도율이 10%이상인 경우 or 교육이수기간 종료되어 미수료된 경우 or 교육 신청일로부터 10일 이후</div>
<br />
<ul class="odrChk"><li><input type="checkbox" id="chkrefund" /><label for="chkrefund">영남건설기술교육원 환불규정에 동의하고 수강취소 및 환불을 요청합니다.</label></li></ul>
}
}
@if (Model.intval3 > 0)
{
<ul class="odrPopBtn col2">
@if (Model.PayRfd.rstatus == 0 && (Model.PayRfd.fgnob == null || Model.PayRfd.fgnor == null))
{
<li><a href="#" class="bk" onclick="save3()">환불 최종요청</a></li>
<li><a href="#" class="bk" onclick="cancelRfd()">환불신청 취소</a></li>
}
@if (Model.PayRfd.rstatus == 1 && (Model.PayRfd.fgnob != null || Model.PayRfd.fgnor != null))
{
<li><a href="#" class="bk" onclick="cancelRfd()">환불신청 취소</a></li>
}
<li><a href="#" onclick="mpgPopClose()">닫기</a></li>
</ul>
}
else
{
<ul class="odrPopBtn col2">
<li><a href="#" class="bk" onclick="save2()">환불요청</a></li>
<li><a href="#" onclick="mpgPopClose()">닫기</a></li>
</ul>
}
</div>
<div id="divReject">
<h4 class="bskTitle">환불정보</h4>
<table class="odrTable th150">
<tr class="pd5" style="@(Model.Pay.ptype == 1 ? "display:none;" : "")">
<th>환불은행</th>
<td><input type="text" name="banknameR" id="banknameR" maxlength="30" value="" /></td>
</tr>
<tr class="pd5" style="@(Model.Pay.ptype == 1 ? "display:none;" : "")">
<th>예금주</th>
<td><input type="text" name="bankownerR" id="bankownerR" maxlength="30" value="" ) /></td>
</tr>
<tr class="pd5" style="@(Model.Pay.ptype == 1 ? "display:none;" : "")">
<th>환불계좌</th>
<td><input type="text" name="banknoR" id="banknoR" maxlength="30" value="" /></td>
</tr>
<tr style="@(Model.Pay.ptype == 1 ? "display:none;" : "")">
<th>개인계좌여부</th>
<td>
<input type="hidden" name="isownerR" id="isownerR" />
<ul class="bakRadio">
<li><input type="radio" name="isownersR" id="isowner1R" value="1" checked /><label for="isowner1">예</label></li>
<li><input type="radio" name="isownersR" id="isowner0R" value="0" /><label for="isowner0">아니오</label></li>
</ul>
</td>
</tr>
<tr class="pd5">
<th>담당자</th>
<td><input type="text" name="ruser" id="ruserR" value="" /></td>
</tr>
<tr class="pd5">
<th>담당자연락처</th>
<td><input type="text" name="rphone" id="rphoneR" value="" /></td>
</tr>
<tr>
<th>환불요청사유</th>
<td>
<ul class="bakRadio">
<li><input type="radio" name="rreasonR" id="rreason1R" checked value="0" /><label for="rreason1">교육취소</label></li>
<li><input type="radio" name="rreasonR" id="rreason2R" value="1" /><label for="rreason2">과정변경</label></li>
<li><input type="radio" name="rreasonR" id="rreason3R" value="2" /><label for="rreason3">과입금</label></li>
<li><input type="radio" name="rreasonR" id="rreason4R" value="9" /><label for="rreason4">기타</label></li>
</ul>
</td>
</tr>
<tr class="pd5">
<th>메모</th>
<td>
<textarea name="rtextR" id="rtextR" rows="4" style="border:1px solid #cbcbcb; width:100%;"></textarea>
</td>
</tr>
</table>
<p class="odrpDesc" style="color:red">
※ 위 신청서를 작성한 이후, 신청서를 날인/스캔하여 통장사본과 같이 업로드를 해주셔야 합니다.
</p>
<h4 class="bskTitle">환불규정</h4>
<div>환불가능 조건 교육 신청일로부터 9일까지 & 전체학습진도율이 10% 미만인 경우</div>
<div>환불이 불가한 경우 전체학습진도율이 10%이상인 경우 or 교육이수기간 종료되어 미수료된 경우 or 교육 신청일로부터 10일 이후</div>
<br />
<ul class="odrChk"><li><input type="checkbox" id="chkrefundR" /><label for="chkrefundR">영남건설기술교육원 환불규정에 동의하고 수강취소 및 환불을 요청합니다.</label></li></ul>
<ul class="odrPopBtn col2">
<li><a href="#" class="bk" onclick="saveReject()">환불요청</a></li>
<li><a href="#" onclick="mpgPopClose()">닫기</a></li>
</ul>
</div>
</form>
</div><!-- clsPopCont -->
</div>
</div><!-- clsPopWrap -->
</div>
</div>
</div>
@section scriptsHeader{
@Html.Partial("./Partial/filescript")
}
@section scripts{
<script>
$(document).ready(function () {
});
function viewdvr(isdvr, dvrcode) {
if (isdvr == 1 && dvrcode != '') {
window.open("https://www.ilogen.com/web/personal/trace/" + dvrcode);
}
else if (isdvr == 0 && dvrcode == '') {
msg("수령위치: 경북 영천시 고경면 호국로 791 영남건설기술교육원");
}
}
function viewtax() {
@*window.open("https://iniweb.inicis.com/DefaultWebApp/mall/cr/cm/mCmReceipt_head.jsp?noTid=@(Model.Pay.pgkey)&noMethod=1", "pgreceipt", "width=500, height=600, scrollbars=yes, resizable=yes, status=no, location=no, left=0, top=0");*@
showReceiptByTID('@(Model.Pay.mid)', '@(Model.Pay.pgkey)', '@(Model.Pay.authdata)');
}
function calltax() {
if ('@(Model.Pay.rstatus < 2 && Model.Pay.pstatus == 1 || Model.Pay.pstatus == 22?1:0)' == '1') {
capp("/fcommon/paytaxget", { payno: @Model.Pay.payno}, "cbpaytaxget");
} else {
msg("결제완료내역만 계산서요청하실 수 있습니다.");
}
}
function cbpaytaxget() {
var h = capResult.obj.h;
var d = capResult.obj.d;
if (h != null && d.length > 0) {
setv("asname", h.asname);
setv("ceoname", h.ceoname);
setv("brno", h.brno);
setv("grno", h.grno);
setv("btype", h.btype);
setv("bkind", h.bkind);
setv("manname", h.manname);
setv("telno", h.telno);
setv("email", h.email);
$('html, body').addClass('lock');
$("#pop1").fadeIn("fast", function () {
$(".pop1box").scrollTop(0);
});
} else {
msg("이미 계산서를 접수중이거나 환불된 결제건입니다.");
}
}
function save() {
if (check("asname", null, "회사명을 입력해주세요.")) { }
else if (check("ceoname", null, "대표자명을 입력해주세요.")) { }
else if (check("brno", null, "사업자등록번호를 입력해주세요.")) { }
else if (check("grno", null, "법인등록번호를 입력해주세요.")) { }
else if (check("btype", null, "업태를 입력해주세요.")) { }
else if (check("bkind", null, "종목을 입력해주세요.")) { }
else if (check("manname", null, "담당자를 입력해주세요.")) { }
else if (check("telno", null, "연락처를 입력해주세요.")) { }
else if (check("email", null, "이메일주소를 입력해주세요.")) { }
else if (!isemail(val("email"))) { msg("이메일 형식이 올바르지 않습니다. 다시 입력해주세요."); }
else {
setv("isreceipt", $("#isreceipt1").prop("checked") ? 1 : 0);
confirmtoggle(true, "계산서발행요청 이후, 수정 및 철회는 고객문의 게시판을 이용해주십시오. 계산서 발행 요청을 완료하시겠습니까?", "gogo()");
}
}
function gogo() {
capfileform('/fcommon/paytaxsave','mform', 'cbgogo');
}
function cbgogo() {
if (capResult.code == 1000) {
msg("접수되었습니다.");
setTimeout(function () {
$("#mform").attr("action", "/My/Paies").submit()
}, 1000);
} else if(capResult.code == -1) {
msg("이미 신청된 계산서가 존재합니다.");
}
}
function refund(rejectStatus) {
if (rejectStatus == "reject") {
$("#divCurrent").hide();
$("#divReject").show();
}
else {
$("#divReject").hide();
$("#divCurrent").show();
}
$('html, body').addClass('lock');
$("#pop2").fadeIn("fast", function () {
$(".pop1box").scrollTop(0);
});
@*if ('@(Model.Pay.rstatus < 2 && Model.Pay.pstatus == 1?1:0)' == '1') {
capp("/fcommon/payrefundget", { payno: @Model.Pay.payno}, "cbpayrefundget");
} else {
msg("결제완료내역만 계산서요청하실 수 있습니다.");
}*@
}
//function cbpayrefundget() {
// var h = capResult.obj.h;
// var d = capResult.obj.d;
// if (h != null && h.pstatus == 1 && d.length > 0) {
// $('html, body').addClass('lock');
// $("#pop2").fadeIn("fast", function () {
// $(".pop1box").scrollTop(0);
// });
// } else {
// msg("이미 전액환불된 결제내역입니다. 운영자에게 문의해주세요.");
// }
//}
function save2() {
if ('@(Model.Pay.ptype)' != '1' && check("bankname", null, "환불은행명을 입력해주세요.")) { }
else if ('@(Model.Pay.ptype)' != '1' && check("bankowner", null, "예금주를 입력해주세요.")) { }
else if ('@(Model.Pay.ptype)' != '1' && check("bankno", null, "환불계좌번호를 입력해주세요.")) { }
else if ('@(Model.Pay.ptype)' != '1' && $("input[name='isowners']:checked").length < 1) { msg("개인계좌여부를 선택해주세요."); }
else if (check("ruser", null, "담당자를 입력해주세요.")) { }
else if (check("rphone", null, "담당자연락처를 입력해주세요.")) { }
else if (check("rtext", null, "메모를 입력해주세요.")) { }
else if ($("#chkrefund:checked").length < 1) { msg("환불규정에 동의 후 요청해주세요."); }
else {
setv("isowner", $("#isowner1").prop("checked") ? 1 : 0);
confirmtoggle(true, "환불요청하시겠습니까?", "gogo2()");
}
}
function gogo2() {
capfileform('/fcommon/payrfdsave', 'mform2', 'cbgogo2');
}
function cbgogo2() {
if (capResult.code == 1000) {
msg("환불 1차접수가 완료되었습니다.<br />신청서출력후 서명/스캔하여 통장사본과 같이 업로드 해주셔야 최종 환불접수가 완료됩니다.<br />감사합니다.", null, null, null, "mpgPopClose();refresh();");
} else {
msg("환불신청이 불가한 결제상품입니다. 운영자에게 문의해주세요.");
}
}
function cancelpay() {
confirmtoggle(true, "수강신청을 취소하시겠습니까?", "gocancel()");
}
function gocancel() {
capp("/fcommon/paycancel", { payno: @Model.Pay.payno}, "cbgogo");
}
function save3() {
if ($("#chkrefund:checked").length < 1) { msg("환불규정에 동의 후 요청해주세요."); }
else if ($("#file2").val() == "") { msg("환불신청서를 등록해주세요."); }
else if ($("#ptype").val() != 1 && $("#file3").val() == "") { msg("통장사본을 등록해주세요."); }
else {
confirmtoggle(true, "환불요청하시겠습니까?", "gogo3()");
}
}
function gogo3() {
capfileform('/fcommon/PayRfdSaveFinal', 'mform2', 'cbgogo3');
}
function cbgogo3() {
if (capResult.code == 1000) {
msg("환불요청이 성공적으로 접수되었습니다.@*<br />내부 담당자가 검토 후 연락드릴 예정입니다.*@", null, null, null, "mpgPopClose();refresh();");
} else {
msg("환불신청이 불가한 결제상품입니다. 운영자에게 문의해주세요.");
}
}
function cancelRfd() {
confirmtoggle(true, "환불신청을 취소하시겠습니까?", "gogoSelfCancel()");
}
function gogoSelfCancel() {
capp("/fcommon/PayRfdSelfCancel", { payno: @Model.Pay.payno, rfdno : $("#rfdno").val()}, "cbgogoSelfCancel");
}
function cbgogoSelfCancel() {
if (capResult.code == 1000) {
msg("환불신청이 취소되었습니다.");
setTimeout(function () {
$("#mform").attr("action", "/My/Paies").submit()
}, 1000);
} else if (capResult.code == -1) {
msg("개발자에게 문의하십시오.");
}
}
function saveReject() {
if ('@(Model.Pay.ptype)' != '1' && check("banknameR", null, "환불은행명을 입력해주세요.")) { }
else if ('@(Model.Pay.ptype)' != '1' && check("bankownerR", null, "예금주를 입력해주세요.")) { }
else if ('@(Model.Pay.ptype)' != '1' && check("banknoR", null, "환불계좌번호를 입력해주세요.")) { }
else if ('@(Model.Pay.ptype)' != '1' && $("input[name='isownersR']:checked").length < 1) { msg("개인계좌여부를 선택해주세요."); }
else if (check("ruserR", null, "담당자를 입력해주세요.")) { }
else if (check("rphoneR", null, "담당자연락처를 입력해주세요.")) { }
else if (check("rtextR", null, "메모를 입력해주세요.")) { }
else if ($("#chkrefundR:checked").length < 1) { msg("환불규정에 동의 후 요청해주세요."); }
else {
setv("isownerR", $("#isowner1R").prop("checked") ? 1 : 0);
confirmtoggle(true, "환불요청하시겠습니까?", "confirmReject()");
}
}
function confirmReject() {
$.when(
$("#bankname").val($("#banknameR").val()),
$("#bankowner").val($("#bankownerR").val()),
$("#bankno").val($("#banknoR").val()),
$("#isowner").val($("#isownerR").val()),
$("#ruser").val($("#ruserR").val()),
$("#rphone").val($("#rphoneR").val()),
$("#rreason").val($("#rreasonR").val()),
$("#rtext").val($("#rtextR").val()),
$("#chkrefund").val($("#chkrefundR").val()),
).done(function () {
gogo2();
});
}
function rfdrequest(lectno) {
var pop = window.open('@ViewBag.reporturl/rfdrequest.aspx?lectno='+lectno, "rfdrequest", "width=" + (screen.availWidth) + ", height=" + (screen.availHeight) + ", scrollbars=yes, resizable=yes, status=no, location=no, left=0, top=0");
if (pop == null) {
msg("팝업이 차단되어 있습니다. 차단을 해제해 주세요.");
}
}
</script>
@if (ViewBag.isPayTest == "1")
{
//테스트일 경우
<script language="JavaScript" src="https://pgweb.tosspayments.com:7086/WEB_SERVER/js/receipt_link.js"></script>
}
else
{
//서비스일 경우
<script language="JavaScript" src="https://pgweb.tosspayments.com/WEB_SERVER/js/receipt_link.js"></script>
}
}