페이징 오류 수정
This commit is contained in:
parent
73d874580c
commit
32a885406d
|
|
@ -21,10 +21,11 @@
|
||||||
</div>
|
</div>
|
||||||
<form id="dform" method="post" action="/My/Document">
|
<form id="dform" method="post" action="/My/Document">
|
||||||
@Html.HiddenFor(w => w.tabidx)
|
@Html.HiddenFor(w => w.tabidx)
|
||||||
|
@Html.HiddenFor(m => m.pagenum)
|
||||||
</form>
|
</form>
|
||||||
<div class="lctQr">
|
<div class="lctQr">
|
||||||
<span class="@(Model.tabidx == 0 ? "current" : "" )" onclick="gopage(0);" id="lblAll">신규과정</span> |
|
<span class="@(Model.tabidx == 0 ? "current" : "" )" onclick="tabChange(0);" id="lblAll">신규과정</span> |
|
||||||
<span class="@(Model.tabidx == 1 ? "current" : "" )" onclick="gopage(1);" id="lblOff">2021년 이전과정</span>
|
<span class="@(Model.tabidx == 1 ? "current" : "" )" onclick="tabChange(1);" id="lblOff">2021년 이전과정</span>
|
||||||
</div>
|
</div>
|
||||||
@if (Model.tabidx == 0)
|
@if (Model.tabidx == 0)
|
||||||
{
|
{
|
||||||
|
|
@ -381,7 +382,7 @@ else
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="postlayer" class="daumpost"><a href="#" class="btn btn-xxs btn-select closedaumpost" onclick="closeDaumPostcode();">close</a></div>
|
<div id="postlayer" class="daumpost"><a href="#" class="btn btn-xxs btn-select closedaumpost" onclick="closeDaumPostcode();">close</a></div>
|
||||||
@Html.Pager2((int)Model.pagenum, 10, Model.pagerowcount, Model.pagetotalcount)
|
@Html.Pager2((int)Model.pagenum, 10, Model.pagerowcount, Model.pagetotalcount, "gopage", "dform")
|
||||||
@section styles{
|
@section styles{
|
||||||
<style>
|
<style>
|
||||||
.postSearch {
|
.postSearch {
|
||||||
|
|
@ -579,9 +580,10 @@ else
|
||||||
msg("신청된 계산서가 없습니다.");
|
msg("신청된 계산서가 없습니다.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function gopage(tabidx) {
|
function tabChange(tabidx) {
|
||||||
if (tabidx != @(Model.tabidx)) {
|
if (tabidx != @(Model.tabidx)) {
|
||||||
$("#tabidx").val(tabidx);
|
$("#tabidx").val(tabidx);
|
||||||
|
$("#pagenum").val(1);
|
||||||
$("#dform").submit();
|
$("#dform").submit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue