합숙여부 추가

This commit is contained in:
lch 2021-05-18 02:16:41 +00:00
parent 9ec93f5e8f
commit c270c28d68
2 changed files with 61 additions and 37 deletions

View File

@ -100,6 +100,10 @@
<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">@Html.Partial("./Partial/Radio", Model.CM.cshape, new ViewDataDictionary() { { "valuetext", "0:온라인;1:교육장;2:온라인 혼합" }, { "checked", Model.CM.cshape }, { "name", "CM.cshape" } })</div> <div class="col-sm-8 col-md-10">@Html.Partial("./Partial/Radio", Model.CM.cshape, new ViewDataDictionary() { { "valuetext", "0:온라인;1:교육장;2:온라인 혼합" }, { "checked", Model.CM.cshape }, { "name", "CM.cshape" } })</div>
</div> </div>
<div class="line line-dashed line-lg pull-in isaccommodation"></div><div class="form-group isaccommodation" style="display:none" >
<label class="col-sm-4 col-md-2 control-label req">합숙여부</label>
<div class="col-sm-8 col-md-10">@Html.Partial("./Partial/Radio", Model.CM.isaccommodation, new ViewDataDictionary() { { "valuetext", "1:예;0:아니요" }, { "checked", Model.CM.isaccommodation }, { "name", "CM.isaccommodation" } })</div>
</div>
<div id="divLegalEdu" style="display:none"> <div id="divLegalEdu" style="display:none">
<div class="line line-dashed line-lg pull-in"></div><div class="form-group"> <div class="line line-dashed line-lg pull-in"></div><div class="form-group">
<label class="col-sm-4 col-md-2 control-label">기술인분류</label> <label class="col-sm-4 col-md-2 control-label">기술인분류</label>
@ -358,13 +362,19 @@
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') { if ($("input[name='CM.cshape']:checked").val() != '0') {
$(".isaccommodation").show();
}
else {
$(".isaccommodation").hide();
}
if ($("input[name='CM.isaccommodation']:checked").val() != '0') {
$("#spnaccommofee").show(); $("#spnaccommofee").show();
} }
else { else {
$("#spnaccommofee").hide(); $("#spnaccommofee").hide();
} }
if ($("input[name='CM.cshape']:checked").val() == '1') { if ($("input[name='CM.cshape']:checked").val() == '1') {
$("#alldays").prop("disabled", true); $("#alldays").prop("disabled", true);
} }
@ -383,10 +393,11 @@
} }
$("input[name='CM.cshape']").on("change", function () { $("input[name='CM.cshape']").on("change", function () {
if ($(this).val() == "0") { if ($(this).val() == "0") {
$("#spnaccommofee").hide(); $(".isaccommodation").hide();
$("input:radio[name='CM.isaccommodation']:radio[value='0']").click();
} }
else { else {
$("#spnaccommofee").show(); $(".isaccommodation").show();
} }
if ($(this).val() == "1") { if ($(this).val() == "1") {
@ -396,6 +407,15 @@
$("#alldays").prop("disabled", false); $("#alldays").prop("disabled", false);
} }
}); });
$("input[name='CM.isaccommodation']").on("click", function () {
if ($(this).val() == "0") {
$("#spnaccommofee").hide();
$("#CM_accommofee").val("");
}
else {
$("#spnaccommofee").show();
}
});
loadlegal($("#pcgno").val()); loadlegal($("#pcgno").val());
$("#alldays").on("click", function () { $("#alldays").on("click", function () {

View File

@ -485,6 +485,10 @@ namespace NP.Model
public String username { get; set; } public String username { get; set; }
public Int64 lectnocheck { get; set; } public Int64 lectnocheck { get; set; }
public int ischkatt { get; set; } public int ischkatt { get; set; }
/// <summary>
/// 합숙여부
/// </summary>
public int isaccommodation { get; set;}
} }
[Serializable] [Serializable]