화면 진입 시 환급여부 선택에 '환급' 으로 기본값 설정되어 있으나 회사정보 입력칸이 보이지 않음. 환급여부를 비환급 선택했다가 환급 선택해야 회사정보 입력칸이 보임
화면 진입 시 바로 회사정보 입력칸이 보일 수 있도록 변경"
This commit is contained in:
parent
e4e127d2c3
commit
c866fc500a
|
|
@ -132,7 +132,7 @@
|
|||
<th>업체/개인 선택</th>
|
||||
<td>
|
||||
<input type="radio" name="isCompany" id="isCompany1" value="1" @(Model.Assign != null ? "checked" : "") /><label for="isCompany1"> 업체</label>
|
||||
<input type="hidden" name="asno" id="asno" value="@Model.Assign.asno">
|
||||
<input type="hidden" name="asno" id="asno" value="@(Model.Assign != null ? Model.Assign.asno : 0)">
|
||||
<input type="text" id="asname" name="asname" placeholder="" readonly="readonly" value="@(Model.Assign != null ? Model.Assign.asname : "")" style="background-color:#ddd;" />
|
||||
<input type="radio" name="isCompany" id="isCompany0" value="0" @(Model.Assign != null ? "" : "checked") style="padding-left:5px" /><label for="isCompany0"> 개인</label>
|
||||
</td>
|
||||
|
|
@ -401,8 +401,8 @@
|
|||
model.cm = @Html.Raw(Json.Encode(new List<NP.Model.CM>() { Model.CM }.Select(s => new { s.infee, s.accommofee, s.applicableCM, s.cshape, s.cmno }).First()));
|
||||
model.assign = @Html.Raw(Json.Encode(new List<NP.Model.Assign>() { Model.Assign }.Select(s => new { s.asno, s.asname }).First()));;
|
||||
model.pplog = @Html.Raw(Json.Encode(new List<NP.Model.PPLog>() { ( Model.PPLog != null ? Model.PPLog : new NP.Model.PPLog {}) }.Select(s => new { s.isrebate, s.isaccommodation, s.cmisno }).First()));;
|
||||
model.selMonth = @Model.selMonth;
|
||||
model.iscompany = @Model.isCompany;
|
||||
model.selMonth = @(Model.selMonth != null ? Model.selMonth.ToString() : "null");
|
||||
model.iscompany = @(Model.isCompany != null ? Model.isCompany.ToString() : "null");
|
||||
|
||||
|
||||
$(document).ready(function () {
|
||||
|
|
@ -416,7 +416,6 @@
|
|||
$(".div-rbankInfo").show();
|
||||
$(".div-companyInfo").show();
|
||||
$(".uduty").show();
|
||||
|
||||
}
|
||||
else {
|
||||
$(".div-isCompany").show();
|
||||
|
|
@ -424,7 +423,7 @@
|
|||
if ($("input:radio[name='isCompany']:checked").val() == "0") {
|
||||
$(".div-companyInfo").hide();
|
||||
}
|
||||
$(".uduty").hide();
|
||||
$(".uduty").hide();
|
||||
}
|
||||
});
|
||||
|
||||
|
|
@ -443,20 +442,15 @@
|
|||
if ($(this).val() == "0") {
|
||||
$("#asno").val("");
|
||||
$("#asname").val("");
|
||||
$(".div-companyInfo").hide();
|
||||
if (model.cm.cshape == 1) {
|
||||
$("#asname").hide();
|
||||
}
|
||||
$(".div-companyInfo").hide();
|
||||
} else {
|
||||
if (model.cm.cshape == 1) {
|
||||
$(".div-companyInfo").show();
|
||||
$("#asname").hide();
|
||||
}
|
||||
if (model.isloaded) {
|
||||
if (model.cm.cshape != 1) {
|
||||
boxassignview();
|
||||
} else {
|
||||
if (model.isloaded) {
|
||||
boxassignview();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
|
@ -491,6 +485,7 @@
|
|||
$(".div-companyInfo").show();
|
||||
$(".div-isCompany").hide();
|
||||
$(".uduty").show();
|
||||
$("#asname").hide();
|
||||
} else if (model.cm.cshape == 2) {
|
||||
$(".div-companyInfo").hide();
|
||||
$(".div-isCompany").show();
|
||||
|
|
@ -505,11 +500,13 @@
|
|||
$("input:radio[name='isrebate'][value='" + model.pplog.isrebate + "']").click();
|
||||
}
|
||||
|
||||
if (model.selMonth != 0) {
|
||||
if (model.selMonth != null) {
|
||||
$("#selMonth").val(model.selMonth).trigger('change');
|
||||
}
|
||||
|
||||
$("input:radio[name='isCompany'][value='" + model.iscompany + "']").click();
|
||||
if(model.iscompany != null) {
|
||||
$("input:radio[name='isCompany'][value='" + model.iscompany + "']").click();
|
||||
}
|
||||
|
||||
if (model.assign.asno == 0) {
|
||||
$("#btnassign").show();
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
<input type="hidden" name="cmisno" id="cmisno" />
|
||||
<input type="hidden" name="isrebate" id="isrebate" />
|
||||
<input type="hidden" name="applicableCM" id="applicableCM" />
|
||||
<input type="hidden" name="isCompany" value="@Model.isCompany" />@*업체/개인 선택*@
|
||||
<h4 class="clsTitle">신청강좌</h4>
|
||||
<ul class="smtList mt0">
|
||||
<li>
|
||||
|
|
|
|||
Loading…
Reference in New Issue