합숙여부 추가
This commit is contained in:
parent
9ec93f5e8f
commit
c270c28d68
|
|
@ -100,6 +100,10 @@
|
|||
<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>
|
||||
<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 class="line line-dashed line-lg pull-in"></div><div class="form-group">
|
||||
<label class="col-sm-4 col-md-2 control-label">기술인분류</label>
|
||||
|
|
@ -358,13 +362,19 @@
|
|||
if ('@(Model.CM.ismaster)' == '0') {
|
||||
$("#pcgno,#CM_cgno").hide();
|
||||
}
|
||||
|
||||
if ($("input[name='CM.cshape']:checked").val() != '0') {
|
||||
$(".isaccommodation").show();
|
||||
}
|
||||
else {
|
||||
$(".isaccommodation").hide();
|
||||
}
|
||||
if ($("input[name='CM.isaccommodation']:checked").val() != '0') {
|
||||
$("#spnaccommofee").show();
|
||||
}
|
||||
else {
|
||||
$("#spnaccommofee").hide();
|
||||
}
|
||||
|
||||
if ($("input[name='CM.cshape']:checked").val() == '1') {
|
||||
$("#alldays").prop("disabled", true);
|
||||
}
|
||||
|
|
@ -383,10 +393,11 @@
|
|||
}
|
||||
$("input[name='CM.cshape']").on("change", function () {
|
||||
if ($(this).val() == "0") {
|
||||
$("#spnaccommofee").hide();
|
||||
$(".isaccommodation").hide();
|
||||
$("input:radio[name='CM.isaccommodation']:radio[value='0']").click();
|
||||
}
|
||||
else {
|
||||
$("#spnaccommofee").show();
|
||||
$(".isaccommodation").show();
|
||||
}
|
||||
|
||||
if ($(this).val() == "1") {
|
||||
|
|
@ -396,6 +407,15 @@
|
|||
$("#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());
|
||||
|
||||
$("#alldays").on("click", function () {
|
||||
|
|
|
|||
|
|
@ -485,6 +485,10 @@ namespace NP.Model
|
|||
public String username { get; set; }
|
||||
public Int64 lectnocheck { get; set; }
|
||||
public int ischkatt { get; set; }
|
||||
/// <summary>
|
||||
/// 합숙여부
|
||||
/// </summary>
|
||||
public int isaccommodation { get; set;}
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
|
|
|
|||
Loading…
Reference in New Issue