YNICTE/BO/Views/cm/terms.cshtml

78 lines
3.5 KiB
Plaintext
Raw Permalink Normal View History

2020-10-12 14:39:23 +09:00
@model NP.Model.VMCM
<form id="mform" method="post" action="/cm/terms">
<section class="panel panel-default clearfix devsearch" data-cleartbody="tbody1">
@Html.Partial("./Partial/SearchCaption")
<div class="step-content">
<div class="step-pane active form-inline">
<div class="form-group">
@Html.Partial("./Partial/Select", Model.stringval, new ViewDataDictionary { { "special", "fromtodesc" }, { "textadd", "년" }, { "start", 2000 }, { "end", DateTime.Now.Year + 1 }, { "name", "stringval" }, { "selected", Model.stringval }, { "df", ":년도선택" } })
</div>
</div>
</div>
</section>
<div class="tar buttonbox">
@Html.Partial("./Partial/pagerow", new ViewDataDictionary { { "tbodyid", "tbody1" }, { "searchmethod", "submit()" }, { "pagesize", Model.pagerowcount } })
<a href="#" onclick="javascript:reg(0);" class="btn btn-s-xs btn-info">등록</a>
</div>
<section class="panel panel-default">
<div class="table-responsive" id="excel1">
<table class="table table-striped b-t b-light">
<thead>
<tr>
<th width="20">No</th>
<th>년도/기수</th>
<th>수강신청기간</th>
<th>학습기간</th>
<th>성적처리기간</th>
</tr>
</thead>
<tbody class="data" id="tbody1">
@foreach (var item in Model.Terms)
{
<tr>
<td>@item.rnorvt</td>
<td class="link"><a class="" href="#" onclick="reg(@item.tmno)">@item.tmname</a></td>
<td>@string.Format("{0} ~ {1}", item.rstime == null ? "" : item.rstime.Value.ToShortDateString(), item.retime == null ? "" : item.retime.Value.ToShortDateString())</td>
<td>@string.Format("{0} ~ {1}", item.sstime == null ? "" : item.sstime.Value.ToShortDateString(), item.setime == null ? "" : item.setime.Value.ToShortDateString())</td>
<td>@string.Format("{0} ~ {1}", item.gstime == null ? "" : item.gstime.Value.ToShortDateString(), item.getime == null ? "" : item.getime.Value.ToShortDateString())</td>
</tr>
}
</tbody>
</table>
</div>
@Html.Pager((int)Model.pagenum, 10, Model.pagerowcount, Model.pagetotalcount)
</section>
</form>
<form id="dform" method="post" action="/cm/termreg">
@Html.Partial("./Partial/dform", Model, new ViewDataDictionary { { "preform", 1 } })
</form>
@section styles{
<style type="text/css">
#mainlayerframe {
width: 550px;
height:500px;
left: 200px;
border-radius: unset;
top: 60px;
bottom: 30px;
}
</style>
}
@section scripts{
<script>
$(document).ready(function () {
if ('@(ViewBag.SSPWC)' == 'True') {
showramemainlayer('/user/pwchange');
$("#mainlayerframe").css("width", "520px");
$("#mainlayerframe").css("height", "520px");
}
2020-10-12 14:39:23 +09:00
$("#stringval").on("change", function () {
submit();
});
});
function reg(no) {
showramemainlayer("/cm/termreg?intval=" + no);
}
</script>
}