This commit is contained in:
parent
27e309afbc
commit
ba4296b40f
|
|
@ -674,6 +674,9 @@
|
|||
<Content Include="Views\croom\Documents.cshtml" />
|
||||
<Content Include="Views\croom\documentspast.cshtml" />
|
||||
<Content Include="Views\croom\asrpop.cshtml" />
|
||||
<Content Include="Views\data\learns5.cshtml" />
|
||||
<Content Include="Views\data\learns6.cshtml" />
|
||||
<Content Include="Views\data\learns7.cshtml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="App_Data\" />
|
||||
|
|
|
|||
|
|
@ -166,15 +166,16 @@ namespace NP.BO.Controllers
|
|||
vm.stringval = vm.stringval ?? DateTime.Now.Year.ToString();
|
||||
if (vm.tabidx == 0)
|
||||
{
|
||||
vm.Datas = Dao.Get<Data>("cm.data.lect.bycm", new System.Collections.Hashtable() {
|
||||
{ "year" + vm.stringval2 == null ? "" : "x", vm.stringval }, { "tmno", vm.stringval2 }, { "cshape", vm.stringval3 }, { "pcgno", vm.stringval4 }, { "cgno", vm.stringval5 }
|
||||
|
||||
vm.Datas = Dao.Get<Data>("cm.data.lect.byc", new System.Collections.Hashtable() {
|
||||
{ "year" + vm.stringval2 == null ? "" : "x", vm.stringval }, { "tmno", vm.stringval2 }, { "cshape", 0 }, { "pcgno", vm.stringval4 }, { "cgno", vm.stringval5 }
|
||||
});
|
||||
vm.Datas.Add(new Data() { dtype = 1, strval = "총계", intval = vm.Datas.Sum(s => s.intval), intval2 = vm.Datas.Sum(s => s.intval2), intval3 = vm.Datas.Sum(s => s.intval3), intval4 = vm.Datas.Sum(s => s.intval4), intval5 = vm.Datas.Sum(s => s.intval5), intval6 = vm.Datas.Sum(s => s.intval6), intval7 = vm.Datas.Sum(s => s.intval7), intval8 = vm.Datas.Sum(s => s.intval8), intval9 = vm.Datas.Sum(s => s.intval9), intval10 = vm.Datas.Sum(s => s.intval10) });
|
||||
vm.Datas.Add(new Data() { dtype = 1, strval = "총계", intval = vm.Datas.Sum(s => s.intval), intval2 = vm.Datas.Sum(s => s.intval2), intval11 = vm.Datas.Sum(s => s.intval11), intval12 = vm.Datas.Sum(s => s.intval12), intval7 = vm.Datas.Sum(s => s.intval7), intval8 = vm.Datas.Sum(s => s.intval8), intval9 = vm.Datas.Sum(s => s.intval9), intval10 = vm.Datas.Sum(s => s.intval10), intval13 = vm.Datas.Sum(s => s.intval13), intval14 = vm.Datas.Sum(s => s.intval14), intval15 = vm.Datas.Sum(s => s.intval15), intval16 = vm.Datas.Sum(s => s.intval16), intval17 = vm.Datas.Sum(s => s.intval17), intval18 = vm.Datas.Sum(s => s.intval18), intval19 = vm.Datas.Sum(s => s.intval19), intval20 = vm.Datas.Sum(s => s.intval20), intval21 = vm.Datas.Sum(s => s.intval21) });
|
||||
if (vm.isexceldown == 1)
|
||||
{
|
||||
return ExportExcel(
|
||||
new String[] { "상위분류", "과정분류", "과정명", "신청완료[총계]", "수료[총계]", "신청완료[정회원]", "수료[정회원]", "신청완료[비회원]", "수료[비회원]", "신청완료[비환급]", "수료[비환급]", "신청완료[환급]", "수료[환급]" },
|
||||
new String[] { "strval", "strval2", "strval3", "intval", "intval2", "intval3", "intval4", "intval5", "intval6", "intval7", "intval8", "intval9", "intval10" },
|
||||
new String[] { "상위분류", "과정분류", "과정명", "강좌명(반)", "교육기간", "신청완료[총계]", "수료[총계]","미수료[총계]", "신청완료[회원]", "수료[회원]", "신청완료[비환급]", "수료[비환급]","미수료[비환급]", "신청완료[환급]", "수료[환급]","미수료[환급]" ,"신청완료[합숙]", "수료[합숙]", "미수료[합숙]", "신청완료[비합숙]", "수료[비합숙]", "미수료[비합숙]", },
|
||||
new String[] { "strval", "strval2", "strval3", "strval4", "strval5", "intval", "intval2","intval15", "intval11", "intval12", "intval7", "intval8","intval13", "intval9", "intval10","intval14", "intval16", "intval17", "intval18", "intval19", "intval20", "intval21" },
|
||||
vm.Datas,
|
||||
vm.excelname);
|
||||
}
|
||||
|
|
@ -368,6 +369,42 @@ namespace NP.BO.Controllers
|
|||
, vm.CMLects, vm.excelname);
|
||||
}
|
||||
}
|
||||
|
||||
else if (vm.tabidx == 5)
|
||||
{
|
||||
|
||||
}
|
||||
else if (vm.tabidx == 6)
|
||||
{
|
||||
vm.Datas = Dao.Get<Data>("cm.data.lect.byc", new System.Collections.Hashtable() {
|
||||
{ "year" + vm.stringval2 == null ? "" : "x", vm.stringval }, { "tmno", vm.stringval2 }, { "cshape", 2 }, { "pcgno", vm.stringval4 }, { "cgno", vm.stringval5 }
|
||||
});
|
||||
vm.Datas.Add(new Data() { dtype = 1, strval = "총계", intval = vm.Datas.Sum(s => s.intval), intval2 = vm.Datas.Sum(s => s.intval2), intval11 = vm.Datas.Sum(s => s.intval11), intval12 = vm.Datas.Sum(s => s.intval12), intval7 = vm.Datas.Sum(s => s.intval7), intval8 = vm.Datas.Sum(s => s.intval8), intval9 = vm.Datas.Sum(s => s.intval9), intval10 = vm.Datas.Sum(s => s.intval10), intval13 = vm.Datas.Sum(s => s.intval13), intval14 = vm.Datas.Sum(s => s.intval14), intval15 = vm.Datas.Sum(s => s.intval15), intval16 = vm.Datas.Sum(s => s.intval16), intval17 = vm.Datas.Sum(s => s.intval17), intval18 = vm.Datas.Sum(s => s.intval18), intval19 = vm.Datas.Sum(s => s.intval19), intval20 = vm.Datas.Sum(s => s.intval20), intval21 = vm.Datas.Sum(s => s.intval21) });
|
||||
if (vm.isexceldown == 1)
|
||||
{
|
||||
return ExportExcel(
|
||||
new String[] { "상위분류", "과정분류", "과정명", "강좌명(반)", "교육기간", "신청완료[총계]", "수료[총계]", "미수료[총계]", "신청완료[회원]", "수료[회원]", "신청완료[비환급]", "수료[비환급]", "미수료[비환급]", "신청완료[환급]", "수료[환급]", "미수료[환급]", "신청완료[합숙]", "수료[합숙]", "미수료[합숙]", "신청완료[비합숙]", "수료[비합숙]", "미수료[비합숙]", },
|
||||
new String[] { "strval", "strval2", "strval3", "strval4", "strval5", "intval", "intval2", "intval15", "intval11", "intval12", "intval7", "intval8", "intval13", "intval9", "intval10", "intval14", "intval16", "intval17", "intval18", "intval19", "intval20", "intval21" },
|
||||
vm.Datas,
|
||||
vm.excelname);
|
||||
}
|
||||
}
|
||||
|
||||
else if (vm.tabidx == 7)
|
||||
{
|
||||
vm.Datas = Dao.Get<Data>("cm.data.lect.byc", new System.Collections.Hashtable() {
|
||||
{ "year" + vm.stringval2 == null ? "" : "x", vm.stringval }, { "tmno", vm.stringval2 }, { "cshape", 1 }, { "pcgno", vm.stringval4 }, { "cgno", vm.stringval5 }
|
||||
});
|
||||
vm.Datas.Add(new Data() { dtype = 1, strval = "총계", intval = vm.Datas.Sum(s => s.intval), intval2 = vm.Datas.Sum(s => s.intval2), intval11 = vm.Datas.Sum(s => s.intval11), intval12 = vm.Datas.Sum(s => s.intval12), intval7 = vm.Datas.Sum(s => s.intval7), intval8 = vm.Datas.Sum(s => s.intval8), intval9 = vm.Datas.Sum(s => s.intval9), intval10 = vm.Datas.Sum(s => s.intval10), intval13 = vm.Datas.Sum(s => s.intval13), intval14 = vm.Datas.Sum(s => s.intval14), intval15 = vm.Datas.Sum(s => s.intval15), intval16 = vm.Datas.Sum(s => s.intval16), intval17 = vm.Datas.Sum(s => s.intval17), intval18 = vm.Datas.Sum(s => s.intval18), intval19 = vm.Datas.Sum(s => s.intval19), intval20 = vm.Datas.Sum(s => s.intval20), intval21 = vm.Datas.Sum(s => s.intval21) });
|
||||
if (vm.isexceldown == 1)
|
||||
{
|
||||
return ExportExcel(
|
||||
new String[] { "상위분류", "과정분류", "과정명", "강좌명(반)", "교육기간", "신청완료[총계]", "수료[총계]", "미수료[총계]", "신청완료[회원]", "수료[회원]", "신청완료[비환급]", "수료[비환급]", "미수료[비환급]", "신청완료[환급]", "수료[환급]", "미수료[환급]", "신청완료[합숙]", "수료[합숙]", "미수료[합숙]", "신청완료[비합숙]", "수료[비합숙]", "미수료[비합숙]", },
|
||||
new String[] { "strval", "strval2", "strval3", "strval4", "strval5", "intval", "intval2", "intval15", "intval11", "intval12", "intval7", "intval8", "intval13", "intval9", "intval10", "intval14", "intval16", "intval17", "intval18", "intval19", "intval20", "intval21" },
|
||||
vm.Datas,
|
||||
vm.excelname);
|
||||
}
|
||||
}
|
||||
return View(vm);
|
||||
}
|
||||
public ActionResult learnassigns(VMMM vm)
|
||||
|
|
|
|||
|
|
@ -1,10 +1,13 @@
|
|||
@model NP.Model.VMMM
|
||||
<div>
|
||||
<ul class="pagination pagination-md" style="margin: 0;">
|
||||
<li class="@(Model.tabidx == 0 ? "active" : "")"><a href="#" onclick="gotab(0);" data-toggle="tab">과정별</a></li>
|
||||
<li class="@(Model.tabidx == 1 ? "active" : "")"><a href="#" onclick="gotab(1);" data-toggle="tab">강좌별</a></li>
|
||||
@*<li class="@(Model.tabidx == 0 ? "active" : "")"><a href="#" onclick="gotab(0);" data-toggle="tab">과정별</a></li>
|
||||
<li class="@(Model.tabidx == 1 ? "active" : "")"><a href="#" onclick="gotab(1);" data-toggle="tab">강좌별</a></li>*@
|
||||
@*<li class="@(Model.tabidx == 2 ? "active" : "")"><a href="#" onclick="gotab(2);" data-toggle="tab">계열별</a></li>*@
|
||||
@*<li class="@(Model.tabidx == 3 ? "active" : "")"><a href="#" onclick="gotab(3);" data-toggle="tab">직급별</a></li>*@
|
||||
<li class="@(Model.tabidx == 0 ? "active" : "")"><a href="#" onclick="gotab(0);" data-toggle="tab">온라인</a></li>
|
||||
<li class="@(Model.tabidx == 6 ? "active" : "")"><a href="#" onclick="gotab(6);" data-toggle="tab">온라인혼합</a></li>
|
||||
<li class="@(Model.tabidx == 7 ? "active" : "")"><a href="#" onclick="gotab(7);" data-toggle="tab">교육장</a></li>
|
||||
<li class="@(Model.tabidx == 4 ? "active" : "")"><a href="#" onclick="gotab(4);" data-toggle="tab">RawData</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -20,16 +20,15 @@
|
|||
<option value="@t.tmno" @(Model.stringval2 == t.tmno.ToString() ? "selected" : "")>@t.tseq 기</option>
|
||||
}
|
||||
</select>
|
||||
@Html.Partial("./Partial/Select", null, new ViewDataDictionary { { "valuetext", "0:온라인;1:오프라인;2:혼합" }, { "name", "stringval3" }, { "selected", Model.stringval3 }, { "df", ":-유형선택" } })
|
||||
@Html.Partial("./Partial/Select", Model.CGs.Where(w => w.pcgno == null), new ViewDataDictionary { { "name", "stringval4" }, { "selected", Model.stringval4 }, { "style", "width: 100%" }, { "df", ":-상위분류" } })
|
||||
@*@Html.Partial("./Partial/Select", Model.CGs.Where(w => w.pcgno != null && w.pcgno.ToString() == Model.stringval4), new ViewDataDictionary { { "name", "stringval5" }, { "selected", Model.stringval5 }, { "style", "width: 100%;" }, { "df", ":-분류" } })*@
|
||||
@Html.Partial("./Partial/Select", Model.CGs.Where(w => w.pcgno != null && w.pcgno.ToString() == Model.stringval4), new ViewDataDictionary { { "name", "stringval5" }, { "selected", Model.stringval5 }, { "style", "width: 100%;" }, { "df", ":-과정분류" } })
|
||||
@Html.Partial("./Partial/Button", new NP.Model.Button() { Special = "search", OnClick = "" })
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<div class="tar buttonbox">
|
||||
<a href="#" onclick="javascript:exceldown('mform', '/data/learns', 'tbody1', 'CourseMasterLearns');" class="btn btn-s-xs btn-success" style="margin-left: 5px;">엑셀다운로드</a>
|
||||
<a href="#" onclick="javascript:exceldown('mform', '/data/learns', 'tbody1', 'CourseLearns');" class="btn btn-s-xs btn-success" style="margin-left: 5px;">엑셀다운로드</a>
|
||||
</div>
|
||||
<section class="panel panel-default">
|
||||
<div class="table-responsive" id="excel1">
|
||||
|
|
@ -39,46 +38,75 @@
|
|||
<th rowspan="2">상위분류</th>
|
||||
<th rowspan="2">과정분류</th>
|
||||
<th rowspan="2">과정명</th>
|
||||
<th colspan="2">총계</th>
|
||||
<th colspan="2">정회원</th>
|
||||
<th colspan="2">비회원</th>
|
||||
<th colspan="2">비환급</th>
|
||||
<th colspan="2">환급</th>
|
||||
<th rowspan="2">강좌명(반)</th>
|
||||
<th rowspan="2">교육기간</th>
|
||||
<th colspan="3" style="border-right:double; border-left:double">총계</th>
|
||||
<th colspan="2" style="border-right:double">회원</th>
|
||||
<th colspan="3" style="border-right:double">비환급</th>
|
||||
<th colspan="3" style="border-right:double">환급</th>
|
||||
<th colspan="3" style="border-right:double">합숙</th>
|
||||
<th colspan="3" style="border-right:double">비합숙</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="border-left:double">신청완료</th>
|
||||
<th>수료</th>
|
||||
<th style="border-right:double">미수료</th>
|
||||
|
||||
<th>신청완료</th>
|
||||
<th style="border-right:double">수료</th>
|
||||
|
||||
<th>신청완료</th>
|
||||
<th>수료</th>
|
||||
<th style="border-right:double">미수료</th>
|
||||
|
||||
<th>신청완료</th>
|
||||
<th>수료</th>
|
||||
<th style="border-right:double">미수료</th>
|
||||
|
||||
<th>신청완료</th>
|
||||
<th>수료</th>
|
||||
<th style="border-right:double">미수료</th>
|
||||
|
||||
<th>신청완료</th>
|
||||
<th>수료</th>
|
||||
<th>신청완료</th>
|
||||
<th>수료</th>
|
||||
<th style="border-right:double">미수료</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="data" id="tbody1">
|
||||
@foreach (var item in Model.Datas)
|
||||
{
|
||||
<tr>
|
||||
<td colspan="@(item.dtype == 1?3:1)">@item.strval</td>
|
||||
@if (item.dtype < 1)
|
||||
{
|
||||
<td>@item.strval2</td>
|
||||
<td class="text-left">@item.strval3</td>
|
||||
}
|
||||
<td class="text-right">@item.intval.ToString("#,0")</td>
|
||||
<td class="text-right">@item.intval2.ToString("#,0")</td>
|
||||
<td class="text-right">@item.intval3.ToString("#,0")</td>
|
||||
<td class="text-right">@item.intval4.ToString("#,0")</td>
|
||||
<td class="text-right">@item.intval5.ToString("#,0")</td>
|
||||
<td class="text-right">@item.intval6.ToString("#,0")</td>
|
||||
<td class="text-right">@item.intval7.ToString("#,0")</td>
|
||||
<td class="text-right">@item.intval8.ToString("#,0")</td>
|
||||
<td class="text-right">@item.intval9.ToString("#,0")</td>
|
||||
<td class="text-right">@item.intval10.ToString("#,0")</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="@(item.dtype == 1?5:1)">@item.strval</td>
|
||||
@if (item.dtype < 1)
|
||||
{
|
||||
<td>@item.strval2</td>
|
||||
<td class="text-left">@item.strval3</td>
|
||||
<td class="text-left">@item.strval4</td>
|
||||
<td>@item.strval5</td>
|
||||
}
|
||||
<td class="text-right" style="border-left:double">@item.intval.ToString("#,0")</td>
|
||||
<td class="text-right">@item.intval2.ToString("#,0")</td>
|
||||
<td class="text-right" style="border-right:double">@item.intval15.ToString("#,0")</td>
|
||||
|
||||
<td class="text-right">@item.intval11.ToString("#,0")</td>
|
||||
<td class="text-right" style="border-right:double">@item.intval12.ToString("#,0")</td>
|
||||
|
||||
<td class="text-right">@item.intval7.ToString("#,0")</td>
|
||||
<td class="text-right">@item.intval8.ToString("#,0")</td>
|
||||
<td class="text-right" style="border-right:double">@item.intval13.ToString("#,0")</td>
|
||||
|
||||
<td class="text-right">@item.intval9.ToString("#,0")</td>
|
||||
<td class="text-right">@item.intval10.ToString("#,0")</td>
|
||||
<td class="text-right" style="border-right:double">@item.intval14.ToString("#,0")</td>
|
||||
|
||||
<td class="text-right">@item.intval16.ToString("#,0")</td>
|
||||
<td class="text-right">@item.intval17.ToString("#,0")</td>
|
||||
<td class="text-right" style="border-right:double">@item.intval18.ToString("#,0")</td>
|
||||
|
||||
<td class="text-right">@item.intval19.ToString("#,0")</td>
|
||||
<td class="text-right">@item.intval20.ToString("#,0")</td>
|
||||
<td class="text-right" style="border-right:double">@item.intval21.ToString("#,0")</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,125 @@
|
|||
@model NP.Model.VMMM
|
||||
<br />
|
||||
<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">
|
||||
<select id="year" name="stringval" class="form-control disp-init">
|
||||
<option value="">-년도선택</option>
|
||||
@foreach (var y in Model.Terms.Select(s => s.tyear).Distinct())
|
||||
{
|
||||
<option value="@y" @(Model.stringval == y.ToString() ? "selected" : "")>@y 년</option>
|
||||
}
|
||||
</select>
|
||||
<select id="tmno" name="stringval2" 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.stringval2 == t.tmno.ToString() ? "selected" : "")>@t.tseq 기</option>
|
||||
}
|
||||
</select>
|
||||
@Html.Partial("./Partial/Select", Model.CGs.Where(w => w.pcgno == null), new ViewDataDictionary { { "name", "stringval4" }, { "selected", Model.stringval4 }, { "style", "width: 100%" }, { "df", ":-상위분류" } })
|
||||
@Html.Partial("./Partial/Select", Model.CGs.Where(w => w.pcgno != null && w.pcgno.ToString() == Model.stringval4), new ViewDataDictionary { { "name", "stringval5" }, { "selected", Model.stringval5 }, { "style", "width: 100%;" }, { "df", ":-과정분류" } })
|
||||
@Html.Partial("./Partial/Button", new NP.Model.Button() { Special = "search", OnClick = "" })
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<div class="tar buttonbox">
|
||||
<a href="#" onclick="javascript:exceldown('mform', '/data/learns', 'tbody1', 'CourseLearns');" 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 rowspan="2">상위분류</th>
|
||||
<th rowspan="2">과정분류</th>
|
||||
<th rowspan="2">과정명</th>
|
||||
<th rowspan="2">강좌명(반)</th>
|
||||
<th rowspan="2">교육기간</th>
|
||||
<th colspan="2">총계</th>
|
||||
<th colspan="2">정회원</th>
|
||||
<th colspan="2">비회원</th>
|
||||
<th colspan="2">비환급</th>
|
||||
<th colspan="2">환급</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>신청완료</th>
|
||||
<th>수료</th>
|
||||
<th>신청완료</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.Datas)
|
||||
{
|
||||
<tr>
|
||||
<td colspan="@(item.dtype == 1?5:1)">@item.strval</td>
|
||||
@if (item.dtype < 1)
|
||||
{
|
||||
<td>@item.strval2</td>
|
||||
<td class="text-left">@item.strval3</td>
|
||||
<td class="text-left">@item.strval4</td>
|
||||
<td>@item.strval5</td>
|
||||
}
|
||||
<td class="text-right">@item.intval.ToString("#,0")</td>
|
||||
<td class="text-right">@item.intval2.ToString("#,0")</td>
|
||||
<td class="text-right">@item.intval3.ToString("#,0")</td>
|
||||
<td class="text-right">@item.intval4.ToString("#,0")</td>
|
||||
<td class="text-right">@item.intval5.ToString("#,0")</td>
|
||||
<td class="text-right">@item.intval6.ToString("#,0")</td>
|
||||
<td class="text-right">@item.intval7.ToString("#,0")</td>
|
||||
<td class="text-right">@item.intval8.ToString("#,0")</td>
|
||||
<td class="text-right">@item.intval9.ToString("#,0")</td>
|
||||
<td class="text-right">@item.intval10.ToString("#,0")</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
@Html.HiddenFor(m => m.tabidx)
|
||||
</form>
|
||||
<script>
|
||||
var terms = '@(string.Join(";", Model.Terms.Select(s=>string.Format("{0}:{1}:{2}", s.tmno, s.tyear, s.tseq))))';
|
||||
var _cgs = '@(string.Join(";", Model.CGs.Select(s=>string.Format("{0}:{1}:{2}", s.pcgno??0, s.cgno, s.cgname))))';
|
||||
$(document).ready(function () {
|
||||
$("#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] + " 기</optoin>");
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
$("#stringval4").on("change", function () {
|
||||
bindcgno("stringval4", "stringval5");
|
||||
});
|
||||
});
|
||||
var _bindcdnocid = "";
|
||||
function bindcgno(id, cid) {
|
||||
_bindcdnocid = cid;
|
||||
$("#" + cid + " option:gt(0)").remove();
|
||||
if ($("#" + id).val() != "") {
|
||||
$.each(_cgs.split(';'), function (i, d) {
|
||||
if (d.split(':')[0] == $("#" + id).val()) {
|
||||
$("#" + _bindcdnocid).append("<option value=\"" + d.split(':')[1] + "\">" + d.split(':')[2] + "</option>");
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
@ -0,0 +1,150 @@
|
|||
@model NP.Model.VMMM
|
||||
<br />
|
||||
<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">
|
||||
<select id="year" name="stringval" class="form-control disp-init">
|
||||
<option value="">-년도선택</option>
|
||||
@foreach (var y in Model.Terms.Select(s => s.tyear).Distinct())
|
||||
{
|
||||
<option value="@y" @(Model.stringval == y.ToString() ? "selected" : "")>@y 년</option>
|
||||
}
|
||||
</select>
|
||||
<select id="tmno" name="stringval2" 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.stringval2 == t.tmno.ToString() ? "selected" : "")>@t.tseq 기</option>
|
||||
}
|
||||
</select>
|
||||
@Html.Partial("./Partial/Select", Model.CGs.Where(w => w.pcgno == null), new ViewDataDictionary { { "name", "stringval4" }, { "selected", Model.stringval4 }, { "style", "width: 100%" }, { "df", ":-상위분류" } })
|
||||
@Html.Partial("./Partial/Select", Model.CGs.Where(w => w.pcgno != null && w.pcgno.ToString() == Model.stringval4), new ViewDataDictionary { { "name", "stringval5" }, { "selected", Model.stringval5 }, { "style", "width: 100%;" }, { "df", ":-과정분류" } })
|
||||
@Html.Partial("./Partial/Button", new NP.Model.Button() { Special = "search", OnClick = "" })
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<div class="tar buttonbox">
|
||||
<a href="#" onclick="javascript:exceldown('mform', '/data/learns', 'tbody1', 'CourseLearns');" 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 rowspan="2">상위분류</th>
|
||||
<th rowspan="2">과정분류</th>
|
||||
<th rowspan="2">과정명</th>
|
||||
<th rowspan="2">강좌명(반)</th>
|
||||
<th rowspan="2">교육기간</th>
|
||||
<th colspan="3" style="border-right:double; border-left:double">총계</th>
|
||||
<th colspan="2" style="border-right:double">회원</th>
|
||||
<th colspan="3" style="border-right:double">비환급</th>
|
||||
<th colspan="3" style="border-right:double">환급</th>
|
||||
<th colspan="3" style="border-right:double">합숙</th>
|
||||
<th colspan="3" style="border-right:double">비합숙</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="border-left:double">신청완료</th>
|
||||
<th>수료</th>
|
||||
<th style="border-right:double">미수료</th>
|
||||
|
||||
<th>신청완료</th>
|
||||
<th style="border-right:double">수료</th>
|
||||
|
||||
<th>신청완료</th>
|
||||
<th>수료</th>
|
||||
<th style="border-right:double">미수료</th>
|
||||
|
||||
<th>신청완료</th>
|
||||
<th>수료</th>
|
||||
<th style="border-right:double">미수료</th>
|
||||
|
||||
<th>신청완료</th>
|
||||
<th>수료</th>
|
||||
<th style="border-right:double">미수료</th>
|
||||
|
||||
<th>신청완료</th>
|
||||
<th>수료</th>
|
||||
<th style="border-right:double">미수료</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="data" id="tbody1">
|
||||
@foreach (var item in Model.Datas)
|
||||
{
|
||||
<tr>
|
||||
<td colspan="@(item.dtype == 1?5:1)">@item.strval</td>
|
||||
@if (item.dtype < 1)
|
||||
{
|
||||
<td>@item.strval2</td>
|
||||
<td class="text-left">@item.strval3</td>
|
||||
<td class="text-left">@item.strval4</td>
|
||||
<td>@item.strval5</td>
|
||||
}
|
||||
<td class="text-right" style="border-left:double">@item.intval.ToString("#,0")</td>
|
||||
<td class="text-right">@item.intval2.ToString("#,0")</td>
|
||||
<td class="text-right" style="border-right:double">@item.intval15.ToString("#,0")</td>
|
||||
|
||||
<td class="text-right">@item.intval11.ToString("#,0")</td>
|
||||
<td class="text-right" style="border-right:double">@item.intval12.ToString("#,0")</td>
|
||||
|
||||
<td class="text-right">@item.intval7.ToString("#,0")</td>
|
||||
<td class="text-right">@item.intval8.ToString("#,0")</td>
|
||||
<td class="text-right" style="border-right:double">@item.intval13.ToString("#,0")</td>
|
||||
|
||||
<td class="text-right">@item.intval9.ToString("#,0")</td>
|
||||
<td class="text-right">@item.intval10.ToString("#,0")</td>
|
||||
<td class="text-right" style="border-right:double">@item.intval14.ToString("#,0")</td>
|
||||
|
||||
<td class="text-right">@item.intval16.ToString("#,0")</td>
|
||||
<td class="text-right">@item.intval17.ToString("#,0")</td>
|
||||
<td class="text-right" style="border-right:double">@item.intval18.ToString("#,0")</td>
|
||||
|
||||
<td class="text-right">@item.intval19.ToString("#,0")</td>
|
||||
<td class="text-right">@item.intval20.ToString("#,0")</td>
|
||||
<td class="text-right" style="border-right:double">@item.intval21.ToString("#,0")</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
@Html.HiddenFor(m => m.tabidx)
|
||||
</form>
|
||||
<script>
|
||||
var terms = '@(string.Join(";", Model.Terms.Select(s=>string.Format("{0}:{1}:{2}", s.tmno, s.tyear, s.tseq))))';
|
||||
var _cgs = '@(string.Join(";", Model.CGs.Select(s=>string.Format("{0}:{1}:{2}", s.pcgno??0, s.cgno, s.cgname))))';
|
||||
$(document).ready(function () {
|
||||
$("#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] + " 기</optoin>");
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
$("#stringval4").on("change", function () {
|
||||
bindcgno("stringval4", "stringval5");
|
||||
});
|
||||
});
|
||||
var _bindcdnocid = "";
|
||||
function bindcgno(id, cid) {
|
||||
_bindcdnocid = cid;
|
||||
$("#" + cid + " option:gt(0)").remove();
|
||||
if ($("#" + id).val() != "") {
|
||||
$.each(_cgs.split(';'), function (i, d) {
|
||||
if (d.split(':')[0] == $("#" + id).val()) {
|
||||
$("#" + _bindcdnocid).append("<option value=\"" + d.split(':')[1] + "\">" + d.split(':')[2] + "</option>");
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
@ -0,0 +1,150 @@
|
|||
@model NP.Model.VMMM
|
||||
<br />
|
||||
<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">
|
||||
<select id="year" name="stringval" class="form-control disp-init">
|
||||
<option value="">-년도선택</option>
|
||||
@foreach (var y in Model.Terms.Select(s => s.tyear).Distinct())
|
||||
{
|
||||
<option value="@y" @(Model.stringval == y.ToString() ? "selected" : "")>@y 년</option>
|
||||
}
|
||||
</select>
|
||||
<select id="tmno" name="stringval2" 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.stringval2 == t.tmno.ToString() ? "selected" : "")>@t.tseq 기</option>
|
||||
}
|
||||
</select>
|
||||
@Html.Partial("./Partial/Select", Model.CGs.Where(w => w.pcgno == null), new ViewDataDictionary { { "name", "stringval4" }, { "selected", Model.stringval4 }, { "style", "width: 100%" }, { "df", ":-상위분류" } })
|
||||
@Html.Partial("./Partial/Select", Model.CGs.Where(w => w.pcgno != null && w.pcgno.ToString() == Model.stringval4), new ViewDataDictionary { { "name", "stringval5" }, { "selected", Model.stringval5 }, { "style", "width: 100%;" }, { "df", ":-과정분류" } })
|
||||
@Html.Partial("./Partial/Button", new NP.Model.Button() { Special = "search", OnClick = "" })
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<div class="tar buttonbox">
|
||||
<a href="#" onclick="javascript:exceldown('mform', '/data/learns', 'tbody1', 'CourseLearns');" 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 rowspan="2">상위분류</th>
|
||||
<th rowspan="2">과정분류</th>
|
||||
<th rowspan="2">과정명</th>
|
||||
<th rowspan="2">강좌명(반)</th>
|
||||
<th rowspan="2">교육기간</th>
|
||||
<th colspan="3" style="border-right:double; border-left:double">총계</th>
|
||||
<th colspan="2" style="border-right:double">회원</th>
|
||||
<th colspan="3" style="border-right:double">비환급</th>
|
||||
<th colspan="3" style="border-right:double">환급</th>
|
||||
<th colspan="3" style="border-right:double">합숙</th>
|
||||
<th colspan="3" style="border-right:double">비합숙</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="border-left:double">신청완료</th>
|
||||
<th>수료</th>
|
||||
<th style="border-right:double">미수료</th>
|
||||
|
||||
<th>신청완료</th>
|
||||
<th style="border-right:double">수료</th>
|
||||
|
||||
<th>신청완료</th>
|
||||
<th>수료</th>
|
||||
<th style="border-right:double">미수료</th>
|
||||
|
||||
<th>신청완료</th>
|
||||
<th>수료</th>
|
||||
<th style="border-right:double">미수료</th>
|
||||
|
||||
<th>신청완료</th>
|
||||
<th>수료</th>
|
||||
<th style="border-right:double">미수료</th>
|
||||
|
||||
<th>신청완료</th>
|
||||
<th>수료</th>
|
||||
<th style="border-right:double">미수료</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="data" id="tbody1">
|
||||
@foreach (var item in Model.Datas)
|
||||
{
|
||||
<tr>
|
||||
<td colspan="@(item.dtype == 1?5:1)">@item.strval</td>
|
||||
@if (item.dtype < 1)
|
||||
{
|
||||
<td>@item.strval2</td>
|
||||
<td class="text-left">@item.strval3</td>
|
||||
<td class="text-left">@item.strval4</td>
|
||||
<td>@item.strval5</td>
|
||||
}
|
||||
<td class="text-right" style="border-left:double">@item.intval.ToString("#,0")</td>
|
||||
<td class="text-right">@item.intval2.ToString("#,0")</td>
|
||||
<td class="text-right" style="border-right:double">@item.intval15.ToString("#,0")</td>
|
||||
|
||||
<td class="text-right">@item.intval11.ToString("#,0")</td>
|
||||
<td class="text-right" style="border-right:double">@item.intval12.ToString("#,0")</td>
|
||||
|
||||
<td class="text-right">@item.intval7.ToString("#,0")</td>
|
||||
<td class="text-right">@item.intval8.ToString("#,0")</td>
|
||||
<td class="text-right" style="border-right:double">@item.intval13.ToString("#,0")</td>
|
||||
|
||||
<td class="text-right">@item.intval9.ToString("#,0")</td>
|
||||
<td class="text-right">@item.intval10.ToString("#,0")</td>
|
||||
<td class="text-right" style="border-right:double">@item.intval14.ToString("#,0")</td>
|
||||
|
||||
<td class="text-right">@item.intval16.ToString("#,0")</td>
|
||||
<td class="text-right">@item.intval17.ToString("#,0")</td>
|
||||
<td class="text-right" style="border-right:double">@item.intval18.ToString("#,0")</td>
|
||||
|
||||
<td class="text-right">@item.intval19.ToString("#,0")</td>
|
||||
<td class="text-right">@item.intval20.ToString("#,0")</td>
|
||||
<td class="text-right" style="border-right:double">@item.intval21.ToString("#,0")</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
@Html.HiddenFor(m => m.tabidx)
|
||||
</form>
|
||||
<script>
|
||||
var terms = '@(string.Join(";", Model.Terms.Select(s=>string.Format("{0}:{1}:{2}", s.tmno, s.tyear, s.tseq))))';
|
||||
var _cgs = '@(string.Join(";", Model.CGs.Select(s=>string.Format("{0}:{1}:{2}", s.pcgno??0, s.cgno, s.cgname))))';
|
||||
$(document).ready(function () {
|
||||
$("#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] + " 기</optoin>");
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
$("#stringval4").on("change", function () {
|
||||
bindcgno("stringval4", "stringval5");
|
||||
});
|
||||
});
|
||||
var _bindcdnocid = "";
|
||||
function bindcgno(id, cid) {
|
||||
_bindcdnocid = cid;
|
||||
$("#" + cid + " option:gt(0)").remove();
|
||||
if ($("#" + id).val() != "") {
|
||||
$.each(_cgs.split(';'), function (i, d) {
|
||||
if (d.split(':')[0] == $("#" + id).val()) {
|
||||
$("#" + _bindcdnocid).append("<option value=\"" + d.split(':')[1] + "\">" + d.split(':')[2] + "</option>");
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
@ -909,24 +909,48 @@
|
|||
order by b3.cgname,b3.cgno,b2.cgname,b2.cgno,f.cname,f.cmno
|
||||
</select>
|
||||
<select id="cm.data.lect.byc" parameterClass="hashtable" resultClass="data">
|
||||
select
|
||||
b.cshape, case when b.cshape=0 then '온라인' when b.cshape=1 then '오프라인' else '혼합' end cshapename
|
||||
,b3.cgno,b2.cgno,f.cmno,b.cmno
|
||||
,b3.cgname strval,b2.cgname strval2,f.cname strval3,concat(b.cname,'(',b.classno,')') strval4,concat(date_format(b.sstime,'%y.%m.%d'),'~',date_format(b.setime,'%y.%m.%d')) strval5
|
||||
,count(c.lectno) intval,sum(c.iscomplete) intval2
|
||||
,sum(e.isjoin) intval3,sum(case when e.isjoin=1 and c.iscomplete=1 then 1 else 0 end) intval4
|
||||
,sum(case when e.isjoin=0 then 1 else 0 end) intval5,sum(case when e.isjoin=0 and c.iscomplete=1 then 1 else 0 end) intval6
|
||||
,sum(case when c.isrebate=0 then 1 else 0 end) intval7,sum(case when c.isrebate=0 and c.iscomplete=1 then 1 else 0 end) intval8
|
||||
,sum(case when c.isrebate=1 then 1 else 0 end) intval9,sum(case when c.isrebate=1 and c.iscomplete=1 then 1 else 0 end) intval10
|
||||
from term a
|
||||
inner join cm b on b.tmno=a.tmno
|
||||
inner join lect c on c.cmno=b.cmno and c.status=1
|
||||
inner join users d on d.userno=c.userno
|
||||
left outer join assign e on e.asno=d.asno
|
||||
inner join cm f on f.cmno=b.pcmno
|
||||
inner join cg b2 on b2.cgno=f.cgno
|
||||
inner join cg b3 on b3.cgno=b2.pcgno
|
||||
<dynamic prepend="where">
|
||||
select
|
||||
b.cshape, case when b.cshape=0 then '온라인' when b.cshape=1 then '오프라인' else '혼합' end cshapename
|
||||
,b3.cgno,b2.cgno,f.cmno,b.cmno
|
||||
,b3.cgname strval,b2.cgname strval2,f.cname strval3,concat(b.cname,'(',b.classno,')') strval4,concat(date_format(b.sstime,'%y.%m.%d'),'~',date_format(b.setime,'%y.%m.%d')) strval5
|
||||
,count(c.lectno) intval
|
||||
,sum(c.iscomplete) intval2
|
||||
,sum(case when (c.iscomplete <> 1 or c.iscomplete is null) then 1 else 0 end) intval15
|
||||
,sum(e.isjoin) intval3
|
||||
,sum(case when e.isjoin=1 and c.iscomplete=1 then 1 else 0 end) intval4
|
||||
,sum(case when e.isjoin=0 then 1 else 0 end) intval5
|
||||
,sum(case when e.isjoin=0 and c.iscomplete=1 then 1 else 0 end) intval6
|
||||
|
||||
,sum(case when c.isrebate=0 then 1 else 0 end) intval7
|
||||
,sum(case when c.isrebate=0 and c.iscomplete=1 then 1 else 0 end) intval8
|
||||
,sum(case when c.isrebate=1 then 1 else 0 end) intval9
|
||||
,sum(case when c.isrebate=1 and c.iscomplete=1 then 1 else 0 end) intval10
|
||||
|
||||
,sum(1) intval11 <!--회원신청완료-->
|
||||
,sum(case when c.iscomplete=1 then 1 else 0 end) intval12 <!--회원 수료-->
|
||||
|
||||
,sum(case when c.isrebate=0 and (c.iscomplete <> 1 or c.iscomplete is null) then 1 else 0 end) intval13 <!--비환급 미수료-->
|
||||
,sum(case when c.isrebate=1 and (c.iscomplete <> 1 or c.iscomplete is null) then 1 else 0 end) intval14 <!--환급 미수료-->
|
||||
|
||||
,sum(case when plog.isaccommodation = 1 then 1 else 0 end) intval16 <!--합숙신청완료-->
|
||||
,sum(case when plog.isaccommodation = 1 and c.iscomplete=1 then 1 else 0 end) intval17 <!--합숙수료-->
|
||||
,sum(case when plog.isaccommodation = 1 and (c.iscomplete <> 1 or c.iscomplete is null) then 1 else 0 end) intval18 <!--합숙미수료-->
|
||||
|
||||
,sum(case when (plog.isaccommodation <> 1 or plog.isaccommodation is null) then 1 else 0 end) intval19 <!--비합숙신청완료-->
|
||||
,sum(case when (plog.isaccommodation <> 1 or plog.isaccommodation is null) and c.iscomplete=1 then 1 else 0 end) intval20 <!--비합숙수료-->
|
||||
,sum(case when (plog.isaccommodation <> 1 or plog.isaccommodation is null) and (c.iscomplete <> 1 or c.iscomplete is null) then 1 else 0 end) intval21 <!--비합숙미수료-->
|
||||
|
||||
from term a
|
||||
inner join cm b on b.tmno=a.tmno
|
||||
inner join lect c on c.cmno=b.cmno and c.status=1
|
||||
inner join users d on d.userno=c.userno
|
||||
left outer join assign e on e.asno=d.asno
|
||||
inner join cm f on f.cmno=b.pcmno
|
||||
inner join cg b2 on b2.cgno=f.cgno
|
||||
inner join cg b3 on b3.cgno=b2.pcgno
|
||||
inner join pay p on c.payno = p.payno
|
||||
inner join pplog plog on p.pplno = plog.pplno
|
||||
<dynamic prepend="where">
|
||||
<isNotNull property="year" prepend="and">a.tyear=#year#</isNotNull>
|
||||
<isNotNull property="tmno" prepend="and">a.tmno=#tmno#</isNotNull>
|
||||
<isNotNull property="cshape" prepend="and">b.cshape=#cshape#</isNotNull>
|
||||
|
|
|
|||
Loading…
Reference in New Issue