This commit is contained in:
parent
9e70130072
commit
c148252762
|
|
@ -78,12 +78,30 @@
|
||||||
@Html.Partial("./Partial/DForm", Model, new ViewDataDictionary { { "preform", 1 } })
|
@Html.Partial("./Partial/DForm", Model, new ViewDataDictionary { { "preform", 1 } })
|
||||||
</form>
|
</form>
|
||||||
<div id="thisbox" class="findbox draggable regbox" style="width: 800px; z-index: 1041; top: 60px; overflow: auto;">
|
<div id="thisbox" class="findbox draggable regbox" style="width: 800px; z-index: 1041; top: 60px; overflow: auto;">
|
||||||
<h4><i class="fa fa-bars"></i> <span id="pcap">회차등록수정</span><a href="#" class="btn btn-default btn-xs f-r closethisbox">닫기</a></h4>
|
<h4><i class="fa fa-bars"></i> <span id="pcap">회차등록수정</span><a href="#" class="btn btn-default btn-xs f-r closethisbox" onclick="changeRadio();">닫기</a></h4>
|
||||||
<table class="regtable">
|
<table class="regtable">
|
||||||
<colgroup><col style="width:150px;" /><col /></colgroup>
|
<colgroup><col style="width:150px;" /><col /></colgroup>
|
||||||
<tr>
|
<tr>
|
||||||
<th>학습방식</th>
|
<th>학습방식</th>
|
||||||
<td>@Html.Partial("./Partial/Radio", null, new ViewDataDictionary() { { "valuetext", "1:온라인;0:오프라인" }, { "checked", 1 }, { "name", "isonline" } })</td>
|
<td>
|
||||||
|
@if (Model.CM.cshape == 0)
|
||||||
|
{
|
||||||
|
<input type="radio" name="isonline" id="rdoOnline" value="1" checked><label for="rdoOnline">온라인</label>
|
||||||
|
<input type="radio" name="isonline" id="rdoOffline" value="2" disabled><label for="rdoOffline">오프라인</label>
|
||||||
|
}
|
||||||
|
@if (Model.CM.cshape == 1)
|
||||||
|
{
|
||||||
|
<input type="radio" name="isonline" id="rdoOnline" value="1" disabled><label for="rdoOnline">온라인</label>
|
||||||
|
<input type="radio" name="isonline" id="rdoOffline" value="2" checked><label for="rdoOffline">오프라인</label>
|
||||||
|
}
|
||||||
|
|
||||||
|
@if (Model.CM.cshape == 2)
|
||||||
|
{
|
||||||
|
<input type="radio" name="isonline" id="rdoOnline" value="1" checked><label for="rdoOnline">온라인</label>
|
||||||
|
<input type="radio" name="isonline" id="rdoOffline" value="2" disabled><label for="rdoOffline">오프라인</label>
|
||||||
|
}
|
||||||
|
@*@Html.Partial("./Partial/Radio", null, new ViewDataDictionary() { { "valuetext", "1:온라인;0:오프라인" }, { "checked", 1 }, { "name", "isonline" } })*@
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="req">강의주제</th>
|
<th class="req">강의주제</th>
|
||||||
|
|
@ -275,17 +293,50 @@
|
||||||
function reg(no, cshape, isonline) {
|
function reg(no, cshape, isonline) {
|
||||||
if (@Model.CM.ismaster == 0 && @Model.CM.cshape == 2 && isonline == 0) {
|
if (@Model.CM.ismaster == 0 && @Model.CM.cshape == 2 && isonline == 0) {
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
|
$("#rdoOnline").prop("disabled", true);
|
||||||
|
$("#rdoOffline").prop("disabled", false);
|
||||||
$("#scdLocation").hide();
|
$("#scdLocation").hide();
|
||||||
$("#scdTime").hide();
|
$("#scdTime").hide();
|
||||||
$("#scdSave").hide(); }, 200);
|
$("#scdSave").hide(); }, 100);
|
||||||
|
}
|
||||||
|
else if (@Model.CM.ismaster == 0 && @Model.CM.cshape == 2 && isonline == 1)
|
||||||
|
{
|
||||||
|
$("#rdoOffline").prop("disabled", true);
|
||||||
|
$("#rdoOnline").prop("disabled", false);
|
||||||
|
$("#scdLocation").show();
|
||||||
|
$("#scdTime").show();
|
||||||
|
$("#scdSave").show();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$("#scdLocation").show();
|
$("#scdLocation").show();
|
||||||
$("#scdTime").show();
|
$("#scdTime").show();
|
||||||
$("#scdSave").show();
|
$("#scdSave").show();
|
||||||
}
|
}
|
||||||
|
if (isonline == 0) {
|
||||||
|
setTimeout(function () {
|
||||||
|
$("#rdoOffline").prop("checked", true).trigger("change");
|
||||||
|
}, 200);
|
||||||
|
}
|
||||||
|
else if (isonline == 1){
|
||||||
|
setTimeout(function () {
|
||||||
|
$("#rdoOnline").prop("checked", true).trigger("change");
|
||||||
|
}, 200);
|
||||||
|
}
|
||||||
|
if (@Model.CM.cshape == 0 && isonline == undefined) {
|
||||||
|
setTimeout(function () {
|
||||||
|
$("#rdoOnline").prop("checked", true).trigger("change");
|
||||||
|
}, 200);
|
||||||
|
}
|
||||||
|
if (@Model.CM.cshape == 1 && isonline == undefined) {
|
||||||
|
setTimeout(function () {
|
||||||
|
$("#rdoOffline").prop("checked", true).trigger("change");
|
||||||
|
}, 200);
|
||||||
|
}
|
||||||
|
if (@Model.CM.cshape == 2 && isonline == undefined) {
|
||||||
|
setTimeout(function () {
|
||||||
|
$("#rdoOnline").prop("checked", true).trigger("change");
|
||||||
|
}, 200);
|
||||||
|
}
|
||||||
_cmino = no;
|
_cmino = no;
|
||||||
$("#btndel,#btnpreview").hide();
|
$("#btndel,#btnpreview").hide();
|
||||||
$(".troffline,.tronline").hide();
|
$(".troffline,.tronline").hide();
|
||||||
|
|
@ -456,6 +507,14 @@
|
||||||
msg("팝업이 차단되어 있습니다. 차단을 해제해 주세요.");
|
msg("팝업이 차단되어 있습니다. 차단을 해제해 주세요.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
function changeRadio() {
|
||||||
|
if (@Model.CM.ismaster == 0 && @Model.CM.cshape == 2) {
|
||||||
|
$("#rdoOnline").prop("checked", true);
|
||||||
|
$("#rdoOnline").prop("disabled", false);
|
||||||
|
$("#rdoOffline").prop("disabled", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue