This commit is contained in:
hyunho 2020-11-18 03:55:06 +00:00
parent b2ca78503b
commit 2dbdd0d5bf
2 changed files with 53 additions and 52 deletions

View File

@ -789,7 +789,7 @@
<update id="pay.payrfd.up" parameterClass="hashtable">
update payrfd
set fgnor=#fgnor#,fgnob=#fgnob#,udt=now(),uno=#uno#,uip=#uip#
where payno=#payno#
where rfdno=#rfdno# and payno=#payno#
</update>
<update id="pay.payrfdcancel.up" parameterClass="hashtable">
update payrfd

View File

@ -225,53 +225,54 @@
<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="@Model.PayRfd.rfdno" />
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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;": "")" @(isRfd? "readonly":"")>@(isRfd? Model.PayRfd.rtext : "")</textarea>
<textarea name="rtext" id="rtext" rows="4" style="border:1px solid #cbcbcb; width:100%; @(isRfd?"background-color:#f5f5f5;": "")" @(isRfd ? "readonly" : "")>@(isRfd? Model.PayRfd.rtext : "")</textarea>
</td>
</tr>
@ -281,51 +282,51 @@
{
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>
<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)
{
<h4 class="bskTitle">첨부서류</h4>
<table class="odrTable th150">
<tr class="pd5">
<th>검토의견</th>
<td>
<label>@Model.PayRfd.rback</label>
</td>
<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>
</table>
}
}
@if ((Model.intval3 > 0 && (Model.PayRfd.fgnob == null || Model.PayRfd.fgnor == null)) || Model.intval3 <= 0)