This commit is contained in:
hyunho 2020-11-18 07:02:59 +00:00
parent e60c707fb1
commit 598ab25fa0
3 changed files with 298 additions and 176 deletions

View File

@ -659,7 +659,7 @@
<dynamic prepend="where"> <dynamic prepend="where">
<isNotNull property="payno" prepend="and">a.payno=#payno#</isNotNull> <isNotNull property="payno" prepend="and">a.payno=#payno#</isNotNull>
<isNotNull property="rstatus" prepend="and">a.rstatus=#rstatus#</isNotNull> <isNotNull property="rstatus" prepend="and">a.rstatus=#rstatus#</isNotNull>
<isNotNull property="withoutrstatus" prepend="and">a.rstatus&lt;&gt;#withoutrstatus#</isNotNull> <isNotNull property="withoutrstatus" prepend="and">a.rstatus not in($withoutrstatus$)</isNotNull>
</dynamic> </dynamic>
</select> </select>
<select id="pay.mypayrfdinfo" parameterClass="long" resultClass="payrfd"> <select id="pay.mypayrfdinfo" parameterClass="long" resultClass="payrfd">
@ -671,7 +671,7 @@
from payrfd a from payrfd a
<dynamic prepend="where"> <dynamic prepend="where">
<isNotNull property="payno" prepend="and">a.payno=#payno#</isNotNull> <isNotNull property="payno" prepend="and">a.payno=#payno#</isNotNull>
<isNotNull property="rstatus" prepend="and">a.rstatus&lt;&gt;#rstatus#</isNotNull> <isNotNull property="withoutrstatus" prepend="and">a.rstatus not in($withoutrstatus$)</isNotNull>
</dynamic> </dynamic>
order by a.cdt desc order by a.cdt desc
</select> </select>
@ -762,6 +762,8 @@
order by d.rfdno,b.rstatus,ispast,b.pino order by d.rfdno,b.rstatus,ispast,b.pino
</select> </select>
<insert id="pay.payrfd.in" parameterClass="payrfd"> <insert id="pay.payrfd.in" parameterClass="payrfd">
delete from payrfditem where rfdno=#rfdno#;
delete from payrfd where payno=#payno# and rfdno=#rfdno#;
insert into payrfd(payno,rtext,bankname,bankno,bankowner,isowner,rstatus,ruser,rphone,rreason,fgnor,fgnob,<include refid="sql.inc"></include>) insert into payrfd(payno,rtext,bankname,bankno,bankowner,isowner,rstatus,ruser,rphone,rreason,fgnor,fgnob,<include refid="sql.inc"></include>)
select distinct #payno#,#rtext#,#bankname# select distinct #payno#,#rtext#,#bankname#
,HEX(AES_ENCRYPT(#bankno#, <include refid="sql.digest"></include>)) ,HEX(AES_ENCRYPT(#bankno#, <include refid="sql.digest"></include>))
@ -796,6 +798,7 @@
set rstatus=#rstatus#,udt=now(),uno=#uno#,uip=#uip# set rstatus=#rstatus#,udt=now(),uno=#uno#,uip=#uip#
where rfdno=#rfdno# and payno=#payno# where rfdno=#rfdno# and payno=#payno#
</update> </update>
<update id="pay.unpay" parameterClass="hashtable"> <update id="pay.unpay" parameterClass="hashtable">
update examuser a update examuser a
inner join pay b on b.payno=a.payno and b.pstatus=22 and b.ptype=3 and b.ispg=1 <!--and b.paylimit &lt; now()--> and b.isunpay is null and b.userno=a.userno inner join pay b on b.payno=a.payno and b.pstatus=22 and b.ptype=3 and b.ispg=1 <!--and b.paylimit &lt; now()--> and b.isunpay is null and b.userno=a.userno

View File

@ -244,11 +244,11 @@ namespace NP.FO.Controllers
} }
vm.PayItems = Dao.Get<PayItem>("pay.mypayitem", new System.Collections.Hashtable() { { "userno", SUserInfo.UserNo }, { "payno", vm.payno } }); vm.PayItems = Dao.Get<PayItem>("pay.mypayitem", new System.Collections.Hashtable() { { "userno", SUserInfo.UserNo }, { "payno", vm.payno } });
vm.PayItem = Dao.Get<PayItem>("pay.mypayitem", new System.Collections.Hashtable() { { "userno", SUserInfo.UserNo }, { "payno", vm.payno } }).FirstOrDefault(); vm.PayItem = Dao.Get<PayItem>("pay.mypayitem", new System.Collections.Hashtable() { { "userno", SUserInfo.UserNo }, { "payno", vm.payno } }).FirstOrDefault();
vm.intval3 = Dao.Get<PayRfd>("pay.mypayrfd", new System.Collections.Hashtable() { { "payno", vm.Pay.payno }/*,{ "rstatus", 0}*/, { "withoutrstatus" , 4} }).Count(); vm.intval3 = Dao.Get<PayRfd>("pay.mypayrfd", new System.Collections.Hashtable() { { "payno", vm.Pay.payno }/*,{ "rstatus", 0}*/, { "withoutrstatus" , "4" } }).Count();
vm.PayRfd = null; vm.PayRfd = null;
if (vm.intval3 > 0) if (vm.intval3 > 0)
{ {
vm.PayRfd = Dao.Get<PayRfd>("pay.mypayrfdinfo", new System.Collections.Hashtable() {{ "payno", vm.payno }, { "rstatus", 4 } }).FirstOrDefault(); vm.PayRfd = Dao.Get<PayRfd>("pay.mypayrfdinfo", new System.Collections.Hashtable() {{ "payno", vm.payno }, { "withoutrstatus", "4" } }).FirstOrDefault();
if (vm.PayRfd != null) if (vm.PayRfd != null)
{ {
vm.FileList = new List<File>() { }; vm.FileList = new List<File>() { };

View File

@ -1,8 +1,12 @@
@model NP.Model.VMPay @model NP.Model.VMPay
@{ @{
bool isRfd = Model.intval3 > 0 ? true : false; bool isRfd = (Model.intval3 > 0) ? true : false;
} }
<style>
.bskTitle {
margin-top : 50px !important;
}
</style>
<h4 class="bskTitle">주문상품 정보</h4> <h4 class="bskTitle">주문상품 정보</h4>
<p class="odrNum">결제번호 : @(Model.Pay.payno < 1000000 ? Model.Pay.payno.ToString("000000") : Model.Pay.payno.ToString())</p> <p class="odrNum">결제번호 : @(Model.Pay.payno < 1000000 ? Model.Pay.payno.ToString("000000") : Model.Pay.payno.ToString())</p>
<table class="bskList"> <table class="bskList">
@ -35,13 +39,20 @@
} }
<tr> <tr>
<th>주문접수일</th> <th>주문접수일</th>
@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"))) @if (Model.Pay.paylimit != null && Model.PayItem.retime != null)
{ {
<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> 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 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> <td>@Model.Pay.cdt.ToString("yyyy-MM-dd HH:mm")</td>
} }
</tr> </tr>
<tr> <tr>
@ -85,36 +96,40 @@
</table> </table>
} }
<ul class="bskBtn col1"> <ul class="bskBtn col1">
<li><a href="/My/Paies" class="bk">결제현황 이동</a></li> <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) @if (Model.Pay.ispg != 1 && Model.Pay.rstatus == 0 && Model.Pay.pstatus == 1 && Model.Pay.ptype != 1)
{
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> 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="alert('계산서 요청 기한이 지나 신청이 불가능합니다.'); return;" class="bk">계산서요청</a></li>
}
} }
else @if (Model.Pay.pstatus == 1 && Model.Pay.rstatus != 2 && Model.PayItems.Where(w => w.rstatus == 0).Count() > 0)
{ {
<li><a href="#" onclick="alert('계산서 요청 기한이 지나 신청이 불가능합니다.'); return;" class="bk">계산서요청</a></li> 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>
@if (Model.Pay.pstatus == 1 && Model.Pay.rstatus != 2 && Model.PayItems.Where(w => w.rstatus == 0).Count() > 0) }
{ else if (Model.intval3 > 0 && Model.PayRfd != null && Model.PayRfd.rstatus == 1)
if (Model.intval3 > 0 && Model.PayRfd != null && (Model.PayRfd.rstatus == 0 || Model.PayRfd.rstatus == 2)) {
{ <li><a href="#" onclick="refund('reject')" class="bk">환불요청</a></li>
<li><a href="#" onclick="refund()" class="bk" style="display:none">환불요청</a></li> }
} else
else {
{ <li><a href="#" onclick="refund()" class="bk">환불요청</a></li>
<li><a href="#" onclick="refund()" class="bk">환불요청</a></li> }
}
} }
@if (Model.Pay.rstatus < 2 && Model.Pay.pstatus == 22) @if (Model.Pay.rstatus < 2 && Model.Pay.pstatus == 22)
{ {
<li><a href="#" onclick="cancelpay()" class="bk">결제취소</a></li> <li><a href="#" onclick="cancelpay()" class="bk">결제취소</a></li>
} }
</ul> </ul>
<div class="mpgPop mpgPopFull" style="display:none;" id="pop1"> <div class="mpgPop mpgPopFull" style="display:none;" id="pop1">
<div> <div>
@ -216,7 +231,7 @@
<a href="javascript:mpgPopClose();"></a> <a href="javascript:mpgPopClose();"></a>
</div> </div>
<div class="mpgPopScroll"> <div class="mpgPopScroll">
<div class="odrPop pop1box"> <div class="odrPop pop1box" id="refundRequest">
<h4 class="bskTitle">상품선택</h4> <h4 class="bskTitle">상품선택</h4>
<table class="odrTable th150"> <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.payamt.ToString("#,0"))원 (@(Model.Pay.payoktime == null ? "" : Model.Pay.payoktime.Value.ToString("yy-MM-dd HH:mm")))</td></tr>
@ -233,114 +248,126 @@
<input type="hidden" name="payno" id="payno" value="@Model.Pay.payno" /> <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="ptype" id="ptype" value="@Model.Pay.ptype" />
<input type="hidden" name="rfdno" id="rfdno" value="@(isRfd? Model.PayRfd.rfdno.ToString() : "")" /> <input type="hidden" name="rfdno" id="rfdno" value="@(isRfd? Model.PayRfd.rfdno.ToString() : "")" />
<h4 class="bskTitle">환불정보</h4> <div id="divCurrent">
<table class="odrTable th150"> <h4 class="bskTitle">환불정보</h4>
<tr class="pd5" style="@(Model.Pay.ptype == 1 ? "display:none;" : "")"> <table class="odrTable th150">
<th>환불은행</th> <tr class="pd5" style="@(Model.Pay.ptype == 1 ? "display:none;" : "")">
<td><input type="text" name="bankname" id="bankname" maxlength="30" value="@(isRfd? Model.PayRfd.bankname : "")" @(isRfd ? "readonly" : "") /></td> <th>환불은행</th>
</tr> <td><input type="text" name="bankname" id="bankname" maxlength="30" value="@(isRfd? Model.PayRfd.bankname : "")" @(isRfd ? "readonly" : "") /></td>
<tr class="pd5" style="@(Model.Pay.ptype == 1 ? "display:none;" : "")"> </tr>
<th>예금주</th> <tr class="pd5" style="@(Model.Pay.ptype == 1 ? "display:none;" : "")">
<td><input type="text" name="bankowner" id="bankowner" maxlength="30" value="@(isRfd? Model.PayRfd.bankowner : "")" @(isRfd ? "readonly" : "") /></td> <th>예금주</th>
</tr> <td><input type="text" name="bankowner" id="bankowner" maxlength="30" value="@(isRfd? Model.PayRfd.bankowner : "")" @(isRfd ? "readonly" : "") /></td>
<tr class="pd5" style="@(Model.Pay.ptype == 1 ? "display:none;" : "")"> </tr>
<th>환불계좌</th> <tr class="pd5" style="@(Model.Pay.ptype == 1 ? "display:none;" : "")">
<td><input type="text" name="bankno" id="bankno" maxlength="30" value="@(isRfd? Model.PayRfd.bankno : "")" @(isRfd ? "readonly" : "") /></td> <th>환불계좌</th>
</tr> <td><input type="text" name="bankno" id="bankno" maxlength="30" value="@(isRfd? Model.PayRfd.bankno : "")" @(isRfd ? "readonly" : "") /></td>
<tr style="@(Model.Pay.ptype == 1 ? "display:none;" : "")"> </tr>
<th>개인계좌여부</th> <tr style="@(Model.Pay.ptype == 1 ? "display:none;" : "")">
<td> <th>개인계좌여부</th>
<input type="hidden" name="isowner" id="isowner" /> <td>
<ul class="bakRadio"> <input type="hidden" name="isowner" id="isowner" />
<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> <ul class="bakRadio">
<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> <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>
</ul> <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>
</td> </ul>
</tr> </td>
<tr class="pd5"> </tr>
<th>담당자</th> <tr class="pd5">
<td><input type="text" name="ruser" id="ruser" value="@(isRfd? Model.PayRfd.ruser : "")" @(isRfd ? "readonly" : "") /></td> <th>담당자</th>
</tr> <td><input type="text" name="ruser" id="ruser" value="@(isRfd? Model.PayRfd.ruser : "")" @(isRfd ? "readonly" : "") /></td>
<tr class="pd5"> </tr>
<th>담당자연락처</th> <tr class="pd5">
<td><input type="text" name="rphone" id="rphone" value="@(isRfd? Model.PayRfd.rphone : "")" @(isRfd ? "readonly" : "") /></td> <th>담당자연락처</th>
</tr> <td><input type="text" name="rphone" id="rphone" value="@(isRfd? Model.PayRfd.rphone : "")" @(isRfd ? "readonly" : "") /></td>
<tr> </tr>
<th>환불요청사유</th> <tr>
<td> <th>환불요청사유</th>
<ul class="bakRadio"> <td>
<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> <ul class="bakRadio">
<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="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="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="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="rreason4" @(isRfd ? Model.PayRfd.rreason == 9 ? "checked" : "" : "") value="9" onclick="@(isRfd? "return(false);":"")" /><label for="rreason4">기타</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>
</ul> <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>
</td> </ul>
</tr> </td>
<tr class="pd5"> </tr>
<th>메모</th> <tr class="pd5">
<td> <th>메모</th>
<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>
</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>
</tr> </td>
</tr>
</table> </table>
@if (Model.intval3 > 0) @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) 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>평생교육법 제28조 제4항에 따른 학습비의 반환사유가 발생할 때에는 평생교육시행령 23조의 별표 3의 반환기준에 따라 학습 비 등을 반환사유가 발생한 날부터 5일 이내에 반환하여야 한다.</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"> <p class="odrpDesc" style="color:red">
※ 위 신청서를 작성한 이후, 신청서를 날인/스캔하여 통장사본과 같이 업로드를 해주셔야 합니다. ※ 위 신청서를 작성한 이후, 신청서를 날인/스캔하여 통장사본과 같이 업로드를 해주셔야 합니다.
@ -350,45 +377,100 @@
<br /> <br />
<ul class="odrChk"><li><input type="checkbox" id="chkrefund" /><label for="chkrefund">영남건설기술교육원 환불규정에 동의하고 수강취소 및 환불을 요청합니다.</label></li></ul> <ul class="odrChk"><li><input type="checkbox" id="chkrefund" /><label for="chkrefund">영남건설기술교육원 환불규정에 동의하고 수강취소 및 환불을 요청합니다.</label></li></ul>
} }
} }
else if (Model.PayRfd == null) @if (Model.intval3 > 0)
{ {
<p class="odrpDesc" style="color:red"> <ul class="odrPopBtn col2">
※ 위 신청서를 작성한 이후, 신청서를 날인/스캔하여 통장사본과 같이 업로드를 해주셔야 합니다. @if (Model.PayRfd.rstatus == 0 && (Model.PayRfd.fgnob == null || Model.PayRfd.fgnor == null))
</p> {
<h4 class="bskTitle">환불규정</h4> <li><a href="#" class="bk" onclick="save3()">환불 최종요청</a></li>
<div>평생교육법 제28조 제4항에 따른 학습비의 반환사유가 발생할 때에는 평생교육시행령 23조의 별표 3의 반환기준에 따라 학습 비 등을 반환사유가 발생한 날부터 5일 이내에 반환하여야 한다.</div> <li><a href="#" class="bk" onclick="cancelRfd()">환불신청 취소</a></li>
<br /> }
<ul class="odrChk"><li><input type="checkbox" id="chkrefund" /><label for="chkrefund">영남건설기술교육원 환불규정에 동의하고 수강취소 및 환불을 요청합니다.</label></li></ul> @if (Model.PayRfd.rstatus == 0 && (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>평생교육법 제28조 제4항에 따른 학습비의 반환사유가 발생할 때에는 평생교육시행령 23조의 별표 3의 반환기준에 따라 학습 비 등을 반환사유가 발생한 날부터 5일 이내에 반환하여야 한다.</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> </form>
@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 == 0 && (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><!-- clsPopCont --> </div><!-- clsPopCont -->
</div> </div>
</div><!-- clsPopWrap --> </div><!-- clsPopWrap -->
</div> </div>
@ -399,7 +481,7 @@
@Html.Partial("./Partial/filescript") @Html.Partial("./Partial/filescript")
} }
@section scripts{ @section scripts{
<script> <script>
$(document).ready(function () { $(document).ready(function () {
}); });
@ -472,12 +554,20 @@
msg("이미 신청된 계산서가 존재합니다."); msg("이미 신청된 계산서가 존재합니다.");
} }
} }
function refund() { function refund(rejectStatus) {
if (rejectStatus == "reject") {
$("#divCurrent").hide();
$("#divReject").show();
}
else {
$("#divReject").hide();
$("#divCurrent").show();
}
$('html, body').addClass('lock'); $('html, body').addClass('lock');
$("#pop2").fadeIn("fast", function () { $("#pop2").fadeIn("fast", function () {
$(".pop1box").scrollTop(0); $(".pop1box").scrollTop(0);
}); });
@*if ('@(Model.Pay.rstatus < 2 && Model.Pay.pstatus == 1?1:0)' == '1') { @*if ('@(Model.Pay.rstatus < 2 && Model.Pay.pstatus == 1?1:0)' == '1') {
capp("/fcommon/payrefundget", { payno: @Model.Pay.payno}, "cbpayrefundget"); capp("/fcommon/payrefundget", { payno: @Model.Pay.payno}, "cbpayrefundget");
} else { } else {
@ -560,5 +650,34 @@
msg("개발자에게 문의하십시오."); msg("개발자에게 문의하십시오.");
} }
} }
</script> 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();
});
}
</script>
} }