diff --git a/FO/Controllers/CourseController.cs b/FO/Controllers/CourseController.cs index 5bad244..bfe6822 100644 --- a/FO/Controllers/CourseController.cs +++ b/FO/Controllers/CourseController.cs @@ -822,6 +822,13 @@ namespace NP.FO.Controllers public ActionResult Applycomplete(VMCourse vm) { + vm.CM = Dao.Get("cm.cms", new System.Collections.Hashtable() { { "cmno", vm.cmno } }).FirstOrDefault(); + if (vm.CM.lectcnt != null) + { + int? standbyPerson = vm.CM.quota - vm.CM.lectcnt; + vm.CM.applicableCM = (standbyPerson <= 0) ? "대기접수" : "정상접수"; + vm.CM.standbyPerson = standbyPerson; + } return View(vm); } diff --git a/FO/Views/Course/ApplyComplete.cshtml b/FO/Views/Course/ApplyComplete.cshtml index e05a207..274c3d4 100644 --- a/FO/Views/Course/ApplyComplete.cshtml +++ b/FO/Views/Course/ApplyComplete.cshtml @@ -1,28 +1,86 @@ -
+ @*강좌번호*@ +

신청완료

-

신청강좌

-
-
-
31기 [ 부산교육장 ] 아동문학의 이해
-

신청기간 : 2019-04-05 ~ 2019-04-20 | 집체교육기간 : [부산] 2019-04-05 ~ 2019-04-20

-
-
총 결제예상금액 : 400,000
-
+ + + 사업자등록증 + + + + @@ -274,7 +280,14 @@ @@ -330,4 +343,8 @@ ulScd.append(li); }); } + + function applyEdu() { + capfileform('/fcommon/paytaxsave', 'mform', 'cbgogo'); + } diff --git a/Model/CM.cs b/Model/CM.cs index de4ea6c..14c9da8 100644 --- a/Model/CM.cs +++ b/Model/CM.cs @@ -427,6 +427,7 @@ namespace NP.Model public int? iscertificate { get; set; } public int? lectcnt { get; set; } public String applicableCM { get; set; } + public int? standbyPerson { get; set; } /// /// 출석수료기준 ///