This commit is contained in:
parent
173db18b96
commit
65b8e7df58
|
|
@ -115,7 +115,9 @@
|
||||||
<label class="col-sm-4 col-md-2 control-label req">수강료/정원</label>
|
<label class="col-sm-4 col-md-2 control-label req">수강료/정원</label>
|
||||||
<div class="col-sm-8 col-md-10">
|
<div class="col-sm-8 col-md-10">
|
||||||
수강료 : @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.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" })
|
<span style="display:none" id="spnaccommofee">
|
||||||
|
합숙비용 : @Html.TextBoxFor(m => m.CM.accommofee, new { @class = "form-control disp-init int text-right", @style = "width: 150px;", @maxlength = "12" })
|
||||||
|
</span>
|
||||||
<div style="display:none"> 비회원 : @Html.TextBoxFor(m => m.CM.outfee, new { @class = "form-control disp-init int text-right", @style = "width: 150px;", @maxlength = "12" })</div>
|
<div style="display:none"> 비회원 : @Html.TextBoxFor(m => m.CM.outfee, new { @class = "form-control disp-init int text-right", @style = "width: 150px;", @maxlength = "12" })</div>
|
||||||
정원 : @Html.TextBoxFor(m => m.CM.quota, new { @class = "form-control disp-init int text-right", @style = "width: 150px;", @maxlength = "6" })
|
정원 : @Html.TextBoxFor(m => m.CM.quota, new { @class = "form-control disp-init int text-right", @style = "width: 150px;", @maxlength = "6" })
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -336,6 +338,20 @@
|
||||||
if ('@(Model.CM.ismaster)' == '0') {
|
if ('@(Model.CM.ismaster)' == '0') {
|
||||||
$("#pcgno,#CM_cgno").hide();
|
$("#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());
|
loadlegal($("#pcgno").val());
|
||||||
});
|
});
|
||||||
function loadlegal(cgno) {
|
function loadlegal(cgno) {
|
||||||
|
|
@ -363,6 +379,9 @@
|
||||||
}
|
}
|
||||||
var viewidxname = '@(Model.viewidxname)';
|
var viewidxname = '@(Model.viewidxname)';
|
||||||
function save() {
|
function save() {
|
||||||
|
if ($("input[name='CM.cshape']:checked").val() == '0') {
|
||||||
|
$("#CM_accommofee").val("0");
|
||||||
|
}
|
||||||
setv("CM_usernos", getliv("cmprdatabox"));
|
setv("CM_usernos", getliv("cmprdatabox"));
|
||||||
setv("CM_bknos", getliv("bookdatabox"));
|
setv("CM_bknos", getliv("bookdatabox"));
|
||||||
setv("CM_cmnospre", getliv("cmpredatabox"));
|
setv("CM_cmnospre", getliv("cmpredatabox"));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue