diff --git a/FO/Views/Course/ApplyEdu.cshtml b/FO/Views/Course/ApplyEdu.cshtml
index 63cfa3a..cdf9bae 100644
--- a/FO/Views/Course/ApplyEdu.cshtml
+++ b/FO/Views/Course/ApplyEdu.cshtml
@@ -132,7 +132,7 @@
업체/개인 선택 |
-
+
|
@@ -401,8 +401,8 @@
model.cm = @Html.Raw(Json.Encode(new List() { Model.CM }.Select(s => new { s.infee, s.accommofee, s.applicableCM, s.cshape, s.cmno }).First()));
model.assign = @Html.Raw(Json.Encode(new List() { Model.Assign }.Select(s => new { s.asno, s.asname }).First()));;
model.pplog = @Html.Raw(Json.Encode(new List() { ( 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();
diff --git a/FO/Views/Course/ApplyPay.cshtml b/FO/Views/Course/ApplyPay.cshtml
index 6f4b316..b9f820d 100644
--- a/FO/Views/Course/ApplyPay.cshtml
+++ b/FO/Views/Course/ApplyPay.cshtml
@@ -26,6 +26,7 @@
+ @*업체/개인 선택*@
신청강좌