제이쿼리

This commit is contained in:
ksjihd163 2022-08-02 06:05:17 +00:00
parent afabafaea8
commit e8b8fef1db
1 changed files with 114 additions and 61 deletions

View File

@ -2,11 +2,25 @@
@{ @{
var a = 1; var a = 1;
} }
<style>
.lctQr > span {
color: black;
cursor: pointer;
font-size: 14pt;
}
.lctQr span.current {
color: blue;
}
</style>
<div class="mpgInfo"> <div class="mpgInfo">
<ul> <ul>
<li> - 현재 신청한 과정을 확인할 수 있으며 <span style="color:red;">입금완료 시 수강과정 메뉴에서 확인</span> 가능합니다.</li> <li> - 현재 신청한 과정을 확인할 수 있으며 <span style="color:red;">입금완료 시 수강과정 메뉴에서 확인</span> 가능합니다.</li>
<li> - 교육신청 취소, 환불신청 및 환불완료 된 과정은 <span style="color: red;">결제관리에서 확인</span> 가능합니다.</li> <li> - 교육신청 취소, 환불신청 및 환불완료 된 과정은 <span style="color: red;">결제관리에서 확인</span> 가능합니다.</li>
<br /><br /> <li>&nbsp;</li>
<li> <li>
■ 교육비 입금기한<br /> ■ 교육비 입금기한<br />
@ -17,7 +31,11 @@
</li> </li>
</ul> </ul>
</div> </div>
<div class="lctQr">
<span class="@(string.IsNullOrEmpty(Model.stringval)? "current" : "" )" id="lblAll">전체</span>&nbsp;|&nbsp;
<span class="@(Model.stringval == "1"? "current" : "" )" id="lblOff">교육장교육</span>&nbsp;|&nbsp;
<span class="@(Model.stringval == "2"? "current" : "" )" id="lblMix">온라인교육</span>&nbsp;|&nbsp;
</div>
<table class="lctAply"> <table class="lctAply">
<thead> <thead>
<tr> <tr>
@ -37,27 +55,38 @@
<h5> <h5>
<em>@d.tyear-@(d.tseq)기</em> <em>@d.tyear-@(d.tseq)기</em>
<span class="nav">@d.cshapename</span> <span class="nav">@d.cshapename</span>
@Html.Raw(d.isrebate == 1 ? "<span class=\"grn\">환급</span>" : "") @if (d.studyplacename != null)
{
<span>[@d.studyplacename 교육장]</span>
}
<b class="payno@(d.payno)-@(d.itemno)"> @d.cname</b> <b class="payno@(d.payno)-@(d.itemno)"> @d.cname</b>
@Html.Raw(d.pstatus == 21 ? string.Format("<b><a href=\"#\" class=\"paybtn\" onclick=\"gopay({0})\">교육비납부</a></b>", d.payno) : "") @Html.Raw(d.pstatus == 21 ? string.Format("<b><a href=\"#\" class=\"paybtn\" onclick=\"gopay({0})\">교육비납부</a></b>", d.payno) : "")
</h5> </h5>
<dl class="ltaDl"> <dl class="ltaDl">
<dt class="@(d.pstatus == 1 && d.rfdstatus < 1 ? "ltaDlbk":"ltaDlred")">@(d.pstatus == 55 ? "승인대기" : d.pstatus == 51 ? "심사중" : d.pstatus == 21 ? "결제대기" : d.pstatus == 22 ? "입금대기" : d.pstatus == 1 && d.rfdstatus > 0 ? "환불요청" : d.pstatus == 1 ? "결제완료" : d.rstatus == 1 ? "부분환불" : d.rstatus == 2 ? "전액환불" : "-")</dt> <dt class="@(d.pstatus == 1 && d.rfdstatus < 1 ? "ltaDlbk":"ltaDlred")">@(d.pstatus == 55 ? "승인대기" : d.pstatus == 51 ? "심사중" : d.pstatus == 21 ? "결제대기" : d.pstatus == 22 ? "입금" : d.pstatus == 1 && d.rfdstatus > 0 ? "환불요청" : d.pstatus == 1 ? "결제완료" : d.rstatus == 1 ? "부분환불" : d.rstatus == 2 ? "전액환불" : "-")</dt>
<dd> <dd>
@*신청기간 : @(d.retime.Value.Year == 2099 ? "상시운영" : d.rstime.Value.ToString("yy/MM/dd") + " ~ " + d.retime.Value.ToString("yy/MM/dd"))*@ @*신청기간 : @(d.retime.Value.Year == 2099 ? "상시운영" : d.rstime.Value.ToString("yy/MM/dd") + " ~ " + d.retime.Value.ToString("yy/MM/dd"))*@
@*교육기간 : @(d.retime.Value.Year == 2099 ? "결제완료일로부터 "+d.studydays+"일" : (d.cshape != 1 ? d.cdt.ToString("yy-MM-dd") : d.sdate.Value.ToString("yy-MM-dd")) +" ~ "+ (d.cshape != 1 ? d.cmiestart != null ? d.cmiestart.Value.ToString("yy-MM-dd") : "" : d.edate.Value.ToString("yy-MM-dd")))*@ @*교육기간 : @(d.retime.Value.Year == 2099 ? "결제완료일로부터 "+d.studydays+"일" : (d.cshape != 1 ? d.cdt.ToString("yy-MM-dd") : d.sdate.Value.ToString("yy-MM-dd")) +" ~ "+ (d.cshape != 1 ? d.cmiestart != null ? d.cmiestart.Value.ToString("yy-MM-dd") : "" : d.edate.Value.ToString("yy-MM-dd")))*@
교육기간 : @(d.retime.Value.Year == 2099 ? "신청일부터 선택한 교육종료일까지" : (d.cshape != 1 ? d.cdt.ToString("yy-MM-dd") : d.sdate.Value.ToString("yy-MM-dd")) +" ~ "+ (d.cshape != 1 ? d.cmiestart != null ? d.cmiestart.Value.ToString("yy-MM-dd") : "" : d.edate.Value.ToString("yy-MM-dd"))) @*교육기간 : @(d.retime.Value.Year == 2099 ? "신청일부터 선택한 교육종료일까지" : (d.cshape != 1 ? d.cdt.ToString("yyyy년 MM월 dd일") : d.sdate.Value.ToString("yyyy년 MM월 dd일")) +" ~ "+ (d.cshape != 1 ? d.cmiestart != null ? d.cmiestart.Value.ToString("yyyy년 MM월 dd일") : "" : d.edate.Value.ToString("yyyy년 MM월 dd일")))
*@교육기간 : @d.setime
@if (false && d.cshape == 2) @if (false && d.cshape == 2)
{ {
@:| 집체교육기간 : @(d.cmisno == null ? "미정" : ("[" + d.studyplacename + "] " + string.Format("{0}", d.cmiestart.Value.ToString("yy-MM-dd")))) @:| 집체교육기간 : @(d.cmisno == null ? "미정" : ("[" + d.studyplacename + "] " + string.Format("{0}", d.cmiestart.Value.ToString("yy-MM-dd"))))
} }
</dd> <dt></dt>
<dd style="color:red;">교육종료일 : @(string.Format("{0}", d.cmieend))</dd>
<dt></dt>
<dt>@d.studytime<span>시간과정</span></dt>
@Html.Raw(d.isrebate == 1 ? "<span class=\"grn\" style='color: red;'>환급과정</span>" : "<span class=\"grn\" style='color: red;'>비환급과정</span>")
</dl> </dl>
</a> </a>
</div> </div>
</th> </th>
@*<td class="ltaBtn" data-th="교육생 : "><span class="ltaOpen@(d.isgroup == 1 ? "" : "x")" ltaOpen="@(a)" >@(d.isgroup == 0 ? 1 : Model.PIs.Where(w=>w.payno == d.payno && w.itemno == d.itemno).Count())명</span></td>*@ @*<td class="ltaBtn" data-th="교육생 : "><span class="ltaOpen@(d.isgroup == 1 ? "" : "x")" ltaOpen="@(a)" >@(d.isgroup == 0 ? 1 : Model.PIs.Where(w=>w.payno == d.payno && w.itemno == d.itemno).Count())명</span></td>*@
<td class="ltaBtn" data-th="관리 : "><a href="#" onclick="gowork(@(d.pstatus == 55 || d.pstatus==51||d.pstatus == 21 || d.pstatus == 22?1:0), @string.Format("{0},{1}",d.payno, d.pino), this)">@(d.pstatus == 55 || d.pstatus==51||d.pstatus == 21 || d.pstatus == 22?"취소":"결제상세")</a></td> <td class="ltaBtn" data-th="관리 : "><a href="#"class="blu" style="border: 1px solid #333583; width: 75px; " onclick="gowork(@(d.pstatus == 55 || d.pstatus==51||d.pstatus == 21 || d.pstatus == 22?1:0), @string.Format("{0},{1}",d.payno, d.pino), this)">@(d.pstatus == 55 || d.pstatus==51||d.pstatus == 21 || d.pstatus == 22?"신청취소":"결제상세")</a></td>
</tr> </tr>
if (d.isgroup == 1) if (d.isgroup == 1)
{ {
@ -81,9 +110,18 @@
} }
</tbody> </tbody>
</table> </table>
<form id="mform" method="post" action="">
@Html.HiddenFor(m => m.intval)
@Html.HiddenFor(m => m.stringval)
</form>
@section styles{ @section styles{
<style type="text/css"> <style type="text/css">
#confirmbox .confirmbtnbox a.btn,#confirmbox .confirmbtnbox a.btn:focus{color: #fff;} #confirmbox .confirmbtnbox a.btn, #confirmbox .confirmbtnbox a.btn:focus {
color: #fff;
}
a.paybtn { a.paybtn {
border: 1px solid #999; border: 1px solid #999;
background-color: #ecf4fb; background-color: #ecf4fb;
@ -100,6 +138,7 @@
} }
@section scripts{ @section scripts{
<script> <script>
$(document).ready(function () { $(document).ready(function () {
$('.ltaOpen').click(function () { $('.ltaOpen').click(function () {
var atdNum = $(this).attr('ltaOpen'); var atdNum = $(this).attr('ltaOpen');
@ -140,5 +179,19 @@
function gopay(payno) { function gopay(payno) {
location.href = "/Course/ApplyPay?payno=" + payno; location.href = "/Course/ApplyPay?payno=" + payno;
} }
$(function () {
$(".lctQr > span").click(function () {
$(".lctQr > span").removeClass("current");
$(this).addClass("current");
var id = $(this).attr("id");
if (id == "lblAll") { $("#stringval").val(null) }
if (id == "lblOff") { $("#stringval").val("1") }
if (id == "lblMix") { $("#stringval").val("2") }
if (id == "lblOn") { $("#stringval").val("0") }
submit();
});
});
</script> </script>
} }