YNICTE/FO/Views/My/PayInfo.cshtml

720 lines
44 KiB
Plaintext
Raw Normal View History

2020-10-12 14:39:23 +09:00
@model NP.Model.VMPay
@{
2020-11-18 16:02:59 +09:00
bool isRfd = (Model.intval3 > 0) ? true : false;
2020-10-12 14:39:23 +09:00
}
2020-11-18 16:02:59 +09:00
<style>
.bskTitle {
2020-12-08 10:18:12 +09:00
margin-top: 50px !important;
2020-11-18 16:02:59 +09:00
}
</style>
2020-10-12 14:39:23 +09:00
<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>
2020-11-17 10:58:00 +09:00
<tr>
<td>
<h5>
<span class="blu">강좌</span>
<span class="ppl">@Model.PayItem.cshapename</span>
@Html.Raw(Model.PayItem.isrebate == 1 ? "<span class=\"grn\">환급</span>" : "")
2020-11-17 17:36:55 +09:00
<b style="color:@(Model.PayItem.pstatus == 22 ? "red" : "")">@Model.PayItem.itemname</b>
2020-11-17 10:58:00 +09:00
</h5>
@if (Model.PayItem.sdate != null && Model.PayItem.edate != null)
{
2020-11-17 10:58:00 +09:00
<dl>
2021-08-23 15:10:15 +09:00
<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>
2020-11-17 10:58:00 +09:00
</dl>
}
else
{
<dl>
2021-08-23 15:10:15 +09:00
<dd>교육기간 : <span class="red">@(Model.PayItem.studydays)일</span></dd>
</dl>
}
2020-11-17 10:58:00 +09:00
<dl>
<dd>가격 : <span class="red">@Model.PayItem.payamt.ToString("#,0")</span>원</dd>
</dl>
</td>
</tr>
2020-10-12 14:39:23 +09:00
</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)
{
2020-12-11 15:33:48 +09:00
<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>
2020-10-12 14:39:23 +09:00
}
2020-12-08 10:18:12 +09:00
<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")))
2020-11-18 13:33:37 +09:00
{
2020-12-08 10:18:12 +09:00
<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>
2020-11-18 13:33:37 +09:00
}
else
{
2020-12-08 10:18:12 +09:00
<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>
2020-11-18 13:33:37 +09:00
}
2020-12-08 10:18:12 +09:00
}
else
{
<td>@Model.Pay.cdt.ToString("yyyy-MM-dd HH:mm")</td>
}
</tr>
2020-10-12 14:39:23 +09:00
<tr>
<th>주문상태</th>
2020-11-16 18:02:46 +09:00
<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>
2020-10-12 14:39:23 +09:00
</tr>
2020-11-16 18:02:46 +09:00
2020-10-12 14:39:23 +09:00
</table>
2020-11-18 10:48:42 +09:00
@if (Model.intval3 > 0 && Model.PayRfd != null)
2020-11-16 18:02:46 +09:00
{
<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>
2020-11-17 17:36:55 +09:00
@if (Model.intval3 > 0)
2020-11-16 18:02:46 +09:00
{
2020-11-17 17:36:55 +09:00
if (Model.PayRfd.rstatus == 0 && (Model.PayRfd.fgnob == null || Model.PayRfd.fgnor == null))
{
2020-12-11 15:31:15 +09:00
<label>서류접수대기</label> <a href="#" style="color:blue" onclick="refund();">[서류등록/취소]</a> <a href="#" onclick="rfdrequest(@(Model.PayRfd.rfdno));" style="color:blue">[신청서출력]</a>
2020-11-17 17:36:55 +09:00
}
else if (Model.PayRfd.rstatus == 0 && (Model.PayRfd.fgnob != null && Model.PayRfd.fgnor != null))
{
2020-12-11 15:31:15 +09:00
<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>
2020-11-17 17:36:55 +09:00
}
2021-08-23 15:10:15 +09:00
else if (Model.PayRfd.rstatus == 1 && Model.PayRfd.fgnor != null && (Model.PayRfd.ptype != 3 || (Model.PayRfd.ptype==3 && Model.PayRfd.fgnob != null)))
2020-11-17 17:36:55 +09:00
{
2020-12-11 15:31:15 +09:00
<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>
2020-11-17 17:36:55 +09:00
}
2021-08-23 15:10:15 +09:00
else if (Model.PayRfd.rstatus == 2 && Model.PayRfd.fgnor != null && (Model.PayRfd.ptype != 3 || (Model.PayRfd.ptype == 3 && Model.PayRfd.fgnob != null)))
2020-11-17 17:36:55 +09:00
{
2020-12-11 15:31:15 +09:00
<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>
2020-11-17 17:36:55 +09:00
}
2020-11-16 18:02:46 +09:00
}
</td>
</tr>
</table>
}
2020-10-12 14:39:23 +09:00
2020-12-08 10:18:12 +09:00
<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")))
2020-11-16 18:02:46 +09:00
{
2020-12-08 10:18:12 +09:00
<li><a href="#" onclick="calltax()" class="bk">계산서요청</a></li>
2020-11-16 18:02:46 +09:00
}
2020-12-08 10:18:12 +09:00
else
2020-11-17 17:36:55 +09:00
{
2020-12-28 15:56:16 +09:00
<li><a href="#" onclick="msg('계산서 요청 기한이 지나 신청이 불가능합니다.'); return;" class="bk">계산서요청</a></li>
2020-12-08 10:18:12 +09:00
}
}
@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>
2020-11-17 17:36:55 +09:00
}
2020-12-08 10:18:12 +09:00
else if (Model.intval3 > 0 && Model.PayRfd != null && Model.PayRfd.rstatus == 1)
2020-11-17 17:36:55 +09:00
{
2020-12-08 10:18:12 +09:00
<li><a href="#" onclick="refund('reject')" class="bk">환불요청</a></li>
2020-11-17 17:36:55 +09:00
}
2020-12-08 10:18:12 +09:00
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>
2020-10-12 14:39:23 +09:00
<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">
<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>
2020-11-17 10:58:00 +09:00
<th>신청강좌</th>
2020-10-12 14:39:23 +09:00
<td>
2020-11-17 10:58:00 +09:00
@Model.PayItem.itemname
2020-10-12 14:39:23 +09:00
</td>
</tr>
<tr>
<th>발행요청금액</th>
2020-11-17 10:58:00 +09:00
<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>
2020-10-12 14:39:23 +09:00
</tr>
</table>
<form id="mform" method="post" enctype="multipart/form-data">
2020-11-17 10:58:00 +09:00
<input type="hidden" id="pinos" name="pinos" value="@Model.PayItem.pino" />
2020-10-12 14:39:23 +09:00
<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">
2020-11-18 16:02:59 +09:00
<div class="odrPop pop1box" id="refundRequest">
2020-10-12 14:39:23 +09:00
<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>
2020-11-17 10:58:00 +09:00
<tr>
<th>요청강좌</th>
<td>
@Model.PayItem.itemname
</td>
</tr>
2020-10-12 14:39:23 +09:00
</table>
<form id="mform2" method="post">
2020-12-11 15:33:48 +09:00
<input type="hidden" id="ramt" name="ramt" value="@Model.PayItem.payamt" />
2020-11-17 10:58:00 +09:00
<input type="hidden" id="pinos2" name="pinos" value="@Model.PayItem.pino" />
2020-11-16 18:02:46 +09:00
<input type="hidden" name="payno" id="payno" value="@Model.Pay.payno" />
2020-11-17 17:36:55 +09:00
<input type="hidden" name="ptype" id="ptype" value="@Model.Pay.ptype" />
2020-11-18 13:17:06 +09:00
<input type="hidden" name="rfdno" id="rfdno" value="@(isRfd? Model.PayRfd.rfdno.ToString() : "")" />
2020-11-18 16:02:59 +09:00
<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>
2020-11-16 18:02:46 +09:00
2020-11-18 16:02:59 +09:00
</table>
2020-11-16 18:02:46 +09:00
2020-11-18 16:02:59 +09:00
@if (Model.intval3 > 0)
2020-11-17 17:36:55 +09:00
{
2020-11-18 16:02:59 +09:00
if (Model.PayRfd.fgnob == null || Model.PayRfd.fgnor == null)
{
<p class="odrpDesc" style="color:red">
※ 내용 변경을 원하실 경우 신청을 취소하고 다시 환불요청해주셔야 합니다.
</p>
<h4 class="bskTitle">첨부서류</h4>
<table class="odrTable th150">
2020-11-18 12:55:06 +09:00
<tr class="pd5">
2020-11-18 16:02:59 +09:00
<th>환불신청서</th>
<td><input type="file" name="file2" id="file2" value="" /></td>
2020-11-18 12:55:06 +09:00
</tr>
2020-11-18 16:02:59 +09:00
<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>
}
2020-11-18 10:48:42 +09:00
2020-11-18 16:02:59 +09:00
</table>
}
2020-11-17 17:36:55 +09:00
}
2020-11-18 16:02:59 +09:00
@if (Model.intval3 >= 0)
2020-11-18 13:17:06 +09:00
{
2020-11-18 16:02:59 +09:00
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>
2020-11-18 16:02:59 +09:00
<br />
<ul class="odrChk"><li><input type="checkbox" id="chkrefund" /><label for="chkrefund">영남건설기술교육원 환불규정에 동의하고 수강취소 및 환불을 요청합니다.</label></li></ul>
}
}
else if (Model.PayRfd == null)
2020-11-18 13:17:06 +09:00
{
<p class="odrpDesc" style="color:red">
※ 위 신청서를 작성한 이후, 신청서를 날인/스캔하여 통장사본과 같이 업로드를 해주셔야 합니다.
</p>
<h4 class="bskTitle">환불규정</h4>
<div>환불가능 조건 교육 신청일로부터 9일까지 & 전체학습진도율이 10% 미만인 경우</div>
<div>환불이 불가한 경우 전체학습진도율이 10%이상인 경우 or 교육이수기간 종료되어 미수료된 경우 or 교육 신청일로부터 10일 이후</div>
2020-11-18 13:17:06 +09:00
<br />
<ul class="odrChk"><li><input type="checkbox" id="chkrefund" /><label for="chkrefund">영남건설기술교육원 환불규정에 동의하고 수강취소 및 환불을 요청합니다.</label></li></ul>
}
2020-11-18 16:02:59 +09:00
2020-11-18 13:17:06 +09:00
}
2020-11-18 16:02:59 +09:00
@if (Model.intval3 > 0)
2020-11-18 13:17:06 +09:00
{
2020-11-18 16:02:59 +09:00
<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>
}
2021-11-03 15:19:08 +09:00
@if (Model.PayRfd.rstatus == 1 && (Model.PayRfd.fgnob != null || Model.PayRfd.fgnor != null))
2020-11-18 16:02:59 +09:00
{
<li><a href="#" class="bk" onclick="cancelRfd()">환불신청 취소</a></li>
}
<li><a href="#" onclick="mpgPopClose()">닫기</a></li>
</ul>
2020-11-18 13:17:06 +09:00
}
2020-11-18 16:02:59 +09:00
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">
2020-12-08 10:18:12 +09:00
<li><input type="radio" name="isownersR" id="isowner1R" value="1" checked /><label for="isowner1">예</label></li>
2020-11-18 16:02:59 +09:00
<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>
2020-11-18 13:17:06 +09:00
2020-11-18 16:02:59 +09:00
</table>
2020-11-17 17:36:55 +09:00
2020-11-18 16:02:59 +09:00
<p class="odrpDesc" style="color:red">
※ 위 신청서를 작성한 이후, 신청서를 날인/스캔하여 통장사본과 같이 업로드를 해주셔야 합니다.
</p>
<h4 class="bskTitle">환불규정</h4>
<div>환불가능 조건 교육 신청일로부터 9일까지 & 전체학습진도율이 10% 미만인 경우</div>
<div>환불이 불가한 경우 전체학습진도율이 10%이상인 경우 or 교육이수기간 종료되어 미수료된 경우 or 교육 신청일로부터 10일 이후</div>
2020-11-18 16:02:59 +09:00
<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>
2020-11-16 18:02:46 +09:00
</form>
</div><!-- clsPopCont -->
2020-11-18 16:02:59 +09:00
2020-11-16 18:02:46 +09:00
</div>
</div><!-- clsPopWrap -->
</div>
</div>
</div>
2020-10-12 14:39:23 +09:00
2020-11-17 17:36:55 +09:00
@section scriptsHeader{
@Html.Partial("./Partial/filescript")
2020-10-12 14:39:23 +09:00
}
@section scripts{
2020-12-08 10:18:12 +09:00
<script>
2020-10-12 14:39:23 +09:00
$(document).ready(function () {
2020-11-17 17:36:55 +09:00
2020-10-12 14:39:23 +09:00
});
function viewdvr(isdvr, dvrcode) {
if (isdvr == 1 && dvrcode != '') {
window.open("https://www.ilogen.com/web/personal/trace/" + dvrcode);
}
else if (isdvr == 0 && dvrcode == '') {
2020-10-12 15:32:10 +09:00
msg("수령위치: 경북 영천시 고경면 호국로 791 영남건설기술교육원");
2020-10-12 14:39:23 +09:00
}
}
function viewtax() {
2020-12-08 10:18:12 +09:00
@*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)');
2020-10-12 14:39:23 +09:00
}
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() {
2020-11-17 10:58:00 +09:00
if (check("asname", null, "회사명을 입력해주세요.")) { }
2020-10-12 14:39:23 +09:00
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');
}
2020-11-17 17:36:55 +09:00
2020-10-12 14:39:23 +09:00
function cbgogo() {
if (capResult.code == 1000) {
msg("접수되었습니다.");
setTimeout(function () {
$("#mform").attr("action", "/My/Paies").submit()
}, 1000);
} else if(capResult.code == -1) {
msg("이미 신청된 계산서가 존재합니다.");
}
}
2020-11-18 16:02:59 +09:00
function refund(rejectStatus) {
if (rejectStatus == "reject") {
$("#divCurrent").hide();
$("#divReject").show();
}
else {
$("#divReject").hide();
$("#divCurrent").show();
}
2020-11-17 17:36:55 +09:00
$('html, body').addClass('lock');
$("#pop2").fadeIn("fast", function () {
$(".pop1box").scrollTop(0);
});
2020-11-18 16:02:59 +09:00
2020-11-17 17:36:55 +09:00
@*if ('@(Model.Pay.rstatus < 2 && Model.Pay.pstatus == 1?1:0)' == '1') {
2020-10-12 14:39:23 +09:00
capp("/fcommon/payrefundget", { payno: @Model.Pay.payno}, "cbpayrefundget");
} else {
msg("결제완료내역만 계산서요청하실 수 있습니다.");
2020-11-17 17:36:55 +09:00
}*@
2020-10-12 14:39:23 +09:00
}
2020-11-17 17:36:55 +09:00
//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("이미 전액환불된 결제내역입니다. 운영자에게 문의해주세요.");
// }
//}
2020-10-12 14:39:23 +09:00
function save2() {
2020-11-17 10:58:00 +09:00
if ('@(Model.Pay.ptype)' != '1' && check("bankname", null, "환불은행명을 입력해주세요.")) { }
2020-10-12 14:39:23 +09:00
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("개인계좌여부를 선택해주세요."); }
2020-11-16 18:02:46 +09:00
else if (check("ruser", null, "담당자를 입력해주세요.")) { }
else if (check("rphone", null, "담당자연락처를 입력해주세요.")) { }
else if (check("rtext", null, "메모를 입력해주세요.")) { }
2020-10-12 14:39:23 +09:00
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();");
2020-10-12 14:39:23 +09:00
} else {
msg("환불신청이 불가한 결제상품입니다. 운영자에게 문의해주세요.");
}
}
function cancelpay() {
confirmtoggle(true, "결제취소는 동일결제 건 모두 취소됩니다.<br />수강신청을 취소하시겠습니까?", "gocancel()");
}
function gocancel() {
capp("/fcommon/paycancel", { payno: @Model.Pay.payno}, "cbgogo");
}
2020-11-17 17:36:55 +09:00
function save3() {
if ($("#chkrefund:checked").length < 1) { msg("환불규정에 동의 후 요청해주세요."); }
else if ($("#file2").val() == "") { msg("환불신청서를 등록해주세요."); }
else if ($("#ptype").val() != 1 && $("#file3").val() == "") { msg("통장사본을 등록해주세요."); }
2020-11-17 17:36:55 +09:00
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() {
2020-11-18 13:17:06 +09:00
capp("/fcommon/PayRfdSelfCancel", { payno: @Model.Pay.payno, rfdno : $("#rfdno").val()}, "cbgogoSelfCancel");
2020-11-17 17:36:55 +09:00
}
function cbgogoSelfCancel() {
if (capResult.code == 1000) {
msg("환불신청이 취소되었습니다.");
setTimeout(function () {
$("#mform").attr("action", "/My/Paies").submit()
}, 1000);
} else if (capResult.code == -1) {
msg("개발자에게 문의하십시오.");
}
}
2020-11-18 16:02:59 +09:00
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();
});
}
2020-12-11 15:31:15 +09:00
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("팝업이 차단되어 있습니다. 차단을 해제해 주세요.");
}
}
2020-12-08 10:18:12 +09:00
</script>
@if (ViewBag.isPayTest == "1")
{
//테스트일 경우
<script language="JavaScript" src="https://pgweb.tosspayments.com:7086/WEB_SERVER/js/receipt_link.js"></script>
2020-12-08 10:18:12 +09:00
}
else
{
//서비스일 경우
<script language="JavaScript" src="https://pgweb.tosspayments.com/WEB_SERVER/js/receipt_link.js"></script>
}
2020-10-12 14:39:23 +09:00
}