From 65b8e7df581cfa436e5b8e0f082c853b22a29068 Mon Sep 17 00:00:00 2001 From: hyunho Date: Tue, 5 Jan 2021 07:01:35 +0000 Subject: [PATCH] --- BO/Views/cm/cmreg.cshtml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) 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"));