diff --git a/BO/Views/cm/cmreg.cshtml b/BO/Views/cm/cmreg.cshtml index 024de3b..74471a5 100644 --- a/BO/Views/cm/cmreg.cshtml +++ b/BO/Views/cm/cmreg.cshtml @@ -115,7 +115,9 @@
수강료 : @Html.TextBoxFor(m => m.CM.infee, new { @class = "form-control disp-init int text-right", @style = "width: 150px;", @maxlength = "12" }) -     합숙비용 : @Html.TextBoxFor(m => m.CM.accommofee, new { @class = "form-control disp-init int text-right", @style = "width: 150px;", @maxlength = "12" }) +
    비회원 : @Html.TextBoxFor(m => m.CM.outfee, new { @class = "form-control disp-init int text-right", @style = "width: 150px;", @maxlength = "12" })
    정원 : @Html.TextBoxFor(m => m.CM.quota, new { @class = "form-control disp-init int text-right", @style = "width: 150px;", @maxlength = "6" })
@@ -336,6 +338,20 @@ if ('@(Model.CM.ismaster)' == '0') { $("#pcgno,#CM_cgno").hide(); } + if ($("input[name='CM.cshape']:checked").val() != '0') { + $("#spnaccommofee").show(); + } + else { + $("#spnaccommofee").hide(); + } + $("input[name='CM.cshape']").on("change", function () { + if ($(this).val() == "0") { + $("#spnaccommofee").hide(); + } + else { + $("#spnaccommofee").show(); + } + }); loadlegal($("#pcgno").val()); }); function loadlegal(cgno) { @@ -363,6 +379,9 @@ } var viewidxname = '@(Model.viewidxname)'; function save() { + if ($("input[name='CM.cshape']:checked").val() == '0') { + $("#CM_accommofee").val("0"); + } setv("CM_usernos", getliv("cmprdatabox")); setv("CM_bknos", getliv("bookdatabox")); setv("CM_cmnospre", getliv("cmpredatabox"));