From c1482527629bc6af983e0f7968a8b408557bbb08 Mon Sep 17 00:00:00 2001 From: hyunho Date: Thu, 12 Nov 2020 01:04:27 +0000 Subject: [PATCH] --- BO/Views/cm/cmreginning.cshtml | 69 +++++++++++++++++++++++++++++++--- 1 file changed, 64 insertions(+), 5 deletions(-) diff --git a/BO/Views/cm/cmreginning.cshtml b/BO/Views/cm/cmreginning.cshtml index 871f40c..0f5fc91 100644 --- a/BO/Views/cm/cmreginning.cshtml +++ b/BO/Views/cm/cmreginning.cshtml @@ -78,12 +78,30 @@ @Html.Partial("./Partial/DForm", Model, new ViewDataDictionary { { "preform", 1 } })
-

회차등록수정닫기

+

회차등록수정닫기

- + @@ -275,17 +293,50 @@ function reg(no, cshape, isonline) { if (@Model.CM.ismaster == 0 && @Model.CM.cshape == 2 && isonline == 0) { setTimeout(function () { + $("#rdoOnline").prop("disabled", true); + $("#rdoOffline").prop("disabled", false); $("#scdLocation").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 { $("#scdLocation").show(); $("#scdTime").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; $("#btndel,#btnpreview").hide(); $(".troffline,.tronline").hide(); @@ -456,6 +507,14 @@ msg("팝업이 차단되어 있습니다. 차단을 해제해 주세요."); } } + } + function changeRadio() { + if (@Model.CM.ismaster == 0 && @Model.CM.cshape == 2) { + $("#rdoOnline").prop("checked", true); + $("#rdoOnline").prop("disabled", false); + $("#rdoOffline").prop("disabled", true); } + + } }
학습방식@Html.Partial("./Partial/Radio", null, new ViewDataDictionary() { { "valuetext", "1:온라인;0:오프라인" }, { "checked", 1 }, { "name", "isonline" } }) + @if (Model.CM.cshape == 0) + { + + + } + @if (Model.CM.cshape == 1) + { + + + } + + @if (Model.CM.cshape == 2) + { + + + } + @*@Html.Partial("./Partial/Radio", null, new ViewDataDictionary() { { "valuetext", "1:온라인;0:오프라인" }, { "checked", 1 }, { "name", "isonline" } })*@ +
강의주제