2020-10-12 14:39:23 +09:00
|
|
|
@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">
|
|
|
|
|
@Html.Partial("./Partial/Select", null, new ViewDataDictionary { { "special", "fromtodesc" }, { "textadd", "년도" }, { "start", 2019 }, { "end", DateTime.Now.Year }, { "name", "stringval" }, { "selected", Model.stringval } })
|
|
|
|
|
@Html.Partial("./Partial/Button", new NP.Model.Button() { Special = "search", OnClick = "" })
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</section>
|
|
|
|
|
<div class="tar buttonbox">
|
|
|
|
|
<a href="#" onclick="save()" class="btn btn-s-xs btn-primary" style="margin-left: 5px;">정산내역 저장</a>
|
|
|
|
|
<a href="#" onclick="javascript:exceldown('mform', '/data/fees', 'tbody1', 'OfflineCalc');" 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 colspan="10">일반</th>
|
|
|
|
|
<th colspan="4">신청사항</th>
|
|
|
|
|
<th colspan="7">비용</th>
|
|
|
|
|
<th colspan="3">기타</th>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>순번</th>
|
|
|
|
|
<th>상위분류</th>
|
|
|
|
|
<th>과정분류</th>
|
|
|
|
|
<th>교육명</th>
|
|
|
|
|
<th>교육일</th>
|
|
|
|
|
<th>교육시간</th>
|
|
|
|
|
<th>교육장명</th>
|
|
|
|
|
<th>강사명</th>
|
|
|
|
|
<th>회원가</th>
|
|
|
|
|
<th>비회원가</th>
|
|
|
|
|
<th>회원사</th>
|
|
|
|
|
<th>비회원사</th>
|
|
|
|
|
<th>회원</th>
|
|
|
|
|
<th>비회원</th>
|
|
|
|
|
<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.CMCalcs)
|
|
|
|
|
{
|
|
|
|
|
<tr data-no="@item.cmno">
|
|
|
|
|
<td>@item.rno</td>
|
|
|
|
|
<td>@item.pcgname</td>
|
|
|
|
|
<td>@item.cgname</td>
|
|
|
|
|
<td class="link"><a href="#" onclick="feep(@item.cmno)">@item.cnameclassno</a></td>
|
|
|
|
|
<td>@item.sssename</td>
|
|
|
|
|
<td>@item.itime</td>
|
2020-10-13 16:10:18 +09:00
|
|
|
<td>@item.studyplacename</td>
|
2020-10-12 14:39:23 +09:00
|
|
|
<td>@Html.Raw(item.profnames ?? "")</td>
|
|
|
|
|
<td class="text-right infee">@item.infee.ToString("#,0")</td>
|
|
|
|
|
<td class="text-right outfee">@item.outfee.ToString("#,0")</td>
|
|
|
|
|
<td class="text-right">@item.infeetotal.ToString("#,0")</td>
|
|
|
|
|
<td class="text-right">@item.outfeetotal.ToString("#,0")</td>
|
|
|
|
|
<td class="text-right">@item.incount.ToString("#,0")</td>
|
|
|
|
|
<td class="text-right">@item.outcount.ToString("#,0")</td>
|
|
|
|
|
<td><input type="text" class="form-control int feeloc text-right" value="@item.feeloc" /></td>
|
|
|
|
|
<td class="text-right">@item.pfee.ToString("#,0")</td>
|
|
|
|
|
<td><input type="text" class="form-control int feebkpr text-right" value="@item.feebkpr" /></td>
|
|
|
|
|
<td><input type="text" class="form-control int feebrt text-right" value="@item.feebrt" /></td>
|
|
|
|
|
<td><input type="text" class="form-control int feemat text-right" value="@item.feemat" /></td>
|
|
|
|
|
<td><input type="text" class="form-control int feefoo text-right" value="@item.feefoo" /></td>
|
|
|
|
|
<td><input type="text" class="form-control int feeetc text-right" value="@item.feeetc" /></td>
|
|
|
|
|
<td><input type="text" class="form-control int prtcnt text-right" value="@item.prtcnt" /></td>
|
|
|
|
|
<td class="text-right">@item.totcount</td>
|
|
|
|
|
<td>@Html.Raw(item.managers ?? "")</td>
|
|
|
|
|
</tr>
|
|
|
|
|
}
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</section>
|
|
|
|
|
@Html.HiddenFor(m => m.tabidx)
|
|
|
|
|
</form>
|
|
|
|
|
@section styles{
|
|
|
|
|
<style type="text/css">
|
|
|
|
|
/*thead > :last-child th {
|
|
|
|
|
position: sticky;
|
|
|
|
|
top: 30px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
thead > :first-child th {
|
|
|
|
|
position: sticky;
|
|
|
|
|
top: 0px;
|
|
|
|
|
}*/
|
|
|
|
|
/*#excel1 {overflow: hidden;}
|
|
|
|
|
|
|
|
|
|
#excel1 {overflow-x: auto;}
|
|
|
|
|
|
|
|
|
|
#excel1 table{display: block; height: 300px}
|
|
|
|
|
#excel1 tbody{display: block; height: inherit; width: inherit}*/
|
|
|
|
|
|
|
|
|
|
#excel1 {overflow: initial; width: 100%; /*height: 300px;*/}
|
|
|
|
|
#excel1 table{width: 100%; display: block; overflow-x: auto; /*height: 300px;*/ overflow-y: hidden;}
|
|
|
|
|
#excel1 tbody {overflow-y: auto; /*height: 200px;*/ display: inline-block; overflow-x: hidden;}
|
|
|
|
|
#excel1 thead{display: block}
|
|
|
|
|
/*#excel1 thead{position: absolute;}*/
|
|
|
|
|
/*#excel1 tbody{overflow-y: auto; height: 155px}*/
|
|
|
|
|
|
|
|
|
|
#excel1 table thead th,#excel1 table tbody td{min-width: 80px;word-break: break-all;}
|
|
|
|
|
#excel1 table thead th:nth-of-type(1), #excel1 table tbody td:nth-of-type(1) {min-width: 40px}
|
|
|
|
|
#excel1 table thead th:nth-of-type(4), #excel1 table tbody td:nth-of-type(4) {min-width: 150px}
|
|
|
|
|
.panel .table th,.panel .table td {
|
|
|
|
|
padding: 2px 5px;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
}
|
|
|
|
|
@section scriptsHeader{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
@section scripts{
|
|
|
|
|
<script>
|
|
|
|
|
$(document).ready(function () {
|
|
|
|
|
calcauto();
|
|
|
|
|
$(window).on("resize", function () {
|
|
|
|
|
calcauto();
|
|
|
|
|
});
|
|
|
|
|
$(".mainbr").remove();
|
|
|
|
|
});
|
|
|
|
|
function calcauto() {
|
|
|
|
|
var h = $(window).height() - $("#excel1").offset().top - 20;
|
|
|
|
|
$("#excel1, #excel1 table").css("height", h);
|
|
|
|
|
$("#excel1 tbody").css("height", h - 90);
|
|
|
|
|
}
|
|
|
|
|
function save() {
|
|
|
|
|
if ($("#tbody1 tr").length < 1) {
|
|
|
|
|
msg("저장할 정산내역이 없습니다.");
|
|
|
|
|
}
|
|
|
|
|
else if (confirm("저장하시겠습니까?")) {
|
|
|
|
|
var sd = "";
|
|
|
|
|
$.each($("#tbody1 tr"), function (i, r) {
|
|
|
|
|
sd += ";" + $(r).attr("data-no") + ":" + getint($(r).find("td.infee").text()) + ":" + getint($(r).find("td.outfee").text()) +
|
|
|
|
|
":" + getint($(r).find("input.feeloc").val()) +
|
|
|
|
|
":" + getint($(r).find("input.feebkpr").val()) +
|
|
|
|
|
":" + getint($(r).find("input.feebrt").val()) +
|
|
|
|
|
":" + getint($(r).find("input.feemat").val()) +
|
|
|
|
|
":" + getint($(r).find("input.feefoo").val()) +
|
|
|
|
|
":" + getint($(r).find("input.feeetc").val()) +
|
|
|
|
|
":" + getint($(r).find("input.prtcnt").val());
|
|
|
|
|
});
|
|
|
|
|
capp("/acommon/cmcalc", { data: sd.substr(1) }, "cbsave");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function cbsave() {
|
|
|
|
|
if (capResult.code == 1000) {
|
|
|
|
|
msg("저장되었습니다.", null, null, null, true);
|
|
|
|
|
submit("mform", 500);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function feep(idx) {
|
|
|
|
|
capp("/acommon/checkcmcalc", { cmno: idx }, "cbcheck");
|
|
|
|
|
}
|
|
|
|
|
function cbcheck() {
|
|
|
|
|
if (capResult.code == 1000) {
|
|
|
|
|
if (capResult.obj.length > 0) {
|
|
|
|
|
winopen('/data/feep?intval=' + capResult.obj[0].cmno, 'feep', 800, 800);
|
|
|
|
|
} else {
|
|
|
|
|
msg("해당 교육의 정산내역이 저장되어 있지 않습니다.");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//if (capResult.code == 1000) {
|
|
|
|
|
// var cmcalc = capResult.obj;
|
|
|
|
|
// if (cmcalc.length > 0) {
|
|
|
|
|
// winopen('/data/feep?intval=' + getint(cmcalc.cmno), 'feep', 800, 800);
|
|
|
|
|
// } else {
|
|
|
|
|
// msg("해당 교육의 정산내역이 저장되어 있지 않습니다.");
|
|
|
|
|
// }
|
|
|
|
|
//}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
}
|