146 lines
7.7 KiB
Plaintext
146 lines
7.7 KiB
Plaintext
@model NP.Model.VMMM
|
|
<form id="mform" method="post">
|
|
<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">
|
|
@if (!Model.IsSiteAdmin)
|
|
{
|
|
@:회사명  @Html.Partial("./Partial/Text", Model.stringval, Helpers.DicText(new NP.Model.TextDic() { Name = "stringval", Value = Model.stringval, PH = "", CssClass = "ff" }))
|
|
}
|
|
교육생명 @Html.Partial("./Partial/Text", Model.stringval2, Helpers.DicText(new NP.Model.TextDic() { Name = "stringval2", Value = Model.stringval2, PH = "", CssClass = "" }))
|
|
<br /><br />
|
|
과정선택
|
|
<select id="year" name="stringval3" class="form-control disp-init">
|
|
<option value="">-년도선택</option>
|
|
@foreach (var y in Model.Terms.Select(s => s.tyear).Distinct())
|
|
{
|
|
<option value="@y" @(Model.stringval3 == y.ToString() ? "selected" : "")>@y 년</option>
|
|
}
|
|
</select>
|
|
<select id="tmno" name="stringval4" class="form-control disp-init">
|
|
<option value="">-기수선택</option>
|
|
@foreach (var t in Model.Terms.Where(w => w.tyear == DateTime.Now.Year))
|
|
{
|
|
<option value="@t.tmno" @(Model.stringval4 == t.tmno.ToString() ? "selected" : "")>@t.tseq 기</option>
|
|
}
|
|
</select>
|
|
<select id="pcmno" name="stringval5" class="form-control disp-init">
|
|
<option value="">-과정선택</option>
|
|
@foreach (var d in Model.PCMs)
|
|
{
|
|
<option value="@d.value" @(Model.stringval5 == d.value ? "selected" : "")>@d.text</option>
|
|
}
|
|
</select>
|
|
<select id="cmno" name="stringval6" class="form-control disp-init">
|
|
<option value="">-강좌선택</option>
|
|
@foreach (var d in Model.CMs)
|
|
{
|
|
<option value="@d.value" @(Model.stringval5 == d.value ? "selected" : "")>@d.text</option>
|
|
}
|
|
</select>
|
|
@Html.Partial("./Partial/Button", new NP.Model.Button() { Special = "search", OnClick = "" })
|
|
</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:exceldown('mform', '/data/learnassigns', 'tbody1', 'CourseAssigns');" class="btn btn-s-xs btn-success" style="margin-left: 5px;">엑셀다운로드</a>
|
|
</div>
|
|
<section class="panel panel-default">
|
|
<div class="table-responsive" id="excel1">
|
|
<table class="table table-striped b-t b-light no-odd">
|
|
<thead>
|
|
<tr>
|
|
<th>No</th>
|
|
<th>상위분류</th>
|
|
<th>과정분류</th>
|
|
<th>과정</th>
|
|
<th>강좌(반)</th>
|
|
<th>교육기간</th>
|
|
<th>고객사</th>
|
|
<th>교육생(ID)</th>
|
|
<th>부서</th>
|
|
<th>직급</th>
|
|
<th>핸드폰</th>
|
|
<th>이메일</th>
|
|
<th>교육비</th>
|
|
<th>학습진도율</th>
|
|
<th>수료</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody class="data" id="tbody1">
|
|
@foreach (var item in Model.CMLects)
|
|
{
|
|
<tr>
|
|
<td>@item.rnorvt</td>
|
|
<td>@item.pcgname</td>
|
|
<td>@item.cgname</td>
|
|
<td>@item.pcname</td>
|
|
<td>@item.cnameclassno</td>
|
|
<td>@item.sssename</td>
|
|
<td>@item.asname</td>
|
|
<td>@item.usernameid</td>
|
|
<td>@item.depart</td>
|
|
<td>@item.ccpositionname</td>
|
|
<td>@item.mobile</td>
|
|
<td>@item.email</td>
|
|
<td class="text-right">@item.payamt.ToString("#,0")</td>
|
|
<td class="text-right">@item.attrate</td>
|
|
<td>@item.iscompleteye</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
@Html.Pager((int)Model.pagenum, 10, Model.pagerowcount, Model.pagetotalcount)
|
|
</section>
|
|
@Html.HiddenFor(m => m.tabidx)
|
|
</form>
|
|
@section styles{
|
|
<style type="text/css">
|
|
#excel1 {overflow: initial; width: 100%; height: 550px;}
|
|
#excel1 table{width: 100%; display: block; overflow-x: auto; height: 550px; overflow-y: hidden;}
|
|
#excel1 tbody {overflow-y: auto; height: 500px; display: inline-block; overflow-x: hidden;}
|
|
#excel1 thead{display: block}
|
|
|
|
#excel1 table thead th,#excel1 table tbody td{min-width: 100px;word-break: break-all;}
|
|
#excel1 table thead th:nth-of-type(1), #excel1 table tbody td:nth-of-type(1) {min-width: 100px}
|
|
#excel1 table thead th:nth-of-type(4), #excel1 table tbody td:nth-of-type(4) {min-width: 300px}
|
|
.panel .table th,.panel .table td {
|
|
padding: 2px 5px;
|
|
}
|
|
</style>
|
|
}
|
|
@section scriptsHeader{
|
|
|
|
}
|
|
@section scripts{
|
|
<script>
|
|
var terms = '@(string.Join(";", Model.Terms.Select(s=>string.Format("{0}:{1}:{2}", s.tmno, s.tyear, s.tseq))))';
|
|
var pcms = '@(string.Join(";", Model.PCMs.Select(s=>string.Format("{0}:{1}", s.value, s.text))))';
|
|
var pcms = '@(string.Join(";", Model.CMs.Select(s=>string.Format("{0}:{1}", s.value, s.text))))';
|
|
$(document).ready(function () {
|
|
$(".mainbr").remove();
|
|
$('body').on('keydown', 'input, select', function(e) {
|
|
if (e.key === "Enter") {
|
|
submit();
|
|
}
|
|
});
|
|
$("#year").on("change", function () {
|
|
$("#tmno option:gt(0)").remove();
|
|
$("#Memo_cmno option:gt(0)").remove();
|
|
var y = $(this).val();
|
|
if (y != "") {
|
|
$.each(terms.split(';'), function (i, t) {
|
|
if (t.split(':')[1] == y) {
|
|
$("#tmno").append("<option value=\"" + t.split(':')[0] + "\">" + t.split(':')[2] + " 기</option>");
|
|
}
|
|
});
|
|
}
|
|
});
|
|
});
|
|
</script>
|
|
} |