파일추가
This commit is contained in:
parent
7edb2ecb1d
commit
63751d98da
|
|
@ -0,0 +1,77 @@
|
|||
@model String
|
||||
@{
|
||||
var isone = Model.Split(';')[2] == "1";
|
||||
}
|
||||
<div id="cmscdbox" class="findbox" style="width: 600px;z-index:2002;">
|
||||
<h4><i class="fa fa-bars"></i> @Model.Split(';')[1]<a href="#" class="btn btn-default btn-xs f-r" onclick="hidecmscdbox()">닫기</a></h4>
|
||||
<br />
|
||||
<section class="panel panel-default" style="max-height: 300px; overflow: auto; min-height: 67px;">
|
||||
<div class="table-responsive" id="excel1">
|
||||
<table class="table table-striped b-t b-light" style="table-layout: fixed; white-space: nowrap;">
|
||||
<tbody class="data" id="cmscdlistbox">
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<br /><br />
|
||||
</div>
|
||||
<script>
|
||||
function findcmscdshow(cmno) {
|
||||
$("#cmscdlistbox tr").remove();
|
||||
bglayer2();
|
||||
$("#cmscdbox").slideDown("fast");
|
||||
findcmscd(cmno);
|
||||
}
|
||||
function hidecmscdbox() {
|
||||
$('#cmscdbox').slideUp('fast'); $('#bglayer2').hide();
|
||||
}
|
||||
function findcmscd(cmno) {
|
||||
capp("/acommon/GetScdForMixEdu", { cmno: cmno }, "cbfindcmscd");
|
||||
}
|
||||
function cbfindcmscd() {
|
||||
var tbody = $("#cmscdlistbox");
|
||||
tbody.empty();
|
||||
var seq = 0;
|
||||
|
||||
$.each(capResult.obj, function (i, d) {
|
||||
var tr = $("<tr />");
|
||||
var td = $("<td />");
|
||||
if (d.isEnd == true) {
|
||||
td.append("<label style='color: red'><input type='radio' name='rdoScds' value='" + d.cmisno + "' data-estart='"+ d.estart +"' data-text='"+ d.scdInfoSummary +"'> <span style='color:gray'>" + d.scdInfoSummary + "</span> (종료)</label>");
|
||||
}
|
||||
else {
|
||||
if (d.quota != 0) {
|
||||
if (d.remainPeople <= 0) {
|
||||
td.append("<label style='color: red'><input type='radio' name='rdoScds' value='" + d.cmisno + "' data-estart='"+ d.estart +"' data-text='"+ d.scdInfoSummary +"'> <span style='color:gray'>" + d.scdInfoSummary + "</span> (마감)</label>");
|
||||
}
|
||||
else {
|
||||
if (seq == 0) {
|
||||
td.append("<label style='color: red'><input type='radio' name='rdoScds' value='" + d.cmisno + "' data-estart='"+ d.estart +"' data-text='"+ d.scdInfoSummary + " (" + d.remainPeople + "명 남음)" +"'> " + d.scdInfoSummary + " (" + d.remainPeople + "명 남음)</label>");
|
||||
}
|
||||
else {
|
||||
td.append("<label style='color: red'><input type='radio' name='rdoScds' value='" + d.cmisno + "' data-estart='"+ d.estart +"' data-text='"+ d.scdInfoSummary + " (" + d.remainPeople + "명 남음)" +"'> " + d.scdInfoSummary + " (" + d.remainPeople + "명 남음)</label>");
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (seq == 0) {
|
||||
td.append("<label><input type='radio' name='rdoScds' value='" + d.cmisno + "' data-estart='"+ d.estart +"' data-text='"+ d.scdInfoSummary +"'> " + d.scdInfoSummary + "</label>");
|
||||
}
|
||||
else {
|
||||
td.append("<label><input type='radio' name='rdoScds' value='" + d.cmisno + "' data-estart='"+ d.estart +"' data-text='"+ d.scdInfoSummary +"'> " + d.scdInfoSummary + "</label>");
|
||||
}
|
||||
}
|
||||
}
|
||||
td.addClass("link");
|
||||
tr.append(td);
|
||||
seq++;
|
||||
tbody.append(tr);
|
||||
});
|
||||
|
||||
$("input:radio[name='rdoScds']").on("click", function () {
|
||||
var data = { value: $(this).val(), text: $(this).data("text"), estart: $(this).data("estart") };
|
||||
@(Model.Split(';')[0])(data);
|
||||
hidecmscdbox();
|
||||
});
|
||||
}
|
||||
</script>
|
||||
Loading…
Reference in New Issue