diff --git a/BO/Views/cm/cmreginning.cshtml b/BO/Views/cm/cmreginning.cshtml index c78eaa1..a93e882 100644 --- a/BO/Views/cm/cmreginning.cshtml +++ b/BO/Views/cm/cmreginning.cshtml @@ -64,7 +64,7 @@ @item.iseq @(item.istaste == 1 ? "(S)" : "") @item.isonlinename - @item.ititle + @item.ititle @item.username @item.udtymd @@ -89,11 +89,11 @@ 강의주제 @Html.TextBox("ititle", "", new { @class = "form-control", @style = "", @maxlength = "100" }) - + 강의장소 @Html.TextBox("icontent", "", new { @class = "form-control", @style = "", @maxlength = "250" }) - + 학습시점/시간 @Html.Partial("./Partial/Date", (DateTime?)null, new ViewDataDictionary { { "name", "idate" } }) @@ -153,7 +153,7 @@ @Html.TextBox("iseq", "", new { @class = "form-control disp-init int nocomma text-center", @style = "width: 80px;", @maxlength = "3" }) -
+
저장 삭제
@@ -176,7 +176,10 @@ $(".troffline,.tronline").hide(); if ($(this).val() == "1") { $(".tronline").show(); - } else { + $("#scdSave").show(); + } + else + { $(".troffline").show(); if ($("#files").html() == "") { $("#filetf").show(); @@ -189,6 +192,16 @@ $("#idate").show(); $("#idate").next("i").show(); } + if (@Model.CM.ismaster == 0 && @Model.CM.cshape == 2) { + $("#scdLocation").hide(); + $("#scdTime").hide(); + $("#scdSave").hide(); + } + else { + $("#scdLocation").show(); + $("#scdTime").show(); + $("#scdSave").show(); + } } }); }); @@ -259,7 +272,19 @@ msg2("이미 등록된 회차입니다. 다른 회차를 입력해주세요."); } } - function reg(no, cshape) { + function reg(no, cshape, isonline) { + if (@Model.CM.ismaster == 0 && @Model.CM.cshape == 2 && isonline == 0) { + setTimeout(function () { + $("#scdLocation").hide(); + $("#scdTime").hide(); + $("#scdSave").hide(); }, 200); + + } + else { + $("#scdLocation").show(); + $("#scdTime").show(); + $("#scdSave").show(); + } _cmino = no; $("#btndel,#btnpreview").hide(); $(".troffline,.tronline").hide(); @@ -273,14 +298,15 @@ setrv("isonline", 0); $(".troffline").show(); if ($("#files").html() == "") { - $("#filetf").show(); - } + $("#filetf").show(); + } if (@Model.CM.ismaster == 1) { - $("#iday").show(); - } else { - $("#idate").show(); - $("#idate").next("i").show(); - } + $("#iday").show(); + } else { + $("#idate").show(); + $("#idate").next("i").show(); + } + } setrv("istaste", 0); $("#ititle,#icontent,#idate,#iday,#isth,#istm,#ieth,#ietm,#userno,#iseq,#fgnotf,#filetf").val("");